/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | close.c | 32 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 D | fsync.c | 34 fsync(int fd) argument 36 return (_syscall(SYS_fdsync, fd, FSYNC));
|
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | _stdopen.c | 29 _stdopen(int fd, const char* mode) argument 31 return fdopen(fd, mode);
|
H A D | fdopen.c | 27 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 D | os_fsync.c | 27 __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 D | dkbreak.c | 41 dkbreak(fd) 45 ioctl(fd, DIOCXCTL, sendbreak); 47 write(fd, nothing, 0);
|
H A D | dkminor.c | 42 dkminor(fd) 47 if (ioctl(fd, DIOCINFO, &iocb) < 0)
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | fifo_buffs.c | 53 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 D | tli_wrappers.c | 44 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 D | xti_wrappers.c | 58 _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 D | nlist.c | 39 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 D | tinputfd.c | 50 tinputfd(int fd) argument 52 cur_term->_inputfd = fd;
|
/illumos-gate/usr/src/lib/libbc/libc/compat/common/ |
H A D | gtty.c | 36 gtty(int fd, struct sgttyb *ap) argument 39 return (ioctl(fd, TIOCGETP, ap));
|
H A D | stty.c | 36 stty(int fd, struct sgttyb *ap) argument 39 return(ioctl(fd, TIOCSETP, ap));
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | flushinp.c | 53 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 D | flushinp.c | 58 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 D | fdset.h | 18 ** 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 D | Makefile | 32 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/lib/libc/port/gen/ |
H A D | daemon.c | 45 int retv, fd; local 77 if ((fd = open("/dev/null", O_RDWR)) == -1) 86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { 87 (void) close(fd); 90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { 91 (void) close(fd); 94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILEN [all...] |
/illumos-gate/usr/src/test/os-tests/tests/poll/ |
H A D | epoll_test.c | 28 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/cmd/vt/ |
H A D | vtinfo.c | 43 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 D | stat.c | 44 int fd, rv; local 46 fd = open(str, O_RDONLY); 47 if (fd < 0) 49 rv = fstat(fd, sb); 50 (void)close(fd);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | unlck_file.c | 34 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 D | eventfd.c | 27 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...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | nlist.c | 39 int fd; local 42 fd = open(name, O_RDONLY, 0); 43 e = _nlist(fd, list); 44 close(fd);
|