Searched defs:fd (Results 426 - 450 of 648) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_set_drv.c522 int fd = -1; local
559 if ((fd = open(np->rname, O_RDWR)) >= 0) {
560 meta_mkdummymaster(sp, fd, 16);
561 (void) close(fd);
H A Dmeta_set_tkr.c326 int fd = -1; local
363 if ((fd = open(rsp->rname, O_RDWR)) < 0)
377 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0)
380 if (read(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
394 meta_mkdummymaster(sp, fd, 16);
447 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET)
451 if (write(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
457 (void) close(fd);
463 if (fd != -1)
464 (void) close(fd);
621 int fd = -1; local
[all...]
/osnet-11/usr/src/lib/mpss/common/
H A Dmpss.c116 int fd = open("/proc/self/auxv", O_RDONLY); local
118 if (fd >= 0) {
119 while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
125 (void) close(fd);
256 int fd; local
262 fd = open("/proc/self/psinfo", O_RDONLY);
264 if (fd >= 0) {
265 if (read(fd, &pi, sizeof (pi)) == sizeof (pi)) {
281 (void) close(fd);
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dloadsave.c319 lockfile(int fd, int op) argument
322 return (fcntl(fd, F_SETLKW, &fl));
/osnet-11/usr/src/lib/sasl_plugins/cram/
H A Dcram.c163 int fd = open(_DEV_URANDOM, O_RDONLY); local
166 if (fd != -1) {
167 nread = read(fd, temp, 4);
168 close(fd);
/osnet-11/usr/src/lib/storage/liba5k/common/
H A Dlhot.c404 int fd, front_index, rear_index, offset, err; local
416 if ((fd = g_object_open(ses_path, O_NDELAY | O_RDWR)) == -1) {
421 if ((err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH,
424 (void) close(fd);
433 (void) close(fd);
463 (void) close(fd);
469 (void) close(fd);
500 err = g_scsi_send_diag_cmd(fd, (uchar_t *)page_buf, page_len);
502 (void) close(fd);
534 int fd, ses_pi local
[all...]
/osnet-11/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c93 int fd = 0; local
120 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) {
141 (void) close(fd);
146 retval = ioctl(fd, SCSI_VHCI_GET_CLIENT_MULTIPATH_INFO, &ioc);
150 (void) close(fd);
171 (void) close(fd);
235 int fd; local
291 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) {
295 retval = ioctl(fd, SCSI_VHCI_GET_CLIENT_MULTIPATH_INFO, ioc);
297 close(fd);
506 int fd = -1; local
572 int fd = 0, ret = 0; local
666 int fd; local
764 int fd; local
[all...]
/osnet-11/usr/src/lib/libprtdiag/common/
H A Dio.c436 int fd = -1; local
459 fd = open(device, O_RDWR, 0666);
465 if (fd == -1)
468 if (ioctl(fd, FFB_SYS_INFO, &fsi) < 0)
/osnet-11/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl_picl.c75 static uint32_t read_long(int fd, int bus, int dev, int func,
77 static uint8_t read_byte(int fd, int bus, int dev, int func, int offset,
79 static uint16_t read_word(int fd, int bus, int dev, int func, int offset,
555 int fd; local
565 if ((fd = open(path, O_RDWR)) == -1) {
568 return (fd);
572 read_long(int fd, int bus, int dev, int func, int offset, int *ret) argument
585 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
595 read_word(int fd, int bus, int dev, int func, int offset, int *ret) argument
608 rval = ioctl(fd, PCITOOL_DEVICE_GET_RE
618 read_byte(int fd, int bus, int dev, int func, int offset, int *ret) argument
647 int fd, ret; local
[all...]
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Dctl_clnt.c203 (*ctx->logger)(ctl_error, "%s: evConnect(fd %d): %s",
404 conn_done(evContext ev, void *uap, int fd, argument
419 if (fd < 0) {
443 write_done(evContext lev, void *uap, int fd, int bytes) { argument
448 UNUSED(fd);
470 (*ctx->logger)(ctl_error, "%s: evSelect(fd %d): %s", me,
486 readable(evContext ev, void *uap, int fd, int evmask) { argument
496 REQUIRE(fd >= 0);
H A Dctl_srvr.c257 (*ctx->logger)(ctl_error, "%s: evListen(fd %d): %s",
402 ctl_accept(evContext lev, void *uap, int fd, argument
415 if (fd < 0) {
425 (void) close(fd);
432 (void) close(fd);
435 if (fcntl(fd, F_SETFD, 1) < 0) {
443 sess->sock = fd;
462 (*ctx->logger)(ctl_debug, "%s: %s: accepting (fd %d)",
513 (*ctx->logger)(ctl_debug, "%s: %s: closed (fd %d)",
567 ctl_readable(evContext lev, void *uap, int fd, in argument
720 ctl_writedone(evContext lev, void *uap, int fd, int bytes) argument
[all...]
/osnet-11/usr/src/lib/libsec/common/
H A Daclutils.c49 int fd; member in union:__anon2487
101 int fd; local
115 fd = inp.fd;
116 ace_acl = fpathconf(fd, _PC_ACL_ENABLED);
143 acl_info->acl_cnt = facl(fd, cntcmd, 0, NULL);
174 stat_error = fstat64(fd, &statbuf);
175 error = facl(fd, getcmd, acl_info->acl_cnt,
233 facl_get(int fd, int get_flag, acl_t **aclp) argument
237 acl_inp.fd
309 facl_set(int fd, acl_t *aclp) argument
[all...]
/osnet-11/usr/src/lib/libshadowfs/common/
H A Dshadow_migrate.c94 int fd; local
107 if ((fd = open(path, O_RDONLY)) < 0)
110 if (fstat64(fd, &statbuf) != 0) {
111 (void) close(fd);
116 (void) close(fd);
120 if (read(fd, &header, sizeof (header)) < sizeof (header)) {
121 (void) close(fd);
127 (void) close(fd);
135 (void) close(fd);
151 (void) close(fd);
223 int fd; local
541 int fd; local
607 shadow_migrate_fd(int fd, uint64_t *size) argument
631 int fd; local
711 int fd; local
740 int fd; local
[all...]
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dprint.c144 register int exitval=0,n, fd = 1; local
174 fd = shp->coutpipe;
184 fd = sffileno(shp->gd->hist_ptr->histfp);
195 fd = (int)strtol(opt_info.arg,&opt_info.arg,10);
197 fd = -1;
198 else if(!sh_iovalidfd(shp,fd))
199 fd = -1;
200 else if(!(shp->inuse_bits&(1<<fd)) && (sh_inuse(shp,fd) || (shp->gd->hist_ptr && fd
[all...]
H A Dshiocmd_solaris.c396 int fd; member in struct:filedata
405 { "fd", NV_INTEGER|NV_RDONLY, offsetof(struct filedata,fd), sizeof(int)},
437 "\avar\a\b.fd\b is the file descriptor.]"
498 int fd = -1; local
572 fd = sh_open(argv[1], oflag, mode);
573 if(fd<0)
577 fcntl(fd, F_SETFL, 0);
584 fstat(fd, &fdp->statb);
585 fdp->fd
609 int fd = -1; local
669 int ffd, fd = -1; local
744 int ffd, fd = -1; local
881 int fd = -1; local
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dargs.c793 int fd[2]; local
794 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0)
810 int monitor, fd, pv[3]; local
818 fd = argp->argflag&ARG_RAW;
819 if(fd==0 && shp->subshell)
821 sfputr(shp->stk,fmtbase((long)pv[fd],10,0),0);
827 if(fd)
840 close(pv[1-fd]);
[all...]
H A Dsubshell.c84 short pipefd; /* read fd if pipe is created */
114 register int fd; local
118 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0)
120 fcntl(fd,F_SETFD,FD_CLOEXEC);
121 VALIDATE_FD(shp, fd);
122 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX;
129 if((fd=sffileno(sfstdout))<0)
148 VALIDATE_FD(shp, fd);
149 shp->fdstatus[fd] = IOREAD|IOWRITE;
151 if(fd
425 sh_subsavefd(register int fd) argument
628 int fd=sfsetfd(iop,3); local
[all...]
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_net.c223 pfd[0].fd = sockfd;
259 /* only using one fd, so no need to scan pfd */
705 int fd, i, num_givenifs; local
770 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
779 (*fds)[i].fd = fd;
791 /* bind fd to interface */
792 if (bind(fd, (struct sockaddr *)bcsin,
802 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF,
847 if ((fd
[all...]
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_ctx.c855 int fd; local
857 fd = open("/dev/"NSMB_NAME, O_RDWR);
858 if (fd < 0) {
863 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
865 return (fd);
871 int fd, err; local
881 fd = smbfs_open_driver();
882 if (fd < 0) {
892 if (ioctl(fd, SMBIOC_GETVERS, &version) < 0)
897 (void) close(fd);
[all...]
/osnet-11/usr/src/lib/libkmf/libkmf/common/
H A Dclient.c180 looping_write(int fd, void *buf, int len) argument
188 cc = write(fd, p, len);
251 pfd.fd = sock;
666 int fd = -1, tmpfd = -1; local
675 if ((fd = open(crlfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
724 if (fd != -1)
725 (void) close(fd);
740 int fd = -1, tmpfd = -1; local
749 if ((fd = open(certfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1)
799 if (fd !
[all...]
/osnet-11/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_conf.c79 static config_key get_file_attr_val(int fd, char **attr_val);
374 int fd; local
378 if ((fd = open(config_file, O_RDONLY)) == -1) {
391 while ((attrib_num = get_file_attr_val(fd, &attr_val)) > 0) {
426 (void) close(fd);
447 get_file_attr_val(int fd, char **attr_val) argument
463 if ((ret = read_line(fd, buf, sizeof (buf))) > 0) {
/osnet-11/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c783 __nis_clnt_create(int fd, struct netconfig *nc, char *uaddr, argument
822 clnt = clnt_tli_create(fd, nc, addr, prog, ver, outbuf, inbuf);
825 if (clnt_control(clnt, CLGET_FD, (char *)&fd))
827 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c94 __inet_netdir_options(struct netconfig *tp, int opts, int fd, char *par) argument
104 return (bindresvport(tp, fd, (struct netbuf *)par));
894 bindresvport(struct netconfig *nconf, int fd, struct netbuf *addr) argument
920 if ((i = t_getstate(fd)) != T_UNBND) {
951 if (t_getinfo(fd, &tinfo) == -1)
953 tres = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
990 if (t_optmgmt(fd, &req, &resp) < 0 || resp.flags != T_SUCCESS) {
999 res = t_bind(fd, &tbindstr, tres);
1018 if (t_optmgmt(fd, &req, &resp) < 0 || resp.flags != T_SUCCESS) {
1021 (void) t_unbind(fd);
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dkey_call.c769 int fd; /* client handle fd */ member in struct:key_call_private
826 int fd; local
837 /* Update fd in kcp because it was reopened in _update_did */
838 if (clnt_control(kcp->client, CLGET_FD, (void *)&fd) &&
839 (fd >= 0))
840 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); /* close exec */
841 kcp->fd = fd;
850 (void) fcntl(kcp->fd, F_SETF
976 int fd; local
[all...]
H A Drpc_soc.c78 int fd = *sockp; local
91 if (fd == RPC_ANYSOCK) {
92 fd = t_open(nconf->nc_device, O_RDWR, &tinfo);
93 if (fd == -1)
95 RPC_RAISEFD(fd);
98 if (t_getinfo(fd, &tinfo) == -1)
123 (void) __rpc_bindresvport(fd, NULL, &port, 0);
124 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers,
129 * The fd should be closed while destroying the handle.
132 *sockp = fd;
192 svc_com_create(int fd, uint_t sendsize, uint_t recvsize, char *netid) argument
236 svctcp_create(int fd, uint_t sendsize, uint_t recvsize) argument
242 svcudp_bufcreate(int fd, uint_t sendsz, uint_t recvsz) argument
248 svcfd_create(int fd, uint_t sendsize, uint_t recvsize) argument
255 svcudp_create(int fd) argument
274 __rpc_bindresvport_ipv6(int fd, struct sockaddr *sin, int *portp, int qlen, char *fmly) argument
362 __rpc_bindresvport(int fd, struct sockaddr_in *sin, int *portp, int qlen) argument
512 int fd; local
[all...]

Completed in 59 milliseconds

<<11121314151617181920>>