7 int shm_open(const char *name, int flag, mode_t mode)
11 while (*name == '/') name++;
12 if (strchr(name, '/')) {
17 if ((dir = open("/dev/shm", O_DIRECTORY|O_RDONLY)) < 0) return -1;
18 fd = openat(dir, name, flag|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK, mode);