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 <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>

int main() {
  int res = shm_open("123", O_CREAT | O_RDWR, 0666);
  int error = errno;
  printf("res=%d errno=%d\n", res, errno);
  if (error == EINVAL)
    printf("That's EINVAL\n");
  return 0;
}

Says:

$ gcc -Og -o tiny tiny.c; ./tiny
res=-1 errno=22
That's EINVAL

Not sure if relevant, but I am currently running cygserver, with a default config.



--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to