Searched defs:fd (Results 501 - 525 of 648) sorted by relevance

<<212223242526

/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Deventlib_p.h79 int fd; member in struct:evConn
83 #define EV_CONN_BLOCK 0x0004 /*%< Listener fd was blocking. */
90 int fd; member in struct:evAccept
115 int fd; member in struct:evFile
131 int fd; member in struct:evStream
191 extern short *__fd_eventfield(int fd, __evEmulMask *maskp);
193 extern void __fd_clr(int fd, __evEmulMask *maskp);
194 extern void __fd_set(int fd, __evEmulMask *maskp);
200 #define FD_SET(fd, maskp) \
201 __fd_set(fd, mask
[all...]
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c418 int fd; local
431 fd = EXT(statp).nssocks[0];
453 EXT(statp).nssocks[lastns] = fd;
1020 pollfd.fd = s;
/osnet-11/usr/src/lib/libshell/common/edit/
H A Demacs.c178 int ed_emacsread(void *context, int fd,char *buff,int scend, int reedit) argument
203 return(reedit?reedit:ed_read(context, fd,buff,scend,0));
208 ed_setup(ep->ed,fd,reedit);
H A Dhistory.c181 int id1, id2, r=0, n, fd; local
182 if((fd=open(name, O_RDONLY)) < 0)
184 if((n = read(fd, logbuf,len-1)) < 0)
206 close(fd);
230 register int fd; local
266 if((fd=open(cp,O_BINARY|O_APPEND|O_RDWR|O_CREAT,histmode))>=0)
268 hsize=lseek(fd,(off_t)0,SEEK_END);
270 if((unsigned)fd <=2)
273 if((n=fcntl(fd,F_DUPFD,10))>=0)
275 close(fd);
436 hist_check(register int fd) argument
448 hist_clean(int fd) argument
470 int fd; local
729 int fd = open(hp->histname,O_RDWR); local
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Djobs.c158 int tcsetpgrp(int fd,pid_t pgrp) argument
162 return(ioctl(fd, TIOCSPGRP, &pgid));
585 job.fd = JOBTTY;
620 register int fd; local
628 if((fd = open(ttynam,O_RDWR)) <0)
630 if(fd!=JOBTTY)
631 sh_iorenumber(shp,fd,JOBTTY);
767 tcsetpgrp(job.fd,job.mypgid);
774 tty_get(job.fd,&my_stty);
775 if (ioctl(job.fd, FIOPOPL
[all...]
H A Dpath.c537 register int fd= -1; local
554 if((fd = sh_open(path_relative(shp,stakptr(PATH_OFFSET)),O_RDONLY,0)) >= 0)
556 if(fstat(fd,&statb)<0 || S_ISDIR(statb.st_mode))
559 sh_close(fd);
560 fd = -1;
564 while( fd<0 && pp);
565 if(fd>=0 && (fd = sh_iomovefd(fd)) > 0)
567 fcntl(fd,F_SETF
901 register int fd=0; local
1372 int fd; local
1476 int k,m,n,fd; local
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_cfg.c1413 int fd, status; local
1418 fd = open(path, O_RDONLY);
1419 if (fd < 0)
1422 status = fstat(fd, &buffer);
1423 (void) close(fd);
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Ddigest_md5.c109 int fd; local
123 fd = open("/dev/urandom", O_RDONLY);
124 if (fd != -1) {
126 (read(fd, &r, sizeof (r)) == sizeof (r));
127 close(fd);
H A Dos-ip.c117 static int nsldapi_add_to_os_pollfds( int fd,
119 static int nsldapi_clear_from_os_pollfds( int fd,
121 static int nsldapi_find_in_os_pollfds( int fd,
331 /* connects. If the connect fails, the exception fd, eset, is */
1227 * returns 1 if "fd" was added to pollfds.
1232 nsldapi_add_to_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip, argument
1237 /* first we check to see if "fd" is already in our pollfds */
1240 if ( pip->ossi_pollfds[ i ].fd == fd ) {
1249 if ( pip->ossi_pollfds[ i ].fd
1296 nsldapi_clear_from_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip, short events ) argument
1324 nsldapi_find_in_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip, short revents ) argument
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Dldapsinit.c165 static int ldapssl_AuthCertificate(void *sessionarg, PRFileDesc *fd,
732 ldapssl_AuthCertificate(void *sessionarg, PRFileDesc *fd, PRBool checkSig, argument
755 cert = SSL_PeerCertificate( fd );
771 hostname = SSL_RevealURL( fd );
/osnet-11/usr/src/lib/libnetcfg/common/
H A Dlibnetcfg_files.c1016 int fd = -1, nverr, ferr; local
1032 fd = netcfg_zopen(tmpdbname, oflag, mode, dbzoneid, &ferr);
1036 fd = open(tmpdbname, oflag, mode);
1041 if (fd < 0)
1044 if ((fp = fdopen(fd, "w")) == NULL) {
1079 (void) close(fd);
/osnet-11/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_util.c629 read_line(int fd, char *buffer, int buflen) argument
643 rc = read(fd, &c, 1);
/osnet-11/usr/src/lib/libnsl/nsl/
H A D_utility.c64 static int _t_adjust_state(int fd, int instate);
65 static int _t_alloc_bufs(int fd, struct _ti_user *tiptr,
74 _t_checkfd(int fd, int force_sync, int api_semantics) argument
80 if (fd < 0) {
86 if ((tiptr = find_tilink(fd)) != NULL) {
100 retval = ioctl(fd, I_FIND, "timod");
131 retval = ioctl(fd, I_PUSH, "timod");
152 tiptr = _t_create(fd, NULL, api_semantics, NULL);
162 (void) ioctl(fd, I_POP, 0);
310 _t_is_event(int fd, struc argument
332 _t_is_ok(int fd, struct _ti_user *tiptr, t_scalar_t type) argument
471 _t_do_ioctl(int fd, char *buf, int size, int cmd, int *retlenp) argument
502 _t_alloc_bufs(int fd, struct _ti_user *tiptr, struct T_info_ack *tsap) argument
838 _t_create(int fd, struct t_info *info, int api_semantics, int *t_capreq_failed) argument
1109 _t_adjust_state(int fd, int instate) argument
1444 _t_expinline_queued(int fd, int *expedited_queuedp) argument
1639 _t_do_postconn_sync(int fd, struct _ti_user *tiptr) argument
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c110 int ct_fd; /* connection's fd */
168 * Change the mode of the underlying fd.
176 * If the underlying fd is already in the required mode,
203 * NB: fd is copied into a private area.
207 * fd should be open and bound.
210 clnt_vc_create(const int fd, struct netbuf *svcaddr, const rpcprog_t prog, argument
213 return (_clnt_vc_create_timed(fd, svcaddr, prog, vers, sendsz,
229 _clnt_vc_create_timed(int fd, struct netbuf *svcaddr, rpcprog_t prog, argument
277 /* Check the current state of the fd. */
278 if ((flag = fcntl(fd, F_GETF
383 _set_tcp_conntime(int fd, int optval) argument
417 _get_tcp_conntime(int fd) argument
451 set_up_connection(int fd, struct netbuf *svcaddr, struct ct_data *ct, const struct timeval *tp) argument
1382 t_rcvall(int fd, char *buf, int len) argument
[all...]
H A Dsvc_vc.c144 "fd > FD_SETSIZE; Use rpc_control(RPC_SVC_USE_POLLFD,...);";
201 * xprt = svc_vc_create(fd, sendsize, recvsize);
205 * fd should be open and bound.
208 svc_vc_create_private(int fd, uint_t sendsize, uint_t recvsize) argument
214 if (RPC_FD_NOTIN_FDSET(fd)) {
236 if (t_getinfo(fd, &tinfo) == -1) {
261 r->t_call = (struct t_call *)t_alloc(fd, T_CALL, T_ADDR | T_OPT);
270 r->t_bind = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
284 xprt->xp_fd = fd;
298 svc_vc_create(const int fd, cons argument
312 int fd = parent->xp_fd; local
399 svc_fd_create_private(int fd, uint_t sendsize, uint_t recvsize) argument
443 svc_fd_create(const int fd, const uint_t sendsize, const uint_t recvsize) argument
486 makefd_xprt(int fd, uint_t sendsize, uint_t recvsize, t_scalar_t tsdu, char *cache) argument
1254 update_timestamps(int fd) argument
1304 int fd = xprt->xp_fd; local
1383 int fd = xprt->xp_fd; local
1504 t_rcvall(int fd, char *buf, int len) argument
1846 fd_is_dead(int fd) argument
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dcrypto.c1258 int fd = -1; local
1271 fd = open(".", O_RDONLY); /* Save current working directory. */
1272 if (fd == -1) {
1293 if (fchdir(fd) == -1)
1297 if (fd != -1)
1298 close(fd);
/osnet-11/usr/src/lib/libpam/
H A Dpam_impl.h196 /* list of open fd's (modules that were dlopen'd) */
223 fd_list *fd; /* module fd's */ member in struct:pam_handle
/osnet-11/usr/src/lib/libpkg/common/
H A Ddstream.c831 int fd2, fd; local
835 int fd2, fd; local
943 fd = 1;
945 fd = 0;
946 fd2 = fcntl(fd, F_DUPFD, fd);
947 (void) close(fd);
948 fcntl(ds_fd, F_DUPFD, fd);
949 if (fd)
955 if ((ds_pp = popen(cmd, fd
[all...]
H A Dkeystore.c2117 int fd; local
2120 fd = open(dest, O_RDWR|O_NONBLOCK);
2121 if (fd == -1) {
2128 if ((fstat(fd, &buf) == -1) || !S_ISREG(buf.st_mode)) {
2130 (void) close(fd);
2136 if (ftruncate(fd, 0) == -1) {
2137 (void) close(fd);
2143 (void) close(fd);
2182 int fd; local
2187 if ((fd
2260 int fd; local
2309 file_lock(int fd, int type, int wait) argument
2336 file_lock_test(int fd, int type) argument
2365 file_unlock(int fd) argument
[all...]
/osnet-11/usr/src/lib/libcpc/common/
H A Dlibcpc.c539 int fd; local
573 * To avoid leaking file descriptors, if we find an existing fd here we
582 if ((fd = open(CPUDRV_SHARED, O_RDWR)) < 0) {
593 if (ioctl(fd, CPCIO_BIND, &cpc_args) != 0) {
595 (void) close(fd);
603 set->cs_fd = fd;
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c1120 int fd; local
1137 if ((fd = open(devlink_path, O_RDONLY|O_NDELAY)) >= 0) {
1144 if (devid_get(fd, &devid) == 0) {
1185 (void) close(fd);
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdladm.c167 int fd; local
170 if ((fd = open(DLMGMT_DOOR, O_RDONLY)) < 0)
172 handle->door_fd = fd;
671 i_dladm_unlock_db(const char *lock_file, int fd) argument
675 if (fd < 0)
683 (void) fcntl(fd, F_SETLKW, &lock);
684 (void) close(fd);
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_link.c60 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \
62 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \
451 dump_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd) argument
540 if (dt_write(dtp, fd, &elf_file,
564 if (dt_write(dtp, fd, &elf_file,
588 dump_elf64(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd) argument
677 if (dt_write(dtp, fd, &elf_file,
697 if (dt_write(dtp, fd, &elf_file,
981 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, argument
994 if (fd >
1014 int fd, i, ndx, eprobe, mod = 0; local
1472 int fd, status, i, cur; local
[all...]
/osnet-11/usr/src/lib/libdtrace_jni/common/
H A Ddtrace_jni.c376 int fd = open("/proc/self/auxv", O_RDONLY); local
378 if (fd >= 0) {
379 while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
385 (void) close(fd);
/osnet-11/usr/src/lib/libipmi/common/
H A Dipmi_lan.c164 int fd; local
167 if ((fd = open("/dev/urandom", O_RDONLY)) < 0)
170 if (read(fd, buf, len) < 0) {
171 (void) close(fd);
174 (void) close(fd);

Completed in 97 milliseconds

<<212223242526