Searched defs:fd (Results 151 - 175 of 1651) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_look.c45 _tx_look(int fd, int api_semantics) argument
52 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
60 state = _t_look_locked(fd, tiptr, do_expinline_peek, api_semantics);
76 int fd,
131 retval = ioctl(fd, I_PEEK, &strpeek);
190 retval = _t_expinline_queued(fd, &exp_on_q);
231 retval = _t_expinline_queued(fd, &exp_on_q);
75 _t_look_locked( int fd, struct _ti_user *tiptr, int do_expinline_peek, int api_semantics ) argument
H A Dt_open.c66 int retval, fd, sv_errno; local
83 if ((fd = open(path, flags)) < 0) {
94 retval = ioctl(fd, I_FIND, "timod");
101 (void) close(fd);
115 retval = ioctl(fd, I_PUSH, "timod");
122 (void) close(fd);
144 tiptr = _t_create(fd, info, api_semantics, &ticap_ioctl_failed);
153 (void) close(fd);
161 (void) close(fd);
178 retval = ioctl(fd, I_FLUS
[all...]
H A Dt_rcvdis.c48 _tx_rcvdis(int fd, struct t_discon *discon, int api_semantics) argument
60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
115 if ((retval = _t_look_locked(fd, tiptr, 0,
163 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
H A Dt_rcvrel.c52 _tx_rcvrel(int fd, int api_semantics) argument
64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0)
87 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) {
158 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
H A Dt_rcvreldata.c51 _tx_rcvreldata(int fd, struct t_discon *discon, int api_semantics) argument
65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0)
82 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) {
160 retval = getmsg(fd, &ctlbuf, &databuf, &flg);
H A Dt_rcvudata.c54 int fd,
68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
120 if ((retval = getmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata,
53 _tx_rcvudata( int fd, struct t_unitdata *unitdata, int *flags, int api_semantics ) argument
H A Dt_rcvuderr.c48 _tx_rcvuderr(int fd, struct t_uderr *uderr, int api_semantics) argument
60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
88 if ((retval = _t_look_locked(fd, tiptr, 0,
123 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
H A Dt_snddis.c47 _tx_snddis(int fd, const struct t_call *call, int api_semantics) argument
56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
120 if (_t_look_locked(fd, tiptr, 0, api_semantics) == T_DISCONNECT) {
130 retval = ioctl(fd, I_FLUSH, FLUSHW);
157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) {
163 if (_t_is_ok(fd, tiptr, T_DISCON_REQ) < 0) {
H A Dt_sndudata.c51 _tx_sndudata(int fd, const struct t_unitdata *unitdata, int api_semantics) argument
60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
169 if (putmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, 0) < 0) {
H A Dt_sndvudata.c50 _tx_sndvudata(int fd, const struct t_unitdata *unitdata, struct t_iovec *tiov, argument
64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) {
H A Dt_unbind.c49 _tx_unbind(int fd, int api_semantics) argument
56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
91 retval = _tx_unbind_locked(fd, tiptr, &ctlbuf);
105 _tx_unbind_locked(int fd, struct _ti_user *tiptr, struct strbuf *ctlbufp) argument
110 if (_t_is_event(fd, tiptr) < 0)
117 if (_t_do_ioctl(fd, (char *)unbind_reqp,
122 if (ioctl(fd, I_FLUSH, FLUSHRW) < 0) {
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_rsvd.c47 int fd; local
62 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) {
68 (void) netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL);
71 if ((tbind = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR)) == NULL) {
79 (void) t_close(fd);
85 if ((clnt = clnt_tli_create(fd, nconf, svcaddr,
87 (void) t_close(fd);
/illumos-gate/usr/src/lib/libpri/common/
H A Dpri.c50 int fd; local
55 fd = open(DS_PRI_DRIVER, O_RDONLY);
56 if (fd < 0)
59 pri_fd = fd;
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_mmap.c40 void *addr, size_t len, int prot, int flags, int fd, off_t off)
48 return (mmap(addr, len, prot, flags, fd, off));
78 adp++; /* fd argument */
79 adp->arg_value = (long)fd;
39 pr_mmap(struct ps_prochandle *Pr, void *addr, size_t len, int prot, int flags, int fd, off_t off) argument
H A Dpr_open.c140 pr_close(struct ps_prochandle *Pr, int fd) argument
148 return (close(fd));
150 adp = &argd[0]; /* fd argument */
151 adp->arg_value = (int)fd;
180 adp = &argd[0]; /* directory fd argument */
H A Dpr_statvfs.c118 pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf) argument
129 return (fstatvfs(fd, buf));
131 adp->arg_value = fd;
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dmktemp.c79 int fd; local
81 return (gettemp(path, &fd) ? fd : -1);
H A Dwritev.c21 __writev(int fd, struct iovec *iov, int iovlen) argument
25 if (fstat(fd, &statbuf) < 0)
41 return (sendmsg(fd, &mesg, 0));
47 rcode = write(fd, tv->iov_base, tv->iov_len);
65 __writev(fd, vp, vpcount)
66 int fd;
73 int written = write(fd, vp->iov_base, vp->iov_len);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c43 read(int fd, char *buf, int size) argument
45 return (bc_read(fd, buf, size));
49 bc_read(int fd, char *buf, int size) argument
54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */
63 if ((ret = _read(fd, nbuf, size)) == -1) {
77 if ((ret = _read(fd, buf, size)) == -1) {
H A Dreadv.c44 readv(int fd, struct iovec *iov, int iovcnt) argument
46 return (bc_readv(fd, iov, iovcnt));
50 bc_readv(int fd, struct iovec *iov, int iovcnt) argument
56 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx really) */
67 if ((ret = _read(fd, nbuf, size)) == -1) {
86 if ((ret = _readv(fd, iov, iovcnt)) == -1) {
H A Dwrite.c45 write(int fd, char *buf, int size) argument
47 return (bc_write(fd, buf, size));
51 bc_write(int fd, char *buf, int size) argument
57 if (fd_get(fd) != -1) { /* writing utmp (utmpx actually) */
70 if ((ret = _write(fd, nbuf, ret)) == -1) {
85 if ((ret = _write(fd, buf, size)) == -1) {
H A Dwritev.c45 writev(int fd, struct iovec *iov, int iovcnt) argument
47 return (bc_writev(fd, iov, iovcnt));
51 bc_writev(int fd, struct iovec *iov, int iovcnt) argument
58 if (fd_get(fd) != -1) { /* writing utmp (utmpx, actually) */
73 if ((ret = _write(fd, nbuf, ret)) == -1) {
89 if ((ret = _writev(fd, iov, iovcnt)) == -1) {
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dfdlist.c34 int fd[NUM_FD]; /* list of 16 descriptors */ member in struct:fd_lst
49 lst->fd[i] = -1;
58 fd_add(int fd, int fds) argument
67 if (fdc->fd[i] == -1) {
68 fdc->fd[i] = fd;
89 fdtail->fd[0] = fd;
96 fd_rem(int fd) argument
103 if (fdc->fd[
116 fd_get(int fd) argument
[all...]
H A Dftruncate.c49 ftruncate(int fd, off_t length) argument
59 if (_syscall(SYS_fcntl, fd, F_FREESP, (int)&lck) == -1)
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c43 read(int fd, char *buf, int size) argument
45 return (bc_read(fd, buf, size));
49 bc_read(int fd, char *buf, int size) argument
54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */
63 if ((ret = _read(fd, nbuf, size)) == -1) {
76 return (_read(fd, buf, size));

Completed in 128 milliseconds

1234567891011>>