/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_dg.c | 84 "fd > FD_SETSIZE; Use rpc_control(RPC_SVC_USE_POLLFD,...);"; 120 svc_dg_create_private(int fd, uint_t sendsize, uint_t recvsize) argument 127 if (RPC_FD_NOTIN_FDSET(fd)) { 134 if (t_getinfo(fd, &tinfo) == -1) { 162 xprt->xp_fd = fd; 186 svc_dg_create(const int fd, const uint_t sendsize, const uint_t recvsize) argument 190 if ((xprt = svc_dg_create_private(fd, sendsize, recvsize)) != NULL)
|
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | yp_bind.c | 369 int fd; local 413 if (clnt_control(pdomb->dom_client, CLGET_FD, (char *)&fd)) 414 (void) fcntl(fd, F_SETFD, 1); /* make it "close on exec" */ 431 int fd; local 436 fd = t_open(nconf->nc_device, O_RDWR, NULL); 437 if (fd == -1) 440 if (netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL) == -1) { 441 if (t_bind(fd, NULL, NULL) == -1) { 442 (void) t_close(fd); 446 return (fd); 469 int fd; local 966 int fd; local 1082 int fd; local 1148 int fd; local 1172 int fd; local [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/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/libpkg/common/ |
H A D | pkgserv.c | 119 int fd; local 128 fd = openat(dir, PKGDOOR, O_RDWR); 130 if (fd == -1) 133 res = door_info(fd, &di); 134 (void) close(fd); 275 int fd; local 278 if ((fd = mkstemp(pkgdoor)) < 0) { 282 (void) close(fd); 486 int *fd) 505 if (fd ! 485 pkgcmd(PKGserver srv, void *cmd, size_t len, char **result, size_t *rlen, int *fd) argument 550 int fd; local 656 int fd; local [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/libdevinfo/ |
H A D | devinfo_pca.c | 551 int fd; local 559 fd = mkstemp(unique_name); 560 if (fd == -1) { 565 (void) close(fd);
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/ |
H A D | dhcp_network.c | 330 int fd = dhp->dh_fd; local 335 if (read_header(fd, &header, B_FALSE) == -1) 384 if (read_hashhead(fd, &recid, hash, image) 401 if (read_header(fd, &header, B_TRUE) == -1) 576 int fd = dhp->dh_fd; local 590 retval = getabyte(fd, offsetof(dn_header_t, dnh_image), &image); 598 if (read_rec(fd, &rec, recid) == -1) 610 if (read_hashhead(fd, &recid_head, hash, image) == -1) 623 if (read_rec(fd, &rec_next, rec.rec_next[!image]) == -1) 632 retval = setabyte(fd, offseto 701 int fd = dhp->dh_fd; local 836 int fd = dhp->dh_fd; local 1366 read_rec(int fd, dn_filerec_t *rec, dn_recid_t recid) argument 1380 write_rec(int fd, dn_filerec_t *rec, dn_recid_t recid) argument 1397 read_header(int fd, dn_header_t *hdrp, boolean_t hash) argument 1414 write_header(int fd, dn_header_t *hdrp) argument 1430 read_hashhead(int fd, dn_recid_t *recid_headp, uint16_t cidhash, uchar_t image) argument 1446 write_hashhead(int fd, dn_recid_t recid_head, uint16_t cidhash, uchar_t image) argument 1458 getabyte(int fd, off_t offset, uchar_t *bytep) argument 1477 setabyte(int fd, off_t offset, uchar_t byte) argument [all...] |
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_vols.c | 984 int fd = -1; local 1035 fd = open(SV_DEVICE, O_RDONLY); 1036 if (fd < 0) 1043 rc = ioctl(fd, sv_ioctl, &svc); 1071 (void) ioctl(fd, SVIOC_DISABLE, &svc); 1125 if (fd >= 0) 1126 (void) close(fd);
|
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 812 int fd, err, bits; local 824 if ((fd = open(fname, O_RDONLY)) == -1 || fstat64(fd, &st) == -1 || 827 (void) close(fd); 837 dmp->dm_elf = elf_begin(fd, ELF_C_READ, NULL); 839 (void) close(fd);
|
H A D | dt_open.c | 701 int fd; local 727 if ((fd = open(path, O_RDONLY)) == -1) 733 (void) close(fd); 742 dfp->df_fds[dfp->df_ents++] = fd;
|
H A D | dt_options.c | 186 int fd; local 191 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) 195 dtp->dt_cdefs_fd = fd; 211 int fd; local 216 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) 220 dtp->dt_ddefs_fd = fd;
|
H A D | dt_subr.c | 511 dt_write(dtrace_hdl_t *dtp, int fd, const void *buf, size_t n) argument 517 if ((len = write(fd, buf, resid)) <= 0)
|
/osnet-11/usr/src/lib/libexacct/common/ |
H A D | exacct_ops.c | 1048 ea_fdopen(ea_file_t *ef, int fd, const char *creator, int aflags, int oflags) argument 1054 f->ef_fd = fd; 1160 int fd; local 1169 if ((fd = open(name, oflags, mode)) == -1) { 1174 if (ea_fdopen(ef, fd, creator, aflags, oflags) == -1) { 1175 (void) close(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/libfmd_log/common/ |
H A D | fmd_log.c | 382 int fd; local 397 (fd = dup(lp->log_fd)) == -1) 400 if (ea_fdopen(&lp->log_ea, fd, FMD_CREATOR, 402 (void) close(fd);
|
/osnet-11/usr/src/lib/fm/libfmd_zfs/common/ |
H A D | fmd_zfs.c | 558 int fd; local 655 if ((fd = open(devdskpath, O_RDWR)) >= 0) { 656 (void) zpool_clear_label(fd); 657 (void) fsync(fd); 658 (void) close(fd);
|
/osnet-11/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom.c | 637 int fd, rc, err; local 643 if ((fd = open("/dev/bl", O_RDONLY)) < 0) 650 (void) close(fd); 656 rc = ioctl(fd, cmd, &blr); 660 (void) close(fd);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/dtrace/ |
H A D | kerberos_dtrace.c | 1113 k5_kconninfo_build(const int fd) { argument 1123 if (getsockname(fd, (struct sockaddr *)&s, &len) == 0) { 1149 if (getpeername(fd, (struct sockaddr *)&s, &len) == 0) { 1168 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &t, &len) == 0) { 1213 void k5_trace_message_send(const int fd, char *data, argument 1215 KERBEROS_PROBE_KRB_MESSAGE(SEND, fd, data, length); 1218 void k5_trace_message_recv(const int fd, char *data, argument 1220 KERBEROS_PROBE_KRB_MESSAGE(RECV, fd, data, length);
|
/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/abi/apptrace/common/ |
H A D | apptrace.c | 237 int fd, newfd, targetfd, lowerlimit; local 248 fd = open(str, O_WRONLY|O_CREAT|O_TRUNC, 0666); 249 if (fd == -1) { 262 * we'd have closed the fd it uses for the history 267 * fd. 269 * Not finding an fd after 10 tries is a failure. 272 * unsigned char, we must clamp our fd request to 280 if ((newfd = fcntl(fd, F_DUPFD, targetfd)) != -1) 291 (void) close(fd);
|
/osnet-11/usr/src/lib/auditd_plugins/remote/ |
H A D | audit_remote.c | 534 * with fd file descriptor. 537 set_fdfl(int fd, int fl, boolean_t set_fl) argument 547 if ((flags = fcntl(fd, F_GETFL, 0)) < 0) { 567 if (fcntl(fd, F_SETFL, flags) == -1) { 573 DPRINT((dfile, "fd: %d - flag: 0%o was %s\n", fd, fl,
|
H A D | transport.c | 278 DPRINT((dfile, "Socket created, fd=%d, connecting..\n", sock)); 286 DPRINT((dfile, "Connected to %s via fd=%d\n", host->h_name, 419 int fd; local 427 fd = *fdptr; 444 if (send_timeout(fd, out_buf, (lensz + tok->length))) { 458 recv_token(int fd, gss_buffer_t tok) argument 462 if (recv_timeout(fd, (char *)&len, sizeof (len))) { 483 if (recv_timeout(fd, tok->value, len)) { 523 fds.fd = sockfd; 552 send_timeout(int fd, cons argument 601 recv_timeout(int fd, char *buf, size_t len) argument 651 read_fd(int fd, char *buf, size_t len) argument 685 write_fd(int fd, char *buf, size_t len) argument 1237 init_poll(int fd) argument [all...] |
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 51 int fd, const char *path, struct stat *sb, int flags) 54 fd, path, sb, flags)); 82 int fd, const char *path, struct stat64 *sb, int flags) 85 fd, path, sb, flags)); 112 s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 115 fd, path, oflag, mode)); 135 s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 138 fd, path, oflag, mode)); 170 s10_dup(sysret_t *rval, int fd) argument 172 return (__systemcall(rval, SYS_fcntl + 1024, fd, F_DUPF 50 s10_fstatat(sysret_t *rval, int fd, const char *path, struct stat *sb, int flags) argument 81 s10_fstatat64(sysret_t *rval, int fd, const char *path, struct stat64 *sb, int flags) argument 222 s10_fchownat(sysret_t *rval, int fd, const char *name, uid_t uid, gid_t gid, int flag) argument 272 s10_unlinkat(sysret_t *rval, int fd, const char *name, int flags) argument 322 s10_faccessat(sysret_t *rval, int fd, const char *fname, int amode, int flag) argument 382 s10_futimesat(sysret_t *rval, int fd, const char *path, const struct timeval times[2]) argument 457 s10_fxstat(sysret_t *rval, int version, int fd, struct stat *statb) argument [all...] |