public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Matthew Rickard <rickard.matt@gmail.com>
To: Csaba Raduly <rcsaba@gmail.com>, cygwin list <cygwin@cygwin.com>
Subject: Re: 3.4.6-1 shm_open always returns -1, errno EINVAL
Date: Mon, 13 Mar 2023 09:55:09 +1100	[thread overview]
Message-ID: <9ee76b85-9d35-8e30-43b4-5bfd51ff78fb@gmail.com> (raw)
In-Reply-To: <CAEhDDbBcB61X_FxJynpwva8Mm5=UatDDfbEowup7ydO67WwGWg@mail.gmail.com>

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

  reply	other threads:[~2023-03-12 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-12  6:44 Matthew Rickard
2023-03-12 10:35 ` Csaba Raduly
2023-03-12 22:55   ` Matthew Rickard [this message]
2023-03-13 15:07     ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ee76b85-9d35-8e30-43b4-5bfd51ff78fb@gmail.com \
    --to=rickard.matt@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=rcsaba@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).