/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | iconv.c | 341 int fd; local 349 fd = open(_ENCODING_ALIAS_PATH, O_RDONLY); 350 if (fd == -1) { 358 if (fstat64(fd, &statbuf) == -1) { 359 (void) close(fd); 364 addr = mmap(NULL, buflen, PROT_READ, MAP_SHARED, fd, 0); 365 (void) close(fd);
|
H A D | ttyname.c | 635 int fd, state; local 645 if ((fd = open(TTYSRCH, 0)) < 0) 648 if (fstat64(fd, &sb) < 0) { 649 (void) close(fd); 662 (void) close(fd); 668 size = read(fd, dir_buf, sz); 670 (void) close(fd);
|
/osnet-11/usr/src/lib/libv12n/sparc/ |
H A D | libv12n.c | 143 int fd; local 148 fd = open(MD_DEVICE, O_RDONLY); 149 if (fd == -1) { 153 if (read(fd, &mdh, sizeof (md_header_t)) != sizeof (md_header_t)) 163 if (read(fd, buf + sizeof (md_header_t), 170 (void) close(fd); 175 (void) close(fd);
|
/osnet-11/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi_uscsi.c | 1039 uscsi_cmd(int fd, struct uscsi_cmd *ucmd, void *rqbuf, int *rqlen) argument 1101 status = ioctl(fd, USCSICMD, ucmd); 1163 uscsi_request_sense(int fd, caddr_t buf, int buflen, void *rqbuf, int *rqblen) argument 1178 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1195 uscsi_mode_sense(int fd, int page_code, int page_control, caddr_t page_data, argument 1229 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1331 uscsi_mode_sense_10(int fd, int page_code, int page_control, argument 1365 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1470 uscsi_mode_select(int fd, int page_code, int options, caddr_t page_data, argument 1526 status = uscsi_cmd(fd, 1538 uscsi_mode_select_10(int fd, int page_code, int options, caddr_t page_data, int page_size, struct scsi_ms_header_g1 *header, void *rqbuf, int *rqblen) argument 1607 uscsi_log_sense(int fd, int page_code, int page_control, caddr_t page_data, int page_size, void *rqbuf, int *rqblen) argument [all...] |
/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/libdevinfo/ |
H A D | devinfo_devlink.c | 57 static const char *skip_dirs[] = {"fd"}; 227 int fd, rv, flg; local 265 if ((fd = open(path, flg, DB_PERMS)) == -1) { 271 rv = fstat(fd, &sbuf); 276 rv = ftruncate(fd, sz); 282 (void) close(fd); 286 cp = mmap(0, HDR_LEN, flg, MAP_SHARED, fd, 0); 288 (void) close(fd); 292 DB(hdp)->db_fd = fd; 375 int fd; local 3080 int fd; local 3402 int fd; local 3511 int fd; local [all...] |
H A D | devfsinfo.c | 138 static int prom_find_aliases_node(int fd); 141 static int prom_srch_node(int fd, char *prop_name, char *ret_buf); 142 static uint_t prom_next_node(int fd, uint_t node_id); 143 static uint_t prom_child_node(int fd, uint_t node_id); 2657 prom_srch_node(int fd, char *prop_name, char *ret_buf) argument 2667 if (ioctl(fd, OPROMNXTPROP, opp) < 0) 2674 if (ioctl(fd, OPROMNXTPROP, opp) < 0) 2680 if (ioctl(fd, OPROMGETPROP, opp) < 0) 2693 prom_find_aliases_node(int fd) argument 2698 if ((child_id = prom_next_node(fd, 2718 prom_next_node(int fd, uint_t node_id) argument 2738 prom_child_node(int fd, uint_t node_id) argument [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | util.c | 1867 int fd; local 1869 for (fd = PL_maxsysfd + 1; fd < NOFILE; fd++) { 1870 if (fd != pp[1]) 1871 PerlLIO_close(fd); 1884 /* Keep the lower of the two fd numbers */ 2002 int fd; local 2008 int fd; local 2010 for (fd 2165 int fd; local 3953 S_socketpair_udp(int fd[2]) argument 4094 Perl_my_socketpair(int family, int type, int protocol, int fd[2]) argument 4192 Perl_my_socketpair(int family, int type, int protocol, int fd[2]) argument 4328 int fd; local [all...] |
/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppproto.c | 64 int fd; /* input file descriptor */ member in struct:proto 700 if ((n = read(proto->fd, ip, proto->iz)) > 0) 705 close(proto->fd); 715 close(proto->fd); 2108 if (proto->flags & MORE) close(proto->fd); 2117 * file !=0 file path to open, otherwise use fd 2118 * fd open file fd if file==0 2125 pppopen(char* file, int fd, char* notice, char* options, char* package, char* comment, int flags) argument 2150 if (file && (fd [all...] |
/osnet-11/usr/src/lib/libresolv2/common/isc/ |
H A D | ctl_srvr.c | 257 (*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...] |
H A D | ctl_clnt.c | 203 (*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);
|
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 94 __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 D | rpcb_clnt.c | 621 int fd; local 633 if ((fd = t_open("/dev/ticotsord", O_RDWR, NULL)) == -1) 636 if (t_bind(fd, NULL, NULL) == -1) { 637 (void) t_close(fd); 641 if ((sndcall = (struct t_call *)t_alloc(fd, T_CALL, 0)) == NULL) { 642 (void) t_close(fd); 651 (void) t_close(fd); 660 (void) t_close(fd); 667 if (t_connect(fd, sndcall, NULL) == -1) 677 (void) t_close(fd); [all...] |
H A D | svc_door.c | 316 int fd; local 340 fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0644); 342 if (fd < 0) { 351 fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL| 354 if (fd < 0) { 367 (void) close(fd);
|
/osnet-11/usr/src/lib/libpcp/common/ |
H A D | libpcp.c | 87 static int vldc_read(int fd, uint8_t *bufp, int size); 88 static int vldc_write(int fd, uint8_t *bufp, int size); 366 /* copy channel_fd to local fd (chnl_fd) for other functions use */ 1377 vldc_write(int fd, uint8_t *bufp, int size) argument 1385 pollfd.fd = fd; 1395 if ((res = write(fd, bufp, left)) <= 0) { 1415 vldc_read(int fd, uint8_t *bufp, int size) argument 1424 fds[0].fd = fd; [all...] |
/osnet-11/usr/src/lib/libdevice/ |
H A D | devctl.c | 54 int fd; /* nexus device node */ member in struct:devctl_hdl 83 if (DCP(hdl)->fd != -1) 84 (void) close(DCP(hdl)->fd); 255 dcp->fd = -1; 456 dcp->fd = dup(DCP(pc)->fd); 458 dcp->fd = open(iocpath, oflags); 460 if (dcp->fd == -1) { 1333 if ((dcp == NULL) || (DCP(dcp)->fd == -1)) { 1365 rv = ioctl(dcp->fd, cm [all...] |
/osnet-11/usr/src/lib/libc/port/ |
H A D | llib-lc | 520 int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp); 521 int getmntent(FILE *fd, struct mnttab *mp); 616 int getvfsspec(FILE *fd, struct vfstab *vp, char *special); 617 int getvfsfile(FILE *fd, struct vfstab *vp, char *mountp); 618 int getvfsany(FILE *fd, struct vfstab *vgetp, struct vfstab *vrefp); 619 int getvfsent(FILE *fd, struct vfstab *vp); 656 int isastream(int fd); 787 char *ptsname(int fd); 788 int unlockpt(int fd); 789 int grantpt(int fd); [all...] |
/osnet-11/usr/src/tools/onbld/Scm/ |
H A D | Backup.py | 383 fd = open(diff) 384 backdiff = fd.read() 389 if fd and not fd.closed: 390 fd.close() 404 fd = open(self.bu.backupfile('renames')) 405 bakrenamed = [line.strip().split(' ') for line in fd] 410 if fd and not fd.closed: 411 fd [all...] |
/osnet-11/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 1082 i_dlpi_open(const char *provider, int *fd, uint_t flags, boolean_t style1) argument 1094 if ((*fd = open(path, oflags)) != -1) 1130 if ((*fd = open(path, oflags)) != -1) 1175 if ((*fd = open(path, oflags)) != -1) 1188 int fd; local 1190 retval = i_dlpi_open(dip->dli_linkname, &fd, dip->dli_oflags, B_TRUE); 1193 dip->dli_fd = fd; 1210 int fd; local 1213 retval = i_dlpi_open(dip->dli_provider, &fd, dip->dli_oflags, B_FALSE); 1216 dip->dli_fd = fd; 1321 int fd = dip->dli_fd; local 1366 int fd = dip->dli_fd; local [all...] |
/osnet-11/usr/src/lib/libnsl/common/ |
H A D | llib-lnsl | 104 void undial(int fd); 159 int netdir_options(struct netconfig *tp, int option, int fd, char *par); 432 CLIENT *clnt_dg_create(int fd, struct netbuf *svcaddr, rpcprog_t program, 455 CLIENT *clnt_tli_create(int fd, const struct netconfig *nconf, 476 CLIENT *clnt_vc_create(int fd, struct netbuf *svcaddr, rpcprog_t prog, 573 struct netconfig *__rpcfd_to_nconf(int fd, int servtype); 599 SVCXPRT *svctcp_create(int fd, uint_t sendsize, uint_t recvsize); 600 SVCXPRT *svcudp_bufcreate(int fd, uint_t sendsize, uint_t recvsize); 601 SVCXPRT *svcfd_create(int fd, uint_t sendsize, uint_t recvsize); 602 SVCXPRT *svcudp_create(int fd); [all...] |
/osnet-11/usr/src/lib/libpkg/common/ |
H A D | vfpops.c | 727 int fd; local 748 fd = open(a_path, O_WRONLY|O_CREAT|O_TRUNC, 0644); 749 if (fd < 0) { 763 result = vfpSafeWrite(fd, a_vfp->_vfpStart, len); 767 (void) close(fd); 775 (void) close(fd);
|
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 70 int fd; local 89 fd = open(char_name, O_RDONLY); 90 if (fd < 0) 93 slice = read_vtoc(fd, &vtoc); 95 (void) close(fd); 99 (void) close(fd);
|
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_pid.c | 522 int i, fd = -1; local 555 if (fd == -1 && 556 (fd = pr_open(P, "/dev/dtrace/helper", O_RDWR, 0)) < 0) { 562 if (pr_ioctl(P, fd, DTRACEHIOC_ADDDOF, &dh, sizeof (dh)) < 0) 566 if (fd != -1) 567 (void) pr_close(P, fd);
|
/osnet-11/usr/src/lib/efcode/engine/ |
H A D | interactive.c | 333 int fd; local 342 fd = open(name, O_RDONLY); 343 if (fd < 0) { 346 fstat(fd, &buf); 352 if ((n = read(fd, buffer, len)) < 0) 355 close(fd);
|
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/ |
H A D | x86pi_subr.c | 575 int fd; local 589 fd = open("/dev/fm", O_RDONLY); 590 if (fd < 0) { 610 rv = ioctl(fd, FM_IOC_GENTOPO_LEGACY, &fid); 614 (void) close(fd); 617 (void) close(fd);
|