/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | fputs.c | 121 int fd = GET_FD(iop); local 123 while ((num_wrote = write(fd, ptr, (size_t)count)) != count) {
|
/osnet-11/usr/src/lib/libwrap/ |
H A D | update.c | 55 request->fd = va_arg(ap, int); 107 request->fd = -1;
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Pidle.c | 117 int fd; local 120 if ((fd = open64(fname, O_RDONLY)) < 0) { 140 P->asfd = fd; 149 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { 183 fp->file_fd = fd; 277 (void) close(fd);
|
H A D | Plwpregs.c | 69 int fd; local 74 if ((fd = open(fname, O_RDONLY)) >= 0) { 75 if (read(fd, rp, n) > 0) { 76 (void) close(fd); 79 (void) close(fd); 134 int fd; local 173 if ((fd = open(fname, O_WRONLY)) >= 0) { 174 if (writev(fd, iov, 2) > 0) { 175 (void) close(fd); 178 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_nb_ssn.c | 151 int fd = ctx->ct_tran_fd; local 163 cnt = t_rcv(fd, &hdrbuf, sizeof (hdrbuf), &moreflag); 165 err = smbfs_get_xti_err(fd); 201 cnt = t_rcv(fd, buf, len, &moreflag); 203 err = smbfs_get_xti_err(fd); 226 pfd[0].fd = ctx->ct_tran_fd;
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | pmap_clnt.c | 132 int fd = RPC_ANYFD; local 138 &fd, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); 166 int fd = RPC_ANYFD; local 173 client = clnttcp_create(address, PMAPPROG, PMAPVERS, &fd, 50, 500); 199 int fd = RPC_ANYFD; local 207 client = clntudp_create(addr, PMAPPROG, PMAPVERS, rmttimeout, &fd);
|
H A D | clnt_vc.c | 110 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 D | ti_opts.c | 79 __rpc_negotiate_uid(int fd) argument 85 if (ioctl(fd, I_FIND, "tcp") > 0) 93 if (ioctl(fd, I_STR, &strioc) == -1 && 94 __rpc_tli_set_options(fd, SOL_SOCKET, SO_RECVUCRED, 1) == -1) { 103 svc_fd_negotiate_ucred(int fd) argument 105 (void) __rpc_negotiate_uid(fd); 449 __rpc_tli_set_options(int fd, int optlevel, int optname, int optval) argument 514 if (t_optmgmt(fd, &oreq, &ores) < 0 || 552 __rpc_set_mac_options(int fd, const struct netconfig *nconf, rpcprog_t prognum) argument 564 ret = __rpc_tli_set_options(fd, SOL_SOCKE [all...] |
/osnet-11/usr/src/lib/efcode/fcdriver/ |
H A D | load_node.c | 157 int fd; local 164 if ((fd = open(path, 0)) < 0) { 169 if (fstat(fd, &statb) != 0 || read(fd, header, sizeof (header)) < 0) { 172 close(fd); 178 close(fd);
|
/osnet-11/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 113 walk_partitions(int fd, int startsec, uint_t secsz, argument 129 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { 183 find_dos_drive(int fd, int num, uint_t secsz, off_t *offset) argument 190 walk_partitions(fd, 0, secsz, find_dos_drive_cb, &p); 210 get_num_dos_drives(int fd, uint_t secsz) argument 214 walk_partitions(fd, 0, secsz, get_num_dos_drives_cb, &count);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | gtxt.c | 110 int fd; local 160 if ((fd = open(pathname, O_RDONLY)) != -1 && 161 fstat64(fd, &sb) != -1 && 162 (addr = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0L)) != 168 if (fd != -1) 169 (void) close(fd);
|
H A D | mon.c | 363 int fd; local 369 if ((fd = creat(mon_out, 0666)) < 0) 388 ok = (write(fd, (char *)&sum, sizeof (sum)) == sizeof (sum)); 399 ok = (write(fd, p, amt) == amt); 408 ok = (write(fd, p, amt) == amt); 413 (void) close(fd);
|
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_repartition.c | 59 int fd; local 64 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) { 75 fd = open(n, (O_RDONLY|O_NDELAY), 0); 78 if (fd < 0) { 88 ioctl_return = ioctl(fd, DKIOCGGEOM, &geom); 91 (void) close(fd);
|
/osnet-11/usr/src/cmd/ntfsprogs/ |
H A D | ntfsundelete.c | 1501 * @fd: File descriptor to write to 1510 static unsigned int write_data(int fd, const char *buffer, argument 1520 result1 = write(fd, buffer, bufsize); 1528 result2 = write(fd, buffer, bufsize); 1661 int fd = -1; local 1726 fd = open_file(pathname); 1727 if (fd < 0) { 1733 if (write_data(fd, d->data, d->size_data) < d->size_data) { 1735 close(fd); 1739 if (close(fd) < 2024 int fd; local [all...] |
/osnet-11/usr/src/lib/libsqlite/src/ |
H A D | pager.c | 163 OsFile fd, jfd; /* File descriptors for database and journal */ member in struct:Pager 322 static int read32bits(int format, OsFile *fd, u32 *pRes){ argument 325 rc = sqliteOsRead(fd, &res, sizeof(res)); 344 static int write32bits(OsFile *fd, u32 val){ argument 347 return sqliteOsWrite(fd, &val, 4); 353 return sqliteOsWrite(fd, ac, 4); 463 sqliteOsUnlock(&pPager->fd); 503 rc = sqliteOsReadLock(&pPager->fd); 570 sqliteOsSeek(&pPager->fd, (pgRec.pgno-1)*(off_t)SQLITE_PAGE_SIZE); 571 rc = sqliteOsWrite(&pPager->fd, pgRe 904 sqlitepager_opentemp(char *zFile, OsFile *fd) argument 935 OsFile fd; local [all...] |
/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppsearch.c | 117 int fd; local 471 fd = 0; 481 fd = (flags & SEARCH_INCLUDE) ? open(pp.path, O_RDONLY) : eaccess(pp.path, R_OK); 483 if (fd >= 0) 543 if (fd > 0) 544 close(fd); 565 return fd; 605 int fd; local 611 fd = -1; 664 if ((fd [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/arch/ |
H A D | solaris.c | 76 int fd; member in struct:_SolarisSpecific 138 if (ioctl(arch_specific->fd, DKIOCGMEDIAINFO, &dk_minfo) < 0) { 170 if (ioctl(arch_specific->fd, DKIOCG_PHYGEOM, &dk_geom) < 0) { 220 if ((ioctl(arch_specific->fd, DKIOCG_PHYGEOM, &dk_geom) >= 0) && 475 if (ioctl(arch_specific->fd, DKIOCINFO, &cur_disk_dkinfo) < 0) { 518 if (ioctl(arch_specific->fd, DKIOCGEXTVTOC, &extvtoc) == -1) { 800 if (ioctl(arch_specific->fd, DKIOCGEXTVTOC, &extvtoc) == -1) { 913 arch_specific->fd = open(rawname, O_RDWR); 915 if (arch_specific->fd == -1) { 918 arch_specific->fd 1302 int fd; local [all...] |
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | wclib.c | 162 * compute the line, word, and character count for file <fd> 165 int wc_count(Wc_t *wp, Sfio_t *fd, const char* file) argument 185 sfset(fd,SF_WRITE,1); 206 if (!(buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) || (n = sfvalue(fd)) <= 0) 262 while ((cp = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0) 281 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0) 353 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUN [all...] |
/osnet-11/usr/src/lib/libinstzones/common/ |
H A D | zones_exec.c | 520 int fd; local 523 fd = open64(CTFS_ROOT "/process/template", O_RDWR); 524 if (fd == -1) { 532 err |= ct_tmpl_set_critical(fd, 0); 533 err |= ct_tmpl_set_informative(fd, 0); 534 err |= ct_pr_tmpl_set_fatal(fd, CT_PR_EV_HWERR); 535 err |= ct_pr_tmpl_set_param(fd, CT_PR_PGRPONLY | CT_PR_REGENT); 536 if (err || ct_tmpl_activate(fd)) { 537 (void) close(fd); 541 return (fd); [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.c | 59 mpool_open(key, fd, pagesize, maxcache) 61 int fd; 74 if (fstat(fd, &sb)) 90 mp->fd = fd; 236 if (lseek(mp->fd, off, SEEK_SET) != off) 239 if ((nr = read(mp->fd, bp->page, mp->pagesize)) != mp->pagesize) { 342 return (fsync(mp->fd) ? RET_ERROR : RET_SUCCESS); 431 if (lseek(mp->fd, off, SEEK_SET) != off) 433 if (write(mp->fd, b [all...] |
/osnet-11/usr/src/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 128 get_cdrom_properties (int fd, LibHalChangeSet *cs) argument 155 walk_profiles(fd, get_cdrom_properties_walker, cs); 160 get_read_write_speeds(fd, &read_speed, &write_speed, &write_speeds, &n_wspeeds, &write_speeds_mem); 216 get_disk_properties (int fd, LibHalChangeSet *cs) argument 236 status = ioctl(fd, USCSICMD, &ucmd); 309 int fd = -1; local 404 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) { 409 dos_cnt = get_num_dos_drives(fd, block_size); 450 if (fd >= 0) { 451 close (fd); [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | fmtmsglib.c | 210 int fd; 281 fd = mm.console; 288 fd = 2; 302 if (fd != mm.console && (n -= 8) > 0) 328 if (!(s = sfstruse(sp)) || write(fd, s, n) != n)
|
/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/krb5/kadm5/clnt/ |
H A D | client_init.c | 235 * Open an fd for the given address and connect asynchronously. Wait 237 * change fd to blocking and return it, else return -1. 247 int fd; local 252 fd = t_open(nconf->nc_device, O_RDWR | O_NONBLOCK, &tinfo); 253 if (fd == -1) { 257 if (t_bind(fd, (struct t_bind *)NULL, (struct t_bind *)NULL) == -1) { 258 (void) close(fd); 262 /* we can't connect unless fd is in IDLE state */ 263 if (t_getstate(fd) != T_IDLE) { 264 (void) close(fd); 319 int fd; local [all...] |
/osnet-11/usr/src/lib/libc/port/i18n/ |
H A D | gettext_gnu.c | 564 do_conv(iconv_t fd, char *src, uint32_t srclen) argument 574 (void *)fd, src ? src : "(null)", srclen); 593 if (iconv(fd, &src, &ileft, &tptr, &oleft) == (size_t)-1) { 665 conv_dst = do_conv(gmnp->fd, msgstr, msgstr_len); 688 iconv_t fd; local 750 if (gmnp->fd && (gmnp->fd != (iconv_t)-1)) { 751 (void) iconv_close(gmnp->fd); 752 gmnp->fd = (iconv_t)-1; 782 if (gmnp->fd [all...] |