| /freebsd-14.2/usr.sbin/smbmsg/ |
| H A D | smbmsg.c | 146 if (iflag == -1 && oflag == 0) in do_io() 149 else if (iflag == 0 && oflag == -1) in do_io() 166 if (iflag == 1 && oflag == -1) { in do_io() 215 c.wcount = oflag; in do_io() 260 if (oflag < 0 || oflag > SMB_MAXBLOCKSIZE) in main() 263 oflag); in main() 292 !((iflag == 2 && oflag == -1) || in main() 293 (iflag == -1 && oflag == 2) || in main() 294 (iflag == 2 && oflag == 2))) in main() 300 if (oflag > 0) { in main() [all …]
|
| /freebsd-14.2/contrib/capsicum-test/ |
| H A D | openat.cc | 261 void CheckPolicing(int oflag) { in CheckPolicing() argument 263 EXPECT_OPEN_OK(openat(dir_fd_, "topfile", O_RDONLY|oflag)); in CheckPolicing() 264 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/bottomfile", O_RDONLY|oflag)); in CheckPolicing() 265 EXPECT_OPEN_OK(openat(sub_fd_, "bottomfile", O_RDONLY|oflag)); in CheckPolicing() 266 EXPECT_OPEN_OK(openat(sub_fd_, ".", O_RDONLY|oflag)); in CheckPolicing() 269 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../topfile", O_RDONLY|oflag); in CheckPolicing() 271 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "..", O_RDONLY|oflag); in CheckPolicing() 275 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/../topfile", O_RDONLY|oflag)); in CheckPolicing() 283 EXPECT_OPEN_OK(openat(dir_fd_, "symlink.samedir", O_RDONLY|oflag)); in CheckPolicing() 284 EXPECT_OPEN_OK(openat(dir_fd_, "symlink.down", O_RDONLY|oflag)); in CheckPolicing() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | removal_nopwrite.ksh | 42 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \ 50 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \ 54 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \ 66 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 70 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 76 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 80 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 104 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 108 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 117 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/bin/ |
| H A D | file_write.c | 48 int oflag = 0; in main() local 153 oflag = (O_RDWR|O_CREAT); in main() 155 oflag = (O_RDWR|O_APPEND); in main() 164 oflag = oflag | O_RSYNC; in main() 169 oflag = oflag | O_SYNC; in main() 176 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
| H A D | file_write.c | 61 int oflag = 0; in main() local 176 oflag = (O_RDWR|O_CREAT); in main() 178 oflag = (O_RDWR|O_APPEND); in main() 186 oflag = oflag | O_RSYNC; in main() 190 oflag = oflag | O_SYNC; in main() 197 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
|
| /freebsd-14.2/sys/kern/ |
| H A D | tty_compat.c | 315 if (oflag&TAB3) in ttcompatgetflags() 350 oflag |= TAB3; in ttcompatsetflags() 352 oflag &= ~TAB3; in ttcompatsetflags() 359 oflag |= ONLCR; in ttcompatsetflags() 362 oflag &= ~ONLCR; in ttcompatsetflags() 379 oflag &= ~OPOST; in ttcompatsetflags() 381 oflag |= OPOST; in ttcompatsetflags() 385 oflag |= OPOST; in ttcompatsetflags() 472 oflag &= ~OPOST; in ttcompatsetlflags() 474 oflag |= OPOST; in ttcompatsetlflags() [all …]
|
| /freebsd-14.2/usr.sbin/mixer/ |
| H A D | mixer.c | 84 oflag = 1; in main() 113 printall(m, oflag); in main() 114 if (oflag) in main() 211 printall(m, oflag); in main() 249 printminfo(m, oflag); in printall() 252 printdev(m, oflag); in printall() 261 if (oflag) in printminfo() 291 if (!oflag) { in printdev() 318 if (!oflag) in printrecsrc() 322 if (n++ && !oflag) in printrecsrc() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
| H A D | slog_replay_fs_001.ksh | 112 oflag=sync bs=1k count=8 117 oflag=sync bs=1k count=1 119 oflag=sync bs=512 count=1 141 oflag=sync bs=128k count=64 145 oflag=sync bs=128k count=8 147 oflag=sync bs=128k count=2 150 oflag=sync bs=128k count=8 152 oflag=sync bs=128k count=2 seek=2 155 oflag=sync bs=128k count=8 157 oflag=sync bs=128k count=2 seek=2 conv=notrunc [all …]
|
| /freebsd-14.2/bin/pwait/ |
| H A D | pwait.c | 65 int oflag, tflag, verbose; in main() local 71 oflag = 0; in main() 79 oflag = 1; in main() 163 if (oflag) { in main() 213 if (oflag) { in main()
|
| /freebsd-14.2/usr.bin/bintrans/ |
| H A D | uudecode.c | 74 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable 110 if (oflag || rflag) in main_decode() 123 oflag = true; /* output to the specified file */ in main_decode() 128 if (oflag) in main_decode() 133 if (cflag || oflag) in main_decode() 138 if (oflag) in main_decode() 273 if (!oflag) in decode2() 298 if (oflag) { in decode2()
|
| /freebsd-14.2/usr.bin/cmp/ |
| H A D | cmp.c | 113 int ch, fd1, fd2, oflag; in main() local 119 oflag = O_RDONLY; in main() 126 oflag |= O_NOFOLLOW; in main() 181 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main() 194 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) { in main()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | PseudoTerminal.cpp | 66 llvm::Error PseudoTerminal::OpenFirstAvailablePrimary(int oflag) { in OpenFirstAvailablePrimary() argument 69 m_primary_fd = ::posix_openpt(oflag); in OpenFirstAvailablePrimary() 95 llvm::Error PseudoTerminal::OpenSecondary(int oflag) { in OpenSecondary() argument 99 m_secondary_fd = FileSystem::Instance().Open(name.c_str(), oflag); in OpenSecondary()
|
| /freebsd-14.2/usr.bin/diff3/ |
| H A D | diff3.c | 601 if (!oflag || !overlap[n]) { in edscript() 608 if (!oflag || !overlap[n]) { in edscript() 645 if (!oflag || !overlap[n]) { in Ascript() 670 if (!oflag || !overlap[n]) { in Ascript() 847 oflag = 0; in main() 865 oflag = 1; in main() 871 oflag = 1; in main() 878 oflag = 1; in main() 888 oflag = 1; in main() 911 oflag = 1; in main() [all …]
|
| /freebsd-14.2/libexec/getty/ |
| H A D | subr.c | 239 tcflag_t iflag, oflag, cflag, lflag; in set_flags() local 273 oflag = omode.c_oflag; in set_flags() 323 SET(oflag, ONLCR|OPOST); in set_flags() 326 CLR(oflag, ONLCR); in set_flags() 330 SET(oflag, OXTABS|OPOST); in set_flags() 332 CLR(oflag, OXTABS); in set_flags() 341 CLR(oflag, OPOST); in set_flags() 391 tmode.c_oflag = oflag; in set_flags()
|
| /freebsd-14.2/contrib/llvm-project/lldb/include/lldb/Host/ |
| H A D | PseudoTerminal.h | 129 llvm::Error OpenFirstAvailablePrimary(int oflag); 150 llvm::Error OpenSecondary(int oflag);
|
| /freebsd-14.2/usr.bin/finger/ |
| H A D | finger.c | 91 int entries, gflag, lflag, pplan, oflag; variable 136 oflag = 0; /* remote host info */ in option() 139 oflag = 1; /* office info */ in option() 183 oflag = 1; /* default to old "office" behavior */ in main()
|
| /freebsd-14.2/usr.bin/grep/ |
| H A D | util.c | 601 if ((color == NULL && !oflag) || qflag || lflag || in procline() 621 if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag)) in procline() 752 if (oflag && matchall) in printline() 758 if ((oflag || color) && matchidx > 0) { in printline() 760 if (!oflag && pc->printed == 0) in printline() 771 if (oflag) { in printline() 784 if (oflag) in printline() 787 if (!oflag) { in printline()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
| H A D | nopwrite_sync.ksh | 45 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \ 51 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
|
| /freebsd-14.2/sbin/shutdown/ |
| H A D | shutdown.c | 93 static int docycle, dohalt, dopower, doreboot, killflg, mbuflen, oflag; variable 163 oflag = 1; in main() 184 if (oflag && !(dohalt || dopower || doreboot || docycle)) in main() 187 if (nosync != NULL && !oflag) in main() 391 if (!oflag) { in die_you_gravy_sucking_pig_dog()
|
| /freebsd-14.2/bin/dd/ |
| H A D | args.c | 408 static const struct oflag { struct 420 struct oflag *op, tmp; in f_oflag() argument 424 op = bsearch(&tmp, olist, nitems(olist), sizeof(struct oflag), in f_oflag() 436 return (strcmp(((const struct oflag *)a)->name, in c_oflag() 437 ((const struct oflag *)b)->name)); in c_oflag()
|
| /freebsd-14.2/contrib/tcsh/ |
| H A D | sh.misc.c | 658 xopen(const char *path, int oflag, ...) in xopen() argument 662 if ((oflag & O_CREAT) == 0) { in xopen() 663 while ((res = open(path, oflag)) == -1 && errno == EINTR) in xopen() 670 va_start(ap, oflag); in xopen() 676 while ((res = open(path, oflag, mode)) == -1 && errno == EINTR) in xopen()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | sem.c | 220 _libc_sem_open_compat(const char *name, int oflag, ...) in _libc_sem_open_compat() argument 231 if ((oflag & O_CREAT) != 0) { in _libc_sem_open_compat() 234 va_start(ap, oflag); in _libc_sem_open_compat() 243 if (ksem_open(&semid, name, oflag, mode, value) == -1) in _libc_sem_open_compat()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/ |
| H A D | block_cloning_replay.ksh | 79 oflag=sync bs=128k count=4 82 oflag=sync bs=16K count=2048
|
| H A D | block_cloning_replay_encrypted.ksh | 81 oflag=sync bs=128k count=4 84 oflag=sync bs=16K count=2048
|
| /freebsd-14.2/usr.sbin/iostat/ |
| H A D | iostat.c | 146 static int dflag = 0, Iflag = 0, Cflag = 0, Tflag = 0, oflag = 0, Kflag = 0; variable 238 oflag++; in main() 306 else if (oflag > 0) { in main() 743 if (oflag > 0) in phdr() 761 if (oflag > 0) { in phdr() 927 } else if (oflag > 0) { in devstats()
|