/titanic_51/usr/src/test/libc-tests/cfg/symbols/ |
H A D | fcntl_h.cfg | 17 # Definitions found in fcntl.h 23 type | mode_t | fcntl.h | ALL 24 type | off_t | fcntl.h | ALL 25 type | pid_t | fcntl.h | ALL 26 type | struct flock | fcntl.h | ALL 31 value | O_ACCMODE | int | fcntl.h | POSIX+ SUS+ 32 value | O_APPEND | int | fcntl.h | POSIX+ SUS+ 33 value | O_CLOEXEC | int | fcntl.h | POSIX+ SUS+ 34 value | O_CREAT | int | fcntl.h | POSIX+ SUS+ 35 value | O_DSYNC | int | fcntl [all...] |
/titanic_51/usr/src/lib/libast/common/comp/ |
H A D | fcntl.c | 30 #ifndef fcntl 32 NoN(fcntl) 47 #undef fcntl 48 extern int fcntl(int, int, ...); 87 op = fcntl(fd, op, va_arg(ap, int));
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | fcntl.c | 25 * -last fcntl 30 #ifndef fcntl 32 NoN(fcntl) 47 #undef fcntl 48 extern int fcntl(int, int, ...); 87 op = fcntl(fd, op, va_arg(ap, int));
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | asometh | 3 aso fcntl note{ fcntl(F_SETLCK[W]) work }end link{ 6 #include <fcntl.h> 16 return fcntl(1, F_SETLKW, &lock) < 0; 24 #include <fcntl.h>
|
/titanic_51/usr/src/lib/libc/port/sys/ |
H A D | lockf.c | 42 #include <fcntl.h> 61 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 65 rv = fcntl(fildes, F_SETLKW, &l); in __lockf() 69 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 73 rv = fcntl(fildes, F_GETLK, &l); in __lockf()
|
/titanic_51/usr/src/lib/libc/port/gen/ |
H A D | dup.c | 34 #include <fcntl.h> 41 return (fcntl(fildes, F_DUPFD, 0)); in dup() 48 return (fcntl(fildes, F_DUP2FD, fildes2)); in dup2() 71 return (fcntl(fildes, (flags == 0) ? F_DUP2FD : F_DUP2FD_CLOEXEC, in dup3()
|
H A D | flock.c | 23 #include <fcntl.h> 45 rv = fcntl(fildes, F_FLOCK, &l); in flock() 52 rv = fcntl(fildes, op, &l); in flock()
|
H A D | lckpwdf.c | 36 #include <fcntl.h> 81 if (fcntl(fildes, F_SETLK, &flock) != -1) { in lckpwdf() 115 (void) fcntl(fildes, F_SETLK, &flock); in ulckpwdf()
|
/titanic_51/usr/src/lib/libast/common/disc/ |
H A D | sfdcdio.c | 68 (void)fcntl(f->file, F_SETFL, di->cntl); 93 (void)fcntl(f->file, F_SETFL, di->cntl); 147 (void)fcntl(f->file,F_SETFL,di->cntl); 175 if((cntl = fcntl(f->file,F_GETFL,0)) < 0) 180 if(fcntl(f->file,F_SETFL,cntl) < 0) 184 if(fcntl(f->file,F_DIOINFO,&dio) < 0) 222 (void)fcntl(f->file,F_SETFL,cntl);
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcdio.c | 68 (void)fcntl(f->file, F_SETFL, di->cntl); 93 (void)fcntl(f->file, F_SETFL, di->cntl); 147 (void)fcntl(f->file,F_SETFL,di->cntl); 175 if((cntl = fcntl(f->file,F_GETFL,0)) < 0) 180 if(fcntl(f->file,F_SETFL,cntl) < 0) 184 if(fcntl(f->file,F_DIOINFO,&dio) < 0) 222 (void)fcntl(f->file,F_SETFL,cntl);
|
/titanic_51/usr/src/lib/libast/common/misc/ |
H A D | procopen.c | 169 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify() 221 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0); in modify() 226 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0); in modify() 227 if ((m->save = fcntl(arg2, F_DUPFD, 3)) < 0) in modify() 232 fcntl(m->save, F_SETFD, FD_CLOEXEC); in modify() 234 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify() 243 fcntl(arg1, F_SETFD, FD_CLOEXEC); in modify() 248 fcntl(arg1, F_SETFD, 0); in modify() 317 fcntl(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd); in restore() 319 fcntl(m->arg.fd.parent.fd, F_SETFD, m->arg.fd.parent.flag); in restore() [all …]
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | procopen.c | 181 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify() 204 if (arg1 != i && arg2 != i && fcntl(arg1, F_DUPFD, i) != i) in modify() 256 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0); in modify() 261 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0); in modify() 262 if ((m->save = fcntl(arg2, F_dupfd_cloexec, 3)) < 0) in modify() 268 fcntl(m->save, F_SETFD, FD_CLOEXEC); in modify() 271 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify() 280 fcntl(arg1, F_SETFD, FD_CLOEXEC); in modify() 285 fcntl(arg1, F_SETFD, 0); in modify() 354 fcntl( in restore() [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 33 #include <fcntl.h> 65 if (fcntl(apl->fd, F_SETLKW, &lock) >= 0) 80 fcntl(apl->fd, F_SETLK, &lock); 137 if (fcntl(fd, F_SETLKW, &lock) < 0) 149 fcntl(fd, F_SETLK, &lock); 183 return fcntl(apl->fd, F_SETLKW, &lock) < 0 ? -1 : k; 186 Asometh_t _aso_meth_fcntl = { "fcntl", ASO_PROCESS, aso_init_fcntl, aso_lock_fcntl };
|
/titanic_51/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 43 #include <fcntl.h> 123 (void) fcntl(fd, F_DUP2FD, STDIN_FILENO); in daemonize_fini() 124 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); in daemonize_fini() 125 (void) fcntl(fd, F_DUP2FD, STDERR_FILENO); in daemonize_fini()
|
/titanic_51/usr/src/cmd/ttymon/ |
H A D | tmlog.c | 40 #include <fcntl.h> 74 if ((ret = fcntl(fd, F_DUPFD, 3)) == 3) { in openttymonlog() 76 if (fcntl(ret, F_SETFD, FD_CLOEXEC) == 0) { in openttymonlog() 123 (void) fcntl(fileno(Logfp), F_SETFD, 1); in roll_log() 248 if ((ret = fcntl(fd, F_DUPFD, 3)) < 0) in opendebug() 249 fatal("F_DUPFD fcntl failed: %s", in opendebug() 260 if (fcntl(fileno(Debugfp), F_SETFD, 1) == -1) in opendebug() 261 fatal("F_SETFD fcntl failed: %s", strerror(errno)); in opendebug()
|
/titanic_51/usr/src/lib/libnsctl/common/ |
H A D | cache.c | 27 #include <sys/fcntl.h> 29 #include <fcntl.h> 116 if (fcntl(id, F_SETLKW, &lk) < 0) 119 i = fcntl(id, F_GETFL); 137 if (fcntl(id, F_SETFL, mode) < 0) 195 if (fcntl(fd->sf_fd, F_SETLKW, &lk) < 0) 209 fcntl(fd->sf_fd, F_SETFD, 0);
|
/titanic_51/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 35 #include <fcntl.h> 78 err = fcntl(fd, F_GETLK, &lock); in _check_daemon_lock() 157 if (fcntl(fd, F_SETLK, &lock) == -1) { in _enter_daemon_lock() 158 if (fcntl(fd, F_GETLK, &lock) == -1) { in _enter_daemon_lock()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | util.c | 308 int flags = fcntl(fd, F_GETFL, 0); in enable_blocking() 309 (void) fcntl(fd, F_SETFL, (flags & ~O_NONBLOCK)); in enable_blocking() 315 int flags = fcntl(fd, F_GETFL, 0); in disable_blocking() 316 (void) fcntl(fd, F_SETFL, (flags | O_NONBLOCK)); in disable_blocking()
|
/titanic_51/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yplckpwdf.c | 35 #include <fcntl.h> 73 retval = fcntl(fildes, F_SETLKW, (int)&flock); in yplckpwdf() 90 (void) fcntl(fildes, F_SETLK, (int)&flock); in ypulckpwdf()
|
/titanic_51/usr/src/lib/libbc/libc/sys/common/ |
H A D | dup2.c | 29 #include <fcntl.h> 50 if (fcntl(fildes, F_GETFL, 0) == -1) { in dup2() 73 if ((ret = fcntl(fildes, F_DUPFD, fildes2)) != -1) { in dup2()
|
/titanic_51/usr/src/cmd/sh/ |
H A D | io.c | 37 #include <fcntl.h> 156 fs = fcntl(f2, 1, 0); in renamef() 158 fcntl(f1, 0, f2); in renamef() 161 fcntl(f2, 2, 1); in renamef() 390 f = fcntl(fd, F_DUPFD, 10); in savefd() 392 (void) fcntl(f, F_SETFD, FD_CLOEXEC); in savefd()
|
/titanic_51/usr/src/cmd/csh/ |
H A D | sh.tchar.c | 51 #include <fcntl.h> 496 ((fflags = fcntl(d, F_GETFL, 0)) & O_NDELAY)) { in read_() 498 fcntl(d, F_SETFL, fflags); in read_() 503 fflags = fcntl(d, F_GETFL, 0); in read_() 505 fcntl(d, F_SETFL, fflags); in read_() 646 ((fflags = fcntl(d, F_GETFL, 0)) & O_NDELAY)) { in read_() 648 fcntl(d, F_SETFL, fflags); in read_() 653 fflags = fcntl(d, F_GETFL, 0); in read_() 655 fcntl(d, F_SETFL, fflags); in read_()
|
/titanic_51/usr/src/lib/libc/port/rt/ |
H A D | shm.c | 32 #include <fcntl.h> 58 if ((flags = fcntl(fd, F_GETFD)) < 0 || in shm_open() 59 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { in shm_open()
|
/titanic_51/usr/src/lib/libcurses/screen/ |
H A D | ttimeout.c | 46 #include <fcntl.h> 98 int flags = fcntl(cur_term->_inputfd, F_GETFL, 0); in _setblock() 105 (void) fcntl(cur_term->_inputfd, F_SETFL, flags); in _setblock()
|
/titanic_51/usr/src/cmd/sendmail/libsm/ |
H A D | local.h | 170 ret = fcntl((fd), F_GETFL, 0); \ 171 if (ret == -1 || fcntl((fd), F_SETFL, \ 186 ret = fcntl((fd), F_GETFL, 0); \ 187 if (ret == -1 || fcntl((fd), F_SETFL, \
|