/osnet-11/usr/src/lib/libc/port/rt/ |
H A D | pos4obj.c | 287 int fd; local 298 if ((fd = __open_nc(dfile, oflag, mode)) == -1) 302 return (fd); 316 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) { 318 fd = __open_nc(dfile, oflag & ~O_CREAT, mode); 320 if (fd == -1 && errno == ENOENT) 331 return (fd); 362 int fd; local 370 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666)) 378 (void) __close_nc(fd); [all...] |
/osnet-11/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 178 int i, idx, fd; local 235 fd = open(path_buf, O_RDWR); 236 if (fd < 0) { 245 * libc can't handle fd's greater than 255, in order to 246 * ensure that these values remain available make fd > 255. 249 tmpfd = fcntl(fd, F_DUPFD, 256); 254 (void) close(fd); 255 fd = tmpfd; 259 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) { 262 (void) close(fd); 475 int fd; local [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 214 int fd; local 226 if ((fd = sysopen(path, O_RDONLY, 0)) >= 0) 234 r = (m = sysread(fd, buf, n)) >= 2 && (buf[1] == 0x5a && (buf[0] == 0x4c || buf[0] == 0x4d) || ux && buf[0] == '#' && buf[1] == '!' && (*ux = 1) && !(ux = 0)) ? 0 : -1; 235 sysclose(fd); 692 * dup*() and exec*() fd's will not be intercepted 705 close(int fd) argument 712 if (fd >= 0 && fd < elementsof(exe) && exe[fd]) 714 r = exe[fd] 734 write(int fd, const void* buf, size_t n) argument 746 int fd; local [all...] |
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 336 static int check_atapi(int fd); 347 static int get_attrs(disk_t *diskp, int fd, char *opath, 349 static int get_cdrom_drvtype(int fd); 352 static void get_drive_type(disk_t *dp, int fd); 359 static int get_rpm(disk_t *dp, int fd); 364 static int uscsi_mode_sense(int fd, int page_code, 418 int fd; local 427 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath)); 429 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) { 434 if (fd > 582 int fd; local 623 int fd; local 909 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs) argument 1042 get_drive_type(disk_t *dp, int fd) argument 1199 get_rpm(disk_t *dp, int fd) argument 1263 get_cdrom_drvtype(int fd) argument 1330 check_atapi(int fd) argument 1432 uscsi_mode_sense(int fd, int page_code, int page_control, caddr_t page_data, int page_size, struct scsi_ms_header *header) argument [all...] |
H A D | partition.h | 50 int partition_has_fdisk(disk_t *dp, int fd);
|
/osnet-11/usr/src/lib/libuuid/common/ |
H A D | uuid.c | 75 static int fd; variable 265 if ((fd = open(STATE_LOCATION, O_RDWR)) < 0) { 267 if ((fd = mkstemp(tmpname)) == -1) { 279 (void) ftruncate(fd, (off_t)sizeof (shared_buffer_t)); 282 PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); 289 (void) close(fd); 336 int i, fd, retries = 0; local 338 fd = open(URANDOM_PATH, O_RDONLY); 339 if (fd >= 0) { 341 i = read(fd, bu 506 int fd; local [all...] |
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_snddis.c | 47 _tx_snddis(int fd, const struct t_call *call, int api_semantics) argument 56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 120 if (_t_look_locked(fd, tiptr, 0, api_semantics) == T_DISCONNECT) { 130 retval = ioctl(fd, I_FLUSH, FLUSHW); 157 if (putmsg(fd, &ctlbuf, (databuf.len? &databuf: NULL), 0) < 0) { 163 if (_t_is_ok(fd, tiptr, T_DISCON_REQ) < 0) {
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | clnt_bcast.c | 119 int fd; /* File descriptor */ member in struct:__anon2026 153 * initialization: create a fd, a broadcast address, and send the 174 int fd; local 181 if ((fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) == -1) { 185 __rpc_set_mac_options(fd, nconf, prog); 186 if (t_bind(fd, NULL, NULL) == -1) { 187 (void) t_close(fd); 193 if (netdir_options(nconf, ND_SET_BROADCAST, fd, NULL)) { 194 (void) t_close(fd); 198 fdlist[fdlistno].fd [all...] |
/osnet-11/usr/src/lib/krb5/ss/ |
H A D | help.c | 31 int fd, child; local 67 if ((fd = open(&buffer[0], O_RDONLY)) >= 0) goto got_it; 69 if ((fd = open(&buffer[0], O_RDONLY)) < 0) { 81 close(fd); 84 (void) dup2(fd, 0); /* put file on stdin */ 87 (void) close(fd); /* what can we do if it fails? */
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_fcntl.c | 40 pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp) argument 48 return (fcntl(fd, cmd, argp)); 51 adp->arg_value = fd;
|
/osnet-11/usr/src/lib/libbsm/common/ |
H A D | audit_settid.c | 42 audit_settid(int fd) argument 55 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen) 61 if (getsockname(fd, (struct sockaddr *)&sock, (socklen_t *)&socklen)
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | closefrom.c | 67 if ((dirp = opendir("/proc/self/fd")) != NULL) { 73 /* skip '.', '..' and the opendir() fd */ 124 void_close(void *lowp, int fd) argument 126 if (fd >= *(int *)lowp) 127 (void) close(fd);
|
H A D | getxby_door.c | 73 * logic is designed to be fast in the normal case (fd is already 77 * the application if it closes the fd and it is multi-threaded. 226 * If it's not validatable, reset fd and try again. 232 * forward another fd if desired. 236 _nsc_initdoor_fp(nsc_door_t *dp, char *db, int *fd) argument 241 *fd = -1; 288 while (dp->doorfd < 3) { /* we have a reserved fd */ 326 * someone else has clobbered fd 355 *fd = dp->doorfd; 375 int fd; local 455 int fd; local 744 int fd; local [all...] |
/osnet-11/usr/src/lib/libsendfile/common/ |
H A D | sendfile.c | 63 _sendfile(int sock, int fd, off_t *off, size_t len) argument 70 sfv.sfv_fd = fd; 112 _sendfile64(int sock, int fd, off64_t *off, size_t len) argument 119 sfv.sfv_fd = fd;
|
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | libsmbfs.h | 180 int smbfs_acl_get(int fd, acl_t **, uid_t *, gid_t *); 189 int smbfs_acl_set(int fd, acl_t *, uid_t, gid_t); 206 int smbfs_acl_getsd(int fd, uint32_t, struct i_ntsd **); 211 int smbfs_acl_setsd(int fd, uint32_t, struct i_ntsd *);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_io.h | 18 int fd; member in struct:krb5_rc_iostuff
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/IO/ |
H A D | poll.h | 29 int fd; member in struct:pollfd
|
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | procopen.c | 113 short fd; member in struct:Fd_s 130 } fd; member in union:Mod_s::__anon1166 256 m->arg.fd.parent.fd = (short)arg1; 257 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0); 258 if ((m->arg.fd.child.fd = (short)arg2) != arg1) 262 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0); 277 if (m->arg.fd.parent.flag) 281 else if (!m->arg.fd [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_tab.c | 256 int fd = -1; local 264 if ((fd = open(filename, O_RDONLY, 0)) < 0) { 268 if (fstat(fd, &statbuf) != 0) { 285 if ((cnt = read(fd, p, 8192)) < 0) { 299 if (close(fd) != 0) { 301 fd = -1; 304 fd = -1; 315 if (fd >= 0) 316 (void) close(fd);
|
/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/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/cfgadm_plugins/ac/common/ |
H A D | mema.c | 458 int fd; local 474 if ((fd = open(bank_spec, ((fdp != NULL) ? O_RDWR : O_RDONLY), 0)) == 492 ret = ioctl(fd, AC_MEM_STAT, &cmd); 498 (void) close(fd); 503 *fdp = fd; 505 (void) close(fd); 588 int fd, ret, ret_errno; local 600 ret = ap_stat(bank_spec, &fd, &bk, &stat, errstring); 609 (void) close(fd); 621 (void) close(fd); 664 int fd, ret, ret_errno; local 769 int fd, ret, ret_errno; local 808 mtest_run( int fd, int test_fun, mema_bank_t *abkp, struct cfga_msg *msgp, char **errstring, ulong_t max_errors) argument 973 int fd, ret, ret_errno; local 1010 int fd, ret, ret_errno; local 1097 int fd, ret; local [all...] |
/osnet-11/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 169 int fd; local 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) 187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 192 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 197 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 202 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 205 if (close(fd) != 0) 438 Dupfd(int fd, in argument 481 int fd; local 701 int fd; local 723 int fd; local [all...] |
/osnet-11/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 169 int fd; local 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) 187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 192 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) 197 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 202 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (long)) 205 if (close(fd) != 0) 446 Dupfd(int fd, in argument 489 int fd; local 711 int fd; local 733 int fd; local [all...] |
/osnet-11/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_bh.c | 172 if (dbmfp->fd == -1) 180 db_io.fd_io = dbmfp->fd; 181 db_io.fd_lock = dbmp->reginfo.fd; 338 if (dbmfp->fd == -1) { 340 if (dbmfp->fd == -1 && ((ret = __db_appname(dbenv, 342 &dbmfp->fd, NULL)) != 0 || dbmfp->fd == -1)) { 352 db_io.fd_io = dbmfp->fd; 353 db_io.fd_lock = dbmp->reginfo.fd; 425 syncfail = __os_fsync(dbmfp->fd) ! 554 int fd, ret; local [all...] |