/illumos-gate/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.h | XPG3+ POSIX-1993+ [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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));
|
/illumos-gate/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>
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lockf.c | 59 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 63 rv = fcntl(fildes, F_SETLKW, &l); in __lockf() 67 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 71 rv = fcntl(fildes, F_GETLK, &l); in __lockf()
|
/illumos-gate/usr/src/test/os-tests/tests/signalfd/ |
H A D | basic_args.c | 54 res = fcntl(fd, F_GETFL, 0); in main() 59 res = fcntl(fd, F_GETFD, 0); in main() 74 res = fcntl(fd, F_GETFL, 0); in main() 79 res = fcntl(fd, F_GETFD, 0); in main()
|
/illumos-gate/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);
|
/illumos-gate/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(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd); in restore() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | dup.c | 42 return (fcntl(fildes, F_DUPFD, 0)); in dup() 49 return (fcntl(fildes, F_DUP2FD, fildes2)); in dup2() 80 return (fcntl(fildes, F_DUP3FD, fildes2, dflags)); in dup3()
|
H A D | flock.c | 45 rv = fcntl(fildes, F_FLOCK, &l); in flock() 52 rv = fcntl(fildes, op, &l); in flock()
|
H A D | lckpwdf.c | 79 if (fcntl(fildes, F_SETLK, &flock) != -1) { in lckpwdf() 113 (void) fcntl(fildes, F_SETLK, &flock); in ulckpwdf()
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_phy.c | 75 __in unsigned int fcntl, in mcdi_phy_decode_link_mode() argument 101 if (fcntl == MC_CMD_FCNTL_OFF) in mcdi_phy_decode_link_mode() 103 else if (fcntl == MC_CMD_FCNTL_RESPOND) in mcdi_phy_decode_link_mode() 105 else if (fcntl == MC_CMD_FCNTL_GENERATE) in mcdi_phy_decode_link_mode() 107 else if (fcntl == MC_CMD_FCNTL_BIDIR) in mcdi_phy_decode_link_mode() 110 EFSYS_PROBE1(mc_pcol_error, int, fcntl); in mcdi_phy_decode_link_mode() 125 unsigned int fcntl; in ef10_phy_link_ev() local 154 &link_mode, &fcntl); in ef10_phy_link_ev() 170 epp->ep_fcntl = fcntl; in ef10_phy_link_ev()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 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;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 121 (void) fcntl(fd, F_DUP2FD, STDIN_FILENO); in daemonize_fini() 122 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); in daemonize_fini() 123 (void) fcntl(fd, F_DUP2FD, STDERR_FILENO); in daemonize_fini()
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmlog.c | 66 if ((ret = fcntl(fd, F_DUPFD, 3)) == 3) { in openttymonlog() 68 if (fcntl(ret, F_SETFD, FD_CLOEXEC) == 0) { in openttymonlog() 115 (void) fcntl(fileno(Logfp), F_SETFD, 1); in roll_log() 238 if ((ret = fcntl(fd, F_DUPFD, 3)) < 0) in opendebug() 250 if (fcntl(fileno(Debugfp), F_SETFD, 1) == -1) in opendebug()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | util.c | 306 int flags = fcntl(fd, F_GETFL, 0); in enable_blocking() 307 (void) fcntl(fd, F_SETFL, (flags & ~O_NONBLOCK)); in enable_blocking() 313 int flags = fcntl(fd, F_GETFL, 0); in disable_blocking() 314 (void) fcntl(fd, F_SETFL, (flags | O_NONBLOCK)); in disable_blocking()
|
/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 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()
|
/illumos-gate/usr/src/test/libproc-tests/tests/syscall/ |
H A D | pr_target.c | 53 val = fcntl(fd, F_GETFL, NULL); in pr_target_check_fd() 66 val = fcntl(fd, F_GETFD, NULL); in pr_target_check_fd() 154 if (fcntl(PRT_CLOSE_FD, F_GETFD, NULL) != -1) { in main()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.tchar.c | 495 ((fflags = fcntl(d, F_GETFL, 0)) & O_NDELAY)) { in read_() 497 fcntl(d, F_SETFL, fflags); in read_() 502 fflags = fcntl(d, F_GETFL, 0); in read_() 504 fcntl(d, F_SETFL, fflags); in read_() 645 ((fflags = fcntl(d, F_GETFL, 0)) & O_NDELAY)) { in read_() 647 fcntl(d, F_SETFL, fflags); in read_() 652 fflags = fcntl(d, F_GETFL, 0); in read_() 654 fcntl(d, F_SETFL, fflags); in read_()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 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()
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yplckpwdf.c | 70 retval = fcntl(fildes, F_SETLKW, (int)&flock); in yplckpwdf() 87 (void) fcntl(fildes, F_SETLK, (int)&flock); in ypulckpwdf()
|
/illumos-gate/usr/src/test/os-tests/tests/poll/ |
H A D | epoll_test.c | 33 flags = fcntl(fd, F_GETFD); in main() 41 flags = fcntl(fd, F_GETFD); in main()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | local.h | 168 ret = fcntl((fd), F_GETFL, 0); \ 169 if (ret == -1 || fcntl((fd), F_SETFL, \ 184 ret = fcntl((fd), F_GETFL, 0); \ 185 if (ret == -1 || fcntl((fd), F_SETFL, \
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | shm.c | 56 if ((flags = fcntl(fd, F_GETFD)) < 0 || in shm_open() 57 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { in shm_open()
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_files.c | 61 OK(mode = fcntl(fd, F_GETFL, NULL)); /*%< side effect: validate fd. */ in evSelectFD() 82 OK(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK)); in evSelectFD() 168 mode = fcntl(del->fd, F_GETFL, NULL); in evDeselectFD() 205 (void) fcntl(del->fd, F_SETFL, mode & ~PORT_NONBLOCK); in evDeselectFD()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | ttimeout.c | 96 int flags = fcntl(cur_term->_inputfd, F_GETFL, 0); in _setblock() 103 (void) fcntl(cur_term->_inputfd, F_SETFL, flags); in _setblock()
|