Searched defs:fd (Results 251 - 275 of 1651) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/boot/lib/libstand/
H A Dopen.c75 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 Dls.c61 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 Dchain.c45 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 Dcopy.c51 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 Dsend-document.c44 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 Dpapi_impl.h56 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 Dparse.c92 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 Dbindresvport.c69 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 Dsendfile.c63 _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 Diod_cl.c93 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 Dinuse_zpool.c56 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 Ddlink_common.c106 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 Dtrace_init.c141 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 Dfix_options.c50 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 Dsocket.c90 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 Dnlsenv.c113 * 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 Ddaemon_utils.c64 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 Ddial.c35 * 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 Dt_getname.c52 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 Dt_rcv.c53 _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 Dt_rcvv.c50 _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 Dt_rcvvudata.c52 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 Dfdsync.c54 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 Drtime_tli.c79 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 DPfdinfo.c42 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...]

Completed in 141 milliseconds

<<11121314151617181920>>