3.4.6-1 shm_open always returns -1, errno EINVAL

Matthew Rickard rickard.matt@gmail.com
Sun Mar 12 22:55:09 GMT 2023


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
>         of up to NAME_MAX (i.e., 255) characters consisting of an initial
>         slash, followed by one or more characters, none of which are
>         slashes.
>
> Changing the shm_open call to
>
> shm_open("/123", O_CREAT | O_RDWR, 0666);
>
> returns 3 and sets errno to zero.
>
> Csaba


More information about the Cygwin mailing list