/freebsd-13-stable/contrib/pjdfstest/tests/open/ |
H A D | 11.t | 5 desc="open returns EPERM when the named file has its append-only flag set, the file is to be modified, and O_TRUNC is specified or O_APPEND is not specified" 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_TRUN [all...] |
/freebsd-13-stable/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 49 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC) 150 ATF_TC_WITHOUT_HEAD(O_APPEND); variable 151 ATF_TC_BODY(O_APPEND, tc) 154 test_one(O_APPEND); 161 test_one(O_APPEND|O_CLOEXEC); 180 ATF_TP_ADD_TC(tp, O_APPEND);
|
H A D | fopen_test.c | 60 wantedflags = O_RDWR | (*mode == 'a' ? O_APPEND : 0); 66 wantedflags = O_WRONLY | O_APPEND; 72 else if ((flags & (CORRECT_O_ACCMODE | O_APPEND)) != wantedflags)
|
/freebsd-13-stable/contrib/sendmail/libsm/ |
H A D | t-fopen.c | 27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
|
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)
|
/freebsd-13-stable/lib/libc/stdio/ |
H A D | fdopen.c | 93 * O_APPEND bit set, assert __SAPP so that __swrite() caller 96 if (fdflags & O_APPEND) 98 else if (oflags & O_APPEND)
|
H A D | freopen.c | 107 if ((oflags ^ dflags) & O_APPEND) { 108 dflags &= ~O_APPEND; 109 dflags |= oflags & O_APPEND; 120 if (!(oflags & O_APPEND)) 239 * When opening in append mode, even though we use O_APPEND, 246 if (oflags & O_APPEND) {
|
H A D | flags.c | 75 o = O_CREAT | O_APPEND;
|
H A D | fopen.c | 89 * When opening in append mode, even though we use O_APPEND, 96 if (oflags & O_APPEND) {
|
H A D | fopencookie.c | 81 if ((oflags & O_APPEND) != 0)
|
H A D | mktemp.c | 129 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
|
/freebsd-13-stable/contrib/ntp/lib/isc/win32/include/isc/ |
H A D | stat.h | 63 #define O_APPEND _O_APPEND macro
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/ |
H A D | rm_lnkcnt_zero_file.c | 108 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); 134 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
|
/freebsd-13-stable/usr.bin/nohup/ |
H A D | nohup.c | 111 fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); 117 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
|
/freebsd-13-stable/tests/sys/cddl/zfs/bin/ |
H A D | rm_lnkcnt_zero_file.c | 99 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); 120 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
|
/freebsd-13-stable/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, 194 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), 198 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); 199 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), 214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); 215 CHECK_RESULT(openat(O_FSYNC | O_WRONLY | O_APPEND), 218 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); 219 CHECK_RESULT(openat(O_FSYNC | O_RDWR | O_APPEND), 226 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); 227 CHECK_RESULT(openat(O_SYNC | O_WRONLY | O_APPEND), [all...] |
/freebsd-13-stable/contrib/opie/libopie/ |
H A D | logwtmp.c | 137 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-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 84 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT |
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/threadsappend/ |
H A D | threadsappend.c | 57 * the suggestion was to open the file with O_APPEND, but that wouldn't 111 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); 115 "open(%s, O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777)"
|
/freebsd-13-stable/usr.sbin/pw/ |
H A D | pw_log.c | 60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/threadsappend/ |
H A D | threadsappend.c | 56 * the suggestion was to open the file with O_APPEND, but that wouldn't 109 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); 113 "open(%s, O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777)"
|
/freebsd-13-stable/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 172 fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0); 175 fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0);
|
/freebsd-13-stable/sys/sys/ |
H A D | fcntl.h | 93 #define O_APPEND 0x0008 /* set append mode */ macro 193 #define FAPPEND O_APPEND /* kernel/compat */
|
/freebsd-13-stable/crypto/heimdal/appl/login/ |
H A D | utmpx_login.c | 59 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
|
H A D | utmp_login.c | 160 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
|