| /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/tests/sys/capsicum/ |
| 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 | 43 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \ 46 dd if=/dev/urandom of=$TESTDIR/file_8k_copies bs=1024k count=$MEGS oflag=sync \ 51 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \ 55 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \ 67 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 71 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 77 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 81 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 105 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 109 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 | 62 int oflag = 0; in main() local 177 oflag = (O_RDWR|O_CREAT); in main() 179 oflag = (O_RDWR|O_APPEND); in main() 187 oflag = oflag | O_RSYNC; in main() 191 oflag = oflag | O_SYNC; in main() 198 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 | 87 oflag=sync,direct bs=4k count=1 121 oflag=sync bs=1k count=8 126 oflag=sync bs=1k count=1 128 oflag=sync bs=512 count=1 150 oflag=sync bs=128k count=64 154 oflag=sync,direct bs=4k count=1 158 oflag=sync bs=128k count=8 160 oflag=sync bs=128k count=2 163 oflag=sync bs=128k count=8 165 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/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/bin/pwait/ |
| H A D | pwait.c | 88 bool oflag, pflag, tflag, verbose; in main() local 90 oflag = false; in main() 99 oflag = true; in main() 204 if ((ndone == 0 || !oflag) && nleft > 0 && tflag) { in main() 220 while ((ndone == 0 || !oflag) && ret == EX_OK && nleft > 0) { 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) */ 699 if (!oflag || !overlap[n]) { 706 if (!oflag || !overlap[n]) { 719 exit(oflag ? overlapcnt > 0 : 0); in Ascript() 744 if (!oflag || !overlap[n]) { in Ascript() 766 if (!oflag || !overlap[n]) { in Ascript() 785 if (!oflag || !overlap[n]) { 849 if (!oflag || !overlap[n]) { in mergescript() 970 oflag = 0; in main() 988 oflag in main() 130 static int oflag; /* indicates whether to mark overlaps (-E or -X) */ global() variable [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() 789 if (oflag && matchall) in printline() 795 if ((oflag || color) && (pc->printed > 0 || matchidx > 0)) { in printline() 797 if (!oflag && pc->printed == 0) { in printline() 809 if (oflag) { in printline() 823 if (oflag) in printline() 832 if (!oflag && matchidx != MAX_MATCHES) { in printline() 840 } else if (!oflag) { in printline()
|
| /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/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/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 | 46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \ 52 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/stat/ |
| H A D | statx_dioalign.ksh | 170 log_must dd if=/dev/urandom of=$TESTFILE bs=16384 count=16 oflag=direct 177 log_mustnot dd if=/dev/urandom of=$TESTFILE bs=1024 count=256 oflag=direct 185 log_must dd if=/dev/urandom of=$TESTFILE bs=1024 count=256 oflag=direct
|
| /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 | 84 killflg, mbuflen, oflag; variable 160 oflag = 1; in main() 184 if (oflag && !(dohalt || dopower || doreboot || docycle)) in main() 187 if (nosync != NULL && !oflag) in main() 400 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_encrypted.ksh | 78 oflag=sync bs=128k count=4 81 oflag=sync bs=16K count=2048
|