/osnet-11/usr/src/lib/libsysevent/ |
H A D | libsysevent.c | 1910 int fd = -1; local 1966 fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR, 1968 if (fd == -1) { 2012 (void) close(fd); 2024 (void) close(fd); 2088 int fd = -1; local 2159 fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR, S_IREAD|S_IWRITE); 2160 if (fd == -1) { 2193 (void) close(fd); 2243 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 2005 int fd = -1; local 2019 if ((fd = open(ap_id, O_RDONLY)) == -1) { 2047 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) { 2073 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) { 2078 (void) close(fd); 2083 if (fd != -1) { 2084 (void) close(fd);
|
/osnet-11/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_util.c | 1040 int fd, rtnerr; local 1043 if ((fd = open(name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0) { 1046 if (lockf(fd, F_LOCK, 0) < 0) { 1049 if ((fp = fdopen(fd, "a+")) == NULL) { 3191 int fd; local 3208 fd = open(filename, O_WRONLY | O_EXCL | O_CREAT | O_TRUNC, S_IRUSR); 3209 if (fd == -1) { 3214 fd = open(filename, O_WRONLY | O_TRUNC, 0); 3215 if (fd == -1) 3218 if (fstat(fd, [all...] |
/osnet-11/usr/src/lib/libsmb/common/ |
H A D | smb_cfg.c | 1413 int fd, status; local 1418 fd = open(path, O_RDONLY); 1419 if (fd < 0) 1422 status = fstat(fd, &buffer); 1423 (void) close(fd);
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 109 int fd; local 123 fd = open("/dev/urandom", O_RDONLY); 124 if (fd != -1) { 126 (read(fd, &r, sizeof (r)) == sizeof (r)); 127 close(fd);
|
/osnet-11/usr/src/lib/libcpc/common/ |
H A D | libcpc.c | 539 int fd; local 573 * To avoid leaking file descriptors, if we find an existing fd here we 582 if ((fd = open(CPUDRV_SHARED, O_RDWR)) < 0) { 593 if (ioctl(fd, CPCIO_BIND, &cpc_args) != 0) { 595 (void) close(fd); 603 set->cs_fd = fd;
|
/osnet-11/usr/src/lib/libipmi/common/ |
H A D | ipmi_lan.c | 164 int fd; local 167 if ((fd = open("/dev/urandom", O_RDONLY)) < 0) 170 if (read(fd, buf, len) < 0) { 171 (void) close(fd); 174 (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/cfgadm_plugins/shp/common/ |
H A D | shp.c | 1323 int fd; local 1325 fd = di_dli_openr(dlpath); 1326 if (fd < 0) 1329 (void) read(fd, ap_info, ap_info_sz); 1332 di_dli_close(fd);
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfhdr.h | 604 # define SETCLOEXEC(fd) ((void)fcntl((fd),F_SETFD,FD_CLOEXEC)) 607 # define SETCLOEXEC(fd) ((void)ioctl((fd),FIOCLEX,0)) 609 # define SETCLOEXEC(fd)
|
/osnet-11/usr/src/lib/libzfs/common/ |
H A D | libzfs_pool.c | 2370 int fd, error; local 2379 if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) { 2390 error = _efi_use_whole_disk(fd); 2391 (void) close(fd); 3310 int fd; local 3314 if ((fd = open(path, O_RDONLY)) < 0) 3319 if (devid_get(fd, &devid) == 0) { 3320 if (devid_get_minor_name(fd, &minor) == 0) 3326 (void) close(fd); 3864 int fd; local 3977 int fd; local [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_med.c | 979 int fd; local 997 if ((fd = open(MED_DB_FILE, O_RDONLY, 0)) == -1) { 1026 if ((read(fd, rec_buf, rec_size)) != rec_size) { 1041 if (read(fd, rec_buf, rec_size) == -1) { 1213 if (close(fd) < 0) {
|
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | misc.c | 215 int fd; local 257 if((fd=path_open(shp,script,path_get(shp,script))) < 0) 293 iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fd,SF_READ);
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-io.c | 257 pds[i].fd = NULL; 259 pds[i].fd = PRLDAP_GET_PRFD( fds[i].lpoll_socketarg ); 279 if ( pds[i].fd != NULL ) { 295 * Returns 1 if successful and -1 if not. Sets the NSPR fd inside prsockp.
|
H A D | ldappr-dns.c | 133 PRFileDesc *fd; local
|
/osnet-11/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 178 nextline(fd, line) 179 FILE *fd; 184 if (fgets(line, NIS_SEC_CF_MAX_LINELEN, fd) == NULL)
|
/osnet-11/usr/src/lib/libnetcfg/common/ |
H A D | libnetcfg_files.c | 1016 int fd = -1, nverr, ferr; local 1032 fd = netcfg_zopen(tmpdbname, oflag, mode, dbzoneid, &ferr); 1036 fd = open(tmpdbname, oflag, mode); 1041 if (fd < 0) 1044 if ((fp = fdopen(fd, "w")) == NULL) { 1079 (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);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_file.c | 1226 int fd; local 1251 fd = THREEPARAMOPEN(filename, open_flag | O_NONBLOCK | O_NOFOLLOW, 0600); 1252 if (fd == -1) { 1254 fd = THREEPARAMOPEN(filename, open_flag | O_EXCL | O_CREAT, 1256 if (fd != -1) { 1277 /* If we still don't have a valid fd, we stop trying */ 1278 if (fd == -1) 1289 if (fstat(fd, &fres) == -1) { 1291 close(fd); 1297 close(fd); [all...] |
/osnet-11/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_send.c | 418 int fd; local 431 fd = EXT(statp).nssocks[0]; 453 EXT(statp).nssocks[lastns] = fd; 1020 pollfd.fd = s;
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/ssldap/ |
H A D | ldapsinit.c | 165 static int ldapssl_AuthCertificate(void *sessionarg, PRFileDesc *fd, 732 ldapssl_AuthCertificate(void *sessionarg, PRFileDesc *fd, PRBool checkSig, argument 755 cert = SSL_PeerCertificate( fd ); 771 hostname = SSL_RevealURL( fd );
|
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdmsg.c | 95 fds.fd = lock_soc;
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_open.c | 196 dbp->fd = __rec_fd;
|
/osnet-11/usr/src/lib/brand/solaris10/cmd/ |
H A D | s10_umountall.sh | 251 /dev/fd | \
|
/osnet-11/usr/src/cmd/sendmail/src/ |
H A D | tls.c | 146 int fd; local 157 if ((fd = safeopen(randfile, O_RDONLY, 0, sff)) >= 0) 159 if (fstat(fd, &st) < 0) 218 (void) close(fd);
|