/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | open.c | 75 int fd; local 77 for (fd = 0; fd < SOPEN_MAX; fd++) 78 if (files[fd].f_flags == 0) 79 return(fd); 96 int fd, i, error, besterror; local 99 if ((fd = o_gethandle()) == -1) { 104 f = &files[fd]; 129 return (fd); [all...] |
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | ls.c | 61 int fd; local 70 fd = -1; 106 fd = ls_getdir(&path); 107 if (fd == -1) { 115 while ((d = readdirfd(fd)) != NULL) { 142 if (fd != -1) 143 close(fd); 150 * Given (path) containing a vaguely reasonable path specification, return an fd 157 int fd; local 161 fd [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/loader/ |
H A D | chain.c | 45 int fd, len, size = SECTOR_SIZE; local 60 fd = open(argv[1], O_RDONLY); 61 if (fd == -1) { 68 if (fstat(fd, &st) == -1) { 70 close(fd); 76 close(fd); 83 close(fd); 87 if (archsw.arch_readin(fd, mem, size) != size) { 89 close(fd); 92 close(fd); [all...] |
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/ |
H A D | copy.c | 51 userboot_readin(int fd, vm_offset_t va, size_t len) argument 62 s = read(fd, buf, sz);
|
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | send-document.c | 44 papi_attribute_t ***response, ipp_reader_t iread, void *fd) 114 while ((status == PAPI_OK) && ((rc = iread(fd, buf, sizeof (buf))) > 0)) 43 ipp_send_document(papi_service_t svc, papi_attribute_t **request, papi_attribute_t ***response, ipp_reader_t iread, void *fd) argument
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | papi_impl.h | 56 int fd; /* the fd to write to */ member in struct:stream 80 extern char *fdgets(char *buf, size_t len, int fd); 92 papi_attribute_t ***attributes, int *fd);
|
/illumos-gate/usr/src/lib/efcode/packages/ |
H A D | parse.c | 92 FILE *fd; local 99 if ((fd = fopen(where, "r")) == NULL) { 105 while ((line = fgets(buffer, PARSE_LINE, fd)) != NULL) { 134 fclose(fd);
|
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | bindresvport.c | 69 int fd; local 96 if (!clnt_control(cl, CLGET_FD, (char *)&fd)) { 100 /* If fd is already bound - unbind it */ 101 if (t_getstate(fd) != T_UNBND) { 102 while ((t_unbind(fd) < 0) && (t_errno == TLOOK)) { 117 if (getmsg(fd, ctl, data, &flags) < 0) 121 if (t_getstate(fd) != T_UNBND) 125 tbind = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR); 131 tres = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR); 179 res = t_bind(fd, tbin [all...] |
/illumos-gate/usr/src/lib/libsendfile/common/ |
H A D | sendfile.c | 63 _sendfile(int sock, int fd, off_t *off, size_t len) argument 70 sfv.sfv_fd = fd; 112 _sendfile64(int sock, int fd, off64_t *off, size_t len) argument 119 sfv.sfv_fd = fd;
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | iod_cl.c | 93 int fd, rc; local 97 fd = open(path, O_RDONLY, 0); 98 if (fd < 0) 108 rc = door_call(fd, &da); 111 close(fd); 115 close(fd); 120 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); 122 *fdp = fd; 136 int fd, rc; local 138 fd 169 int fd = -1; local [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_zpool.c | 56 static int (*zfsdl_zpool_in_use)(libzfs_handle_t *hdl, int fd, 72 int fd; local 95 if ((fd = open(slice, O_RDONLY)) > 0) { 97 if (zfsdl_zpool_in_use(zfs_hdl, fd, &state, 122 (void) close(fd);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_common.c | 106 int fd; local 140 if ((fd = open64(devname, O_RDWR)) < 0) { 152 if ((fd = open64(devname, O_RDWR)) < 0) { 158 if (ioctl(fd, DTRACEHIOC_ADDDOF, &dh) == -1) { 165 (void) close(fd);
|
/illumos-gate/usr/src/lib/libtnfprobe/ |
H A D | trace_init.c | 141 int fd; local 172 fd = open(tnf_trace_file_name, O_RDWR, TNF_FILE_MODE); 173 if (fd < 0) { 184 fd = open(tnf_trace_file_name, 186 if (fd < 0) { 193 if (lseek(fd, tnf_trace_file_size-1, SEEK_SET) == -1) { 196 if (write(fd, "", 1) != 1) { 207 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == (caddr_t)-1) {
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | fix_options.c | 50 int fd = request->fd; local 60 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0 94 shutdown(fd, 2); 113 if (setsockopt(fd, ipproto, IP_OPTIONS, (char *) 0, optsize) != 0) { 115 shutdown(fd, 2);
|
H A D | socket.c | 90 int fd = request->fd; local 104 if (getpeername(fd, (struct sockaddr *) & client, &len) < 0) { 107 if (recvfrom(fd, buf, sizeof(buf), MSG_PEEK, 126 if (getsockname(fd, (struct sockaddr *) & server, &len) < 0) { 247 static void sock_sink(fd) 248 int fd; 259 (void) recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *) & sin, &size);
|
/illumos-gate/usr/src/lib/libnls/common/ |
H A D | nlsenv.c | 113 * struct t_call *nlsgetcall(fd); 114 * int fd; arg now ignored 129 nlsgetcall(int fd) argument
|
/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 64 int fd, err; local 67 if ((fd = open_daemon_lock(name, O_RDONLY)) == -1) { 78 err = fcntl(fd, F_GETLK, &lock); 79 (void) close(fd); 91 int fd; local 124 if ((fd = open(lock_file, mode, 0644)) == -1) 128 (void) fchmod(fd, 0644); 130 return (fd); 141 int fd; local 149 if ((fd 177 int fd = open_daemon_lock(name, O_CREAT); local [all...] |
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | dial.c | 35 * dial() returns an fd for an open tty-line connected to the 129 static int rlfd; /* fd for remote comm line */ 253 * undial(fd) 256 undial(int fd) argument 258 sethup(fd); 260 cleanup(fd);
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_getname.c | 52 static int __tx_getname_locked(int fd, struct netbuf *name, int type); 55 _tx_getname(int fd, struct netbuf *name, int type, int api_semantics) argument 66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 70 retval = __tx_getname_locked(fd, name, type); 86 __tx_getname_locked(int fd, struct netbuf *name, int type) argument 91 retval = ioctl(fd, 106 int fd, 119 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 154 retval = _t_do_ioctl(fd, ctlbuf.buf, 105 _tx_getprotaddr( int fd, struct t_bind *boundaddr, struct t_bind *peeraddr, int api_semantics) argument
|
H A D | t_rcv.c | 53 _tx_rcv(int fd, char *buf, unsigned nbytes, int *flags, int api_semantics) argument 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 113 retval = ioctl(fd, I_NREAD, &msglen); 183 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { 307 retval = getmsg(fd, &ctlbuf,
|
H A D | t_rcvv.c | 50 _tx_rcvv(int fd, struct t_iovec *tiov, unsigned int tiovcount, int *flags, argument 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 115 retval = ioctl(fd, I_NREAD, &msglen); 198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { 325 retval = getmsg(fd, &ctlbuf,
|
H A D | t_rcvvudata.c | 52 int fd, 78 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { 51 _tx_rcvvudata( int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount, int *flags, int api_semantics ) argument
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | fdsync.c | 54 int end; /* fd of last lock in the list */ 62 static mutex_t *search(const void *handle, int fd); 63 static rpcfd_block_t *create_block(const void *handle, int fd); 87 rpc_fd_lock(const void *handle, int fd) argument 94 mp = search(handle, fd); 96 p = create_block(handle, fd); 98 mp = &p->lock[fd % CELLTBLSZ]; 108 rpc_fd_unlock(const void *handle, int fd) argument 113 mp = search(handle, fd); 121 create_block(const void *handle, int fd) argument 157 search(const void *handle, int fd) argument [all...] |
H A D | rtime_tli.c | 79 int fd = -1; local 85 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 89 if (t_bind(fd, NULL, NULL) < 0) { 113 if (t_sndudata(fd, &tu_data) == -1) { 117 pfd.fd = fd; 126 if (t_rcvudata(fd, &tu_data, &flag) < 0) { 138 if (t_connect(fd, &sndcall, NULL) == -1) { 142 if (t_rcv(fd, (char *)&thetime, (uint_t)sizeof (thetime), &flag) 157 if (fd ! [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pfdinfo.c | 42 Pfd2info(struct ps_prochandle *P, int fd) argument 54 if (fip->fd_info.pr_fd == fd) { 57 if (fip->fd_info.pr_fd < fd) { 66 fip->fd_info.pr_fd = fd; 93 int fd; local 114 fd = atoi(ent->d_name); 116 fip = Pfd2info(P, fd); 118 info->pr_fd = fd; 120 if (pr_fstat64(P, fd, &stat) == 0) { 132 info->pr_fileflags = pr_fcntl(P, fd, F_GETXF [all...] |