Home
last modified time | relevance | path

Searched refs:O_APPEND (Results 1 – 25 of 106) sorted by relevance

12345

/freebsd-13.1/contrib/pjdfstest/tests/open/
H A D11.t27 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-13.1/lib/libc/tests/stdio/
H A Dmkostemp_test.c49 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
150 ATF_TC_WITHOUT_HEAD(O_APPEND);
151 ATF_TC_BODY(O_APPEND, tc) in ATF_TC_BODY() argument
154 test_one(O_APPEND); in ATF_TC_BODY()
161 test_one(O_APPEND|O_CLOEXEC); in ATF_TC_BODY()
180 ATF_TP_ADD_TC(tp, O_APPEND); in ATF_TP_ADD_TCS()
H A Dfopen_test.c60 wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0); in runtest()
66 wantedflags = O_WRONLY | O_APPEND; in runtest()
72 else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) != wantedflags) in runtest()
/freebsd-13.1/contrib/sendmail/libsm/
H A Dstdio.c84 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 Dt-fopen.c27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
/freebsd-13.1/lib/libc/stdio/
H A Dfreopen.c107 if ((oflags ^ dflags) & O_APPEND) { in freopen()
108 dflags &= ~O_APPEND; in freopen()
109 dflags |= oflags & O_APPEND; in freopen()
120 if (!(oflags & O_APPEND)) in freopen()
246 if (oflags & O_APPEND) { in freopen()
H A Dfdopen.c96 if (fdflags & O_APPEND) in fdopen()
98 else if (oflags & O_APPEND) in fdopen()
H A Dflags.c75 o = O_CREAT | O_APPEND; in __sflags()
H A Dfopen.c96 if (oflags & O_APPEND) { in fopen()
/freebsd-13.1/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
194 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops()
199 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops()
214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
215 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), in try_file_ops()
218 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops()
219 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), in try_file_ops()
226 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
227 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), in try_file_ops()
230 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in try_file_ops()
[all …]
/freebsd-13.1/usr.bin/nohup/
H A Dnohup.c111 fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in dofile()
117 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND, in dofile()
/freebsd-13.1/tests/sys/cddl/zfs/bin/
H A Drm_lnkcnt_zero_file.c99 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer()
120 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/
H A Drm_lnkcnt_zero_file.c108 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer()
134 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
/freebsd-13.1/contrib/opie/libopie/
H A Dlogwtmp.c137 if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY | O_APPEND, 0)) < 0)
167 if (fdx < 0 && (fdx = open(_PATH_WTMPX, O_WRONLY | O_APPEND, 0)) < 0)
/freebsd-13.1/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c172 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-13.1/sys/sys/
H A Dfcntl.h93 #define O_APPEND 0x0008 /* set append mode */ macro
193 #define FAPPEND O_APPEND /* kernel/compat */
/freebsd-13.1/contrib/ntp/lib/isc/win32/include/isc/
H A Dstat.h63 #define O_APPEND _O_APPEND macro
/freebsd-13.1/tests/sys/fs/fusefs/
H A Drelease.cc139 expect_release(ino, getpid(), O_RDWR | O_APPEND, 0); in TEST_F()
141 fd = open(FULLPATH, O_RDWR | O_APPEND); in TEST_F()
H A Dopen.cc231 test_ok(O_WRONLY | O_APPEND, O_WRONLY | O_APPEND); in TEST_F()
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/threadsappend/
H A Dthreadsappend.c111 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
/freebsd-13.1/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c109 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
/freebsd-13.1/cddl/lib/libdtrace/
H A Dio.d98 inline int O_APPEND = 0x0008; variable
99 #pragma D binding "1.1" O_APPEND
/freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c84 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | in main()
/freebsd-13.1/usr.sbin/pw/
H A Dpw_log.c60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); in pw_log()
/freebsd-13.1/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_file.c66 fd = open(FILENAME, O_WRONLY|O_APPEND, 0644); in child()

12345