Searched refs:O_EXEC (Results 1 - 14 of 14) sorted by relevance

/freebsd-11-stable/tests/sys/file/
H A Dfcntlflags_test.c39 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
108 subtests("/bin/sh", O_EXEC, "O_EXEC");
/freebsd-11-stable/sys/sys/
H A Dfcntl.h119 #define O_EXEC 0x00040000 /* Open for execute only */ macro
120 #define O_SEARCH O_EXEC
123 #define FEXEC O_EXEC
151 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1)
152 #define OFLAGS(fflags) ((fflags) & O_EXEC ? (fflags) : (fflags) - 1)
/freebsd-11-stable/lib/libc/tests/stdio/
H A Dfdopen_test.c173 runtest("/bin/sh", O_EXEC, "r", false);
180 runtest("/bin/sh", O_EXEC, "w", false);
187 runtest("/bin/sh", O_EXEC, "r+", false);
194 runtest("/bin/sh", O_EXEC, "w+", false);
H A Dfopen_test.c41 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-11-stable/lib/libc/stdio/
H A Dfdopen.c74 tmp = fdflags & (O_ACCMODE | O_EXEC);
H A Dfreopen.c97 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) {
/freebsd-11-stable/lib/libsysdecode/
H A Dflags.c428 if (flags & O_EXEC) {
429 flags &= ~O_EXEC;
430 fputs("O_EXEC", fp);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_posix.c2183 #elif defined(__FreeBSD__) && defined(O_EXEC)
2185 const int o_flag = O_EXEC;
2210 (defined(__FreeBSD__) && defined(O_EXEC))
H A Darchive_write_disk_posix.c449 #elif defined(__FreeBSD__) && defined(O_EXEC)
450 | O_EXEC
/freebsd-11-stable/sys/kern/
H A Duipc_mqueue.c2107 if ((uap->flags & O_ACCMODE) == O_ACCMODE || uap->flags & O_EXEC)
2738 if ((uap->flags & O_ACCMODE) == O_ACCMODE || uap->flags & O_EXEC)
H A Dvfs_syscalls.c837 if (flags & O_EXEC) {
923 * Only one of the O_EXEC, O_RDONLY, O_WRONLY and O_RDWR flags
926 if (flags & O_EXEC) {
H A Dkern_descrip.c3360 { O_EXEC, KF_FLAG_EXEC },
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_read_disk_directory_traversals.c1770 * This test is expected to fail on platforms with no O_EXEC or
1774 * check that condition here, because if O_EXEC _does_ exist, we don't
1786 (defined(__FreeBSD__) && defined(O_EXEC))
/freebsd-11-stable/lib/libprocstat/
H A Dlibprocstat.c1602 { O_EXEC, PS_FST_FFLAG_EXEC },

Completed in 226 milliseconds