Home
last modified time | relevance | path

Searched refs:fd (Results 201 – 225 of 2079) sorted by relevance

12345678910>>...84

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c717 state->fd = INVALID_SOCKET; in setup_connection()
734 int fd, e; in start_connection() local
770 state->fd = fd; in start_connection()
774 (void) closesocket(fd); in start_connection()
787 state->fd = fd; in start_connection()
804 (void) closesocket(fd); in start_connection()
944 get_so_error(int fd) in get_so_error() argument
984 closesocket(conn->fd); in service_tcp_fd()
985 conn->fd = INVALID_SOCKET; in service_tcp_fd()
1008 e = get_so_error(conn->fd); in service_tcp_fd()
[all …]
/illumos-gate/usr/src/cmd/ctwatch/
H A Dctwatch.c89 int fd; in sopen() local
106 return (fd); in sopen()
135 if (errno = ct_event_read(fd, &ev)) { in get_event()
190 int type, fd; in contract_type() local
199 (void) close(fd); in contract_type()
204 (void) close(fd); in contract_type()
315 int type, fd; in main() local
324 if (fd == -1) in main()
327 (void) close(fd); in main()
333 (void) close(fd); in main()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dtli.c83 if ((request->config = tli_transport(request->fd)) != 0
132 int fd = request->fd; local
154 if (t_rcvudata(fd, client, &flags) < 0 || client->addr.len == 0) {
171 if (ioctl(fd, TI_GETMYNAME, &server->addr) < 0) {
181 static struct netconfig *tli_transport(fd) in tli_transport() argument
182 int fd; in tli_transport()
195 if (fstat(fd, &from_client) != 0) {
196 tcpd_warn("fstat(fd %d): %m", fd);
332 static void tli_sink(fd) in tli_sink() argument
333 int fd; in tli_sink()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c55 corrupt(int fd, unsigned char *buf, int len) in corrupt() argument
77 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) == -1) { in corrupt()
99 close(fd); in corrupt()
106 if (new != fd) { in corrupt()
107 dup2(new, fd); in corrupt()
135 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) > 0) { in corrupt()
159 int err, fd, len; in main() local
196 fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDWR); in main()
198 if (fd == -1) in main()
201 corrupt(fd, copy, len); in main()
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c65 read_and_boot_ramdisk(int fd) in read_and_boot_ramdisk() argument
72 if ((fstat(fd, &st) != 0) || in read_and_boot_ramdisk()
77 if ((size = xread(fd, (char *)virt, st.st_size)) != st.st_size) { in read_and_boot_ramdisk()
93 int fd; in post_mountroot_nfs() local
125 fd = openfile(fn); in post_mountroot_nfs()
130 fd = openfile(fn); in post_mountroot_nfs()
135 if ((fd = openfile(fn)) == FAILURE) { in post_mountroot_nfs()
139 fd = openfile(fn); in post_mountroot_nfs()
150 if (fd == FAILURE) { in post_mountroot_nfs()
161 (void) read_and_boot_ramdisk(fd); in post_mountroot_nfs()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drtime_tli.c77 int fd = -1; in rtime_tli() local
83 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { in rtime_tli()
87 if (t_bind(fd, NULL, NULL) < 0) { in rtime_tli()
111 if (t_sndudata(fd, &tu_data) == -1) { in rtime_tli()
115 pfd.fd = fd; in rtime_tli()
124 if (t_rcvudata(fd, &tu_data, &flag) < 0) { in rtime_tli()
136 if (t_connect(fd, &sndcall, NULL) == -1) { in rtime_tli()
140 if (t_rcv(fd, (char *)&thetime, (uint_t)sizeof (thetime), &flag) in rtime_tli()
155 if (fd != -1) { in rtime_tli()
156 (void) t_close(fd); in rtime_tli()
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c401 int fd, eventmask; in evGetNext() local
429 fd = fid->fd; in evGetNext()
493 this->conn->fd, this->fd, in evDispatch()
816 if (fd < ctx->maxnfds) in evPollfdRealloc()
891 ctx->pollfds[fd].fd = -1; in __fd_clr()
892 if (fd == ctx->fdMax) in __fd_clr()
896 if (fd == ctx->firstfd) in __fd_clr()
922 ctx->pollfds[fd].fd = fd; in __fd_set()
924 ctx->firstfd = fd; in __fd_set()
925 if (fd > ctx->fdMax) in __fd_set()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dwait.c196 int fd; in wait_register() local
218 if ((fd = open(fname, O_RDONLY)) == -1) { in wait_register()
237 wi->wi_fd = fd; in wait_register()
260 int fd; in wait_thread() local
274 fd = pe.portev_object; in wait_thread()
277 assert(fd == wi->wi_fd); in wait_thread()
282 if (lseek(fd, 0, SEEK_SET) != 0 || in wait_thread()
283 read(fd, &psi, sizeof (psinfo_t)) != in wait_thread()
300 if (port_associate(port_fd, PORT_SOURCE_FD, fd, in wait_thread()
304 "failed\n", fd, wi->wi_fmri); in wait_thread()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c61 int fd; in main() local
84 fd = open64(dev, pflag ? O_RDONLY : O_RDWR); in main()
85 if (fd == -1) { in main()
97 if ((n = read(fd, (char *)fs, SBSIZE)) != SBSIZE) { in main()
138 if (llseek(fd, seekaddr, 0) == -1) { in main()
145 n = read(fd, (char *)dibuf, bsize); in main()
162 if (llseek(fd, seekaddr, 0) == -1) { in main()
170 n = write(fd, (char *)dibuf, bsize); in main()
189 if ((n = write(fd, (char *)fs, SBSIZE)) != SBSIZE) { in main()
198 if (llseek(fd, seekaddr, 0) == -1) { in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/ldprof/common/
H A Dprofile.c118 int fd; in la_version() local
138 (void) close(fd); in la_version()
216 (void) close(fd); in profile_open()
247 (void) close(fd); in profile_open()
294 (void) close(fd); in profile_open()
309 (void) close(fd); in profile_open()
312 (void) close(fd); in profile_open()
437 remap_profile(int fd) in remap_profile() argument
503 int fd; in plt_cg_interp() local
510 (void) close(fd); in plt_cg_interp()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsignalfd.c23 signalfd(int fd, const sigset_t *mask, int flags) in signalfd() argument
25 int origfd = fd; in signalfd()
27 if (fd == -1) { in signalfd()
41 if ((fd = open("/dev/signalfd", oflags)) < 0) in signalfd()
45 if (ioctl(fd, SIGNALFDIOC_MASK, mask) != 0) { in signalfd()
48 (void) close(fd); in signalfd()
59 return (fd); in signalfd()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c93 int fd = 0; in g_get_lun_str() local
235 int fd; in get_pathlist() local
295 close(fd); in get_pathlist()
314 close(fd); in get_pathlist()
341 close(fd); in get_pathlist()
352 close(fd); in get_pathlist()
364 close(fd); in get_pathlist()
544 close(fd); in g_get_pathcount()
620 close(fd); in g_failover()
664 int fd; in stms_path_enable_disable() local
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_api.c77 smbfs_acl_iocget(int fd, uint32_t selector, mbdata_t *mbp) in smbfs_acl_iocget() argument
97 if (nsmb_ioctl(fd, SMBFSIO_GETSD, &iocb) < 0) { in smbfs_acl_iocget()
112 smbfs_acl_iocset(int fd, uint32_t selector, mbdata_t *mbp) in smbfs_acl_iocset() argument
135 if (nsmb_ioctl(fd, SMBFSIO_SETSD, &iocb) < 0) in smbfs_acl_iocset()
157 error = smbfs_acl_iocget(fd, selector, mbp); in smbfs_acl_getsd()
175 smbfs_acl_setsd(int fd, uint32_t selector, i_ntsd_t *sd) in smbfs_acl_setsd() argument
195 error = smbfs_acl_iocset(fd, selector, mbp); in smbfs_acl_setsd()
240 error = smbfs_acl_getsd(fd, selector, &sd); in smbfs_acl_get()
279 smbfs_acl_set(int fd, acl_t *acl, uid_t uid, gid_t gid) in smbfs_acl_set() argument
309 if (fstat(fd, &st) != 0) in smbfs_acl_set()
[all …]
H A Dfile.c72 smb_fh_close(int fd) in smb_fh_close() argument
74 (void) nsmb_ioctl(fd, SMBIOC_CLOSEFH, NULL); in smb_fh_close()
75 return (nsmb_close(fd)); in smb_fh_close()
144 int fd = -1; in smb_fh_open() local
205 fd = smb_fh_ntcreate(ctx, ntpath, in smb_fh_open()
210 return (fd); in smb_fh_open()
214 smb_fh_read(int fd, off64_t offset, size_t count, in smb_fh_read() argument
223 if (nsmb_ioctl(fd, SMBIOC_READ, &rwrq) == -1) { in smb_fh_read()
239 if (nsmb_ioctl(fd, SMBIOC_WRITE, &rwrq) == -1) { in smb_fh_write()
254 smb_fh_xactnp(int fd, in smb_fh_xactnp() argument
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_fio.c56 getf(int fd) in getf() argument
61 if (fd >= FAKEFDS) in getf()
65 if ((fp = ftab[fd]) != NULL) { in getf()
73 vp->v_fd = fd; in getf()
76 ftab[fd] = fp; in getf()
84 releasef(int fd) in releasef() argument
90 if ((fp = ftab[fd]) == NULL) { in releasef()
99 ftab[fd] = NULL; in releasef()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c268 int fd; in ppp_available() local
525 int fd; in sys_extra_fd() local
857 int fd; in giflags() local
950 int fd; in establish_ppp()
1040 int fd; in disestablish_ppp()
1307 int fd; in restore_tty()
1446 int fd; in add_fd()
1454 if (pollfds[n].fd == fd) {
1459 pollfds[n_pollfds].fd = fd;
1474 int fd; in remove_fd()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dkvatoname.c12 int fd; local
16 fd = -1;
19 fd = open(IPL_NAME, O_RDONLY);
20 if (fd == -1)
23 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
24 if (fd >= 0)
25 close(fd);
H A Dnametokva.c11 int fd; local
15 fd = -1;
18 fd = open(IPL_NAME, O_RDONLY);
19 if (fd == -1)
22 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
23 if (fd >= 0)
24 close(fd);
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c325 FILE *fd; in getprivs() local
343 (void) fclose(fd); in getprivs()
349 FILE *fd; in putprivs() local
358 if (fd == NULL) { in putprivs()
499 FILE *fd; in gettimes() local
522 FILE *fd; in puttimes() local
529 if (fd == NULL) { in puttimes()
704 int fd; in getdiscq() local
748 int fd; in putdiscq() local
814 int fd; in quotactl() local
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c718 int fd; in getdiskbydev() local
720 if ((fd = open64(disk, 0)) < 0) { in getdiskbydev()
767 if (ioctl(fd, DKIOCGGEOM, &g)) in getdiskbydev()
821 (void) close(fd); in getdiskbydev()
981 int fd, rc; in validate_size() local
993 (void) close(fd); in validate_size()
1086 int fd; in notrand() local
1094 (void) close(fd); in notrand()
1106 (void) close(fd); in notrand()
1111 (void) close(fd); in notrand()
[all …]
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/
H A Dtty47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
92 # define tcgetattr(fd,tty) gtty(fd, tty)
93 # define tcsetattr(fd,action,tty) stty(fd, tty)
/illumos-gate/usr/src/cmd/tzreload/
H A Dtzreload.c52 static void counter_set(int fd);
117 int fd, pgsz; in init_file() local
130 if ((fd = mkstemp(path)) == -1) { in init_file()
139 (void) close(fd); in init_file()
150 (void) close(fd); in init_file()
192 int fd; in doit() local
209 counter_get(zname, fd); in doit()
211 counter_set(fd); in doit()
216 (void) close(fd); in doit()
250 counter_set(int fd) in counter_set() argument
[all …]
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/
H A Dtty47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
92 # define tcgetattr(fd,tty) gtty(fd, tty)
93 # define tcsetattr(fd,action,tty) stty(fd, tty)
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/
H A Dtty47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
92 # define tcgetattr(fd,tty) gtty(fd, tty)
93 # define tcsetattr(fd,action,tty) stty(fd, tty)
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/
H A Dtty47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
92 # define tcgetattr(fd,tty) gtty(fd, tty)
93 # define tcsetattr(fd,action,tty) stty(fd, tty)

12345678910>>...84