/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | HBA.cc | 334 int fd; local 336 if ((fd = open(path.c_str(), flag)) < 0) { 353 return (fd); 362 void HBA::_ioctl(int fd, int type, uchar_t *arg) { argument 374 if (ioctl(fd, type, arg) != 0) {
|
/osnet-11/usr/src/lib/sun_sas/common/ |
H A D | sun_sas.c | 384 int fd; local 392 if ((fd = open(devpath, O_RDONLY | O_NDELAY)) == -1) { 398 if (ioctl(fd, USCSICMD, ucmd) == -1) { 409 (void) close(fd); 413 (void) close(fd);
|
/osnet-11/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 1224 int fd; local 1226 fd = socket(AF_UNIX, SOCK_STREAM, 0); 1227 if (fd < 0) 1237 if (connect(fd, (struct sockaddr *)&addr, sizeof (addr)) < 0) { 1238 (void) close(fd); 1242 return (fd); 1254 int fd; local 1256 if ((fd = connect_to_inetd()) < 0) 1260 if (send(fd, &req, sizeof (req), 0) < 0) { 1261 (void) close(fd); 1331 int fd, i, serrno; local 1616 safe_sendto_write(int fd, const void *buf, size_t sz, int flags, const struct sockaddr *to, int tolen) argument 1638 safe_sendto(int fd, const void *buf, size_t sz, int flags, const struct sockaddr *to, int tolen) argument 1644 safe_write(int fd, const void *buf, size_t sz) argument [all...] |
/osnet-11/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 98 int fd; local 102 if ((fd = open(path, O_RDONLY)) < 0) 107 if (devid_get(fd, &devid) == 0) { 108 if (devid_get_minor_name(fd, &minor) == 0) 114 (void) close(fd); 861 zpool_read_label(int fd, nvlist_t **config) argument 870 if (fstat64(fd, &statbuf) == -1) 878 if (pread64(fd, label, sizeof (vdev_label_t), 997 check_slices(avl_tree_t *r, int fd, const char *sname) argument 1010 if (read_extvtoc(fd, 1036 int fd; local 1094 zpool_clear_label(int fd) argument 1537 int fd; local 1829 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, boolean_t *inuse) argument [all...] |
/osnet-11/usr/src/lib/libsmedia/plugins/scsi/common/ |
H A D | s_generic.c | 80 DPRINTF1("fd=%d\n", handle->sm_fd); 561 int32_t fd; local 574 fd = handle->sm_fd; 575 return (ioctl(fd, DKIOCEJECT)); 792 int ret_val, fd; local 805 fd = handle->sm_buffd; 809 (void) close(fd); 815 file_size = lseek(fd, 0, SEEK_END); 826 fd = mkstemp(fname); 827 if (fd [all...] |
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_statvfs.c | 118 pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf) argument 129 return (fstatvfs(fd, buf)); 131 adp->arg_value = fd;
|
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_optmgmt.c | 56 int fd, 74 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 244 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_OPTMGMT, &retlen) < 0) 55 _tx_optmgmt( int fd, const struct t_optmgmt *req, struct t_optmgmt *ret, int api_semantics ) argument
|
H A D | t_rcvudata.c | 54 int fd, 68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 120 if ((retval = getmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, 53 _tx_rcvudata( int fd, struct t_unitdata *unitdata, int *flags, int api_semantics ) argument
|
H A D | t_sndudata.c | 51 _tx_sndudata(int fd, const struct t_unitdata *unitdata, int api_semantics) argument 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 169 if (putmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, 0) < 0) {
|
H A D | t_sndvudata.c | 49 _tx_sndvudata(int fd, const struct t_unitdata *unitdata, struct t_iovec *tiov, argument 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 177 if (putmsg(fd, &ctlbuf, &databuf, 0) < 0) {
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | svc_run.c | 62 extern void set_pollfd(int /* fd */, short /* events */); 143 int svc_nfds_set; /* total number of fd bits set in svc_fdset */ 169 static int svc_next_pollfd; /* next fd to processin svc_pollset */ 262 int fd; local 273 for (fd = 0; fd < svc_max_pollfd; fd++) { 274 xprt = svc_xports[fd]; 341 * Check whether there is any server fd on which we may want 374 * svc_pollset[mypollfd].fd 808 select_next_pollfd(int *fd, int *pollfdIndex) argument 849 int fd = parent->xp_fd; local [all...] |
/osnet-11/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 831 nread (int fd, char *buf, size_t len) argument 837 int ret = read (fd, buf, len); 857 nwrite (int fd, char *buf, size_t len) argument 863 int ret = write (fd, buf, len); 934 int fd = geometry->flags; local 937 if (fd == -1 || fd != disks[drive].flags) 952 if (_llseek (fd, offset >> 32, offset & 0xffffffff, &result, SEEK_SET)) 959 if (lseek (fd, offset, SEEK_SET) != offset) 976 if (nread (fd, bu [all...] |
/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | flush.c | 548 int fd = GET_FD(iop); local 549 while ((num_wrote = write(fd, base, (size_t)n)) != n) { 772 /* flush buffer, close fd but keep the stream used by freopen() */ 844 * They lookup/set large fd's for extended FILE support. 848 * The negative value indicates that Extended fd FILE's has not 887 _file_set(FILE *iop, int fd, const char *type) argument 905 dat->_altfd = fd; 911 * Activates extended fd's in FILE's 918 enable_extended_FILE_stdio(int fd, int action) argument 925 if (fd < [all...] |
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 90 int fd; local 105 if ((procfd = __open64("/proc/self/fd", O_RDONLY, 0)) < 0) { 127 (fd = atoi(dp->d_name)) != procfd && 128 fd >= lowfd) 129 (void) __close(fd); 191 int fd; local 196 fd = __open(fap->fa_path, fap->fa_oflag, fap->fa_mode); 197 if (fd < 0) 199 if (fd != fap->fa_filedes) { 200 if (__fcntl(fd, F_DUP2F [all...] |
/osnet-11/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 404 int fd, front_index, rear_index, offset, err; local 416 if ((fd = g_object_open(ses_path, O_NDELAY | O_RDWR)) == -1) { 421 if ((err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH, 424 (void) close(fd); 433 (void) close(fd); 463 (void) close(fd); 469 (void) close(fd); 500 err = g_scsi_send_diag_cmd(fd, (uchar_t *)page_buf, page_len); 502 (void) close(fd); 534 int fd, ses_pi local [all...] |
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | mod.c | 124 int fd; local 126 if ((fd = open(objpath, O_RDONLY)) < 0) { 135 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { 164 (void) close(fd); 170 if (fd >= 0) 171 (void) close(fd);
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_open.c | 167 t->bt_fd = -1; /* Don't close unopened fd on error. */ 184 dbp->fd = __bt_fd; 403 int fd; local 426 if ((fd = mkstemp(path)) != -1) 428 set_cloexec_fd(fd); 435 /* Ensure the fd is in binary mode. */ 436 setmode(fd, O_BINARY); 439 return(fd);
|
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Ucred/ |
H A D | Ucred.xs | 117 getpeerucred(fd) 118 int fd; 121 if (getpeerucred(fd, &RETVAL) != 0)
|
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newterm.c | 450 typeahead(fd) 451 int fd; 454 __m_trace("typeahead(%d)", fd); 457 __m_screen->_kfd = fd; 460 if (fd != -1 && isatty(fd))
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | doio.c | 90 int fd; local 113 fd = PerlIO_fileno(IoIFP(io)); 118 else if (fd >= 0 && fd <= PL_maxsysfd) { 123 savefd = fd; 131 PerlIO_close(IoIFP(io)); /* clear stdio, fd already closed */ 138 if (result == EOF && fd > PL_maxsysfd) { 336 fd = SvUV(*svp); 340 fd = atoi(type); 376 fd 931 int fd[2]; local 1420 Perl_do_aexec5(pTHX_ SV *really, register SV **mark, register SV **sp, int fd, int do_report) argument 1488 Perl_do_exec3(pTHX_ char *cmd, int fd, int do_report) argument [all...] |
/osnet-11/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 223 pfd[0].fd = sockfd; 259 /* only using one fd, so no need to scan pfd */ 705 int fd, i, num_givenifs; local 770 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 779 (*fds)[i].fd = fd; 791 /* bind fd to interface */ 792 if (bind(fd, (struct sockaddr *)bcsin, 802 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, 847 if ((fd [all...] |
/osnet-11/usr/src/lib/libsmedia/library/common/ |
H A D | l_misc.c | 194 get_dev_library_handle(int32_t fd) argument 206 if (ioctl(fd, DKIOCINFO, &dkinfo) == -1) { 333 get_handle_from_fd(int32_t fd) argument 360 if (ioctl(fd, DKIOCINFO, &handle->sm_dkinfo) == -1) { 365 lib_handle = get_dev_library_handle(fd); 376 DPRINTF2("fd=%d signature=0x%x\n", handle->sm_fd, handle->sm_signature); 400 ddesc[0].d_data.d_desc.d_descriptor = fd; 475 handle->sm_fd = fd; 483 handle->sm_fd = fd;
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | os-ip.c | 331 if (sip->fds[i].fd == sb->sb_sd){ 337 sip->fds[sip->nbfds].fd = sb->sb_sd; 358 if (sip->fds[i].fd == sb->sb_sd) { 365 sip->fds[sip->nbfds].fd = sb->sb_sd; 385 if (sip->fds[i].fd == sb->sb_sd){ 390 sip->fds[i].fd = -1; 410 if (sip->fds[i].fd == sb->sb_sd) { 430 if (sip->fds[i].fd == sb->sb_sd) {
|
/osnet-11/usr/src/lib/libldap4/util/ |
H A D | log.c | 56 ldaplogconfigf(FILE *fd) argument 58 logfd = fd;
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | log.c | 56 ldaplogconfigf(FILE *fd) argument 58 logfd = fd;
|