/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 11.t | 27 expect 0 open ${n0} O_WRONLY,O_APPEND 28 expect 0 open ${n0} O_RDWR,O_APPEND 34 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC 36 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC 38 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC 46 expect 0 open ${n0} O_WRONLY,O_APPEND 47 expect 0 open ${n0} O_RDWR,O_APPEND 51 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC 52 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC 53 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
|
/freebsd/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 46 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC) 147 ATF_TC_WITHOUT_HEAD(O_APPEND); 148 ATF_TC_BODY(O_APPEND, tc) in ATF_TC_BODY() argument 151 test_one(O_APPEND); in ATF_TC_BODY() 158 test_one(O_APPEND|O_CLOEXEC); in ATF_TC_BODY() 177 ATF_TP_ADD_TC(tp, O_APPEND); in ATF_TP_ADD_TCS()
|
H A D | fopen_test.c | 57 wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0); in runtest() 63 wantedflags = O_WRONLY | O_APPEND; in runtest() 69 else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) != wantedflags) in runtest()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | stdio.c | 84 oflags = O_APPEND | O_WRONLY | O_CREAT; 87 oflags = O_APPEND | O_RDWR | O_CREAT; 102 if (oflags & O_APPEND) 424 oflags = O_APPEND | O_WRONLY | O_CREAT; 427 oflags = O_APPEND | O_RDWR | O_CREAT; 448 if (oflags & O_APPEND)
|
H A D | t-fopen.c | 27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
|
/freebsd/lib/libc/stdio/ |
H A D | freopen.c | 101 if ((oflags ^ dflags) & O_APPEND) { in freopen() 102 dflags &= ~O_APPEND; in freopen() 103 dflags |= oflags & O_APPEND; in freopen() 114 if (!(oflags & O_APPEND)) in freopen() 240 if (oflags & O_APPEND) { in freopen()
|
H A D | fdopen.c | 90 if (fdflags & O_APPEND) in fdopen() 92 else if (oflags & O_APPEND) in fdopen()
|
H A D | flags.c | 69 o = O_CREAT | O_APPEND; in __sflags()
|
H A D | fopen.c | 90 if (oflags & O_APPEND) { in fopen()
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 189 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops() 191 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops() 195 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops() 196 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops() 211 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops() 212 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops() 215 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops() 216 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), in try_file_ops() 223 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops() 224 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops() [all …]
|
/freebsd/usr.bin/nohup/ |
H A D | nohup.c | 97 fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in dofile() 103 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND, in dofile()
|
/freebsd/tests/sys/cddl/zfs/bin/ |
H A D | rm_lnkcnt_zero_file.c | 97 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer() 118 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | rm_lnkcnt_zero_file.c | 107 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer() 133 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
|
H A D | threadsappend.c | 111 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
|
/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 172 fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0); in ftpd_logwtmp_wtmp() 175 fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0); in ftpd_logwtmp_wtmp()
|
/freebsd/tools/test/stress2/misc/ |
H A D | rename10.sh | 107 if ((fd = open(logfile, O_RDWR | O_APPEND)) != -1) { 126 if ((fd = open(oldfiles[i], O_RDWR | O_APPEND)) != -1)
|
H A D | mkfifo4.sh | 106 if ((fd2 = open(file, O_WRONLY | O_APPEND)) == -1) 158 if ((fd = open(file, O_WRONLY | O_APPEND |
|
H A D | truncate.sh | 66 if ((fd[j] = open(name, O_WRONLY | O_CREAT | O_APPEND, 0666)) == -1)
|
H A D | truncate2.sh | 68 fd[j] = open(name, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 90 #define O_APPEND 0x0008 /* set append mode */ macro 190 #define FAPPEND O_APPEND /* kernel/compat */
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | release.cc | 137 expect_release(ino, getpid(), O_RDWR | O_APPEND, 0); in TEST_F() 139 fd = open(FULLPATH, O_RDWR | O_APPEND); in TEST_F()
|
H A D | open.cc | 222 test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND); in TEST_F()
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
H A D | stat.h | 63 #define O_APPEND _O_APPEND macro
|
/freebsd/cddl/lib/libdtrace/ |
H A D | io.d | 96 inline int O_APPEND = 0x0008; variable 97 #pragma D binding "1.1" O_APPEND
|
/freebsd/tests/sys/cddl/zfs/tests/threadsappend/ |
H A D | threadsappend.c | 107 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
|