RE: [EXTERNAL] Re: 3.4.6-1 shm_open always returns -1, errno EINVAL

2023-03-13 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> > returns 3 and sets errno to zero. Note that "setting errno to zero" is not guaranteed in case of a successful completion of a library function or a system call. Generally, "errno" reflects an error that occurred last when such a call failed (so in other words, in case of a successful

Re: 3.4.6-1 shm_open always returns -1, errno EINVAL

2023-03-12 Thread Matthew Rickard via Cygwin
That's perfect, thank you! On 12/03/2023 9:35 pm, Csaba Raduly wrote: Hi Matthew, ... https://man7.org/linux/man-pages/man3/shm_open.3.html says: For portable use, a shared memory object should be identified by a name of the form /somename; that is, a null-terminated string

Re: 3.4.6-1 shm_open always returns -1, errno EINVAL

2023-03-12 Thread Csaba Raduly via Cygwin
Hi Matthew, On Sun, 12 Mar 2023 at 07:44, Matthew Rickard wrote: > > Hi all, > > Cygwin 3.4.6-1 shm_open seems to reject all calls, returning the value > -1 and setting errno to 22 EINVAL. > > For example, this program: > > #include > #include > #include > #include > > int main() { >int