/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 125 * If the ioctl fd's major doesn't match "major", then pass through the 728 s10_pwrite(sysret_t *rval, int fd, const void *bufferp, size_t num_bytes, argument 733 if ((err = __systemcall(rval, SYS_fcntl + 1024, fd, F_GETFL)) != 0) 736 return (__systemcall(rval, SYS_write + 1024, fd, bufferp, 738 return (__systemcall(rval, SYS_pwrite + 1024, fd, bufferp, num_bytes, 749 s10_pwrite64(sysret_t *rval, int fd, const void *bufferp, size32_t num_bytes, argument 754 if ((err = __systemcall(rval, SYS_fcntl + 1024, fd, F_GETFL)) != 0) 757 return (__systemcall(rval, SYS_write + 1024, fd, bufferp, 759 return (__systemcall(rval, SYS_pwrite64 + 1024, fd, bufferp, 778 * rval, fd, bu 787 s10_getdents_common(sysret_t *rval, int fd, char *buf, size_t nbyte, int getdents_syscall_id, size_t name_offset, size_t reclen_offset) argument 924 s10_getdents(sysret_t *rval, int fd, struct dirent *buf, size_t nbyte) argument 938 s10_getdents64(sysret_t *rval, int fd, struct dirent64 *buf, size_t nbyte) argument 954 has_trivial_native_acl(int cmd, int cnt, const char *fname, int fd) argument 1077 make_trivial_s10_acl(const char *fname, int fd, ace_t *bp) argument [all...] |
/osnet-11/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 2908 int fd; local 2910 fd = open("/dev/tty", O_RDWR, 0); 2911 if (fd >= 0) 2913 (void) ioctl(fd, TIOCNOTTY, (char *) 0); 2914 (void) close(fd); 2931 fsync(fd) 2932 int fd; 2935 return fcntl(fd, F_SETFL, O_SYNC); 3515 ** fd -- the file descriptor of the file. 3529 lockfile(fd, filenam [all...] |
H A D | readcf.c | 1103 auto int fd; local 1113 pid = prog_open(argv, &fd, CurEnv); 1118 (void *) &fd, SM_IO_RDONLY, NULL);
|
H A D | map.c | 2004 int fd; variable 2086 fd = open(buf, omode, DBMMODE); 2087 if (fd < 0) 2095 if (filechanged(buf, fd, &st)) 2098 (void) close(fd); 2105 if (st.st_mode == ST_MODE_NOFILE && fstat(fd, &st) < 0) 2108 (void) close(fd); 2116 if (!lockfile(fd, buf, NULL, mode == O_RDONLY ? LOCK_SH : LOCK_EX)) 2192 map->map_lockfd = fd; 2194 (void) close(fd); variable 2306 int fd; local 6310 int fd; local [all...] |
H A D | queue.c | 407 syserr("!queueup: cannot create queue file %s, euid=%d, fd=%d, fp=%p", 6795 int fd; local 6797 fd = keyf->f_file; 6798 if (fd >= 0 && fchown(fd, RunAsUid, -1) < 0) 8492 int fd; local 8531 fd = open(tempqf, flags, QueueFileMode); 8536 if (fd < 0) 8546 if (!lockfile(fd, tempqf, NULL, LOCK_EX|LOCK_NB)) 8551 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/libsun_ima/common/ |
H A D | ima.c | 267 int fd; local 274 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 284 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) { 302 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) { 313 (void) close(fd); 322 int fd; local 325 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) { 336 if (ioctl(fd, ISCSI_INIT_NODE_NAME_SET, &ps)) { 339 (void) close(fd); 343 (void) close(fd); 352 int fd; local 416 int fd; local 786 int fd, i, addr_list_size; local 930 int status, fd, i, addr_list_size; local 1046 int fd; local 1081 int fd, status; local 1153 int fd; local 1257 int status, fd; local 1295 int fd; local 1444 int fd; local 1591 int fd; local 1737 int fd; local 1828 int fd; local 1931 int fd; local 2180 int fd; local 2235 int fd; local 2283 int fd; local 2348 int fd; local 2431 int fd, status; local 2474 int fd; local 2557 int fd; local 2629 int fd; local 2677 int fd, i; local 3055 int fd; local 3159 int fd; local 3289 int fd; local 3355 int fd; local [all...] |
/osnet-11/usr/src/lib/libuefi_rt/common/ |
H A D | libuefi_rt_path.c | 211 int fd; local 221 if ((fd = open(UEFI_RT_DEVPATH, O_RDWR)) == -1) { 226 uefi_lib->uefirt_fd = 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...] |
H A D | libzfs_sendrecv.c | 185 * the output fd specified by the caller of zfs_send()), the 194 * The output of this function then goes to the output fd requested 1701 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, argument 1709 rv = read(fd, cp, len); 1731 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, argument 1739 err = recv_read(hdl, fd, buf, len, byteswap, zc); 2636 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument 2648 while (recv_read(hdl, fd, drr, sizeof (dmu_replay_record_t), 2674 (void) recv_read(hdl, fd, buf, 2684 (void) recv_read(hdl, fd, bu [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_import.c | 619 int fd = -1; local 676 if ((fd = open(rsp->rname, 688 if (read_master_block(ep, fd, mbp, 694 (void) close(fd); 699 (void) close(fd); 1354 int fd = -1; local 1394 if ((fd = open(rsp->rname, 1404 if (read_master_block(ep, fd, mbp, 1409 (void) close(fd); 1413 (void) close(fd); 1697 read_master_block( md_error_t *ep, int fd, void *bp, int bsize ) argument 1743 read_locator_block( md_error_t *ep, int fd, mddb_mb_t *mbp, void *bp, int bsize ) argument 1765 phys_read( md_error_t *ep, int fd, mddb_mb_t *mbp, daddr_t blk, void *bp, int bcount ) argument 1798 read_locator_block_did( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, void *bp, int bsize ) argument 1828 read_locator_names( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, void *bp, int bsize ) argument 1851 read_database_block( md_error_t *ep, int fd, mddb_mb_t *mbp, int dbblk, void *bp, int bsize ) argument 1872 read_loc_didblks( md_error_t *ep, int fd, mddb_mb_t *mbp, int didblk, void *bp, int bsize ) argument 1894 read_loc_didinfo( md_error_t *ep, int fd, mddb_mb_t *mbp, int infoblk, void *bp, int bsize ) argument 1961 read_nm_rec( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, char **nm, mddb_type_t rectype, char *diskname ) argument 2049 is_replicated( int fd, mddb_mb_t *mbp, int need_devid, void **new_devid ) argument 2122 int fd = -1; local 2312 build_did_list( md_error_t *ep, int fd, mddb_mb_t *mb, mddb_lb_t *lbp, mddb_did_blk_t *lbdidp, mddb_ln_t *lnp, did_list_t **did_listp, int *replicatedp ) argument 3055 report_set_info( md_im_set_desc_t *misp, mddb_mb_t *mb, mddb_lb_t *lbp, mddb_rb_t *nm, pnm_rec_t **pnm, mdname_t *rsp, int fd, uint_t imp_flags, int set_count, int overlap, md_im_drive_info_t *overlap_disks, md_error_t *ep ) argument 3383 int fd; local 3735 int fd; local [all...] |
H A D | meta_sp.c | 6553 int mnum, fd; local 6597 if ((fd = open(fname, O_RDWR, 0)) < 0) { 6606 if (ioctl(fd, DKIOCGETVOLCAP, &vc) < 0) { 6607 (void) close(fd); 6612 if (ioctl(fd, DKIOCSETVOLCAP, &vc) < 0) { 6613 (void) close(fd); 6617 (void) close(fd);
|
/osnet-11/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 878 int fd, i; local 909 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1) 912 if (ioctl(fd, FCIO_GETMAP, map_ptr) != 0) { 914 (void) close(fd); 917 (void) close(fd); 951 int fd; local 968 if ((fd = g_object_open(host_path, O_NDELAY | O_RDONLY)) == -1) { 980 if (g_issue_fcio_ioctl(fd, &fcio, verbose) != 0) { 982 (void) close(fd); 985 (void) close(fd); 1012 g_issue_fcio_ioctl(int fd, fcio_t *fcio, int verbose) argument 1065 g_issue_fcp_ioctl(int fd, struct fcp_ioctl *fcp_data, int verbose) argument 1131 int fd; local 1342 int dev_type, fd; local 1430 int dev_type, fd; local 1541 int fd, i, j, num_devices = 0, err, pathcnt = 1; local 2153 int fd, i, num_devices = 0, err, pathcnt = 1, new_count = 0; local 3324 int fd, fp_fd, err, length, exp_map_flag = 0, *port_addr; local 3942 int fd, status = 0; local 4001 int fd, status; local 4026 g_scsi_inquiry_cmd80(int fd, uchar_t *buf_ptr, int buf_len) argument 4049 g_find_supported_inq_page(int fd, int page_num) argument 4085 int fd; local 4114 int fd; local 4127 int status, fd; local 4140 int fd, status; local 4153 int fd, status; local 4764 int fd, i = 0, pathcnt = 1; local 4901 int path_type, fd; local 5000 int path_type, fd; local 5093 int fd, err, num_devices = 0; local 5213 int fd, err; local 5351 int fd; local 5985 int fd; local [all...] |
/osnet-11/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 4649 int fd = -1; local 4694 fd = open(fullpath, O_CREAT|O_TRUNC|O_RDWR, 0400); 4695 if (fd == -1) { 4762 (void) write(fd, (const void *) rkey->keydata.val, rkey->keydata.len); 4771 if (fd != -1) 4772 (void) close(fd); 4890 int fd; local 4896 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode); 4897 if (fd == -1 && errno == EEXIST) 4899 else if (fd [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/ses/common/ |
H A D | ses.c | 490 fds.fd = efd; 3109 int fd, rv; local 3116 fd = open("/dev/fm", O_RDONLY); 3117 if (fd < 0) { 3127 close(fd); 3138 rv = ioctl(fd, FM_IOC_GENTOPO_LEGACY, &fid); 3141 (void) close(fd); 3146 (void) close(fd);
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | perlio.c | 133 * the translation mode of the fd in the Borland RTL (heavy 257 int fd = PerlLIO_dup(PerlIO_fileno(f)); 258 if (fd >= 0) { 260 int omode = fcntl(fd, F_GETFL); 266 return PerlIO_fdopen(fd, mode); 285 PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, argument 297 fd = PerlLIO_open3(name, imode, perm); 298 if (fd >= 0) 299 return PerlIO_fdopen(fd, (char *) mode + 1); 310 return PerlIO_fdopen(fd, (cha 398 int fd = fileno(stdio); local 408 int fd = PerlIO_fileno(pio); local 1476 PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument 1870 PerlIORaw_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *old, int narg, SV **args) argument 2209 PerlIOUnix_refcnt_inc(int fd) argument 2224 PerlIOUnix_refcnt_dec(int fd) argument 2276 int fd; /* UNIX like file descriptor */ member in struct:__anon95 2343 PerlIOUnix_setfd(pTHX_ PerlIO *f, int fd, int imode) argument 2386 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local 2406 PerlIOUnix_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument 2457 int fd = os->fd; local 2476 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local 2502 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local 2527 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local 2639 int fd = PerlIO_fileno(n); local 2672 int fd = PerlLIO_dup(fileno(stdio)); local 2696 PerlIOStdio_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument 2799 int fd = fileno(stdio); local 2896 int fd = fileno(stdio); local 3390 int fd = PerlIO_fileno(f); local 3404 PerlIOBuf_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument 4364 int fd = PerlIO_fileno(f); local 4717 PerlIO_fdopen(int fd, const char *mode) argument 4847 int fd = -1; local 4972 vfprintf(FILE *fd, char *pat, char *args) argument [all...] |
H A D | toke.c | 4159 int fd = PerlIO_fileno(PL_rsfp); local 4160 fcntl(fd,F_SETFD,fd >= 3);
|
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/libc/port/gen/ |
H A D | localtime.c | 1502 int fd, namelen; local 1523 fd = 0; 1525 if ((fd = open(fullname, O_RDONLY)) == -1) { 1529 if (fstat64(fd, stp) == -1) { 1531 (void) close(fd); 1537 return (fd); 2709 int fd; local 2717 if ((fd = open(TZSYNC_FILE, O_RDONLY)) < 0) 2720 addr = mmap(0, sizeof (uint32_t), PROT_READ, MAP_SHARED, fd, 0); 2721 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/libstmf/common/ |
H A D | stmf.c | 105 static int openStmf(int, int *fd); 106 static int openSbd(int, int *fd); 107 static int openPppt(int, int *fd); 108 static int groupIoctl(int fd, int cmd, stmfGroupName *); 109 static int loadStore(int fd); 111 static int groupMemberIoctl(int fd, int cmd, stmfGroupName *, stmfDevid *); 113 static int addViewEntryIoctl(int fd, stmfGuid *, stmfViewEntry *); 114 static int loadHostGroups(int fd, stmfGroupList *); 115 static int loadTargetGroups(int fd, stmfGroupList *); 117 static int setStmfState(int fd, stmf_state_desc_ 163 openStmf(int flag, int *fd) argument 191 openSbd(int flag, int *fd) argument 219 openPppt(int flag, int *fd) argument 298 groupIoctl(int fd, int cmd, stmfGroupName *groupName) argument 423 groupListMemberIoctl(int fd, int cmd, stmfGroupList *groupList, stmfDevid *devid, void **opData) argument 496 groupMemberIoctl(int fd, int cmd, stmfGroupName *groupName, stmfDevid *devid) argument 654 int fd; local 732 int ret, fd; local 831 int fd; local 903 addViewEntryListIoctl(int fd, stmfGuid *lu, stmfViewEntryList *viewEntryList, void **opData) argument 1037 addViewEntryIoctl(int fd, stmfGuid *lu, stmfViewEntry *viewEntry) argument 1160 int i, fd, tmpret, ret; local 1282 int fd; local 1400 int fd; local 1517 int fd; local 1661 int fd = 0; local 1911 int fd = 0; local 2133 int fd; local 2228 int fd = 0; local 2392 int fd = 0; local 2745 int fd; local 2989 int fd; local 3131 int fd; local 3801 int fd; local 3883 int fd; local 3963 int fd; local 4047 int fd; local 4123 int fd; local 4269 int fd; local 4404 int fd; local 4785 int fd; local 4981 int fd; local 5114 int fd; local 5208 int fd; local 5358 int fd; local 5584 int fd; local 5799 int fd, ret, ioctlRet; local 5994 int fd; local 6181 loadHostGroups(int fd, stmfGroupList *groupList) argument 6233 loadTargetGroups(int fd, stmfGroupList *groupList) argument 6272 loadStore(int fd) argument 6502 int fd; local 6564 int fd; local 6668 int fd; local 6744 int fd; local 6797 setStmfState(int fd, stmf_state_desc_t *stmfState, int objectType) argument 6977 loadStmfProp(int fd) argument 7035 int fd; local 7062 int fd; local 7097 int fd; local 7136 int fd; local 7170 int fd; local 7203 int fd; local 7237 int fd; local 7270 int fd; local 7345 int fd; local 7408 removeViewEntryIoctl(int fd, stmfGuid *lu, uint32_t viewEntryIndex) argument 7473 int fd; local 7563 int fd; local 7646 int fd; local 7779 setProviderData(int fd, char *providerName, nvlist_t *nvl, int providerType, uint64_t *setToken) argument 8024 int fd; local 8081 validateLunNumIoctl(int fd, stmfViewEntry *viewEntry) argument 8192 int fd; local [all...] |
/osnet-11/usr/src/lib/libzonestat/common/ |
H A D | libzonestat.c | 94 int fd; local 96 fd = open(ZS_DOOR_PATH, O_RDONLY); 97 return (fd); 2562 int fd = -1; local 2574 fd = ctl->zsctl_door; 2584 if (door_call(fd, ¶ms) != 0) { 2723 int fd; local 2732 fd = zs_connect_zonestatd(); 2733 if (fd < 0) { 2747 if (door_call(fd, [all...] |
/osnet-11/usr/src/lib/sasl_plugins/digestmd5/ |
H A D | digestmd5.c | 492 int fd = open(_DEV_URANDOM, O_RDONLY); local 495 if (fd != -1) { 496 nread = read(fd, ret, NONCE_SIZE); 497 close(fd);
|
/osnet-11/usr/src/lib/libscf/common/ |
H A D | lowlevel.c | 758 * Like make_door_call(), but takes an fd instead of a handle, and expects 764 make_door_call_retfd(int fd, const void *req, size_t req_sz, void *res, argument 773 if (fd == -1) 783 while ((r = door_call(fd, &arg)) < 0) { 1184 int fd; local 1197 /* wait until any active fd users have cleared out */ 1218 fd = open(door_name, O_RDONLY, 0); 1219 if (fd == -1) { 1231 res = make_door_call_retfd(fd, &request, sizeof (request), 1234 (void) close(fd); 3983 int fd; local [all...] |
/osnet-11/usr/src/cmd/sendmail/db/ |
H A D | db.h | 452 int (*fd) __P((DB *, int *)); member in struct:__db
|