/freebsd/usr.sbin/smbmsg/ |
H A D | smbmsg.c | 57 static int oflag = -1; /* output data */ variable 146 if (iflag == -1 && oflag == 0) in do_io() 149 else if (iflag == 0 && oflag == -1) in do_io() 152 else if (iflag == 1 && oflag == -1) { in do_io() 159 } else if (iflag == -1 && oflag == 1) { in do_io() 166 if (iflag == 1 && oflag == -1) { in do_io() 173 } else if (iflag == -1 && oflag == 1) { in do_io() 177 } else if (wflag && iflag == 2 && oflag == -1) { in do_io() 184 } else if (wflag && iflag == -1 && oflag == 2) { in do_io() 188 } else if (wflag && iflag == 2 && oflag == 2) { in do_io() [all …]
|
/freebsd/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() 270 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../subdir/bottomfile", 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() 280 EXPECT_OPENAT_FAIL_TRAVERSAL(dir_fd_, "subdir/../../etc/passwd", O_RDONLY|oflag); in CheckPolicing() [all …]
|
/freebsd/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 \ 45 dd if=/dev/urandom of=$TESTDIR/file_8k_copies 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." [all …]
|
/freebsd/tests/sys/cddl/zfs/bin/ |
H A D | file_write.c | 47 int oflag = 0; in main() local 152 oflag = (O_RDWR|O_CREAT); in main() 154 oflag = (O_RDWR|O_APPEND); in main() 163 oflag = oflag | O_RSYNC; in main() 168 oflag = oflag | O_SYNC; in main() 175 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
|
/freebsd/sys/kern/ |
H A D | tty_compat.c | 276 tcflag_t oflag = tp->t_termios.c_oflag; in ttcompatgetflags() local 282 if (iflag&ICRNL || oflag&ONLCR) in ttcompatgetflags() 307 if (!(flags&RAW) && !(oflag&OPOST) && (cflag&(CSIZE|PARENB)) == CS8) in ttcompatgetflags() 313 if (oflag&TAB3) in ttcompatgetflags() 336 tcflag_t oflag = t->c_oflag; in ttcompatsetflags() local 348 oflag |= TAB3; in ttcompatsetflags() 350 oflag &= ~TAB3; in ttcompatsetflags() 357 oflag |= ONLCR; in ttcompatsetflags() 360 oflag &= ~ONLCR; in ttcompatsetflags() 377 oflag &= ~OPOST; in ttcompatsetflags() [all …]
|
/freebsd/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
H A D | slog_replay_fs_001.ksh | 86 oflag=sync,direct bs=4k count=1 120 oflag=sync bs=1k count=8 125 oflag=sync bs=1k count=1 127 oflag=sync bs=512 count=1 149 oflag=sync bs=128k count=64 153 oflag=sync,direct bs=4k count=1 157 oflag=sync bs=128k count=8 159 oflag=sync bs=128k count=2 162 oflag=sync bs=128k count=8 164 oflag=sync bs=128k count=2 seek=2 [all …]
|
/freebsd/usr.sbin/mixer/ |
H A D | mixer.c | 63 int aflag = 0, dflag = 0, oflag = 0, sflag = 0; in main() local 84 oflag = 1; in main() 111 printrecsrc(m, oflag); in main() 113 printall(m, oflag); in main() 114 if (oflag) in main() 143 printrecsrc(m, oflag); in main() 211 printall(m, oflag); in main() 245 printall(struct mixer *m, int oflag) in printall() argument 249 printminfo(m, oflag); in printall() 252 printdev(m, oflag); in printall() [all …]
|
/freebsd/bin/pwait/ |
H A D | pwait.c | 64 int oflag, tflag, verbose; in main() local 70 oflag = 0; in main() 78 oflag = 1; in main() 162 if (oflag) { in main() 212 if (oflag) { in main()
|
/freebsd/usr.bin/bintrans/ |
H A D | uudecode.c | 62 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable 98 if (oflag || rflag) in main_decode() 111 oflag = true; /* output to the specified file */ in main_decode() 116 if (oflag) in main_decode() 121 if (cflag || oflag) in main_decode() 126 if (oflag) in main_decode() 261 if (!oflag) in decode2() 286 if (oflag) { in decode2()
|
/freebsd/usr.bin/cmp/ |
H A D | cmp.c | 100 int ch, fd1, fd2, oflag; in main() local 106 oflag = O_RDONLY; in main() 113 oflag |= O_NOFOLLOW; in main() 168 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main() 181 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) { in main()
|
/freebsd/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/usr.bin/diff3/ |
H A D | diff3.c | 131 static int oflag; /* indicates whether to mark overlaps (-E or -X) */ variable 678 if (!oflag || !overlap[n]) { in edscript() 685 if (!oflag || !overlap[n]) { in edscript() 723 if (!oflag || !overlap[n]) { in Ascript() 745 if (!oflag || !overlap[n]) { in Ascript() 764 if (!oflag || !overlap[n]) { in Ascript() 833 if (!oflag || !overlap[n]) { in mergescript() 941 oflag = 0; in main() 959 oflag = 1; in main() 965 oflag = 1; in main() [all …]
|
/freebsd/libexec/getty/ |
H A D | subr.c | 233 tcflag_t iflag, oflag, cflag, lflag; in set_flags() local 267 oflag = omode.c_oflag; in set_flags() 317 SET(oflag, ONLCR|OPOST); in set_flags() 320 CLR(oflag, ONLCR); in set_flags() 324 SET(oflag, OXTABS|OPOST); in set_flags() 326 CLR(oflag, OXTABS); in set_flags() 335 CLR(oflag, OPOST); in set_flags() 385 tmode.c_oflag = oflag; in set_flags()
|
/freebsd/usr.bin/grep/ |
H A D | util.c | 624 if ((color == NULL && !oflag) || qflag || lflag || in procline() 644 if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag)) in procline() 787 if (oflag && matchall) in printline() 793 if ((oflag || color) && (pc->printed > 0 || matchidx > 0)) { in printline() 795 if (!oflag && pc->printed == 0) { in printline() 807 if (oflag) { in printline() 821 if (oflag) in printline() 830 if (!oflag && matchidx != MAX_MATCHES) { in printline() 837 } else if (!oflag) { in printline()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/ |
H A D | rtsan_interceptors.cpp | 70 INTERCEPTOR(int, open, const char *path, int oflag, ...) { in INTERCEPTOR() argument 76 va_start(args, oflag); in INTERCEPTOR() 80 const int result = REAL(open)(path, oflag, mode); in INTERCEPTOR() 84 INTERCEPTOR(int, openat, int fd, const char *path, int oflag, ...) { in INTERCEPTOR() argument 90 va_start(args, oflag); in INTERCEPTOR() 94 const int result = REAL(openat)(fd, path, oflag, mode); in INTERCEPTOR()
|
/freebsd/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/usr.bin/finger/ |
H A D | finger.c | 78 int entries, gflag, lflag, pplan, oflag; variable 123 oflag = 0; /* remote host info */ in option() 126 oflag = 1; /* office info */ in option() 170 oflag = 1; /* default to old "office" behavior */ in main()
|
/freebsd/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/bin/dd/ |
H A D | args.c | 402 static const struct oflag { struct 414 struct oflag *op, tmp; in f_oflag() argument 418 op = bsearch(&tmp, olist, nitems(olist), sizeof(struct oflag), in f_oflag() 430 return (strcmp(((const struct oflag *)a)->name, in c_oflag() 431 ((const struct oflag *)b)->name)); in c_oflag()
|
/freebsd/sbin/shutdown/ |
H A D | shutdown.c | 82 static int docycle, dohalt, dopower, doreboot, killflg, mbuflen, oflag; variable 154 oflag = 1; in main() 178 if (oflag && !(dohalt || dopower || doreboot || docycle)) in main() 181 if (nosync != NULL && !oflag) in main() 388 if (!oflag) { in die_you_gravy_sucking_pig_dog()
|
/freebsd/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/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/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
|