Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/test/libc-tests/cfg/symbols/
H A Dfcntl_h.cfg17 # 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 Dfcntl.c30 #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 Dasometh3 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 Dlockf.c59 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 Dbasic_args.c54 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 Dsfdcdio.c68 (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 Dprocopen.c181 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 Ddup.c42 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 Dflock.c45 rv = fcntl(fildes, F_FLOCK, &l); in flock()
52 rv = fcntl(fildes, op, &l); in flock()
H A Dlckpwdf.c79 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 Def10_phy.c75 __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 Daso-fcntl.c65 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 Ddaemon.c121 (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 Dtmlog.c66 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 Dutil.c306 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 Ddaemon_utils.c78 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 Dpr_target.c53 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 Dsh.tchar.c495 ((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 Dio.c156 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 Dyplckpwdf.c70 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 Depoll_test.c33 flags = fcntl(fd, F_GETFD); in main()
41 flags = fcntl(fd, F_GETFD); in main()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dlocal.h168 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 Dshm.c56 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 Dev_files.c61 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 Dttimeout.c96 int flags = fcntl(cur_term->_inputfd, F_GETFL, 0); in _setblock()
103 (void) fcntl(cur_term->_inputfd, F_SETFL, flags); in _setblock()

12345678910>>...13