Lines Matching refs:open
94 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC);
97 printf("open sysctl failed: %m\n");
109 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC);
112 printf("open sysctl failed: %m\n");
126 int fd = open("/proc/sys/vm/memfd_noexec", O_RDONLY | O_CLOEXEC);
129 printf("open sysctl failed: %m\n");
157 fd = open(path, O_RDWR);
159 printf("re-open of existing fd %d failed\n", fd_in);
308 r = open(buf, flags, mode);
310 printf("open(%s) failed: %m\n", buf);
323 r = open(buf, flags, mode);
325 printf("open(%s) didn't fail as expected\n", buf);
841 /* verify invalid O_* open flags */
1486 * Test sealing with open(/proc/self/fd/%d)
1488 * This is *not* like dup(), but like a real separate open(). Make sure the