Home
last modified time | relevance | path

Searched refs:oflag (Results 1 – 25 of 138) sorted by relevance

123456

/netbsd-src/usr.sbin/lpr/lpd/
H A Dttcompat.c65 tcflag_t oflag = tp->c_oflag; in sttygetoflags() local
81 if (!ISSET(oflag, OPOST)) in sttygetoflags()
101 tcflag_t oflag = tp->c_oflag; in sttysetoflags() local
145 SET(oflag, OPOST); in sttysetoflags()
147 CLR(oflag, OPOST); in sttysetoflags()
152 SET(oflag, OPOST); in sttysetoflags()
156 tp->c_oflag = oflag; in sttysetoflags()
165 tcflag_t oflag = tp->c_oflag; in sttyclearflags() local
176 CLR(oflag, ONLCR); in sttyclearflags()
179 CLR(oflag, OXTABS); in sttyclearflags()
[all …]
/netbsd-src/sys/compat/common/
H A Dtty_43.c289 tcflag_t oflag = tp->t_oflag; in ttcompatgetflags() local
297 if (ISSET(iflag, ICRNL) || ISSET(oflag, ONLCR)) in ttcompatgetflags()
321 if (!ISSET(oflag, OPOST)) in ttcompatgetflags()
331 if (ISSET(oflag, OXTABS)) in ttcompatgetflags()
357 tcflag_t oflag = t->c_oflag; in ttcompatsetflags() local
371 SET(oflag, ONLCR); in ttcompatsetflags()
374 CLR(oflag, ONLCR); in ttcompatsetflags()
377 SET(oflag, OXTABS); in ttcompatsetflags()
379 CLR(oflag, OXTABS); in ttcompatsetflags()
422 SET(oflag, OPOST); in ttcompatsetflags()
[all …]
/netbsd-src/libexec/getty/
H A Dsubr.c188 tcflag_t iflag, oflag, cflag, lflag; in setflags() local
244 oflag = omode.c_oflag; in setflags()
289 SET(oflag, ONLCR|OPOST); in setflags()
292 CLR(oflag, ONLCR); in setflags()
296 SET(oflag, OXTABS|OPOST); in setflags()
298 CLR(oflag, OXTABS); in setflags()
307 CLR(oflag, OPOST); in setflags()
357 tmode.c_oflag = oflag; in setflags()
369 tcflag_t iflag, oflag, cflag, lflag; in compatflags() local
372 oflag = OPOST|ONLCR|OXTABS; in compatflags()
[all …]
/netbsd-src/lib/libm/softfloat/
H A Dfeupdateenv.c47 fexcept_t oflag; in __weak_alias() local
49 fegetexceptflag(&oflag, FE_ALL_EXCEPT); in __weak_alias()
55 feraiseexcept(oflag); in __weak_alias()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dmmfile.d88 int oflag; in version() local
96 oflag = O_RDONLY; in version()
104 oflag = O_CREAT | O_RDWR | O_TRUNC; in version()
111 oflag = O_CREAT | O_RDWR; in version()
118 oflag = O_RDWR; in version()
281 int oflag; in version() local
289 oflag = O_RDONLY; in version()
297 oflag = O_CREAT | O_RDWR | O_TRUNC; in version()
304 oflag = O_CREAT | O_RDWR; in version()
311 oflag = O_RDWR; in version()
[all …]
/netbsd-src/lib/libc/nls/
H A Dcatopen.c70 catopen(const char *name, int oflag) in catopen() argument
73 return catopen_l(name, oflag, _current_locale()); in catopen()
77 catopen_l(const char *name, int oflag, locale_t loc) in catopen_l() argument
100 if (oflag == NL_CAT_LOCALE) { in catopen_l()
/netbsd-src/sbin/nvmectl/
H A Dperftest.c95 bool nflag, oflag, sflag, tflag; in perftest() local
98 nflag = oflag = sflag = tflag = false; in perftest()
133 oflag = true; in perftest()
176 if (!nflag || !oflag || !sflag || !tflag || optind >= argc) in perftest()
/netbsd-src/sys/compat/linux/common/
H A Dlinux_mqueue.c86 int error, oflag; in linux_sys_mq_open() local
88 oflag = linux_to_bsd_ioflags(SCARG(uap, oflag)); in linux_sys_mq_open()
90 if ((oflag & O_CREAT) != 0 && SCARG(uap, attr) != NULL) { in linux_sys_mq_open()
98 return mq_handle_open(l, SCARG(uap, name), oflag, in linux_sys_mq_open()
/netbsd-src/usr.bin/finger/
H A Dfinger.c96 int entries, gflag, lflag, mflag, oflag, sflag, eightflag, pplan; variable
118 oflag = 1; /* default to old "office" behavior */ in main()
135 oflag = 0; /* remote host info */ in main()
138 oflag = 1; /* office info */ in main()
H A Dsprint.c97 (oflag) ? "Office Office Phone" : "Where"); in sflag_print()
140 if (oflag) { in sflag_print()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dmmfile.d90 int oflag; in version() local
98 oflag = O_RDONLY; in version()
106 oflag = O_CREAT | O_RDWR | O_TRUNC; in version()
113 oflag = O_CREAT | O_RDWR; in version()
120 oflag = O_RDWR; in version()
278 int oflag; in version() local
286 oflag = O_RDONLY; in version()
294 oflag = O_CREAT | O_RDWR | O_TRUNC; in version()
301 oflag = O_CREAT | O_RDWR; in version()
308 oflag = O_RDWR; in version()
[all …]
/netbsd-src/usr.bin/grep/
H A Dutil.c345 if ((color != NULL && !oflag) || qflag || lflag) in procline()
354 if ((color != NULL && !oflag) || qflag || lflag) in procline()
473 if ((oflag || color) && m > 0) { in printline()
475 if (!oflag) in printline()
488 if (oflag) in printline()
491 if (!oflag) { in printline()
/netbsd-src/lib/libc/stdlib/
H A Dposix_openpt.c42 posix_openpt(int oflag) in posix_openpt() argument
45 return open("/dev/ptmx", oflag); in posix_openpt()
/netbsd-src/sys/kern/
H A Dsys_mqueue.c414 int oflag, mqueue_t **mqret) in mqueue_create() argument
462 mq->mq_attrib.mq_flags = (O_MASK & oflag); in mqueue_create()
478 mq_handle_open(struct lwp *l, const char *u_name, int oflag, mode_t mode, in mq_handle_open() argument
510 fp->f_flag = FFLAGS(oflag) & (FREAD | FWRITE); in mq_handle_open()
513 if (oflag & O_CREAT) { in mq_handle_open()
515 error = mqueue_create(l, name, attr, mode, oflag, &mq_new); in mq_handle_open()
530 if (oflag & O_EXCL) { in mq_handle_open()
548 if ((oflag & O_CREAT) == 0) { in mq_handle_open()
604 if ((SCARG(uap, oflag) & O_EXEC) != 0) in sys_mq_open()
607 if ((SCARG(uap, oflag) & O_CREAT) != 0 && SCARG(uap, attr) != NULL) { in sys_mq_open()
[all …]
/netbsd-src/lib/librmt/
H A Drmtlib.c249 _rmt_open(const char *path, int oflag, int mode) in _rmt_open() argument
380 (void)snprintf(buffer, sizeof(buffer), "O%s\n%d\n", device, oflag); in _rmt_open()
627 rmtopen(const char *path, int oflag, ...) in rmtopen() argument
632 va_start(ap, oflag); in rmtopen()
640 fd = _rmt_open(path, oflag, (int)mode); in rmtopen()
644 return open(path, oflag, mode); in rmtopen()
/netbsd-src/tests/lib/libpthread/
H A Dt_call_once.c50 static once_flag oflag = ONCE_FLAG_INIT; variable
63 call_once(&oflag, called_once); in co_func()
/netbsd-src/lib/librt/
H A Dsem.c268 sem_open(const char *name, int oflag, ...) in sem_open() argument
280 if (oflag & O_CREAT) { in sem_open()
281 va_start(ap, oflag); in sem_open()
291 if (_ksem_open(name, oflag, mode, value, &semid) == -1) in sem_open()
H A Dshm.c122 shm_open(const char *name, int oflag, mode_t mode) in shm_open() argument
129 return open(path, oflag | O_CLOEXEC | O_NOFOLLOW, mode); in shm_open()
/netbsd-src/sys/sys/
H A Dspawn.h59 int oflag; member
60 #define fae_oflag fae_data.open.oflag
/netbsd-src/usr.bin/mkdep/
H A Dmkdep.c214 int aflag, dflag, iflag, oflag, qflag; in main() local
236 oflag = 0; in main()
267 oflag = 1; in main()
449 if (oflag) in main()
456 if (oflag && opt != NULL) { in main()
/netbsd-src/bin/dd/
H A Ddd.c85 #define oflag O_CREAT macro
88 u_int oflag = O_CREAT; /* open(2) flags for output file */ variable
208 if ((oflag & O_TRUNC) && (ddflags & C_SEEK)) { in setup()
213 if ((oflag & O_TRUNC) && (ddflags & C_NOTRUNC)) { in setup()
220 (oflag | (ddflags & (C_SEEK | C_NOTRUNC) ? 0 : O_TRUNC)) in setup()
/netbsd-src/sbin/swapctl/
H A Dswapctl.c143 static int oflag; /* only autoset dump device */ variable
241 oflag = 1; in main()
303 if (fflag && oflag) in main()
465 if (fflag || oflag) { in add_swap()
467 if (oflag) in add_swap()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/filesystem/
H A Dops-common.h425 int oflag = O_WRONLY|O_CREAT; in _GLIBCXX_VISIBILITY() local
427 oflag |= O_TRUNC; in _GLIBCXX_VISIBILITY()
429 oflag |= O_EXCL; in _GLIBCXX_VISIBILITY()
431 oflag |= O_BINARY; in _GLIBCXX_VISIBILITY()
433 CloseFD out = { posix::open(to, oflag, S_IWUSR) }; in _GLIBCXX_VISIBILITY()
/netbsd-src/usr.bin/ktrace/
H A Dktrace.c274 int oflag = fcntl(fd, F_GETFL, 0); in fclear() local
276 if (oflag == -1) in fclear()
278 if (fcntl(fd, F_SETFL, oflag & ~flag) == -1) in fclear()
/netbsd-src/external/bsd/pdisk/dist/
H A Dpathname.c76 open_pathname_as_media(char *path, int oflag) in open_pathname_as_media() argument
139 m = open_file_as_media(path, oflag); in open_pathname_as_media()

123456