/osnet-11/usr/src/lib/libvscan/common/ |
H A D | libvscan.c | 1435 vs_door_call(int fd, door_arg_t *arg) argument 1443 if ((rc = door_call(fd, arg)) == 0)
|
/osnet-11/usr/src/lib/libzfs/common/ |
H A D | libzfs_vdev.c | 297 int fd; local 314 if ((fd = open64(file, O_RDONLY)) < 0) { 321 if (zpool_in_use(hdl, fd, &state, &name, &inuse) == 0 && inuse) { 370 (void) close(fd); 387 int fd; local 392 if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) 394 if (efi_alloc_and_init(fd, EFI_NUMPAR, &label) != 0) { 395 (void) close(fd); 399 (void) close(fd); 595 int fd; local 681 int fd, err; local 1007 int fd; local 1106 int fd; local [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_db.c | 174 int fd, 219 if (lseek(fd, (off_t)(startblk * DEV_BSIZE), SEEK_SET) < 0) { 225 if (write(fd, buffer, iosize) != iosize) { 230 if (lseek(fd, (off_t)(startblk * DEV_BSIZE), SEEK_SET) < 0) { 235 if (read(fd, buffer, iosize) != iosize) { 290 if (devid_get(fd, &devid) == 0) { 306 if (lseek(fd, (off_t)(firstblk * DEV_BSIZE), SEEK_SET) < 0) { 311 if (write(fd, mb, DEV_BSIZE) != DEV_BSIZE) { 316 if (lseek(fd, (off_t)(firstblk * DEV_BSIZE), SEEK_SET) < 0) { 321 if (read(fd, m 171 mkmasterblks( mdsetname_t *sp, mdname_t *np, int fd, daddr_t firstblk, int dbsize, md_timeval32_t inittime, md_error_t *ep ) argument 338 meta_mkdummymaster( mdsetname_t *sp, int fd, daddr_t firstblk ) argument 1126 int ret = 1, fd; local 1454 int fd; local 1796 int fd = -1; local [all...] |
H A D | meta_metad.c | 367 int fd; local 370 if ((fd = open(rname, O_RDWR | O_NDELAY, 0)) < 0) 373 if (devid_get(fd, &devid) == -1) { 374 (void) close(fd); 377 (void) close(fd);
|
H A D | meta_statconcise.c | 1548 int fd, 1578 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) { 1583 if (read(fd, rbp_tmp, DEV_BSIZE) != DEV_BSIZE) { 1748 int fd, 1765 if ((rval = read_database_block(ep, fd, mbp, dbblk, 1841 rsp->cname, fd, lastaccess, ep); 1871 int fd, 1882 rval = read_all_mdrecords(&mdimp, mb, lbp, nm, rsp, fd, lastaccess, 1542 read_mdrecord( md_im_rec_t **mdimpp, mddb_mb_t *mbp, mddb_rb_t *nm, mddb_de_t *dep, char *diskname, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument 1742 read_all_mdrecords( md_im_rec_t **mdimpp, mddb_mb_t *mbp, mddb_lb_t *lbp, mddb_rb_t *nm, mdname_t *rsp, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument 1865 report_metastat_info( mddb_mb_t *mb, mddb_lb_t *lbp, mddb_rb_t *nm, pnm_rec_t **pnm, mdname_t *rsp, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument
|
/osnet-11/usr/src/lib/mpapi/libmpapi/common/ |
H A D | mpapi.c | 88 static int lock_register(int fd, int cmd, int type, off_t offset, int whence, 3317 #define CLEANUP_N_RET(fd, ret) \ 3318 if (lock_register(fd, F_SETLK, F_UNLCK, 0, SEEK_SET, 0) < 0) { \ 3319 close(fd); \ 3322 close(fd); \ 3327 * fd, which is a file descriptor. The lock is set using fcntl() which uses 3331 lock_register(int fd, int cmd, int type, off_t offset, int whence, off_t len) argument 3340 return (fcntl(fd, cmd, &lock));
|
/osnet-11/usr/src/lib/nsswitch/files/common/ |
H A D | files_common.c | 60 int fd; local 91 fd = openat(dirfd(be->dir), LOCALFILE, O_RDONLY); 92 if (fd >= 0) { 93 be->f = fdopen(fd, "rF"); 96 (void) close(fd); 113 fd = openat(dirfd(be->dir), dp->d_name, O_RDONLY); 115 if (fd < 0) 118 be->f = fdopen(fd, "rF"); 123 (void) close(fd); 139 int fd; local [all...] |
/osnet-11/usr/src/lib/nsswitch/pynss/common/ |
H A D | nssbase.py | 198 self.tmpfd = None # Temp fd 217 self.tmpfd = None # Temp fd 576 fd = self.open_tmp() variable 577 self.traceit('open fd= ', fd) 578 if fd == None: # Unable to create temp file 584 fd.write(data)
|
/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/ |
H A D | kmsKeystoreUtil.c | 192 flock_fd(int fd, int cmd, pthread_mutex_t *mutex) argument 200 while ((ret = fcntl(fd, F_SETLKW, &fl)) == -1) { 215 int fd; local 217 fd = open_nointr(filename, mode|O_NONBLOCK); 218 if (fd < 0) 219 return (fd); 221 if (flock_fd(fd, cmd, mutex)) { 222 if (fd > 0) 223 (void) close(fd); 227 return (fd); 231 kms_slurp_fd(int fd, char *buf, size_t buflen) argument 247 int fd, total = 0; local 1057 int fd; local [all...] |
/osnet-11/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_ibtf_util.c | 83 /* since cq handle is where the evd fd gets stored. */ 1982 int fd; member in struct:dapls_ib_dbp_page_s 1988 uint32_t *dapls_ib_get_dbp(uint64_t maplen, int fd, uint64_t mapoffset, argument 1999 cur_page->fd == fd) { 2012 maplen, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, mapoffset); 2020 new_page->fd = fd;
|
/osnet-11/usr/src/lib/libpp/common/ |
H A D | pplib.h | 154 short fd; /* file descriptor */ member in struct:ppinstk
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 63 static int minfd; /* minimum file descriptor returned by dupfd(fd, 0) */ 124 int fd; local 126 if ((fd = minfd) < 256) { 128 if ((fd = minfd) < 256) { 132 fd = 256; 133 else if ((fd = rlim.rlim_cur / 2) < 3) 134 fd = 3; 136 minfd = fd; 140 return (fd); 144 dupfd(int fd, in argument 189 int fd; local 518 int fd, omode; local 1297 int fd; local 1817 int fd; local 2689 int fd; local 2964 int fd; local [all...] |
H A D | Psymtab.c | 862 int fd; local 877 if ((fd = open(auxfile, O_RDONLY)) < 0) 880 if (fstat(fd, &statb) == 0 && 883 if ((naux = read(fd, P->auxv, statb.st_size)) < 0 || 894 (void) close(fd);
|
/osnet-11/usr/src/lib/libprtdiag/common/ |
H A D | display_sun4v.c | 195 static uint32_t read_long(int fd, int bus, int dev, int func, 197 static uint8_t read_byte(int fd, int bus, int dev, int func, int offset, 199 static uint16_t read_word(int fd, int bus, int dev, int func, int offset, 2293 int path_size, fd; local 2305 fd = open(path, O_RDWR); 2307 return (fd); 2311 read_long(int fd, int bus, int dev, int func, int offset, int *ret) argument 2324 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg); 2334 read_word(int fd, int bus, int dev, int func, int offset, int *ret) argument 2347 rval = ioctl(fd, PCITOOL_DEVICE_GET_RE 2357 read_byte(int fd, int bus, int dev, int func, int offset, int *ret) argument 2386 int fd, ret; local [all...] |
/osnet-11/usr/src/lib/libshell/common/edit/ |
H A D | edit.c | 158 * This routine returns true if fd refers to a terminal 161 int tty_check(int fd) argument 166 return(tty_get(fd,&tty)==0); 175 int tty_get(register int fd, register struct termios *tty) argument 178 if(fd == ep->e_savefd) 182 while(tcgetattr(fd,tty) == SYSERR) 192 ep->e_savefd = fd; 200 * If fd<0, then current attributes are invalidated 203 int tty_set(int fd, int action, struct termios *tty) argument 206 if(fd > 232 tty_cooked(register int fd) argument 264 tty_raw(register int fd, int echomode) argument 392 tty_alt(register int fd) argument 440 tty_alt(register int fd) argument 541 register int fd = ERRIO; local 588 ed_setup(register Edit_t *ep, int fd, int reedit) argument 806 ed_read(void *context, int fd, char *buff, int size, int reedit) argument 1490 tcgetattr(int fd, struct termios *tt) argument 1512 tcsetattr(int fd,int mode,struct termios *tt) argument [all...] |
H A D | vi.c | 207 /*+ VI_READ( fd, shbuf, nchar ) 217 int ed_viread(void *context, int fd, register char *shbuf, int nchar, int reedit) argument 251 ed_setup(vp->ed,fd, reedit); 260 return(reexit?reedit:ed_read(context, fd, shbuf, nchar,0)); 263 ioctl(fd,FIORDCHK,&vp->typeahead); 275 i = ed_read(context, fd, shbuf, nchar, 0); 358 return(reedit?reedit:ed_read(context, fd, shbuf, nchar,0));
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 204 * return <protocol>/<host>/<service> fd 215 int fd; local 269 fd = getaddrinfo(s, t, &hint, &addr); 272 fd = -1; 274 if (fd) 276 if (fd != EAI_SYSTEM) 282 fd = -1; 293 while ((fd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) >= 0) 295 if (server && !bind(fd, p->ai_addr, p->ai_addrlen) && !listen(fd, 360 int fd; member in struct:Eof 400 sh_iovalidfd(Shell_t *shp, int fd) argument 434 sh_inuse(Shell_t *shp, int fd) argument 511 sh_iostream(Shell_t *shp, register int fd) argument 589 register int fd; local 683 sh_close(register int fd) argument 736 register int fd = -1; local 861 register int fd = sh_open(name,O_RDONLY,0); local 895 int fd[2]; local 912 int fd = accept(pv[0],(struct sockaddr*)0,(socklen_t*)0); local 988 int r, fd, close_exec; local 1073 int fd; local 1129 register int fd, iof; local 1546 register int fd; local 1697 register int fd, savefd, newfd; local 1717 register int origfd, savefd, fd; local 1792 sh_ioaccess(int fd,register int mode) argument 1898 int fd = sffileno(iop); local 2005 sh_iocheckfd(Shell_t *shp, register int fd) argument 2176 register int fd = sffileno(sp); local 2466 sh_read(register int fd, void* buff, size_t n) argument 2482 sh_write(register int fd, const void* buff, size_t n) argument 2498 sh_seek(register int fd, off_t offset, int whence) argument 2514 register int fd = dup(old); local 2530 sh_fcntl(register int fd, int op, ...) argument 2578 sh_iogetiop(int fd, int mode) argument 2632 sh_fd2sfio(int fd) argument 2669 sh_isdevfd(register const char *fd) argument [all...] |
H A D | macro.c | 2083 register int fd; local 2091 fd = sh_redirect(mp->shp,ip,3); 2093 fd = sh_chkopen(e_devnull); 2097 VALIDATE_FD(mp->shp, fd); 2098 if(sp=mp->shp->sftable[fd]) 2101 num = lseek(fd, (off_t)0, SEEK_CUR); 2104 sp = sfnew(NIL(Sfio_t*),(char*)malloc(IOBSIZE+1),IOBSIZE,fd,SF_READ|SF_MALLOC);
|
/osnet-11/usr/src/lib/libsldap/common/ |
H A D | ns_common.c | 762 int fd = 0; local 766 if ((fd = open(UDP, O_RDONLY)) < 0) 769 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0) { 775 (void) close(fd); 780 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) { 781 (void) close(fd); 791 (void) close(fd); 801 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifreq) < 0) 809 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifreq) < 0) 813 if (ioctl(fd, SIOCGIFADD [all...] |
H A D | ns_connmgmt.c | 410 int fd; local 413 if ((fd = open(fname, O_RDONLY)) >= 0) { 414 ret = read(fd, &pinfo, sizeof (psinfo_t)); 415 (void) close(fd);
|
/osnet-11/usr/src/lib/libkmf/libkmf/common/ |
H A D | certop.c | 1524 int fd, temp_fd; local 1576 if ((fd = open(crlfilename, O_RDONLY)) != -1) { 1577 (void) close(fd); 2657 int fd = -1; local 2676 if ((fd = open(certfile, O_CREAT | O_RDWR | O_TRUNC, 0644)) == -1) { 2682 if (write(fd, pemdata.Data, pemdata.Length) != 2687 if (write(fd, certdata->Data, certdata->Length) != 2694 if (fd != -1) 2695 (void) close(fd);
|
H A D | generalop.c | 678 int fd; local 693 if ((fd = open(filename, O_RDONLY)) < 0) { 698 if (fstat(fd, &s) < 0) { 700 (void) close(fd); 705 (void) close(fd); 714 (void) close(fd); 720 nread = read(fd, buf+total, amount_to_read - total); 723 (void) close(fd); 732 (void) close(fd);
|
/osnet-11/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 790 int fd; local 793 fd = open(filename, O_RDONLY); 794 if (!fd) 797 count = read(fd, buf, sizeof (buf)); 802 (void) close(fd);
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | svc.c | 117 static void add_pollfd(int fd, short events); 118 static void remove_pollfd(int fd); 119 static void __svc_remove_input_of_fd(int fd); 125 * - one callback we call if the fd pops, 130 * only one callback may be associated to a couple (fd, event). 144 int fd; member in struct:_svc_user_fd_node 281 int fd = pfd->fd; local 288 if ((fd < 0) || (fd > 346 __is_a_userfd(int fd) argument 390 __svc_remove_input_of_fd(int fd) argument 508 int fd; /* caching optim */ local 599 add_pollfd(int fd, short events) argument 660 clear_pollfd(int fd) argument 679 set_pollfd(int fd, short events) argument 699 remove_pollfd(int fd) argument 715 delete_pollfd(int fd) argument 739 int fd = xprt->xp_fd; local 827 int fd = xprt->xp_fd; local 1323 svc_getreq_common(const int fd) argument [all...] |
/osnet-11/usr/src/lib/libpam/ |
H A D | pam_framework.c | 369 traverse = pamh->fd; 376 pamh->fd = 0; 1609 int fd; local 1662 if ((fd = open(conf_path, O_RDONLY)) == -1) { 1668 (void) close(fd); 1976 /* add this fd to the pam handle */ 1984 if (pamh->fd == 0) { 1986 pamh->fd = module_fds; 1989 traverse = pamh->fd; 2041 int fd; local 2864 nl_catd fd; member in struct:pam_msg_data [all...] |