Searched refs:fd (Results 1 - 25 of 1929) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dclose.c32 close(int fd) argument
34 return (bc_close(fd));
38 bc_close(int fd) argument
40 fd_rem(fd);
41 return (_syscall(SYS_close, fd));
H A Dfsync.c34 fsync(int fd) argument
36 return (_syscall(SYS_fdsync, fd, FSYNC));
/illumos-gate/usr/src/lib/libast/common/stdio/
H A D_stdopen.c29 _stdopen(int fd, const char* mode) argument
31 return fdopen(fd, mode);
H A Dfdopen.c27 fdopen(int fd, const char* mode) argument
31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL)))
33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_fsync.c27 __mpe_fsync(fd)
28 int fd;
32 FCONTROL(_MPE_FILENO(fd), 2, NULL); /* Flush the buffers */
33 FCONTROL(_MPE_FILENO(fd), 6, NULL); /* Write the EOF */
39 #define fsync(fd) __mpe_fsync(fd);
42 #define fsync(fd) _commit(fd);
52 __os_fsync(fd)
53 int fd;
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Ddkbreak.c41 dkbreak(fd)
45 ioctl(fd, DIOCXCTL, sendbreak);
47 write(fd, nothing, 0);
H A Ddkminor.c42 dkminor(fd)
47 if (ioctl(fd, DIOCINFO, &iocb) < 0)
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dfifo_buffs.c53 ResetFifoBuffer(int fd) argument
58 if (fd >= FifoBufferTableSize)
61 if (FifoBufferTable [fd]) {
62 FifoBufferTable [fd]->full = 0;
63 FifoBufferTable [fd]->psave =
64 FifoBufferTable [fd]->psave_end =
65 FifoBufferTable [fd]->save;
72 GetFifoBuffer(int fd) argument
74 if (fd < 0) {
78 if ((fd >
113 GrowFifoBufferTable(int fd) argument
130 NewFifoBuffer(int fd) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dtli_wrappers.c44 t_accept(int fd, int resfd, struct t_call *call) argument
46 return (_tx_accept(fd, resfd, call, TX_TLI_API));
50 t_alloc(int fd, int struct_type, int fields) argument
52 return (_tx_alloc(fd, struct_type, fields, TX_TLI_API));
56 t_bind(int fd, struct t_bind *req, struct t_bind *ret) argument
58 return (_tx_bind(fd, req, ret, TX_TLI_API));
62 t_close(int fd) argument
64 return (_tx_close(fd, TX_TLI_API));
68 t_connect(int fd, struct t_call *sndcall, struct t_call *rcvcall) argument
70 return (_tx_connect(fd, sndcal
95 t_getinfo(int fd, struct t_info *info) argument
101 t_getstate(int fd) argument
107 t_listen(int fd, struct t_call *call) argument
113 t_look(int fd) argument
130 t_optmgmt(int fd, struct t_optmgmt *req, struct t_optmgmt *ret) argument
136 t_rcv(int fd, char *buf, unsigned int nbytes, int *flags) argument
142 t_rcvconnect(int fd, struct t_call *call) argument
148 t_rcvdis(int fd, struct t_discon *discon) argument
154 t_rcvrel(int fd) argument
160 t_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) argument
166 t_rcvuderr(int fd, struct t_uderr *uderr) argument
172 t_snd(int fd, char *buf, unsigned int nbytes, int flags) argument
178 t_snddis(int fd, struct t_call *call) argument
184 t_sndrel(int fd) argument
190 t_sndudata(int fd, struct t_unitdata *unitdata) argument
202 t_sync(int fd) argument
208 t_unbind(int fd) argument
214 t_getname(int fd, struct netbuf *name, int type) argument
[all...]
H A Dxti_wrappers.c58 _xti_accept(int fd, int resfd, const struct t_call *call) argument
60 return (_tx_accept(fd, resfd, call, TX_XTI_API));
64 _xti_xns5_accept(int fd, int resfd, const struct t_call *call) argument
66 return (_tx_accept(fd, resfd, call, TX_XTI_XNS5_API));
70 _xti_alloc(int fd, int struct_type, int fields) argument
72 return (_tx_alloc(fd, struct_type, fields, TX_XTI_API));
76 _xti_bind(int fd, const struct t_bind *req, struct t_bind *ret) argument
78 return (_tx_bind(fd, req, ret, TX_XTI_API));
82 _xti_close(int fd) argument
84 return (_tx_close(fd, TX_XTI_AP
88 _xti_connect(int fd, const struct t_call *sndcall, struct t_call *rcvcall) argument
110 _xti_getinfo(int fd, struct t_info *info) argument
116 _xti_getprotaddr(int fd, struct t_bind *boundaddr, struct t_bind *peeraddr) argument
122 _xti_getstate(int fd) argument
128 _xti_listen(int fd, struct t_call *call) argument
134 _xti_look(int fd) argument
146 _xti_optmgmt(int fd, const struct t_optmgmt *req, struct t_optmgmt *ret) argument
152 _xti_rcv(int fd, void *buf, unsigned int nbytes, int *flags) argument
158 _xti_rcvconnect(int fd, struct t_call *call) argument
164 _xti_rcvdis(int fd, struct t_discon *discon) argument
170 _xti_rcvrel(int fd) argument
176 _xti_rcvreldata(int fd, struct t_discon *discon) argument
182 _xti_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) argument
188 _xti_rcvuderr(int fd, struct t_uderr *uderr) argument
194 _xti_rcvv(int fd, struct t_iovec *tiov, unsigned int tiovcount, int *flags) argument
200 _xti_rcvvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount, int *flags) argument
208 _xti_snd(int fd, void *buf, unsigned int nbytes, int flags) argument
214 _xti_xns5_snd(int fd, void *buf, unsigned int nbytes, int flags) argument
220 _xti_snddis(int fd, const struct t_call *call) argument
227 _xti_sndrel(int fd) argument
233 _xti_sndreldata(int fd, struct t_discon *discon) argument
239 _xti_sndudata(int fd, const struct t_unitdata *unitdata) argument
245 _xti_sndv(int fd, const struct t_iovec *tiov, unsigned int tiovcount, int flags) argument
251 _xti_sndvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount) argument
264 _xti_sync(int fd) argument
276 _xti_unbind(int fd) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/
H A Dnlist.c39 int fd; local
41 fd = open(name, O_RDONLY, 0);
42 (void) _nlist(fd, list);
43 close(fd);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtinputfd.c50 tinputfd(int fd) argument
52 cur_term->_inputfd = fd;
/illumos-gate/usr/src/lib/libbc/libc/compat/common/
H A Dgtty.c36 gtty(int fd, struct sgttyb *ap) argument
39 return (ioctl(fd, TIOCGETP, ap));
H A Dstty.c36 stty(int fd, struct sgttyb *ap) argument
39 return(ioctl(fd, TIOCSETP, ap));
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dflushinp.c53 int fd; local
63 fd = cur_term->_ifd;
65 fd = cur_term->_ofd;
67 fd = -1;
69 if (0 <= fd)
70 (void) tcflush(fd, TCIFLUSH);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dflushinp.c58 int fd; local
64 fd = cur_term->_ifd;
66 fd = cur_term->_ofd;
68 fd = -1;
70 if (0 <= fd)
71 (void) tcflush(fd, TCIFLUSH);
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dfdset.h18 ** Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked
22 # define SM_FD_SET(fd, pfdset) FD_SET(fd, pfdset)
23 # define SM_FD_ISSET(fd, pfdset) FD_ISSET(fd, pfdset)
25 # define SM_FD_OK_SELECT(fd) (FD_SETSIZE <= 0 || (fd) < FD_SETSIZE)
/illumos-gate/usr/src/cmd/lp/filter/postscript/filtdesc/
H A DMakefile32 ROOTETCLPFD= $(ROOTETCLP)/fd
34 FILES= catv.fd \
35 download.fd \
36 dpost.fd \
37 postio.fd \
38 postior.fd \
39 postprint.fd \
40 postreverse.fd \
41 postpages.fd \
42 pr.fd
[all...]
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Depoll_test.c28 int fd, flags; local
30 fd = epoll_create1(0);
31 assert(fd >= 0);
33 flags = fcntl(fd, F_GETFD);
35 (void) close(fd);
38 fd = epoll_create1(EPOLL_CLOEXEC);
39 assert(fd >= 0);
41 flags = fcntl(fd, F_GETFD);
43 (void) close(fd);
45 fd
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddaemon.c46 int retv, fd; local
78 if ((fd = open("/dev/null", O_RDWR)) == -1)
87 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) {
88 (void) close(fd);
91 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) {
92 (void) close(fd);
95 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILEN
[all...]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_files.c27 int fd; local
29 fd = open(filename, O_RDONLY);
30 if (fd >= 0)
31 return fd;
41 int fd; local
43 fd = open_data_file(schema);
44 if (fd >= 0)
45 return fd;
52 int fd; local
57 fd
[all...]
/illumos-gate/usr/src/cmd/vt/
H A Dvtinfo.c43 int fd; local
45 if ((fd = open("/dev/vt/0", O_RDONLY)) < 0)
48 if (ioctl(fd, VT_ENABLED, &result) != 0) {
49 (void) close(fd);
53 (void) close(fd);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstat.c41 int fd, rv; local
43 fd = open(str, O_RDONLY);
44 if (fd < 0)
46 rv = fstat(fd, sb);
47 (void) close(fd);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dunlck_file.c34 krb5_unlock_file(krb5_context context, int fd) argument
36 return krb5_lock_file(context, fd, KRB5_LOCKMODE_UNLOCK);
/illumos-gate/usr/src/lib/libc/port/sys/
H A Deventfd.c27 int fd; local
40 if ((fd = open("/dev/eventfd", oflags)) < 0)
44 ioctl(fd, EVENTFDIOC_SEMAPHORE, 0) != 0) {
45 (void) close(fd);
49 if (write(fd, &val, sizeof (val)) < sizeof (val)) {
50 (void) close(fd);
54 return (fd);
58 eventfd_read(int fd, eventfd_t *valp) argument
60 return (read(fd, valp, sizeof (*valp)) < sizeof (*valp) ? -1 : 0);
64 eventfd_write(int fd, eventfd_ argument
[all...]

Completed in 103 milliseconds

1234567891011>>