/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_util.c | 269 smbfs_get_xti_err(int fd) argument 276 look = t_look(fd); 279 (void) t_rcvdis(fd, NULL); 280 (void) t_snddis(fd, NULL); 284 (void) t_rcvrel(fd); 286 (void) t_sndrel(fd);
|
/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/libkmf/libkmf/common/ |
H A D | csrcrlop.c | 139 int fd = -1; local 158 if ((fd = open(csrfile, O_CREAT |O_RDWR, 0644)) == -1) { 164 if (write(fd, pemdata.Data, pemdata.Length) != 169 if (write(fd, csrdata->Data, csrdata->Length) != 176 if (fd != -1) 177 (void) close(fd);
|
/osnet-11/usr/src/lib/libnsl/dial/ |
H A D | sysfiles.c | 655 pop_push(int fd) argument 665 if (ioctl(fd, I_LOOK, onstream) == -1) { 666 DEBUG(5, "pop_push: I_LOOK on fd %d failed ", fd); 676 if (ioctl(fd, I_POP, 0) == -1) { 677 DEBUG(5, "pop_push: I_POP on fd %d failed ", fd); 686 if (ioctl(fd, I_PUSH, strmod) == -1) { 687 DEBUG(5, "pop_push: I_PUSH on fd %d failed ", fd); [all...] |
/osnet-11/usr/src/lib/libnsl/key/ |
H A D | publickey.c | 232 FILE *fd; local 236 fd = fopen(PKFILE, "rF"); 237 if (fd == NULL) { 243 while ((res = fgets(buf, WORKBUFSIZE, fd)) != NULL) { 288 (void) fclose(fd); 295 (void) fclose(fd);
|
/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...] |
H A D | clnt_dg.c | 67 * This machinery implements per-fd locks for MT-safety. It is not 69 * user may create more than one CLIENT handle with the same fd behind 93 int cu_fd; /* connections fd */ 115 * fd should be open and bound. 127 clnt_dg_create(const int fd, struct netbuf *svcaddr, const rpcprog_t program, argument 150 if (t_getinfo(fd, &tinfo) == -1) { 163 (void) __rpc_tli_set_options(fd, SOL_SOCKET, SO_DGRAM_ERRIND, 213 tr_data = (struct t_unitdata *)t_alloc(fd, T_UNITDATA, T_ADDR | T_OPT); 227 cu->cu_fd = fd; 233 cu->pfdp.fd [all...] |
H A D | svc_door.c | 316 int fd; local 340 fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0644); 342 if (fd < 0) { 351 fd = open(rendezvous, O_WRONLY|O_CREAT|O_EXCL| 354 if (fd < 0) { 367 (void) close(fd);
|
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/lib/libpctx/common/ |
H A D | libpctx.c | 407 int fd, nlwp; local 424 if ((fd = open(lstatus, O_RDONLY)) < 0 || 425 fstat(fd, &statb) != 0) { 426 if (fd >= 0) 427 (void) close(fd); 432 if (read(fd, prh, statb.st_size) < 434 (void) close(fd); 438 (void) close(fd);
|
/osnet-11/usr/src/lib/libpkg/common/ |
H A D | verify.c | 261 int fd; local 275 if ((fd = open(a_path, O_RDONLY)) < 0) { 282 if (fstat64(fd, &sbuf) != 0) { 298 while ((nread = read(fd, (void*)buf, 320 (void) close(fd);
|
/osnet-11/usr/src/lib/libpower/common/ |
H A D | pm_suspend.c | 152 int fd, rc; local 168 if ((fd = open(rdskname, O_RDONLY)) == -1) { 170 } else if ((rc = read_vtoc(fd, &vtoc)) >= 0) { 177 (void) close(fd); 180 (efi_alloc_and_read(fd, &gpt)) >= 0) { 183 (void) close(fd); 428 int fd, createdir = 0; local 518 (fd = open(cpr_conf, O_RDONLY)) != -1) { 519 nread = read(fd, &cc, sizeof (cc)); 527 (void) close(fd); 629 int fd, upval; local [all...] |
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | stty.c | 36 "[f|F:fd|file?Use \afd\a as the terminal fd.]#[fd:=0]" 904 int fd = 0; local 918 fd = (int)opt_info.num; 955 if (tcgetattr(fd, &tty) < 0)
|
/osnet-11/usr/src/lib/libcontract/common/ |
H A D | libcontract.c | 43 ct_tmpl_activate(int fd) argument 45 if (ioctl(fd, CT_TACTIVATE) == -1) 51 ct_tmpl_clear(int fd) argument 53 if (ioctl(fd, CT_TCLEAR) == -1) 59 ct_tmpl_create(int fd, ctid_t *ctidp) argument 61 ctid_t ctid = ioctl(fd, CT_TCREATE); 69 ct_tmpl_set_internal(int fd, uint_t id, uintptr_t value) argument 77 if (ioctl(fd, CT_TSET, ¶m) == -1) 84 ct_tmpl_set_internal_string(int fd, uint_t id, const char *value) argument 93 if (ioctl(fd, CT_TSE 100 ct_tmpl_set_critical(int fd, uint_t events) argument 106 ct_tmpl_set_informative(int fd, uint_t events) argument 112 ct_tmpl_set_cookie(int fd, uint64_t cookie) argument 126 ct_tmpl_get_internal(int fd, uint_t id, uint_t *value) argument 141 ct_tmpl_get_internal_string(int fd, uint32_t id, char *buf, size_t size) argument 154 ct_tmpl_get_critical(int fd, uint_t *events) argument 160 ct_tmpl_get_informative(int fd, uint_t *events) argument 166 ct_tmpl_get_cookie(int fd, uint64_t *cookie) argument 183 ct_ctl_adopt(int fd) argument 191 ct_ctl_abandon(int fd) argument 208 ct_ctl_ack(int fd, ctevid_t event) argument 216 ct_ctl_nack(int fd, ctevid_t event) argument 224 ct_ctl_qack(int fd, ctevid_t event) argument 236 ct_status_read(int fd, int detail, ct_stathdl_t *stathdl) argument 414 ct_event_read_internal(int fd, int cmd, ct_evthdl_t *evt) argument 478 ct_event_read(int fd, ct_evthdl_t *evthdl) argument 484 ct_event_read_critical(int fd, ct_evthdl_t *evthdl) argument 490 ct_event_reset(int fd) argument 498 ct_event_reliable(int fd) argument [all...] |
/osnet-11/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 187 dhcp_ipc_recv_msg(int fd, void **msg, uint32_t base_length, int msec) argument 193 retval = dhcp_ipc_timed_read(fd, &length, sizeof (uint32_t), &msec); 204 retval = dhcp_ipc_timed_read(fd, *msg, length, &msec); 239 dhcp_ipc_recv_request(int fd, dhcp_ipc_request_t **request, int msec) argument 243 retval = dhcp_ipc_recv_msg(fd, (void **)request, DHCP_IPC_REQUEST_SIZE, 265 dhcp_ipc_recv_reply(int fd, dhcp_ipc_reply_t **reply, int32_t timeout) argument 290 return (dhcp_ipc_recv_msg(fd, (void **)reply, DHCP_IPC_REPLY_SIZE, 304 dhcp_ipc_send_msg(int fd, void *msg, uint32_t message_length) argument 313 if (writev(fd, iovec, sizeof (iovec) / sizeof (*iovec)) == -1) 328 dhcp_ipc_send_reply(int fd, dhcp_ipc_reply_ argument 343 dhcp_ipc_send_request(int fd, dhcp_ipc_request_t *request) argument 372 int fd, on, retval; local 468 dhcp_ipc_accept(int listen_fd, int *fd, int *is_priv) argument 525 dhcp_ipc_close(int fd) argument 973 dhcp_ipc_timed_read(int fd, void *buffer, unsigned int length, int *msec) argument [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/ |
H A D | dhcp_network.c | 73 int fd; local 84 retval = open_file(dnpath, flags, &fd); 90 fp = fdopen(fd, flags & DSVC_WRITE ? "r+" : "r"); 92 (void) close(fd); 168 find_dn(int fd, uint_t flags, uint_t query, int count, const dn_rec_t *targetp, argument 187 if (fstat(fd, &st) == -1 || st.st_size < 1) 190 ent0 = mmap(0, st.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); 344 int fd; local 351 fd = open(dnpath, O_RDONLY); 352 if (fd 460 int fd, newfd; local 725 write_rec(int fd, dn_rec_t *recp, off_t recoff) argument [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/ |
H A D | dhcp_network.c | 67 int fd; local 83 retval = open_file(dnpath, flags, &fd); 88 (void) close(fd); 622 * Write the dn_rec_t `recp' into the open container `fd' at offset 626 write_rec(int fd, dn_rec_t *recp, off_t recoff) argument 664 if (pnwrite(fd, ent, entlen, recoff) == -1)
|
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | slice.c | 63 static int get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs); 111 int fd; local 126 fd = open(devpath, O_RDONLY|O_NDELAY); 128 if ((*errp = get_attrs(dp, fd, attrs)) != 0) { 133 if (fd >= 0) { 134 (void) close(fd); 219 int fd; local 223 fd = open(devpath, O_RDONLY|O_NDELAY); 225 if (fd >= 0 && media_read_info(fd, 387 get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs) argument 631 int fd; local 732 int fd; local 776 int fd; local 831 int fd; local [all...] |
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_pid.c | 522 int i, fd = -1; local 555 if (fd == -1 && 556 (fd = pr_open(P, "/dev/dtrace/helper", O_RDWR, 0)) < 0) { 562 if (pr_ioctl(P, fd, DTRACEHIOC_ADDDOF, &dh, sizeof (dh)) < 0) 566 if (fd != -1) 567 (void) pr_close(P, fd);
|
/osnet-11/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 118 read_disk_info(int fd, diskaddr_t *capacity, uint_t *lbsize) argument 122 if ((ioctl(fd, DKIOCGMEDIAINFO, (caddr_t)&disk_info)) == -1) 140 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) argument 150 if (read_disk_info(fd, &capacity, &lbsize) != 0) { 204 efi_alloc_and_read(int fd, struct dk_gpt **vtoc) argument 218 rval = efi_read(fd, *vtoc); 233 rval = efi_read(fd, *vtoc); 250 efi_ioctl(int fd, int cmd, dk_efi_t *dk_ioc) argument 256 error = ioctl(fd, cmd, (void *)dk_ioc); 263 check_label(int fd, dk_efi_ argument 309 efi_read(int fd, struct dk_gpt *vtoc) argument 607 int i, fd, retries = 0; local 639 write_pmbr(int fd, struct dk_gpt *vtoc) argument 869 efi_use_whole_disk(int fd) argument 986 efi_write(int fd, struct dk_gpt *vtoc) argument 1249 efi_type(int fd) argument 1362 efi_auto_sense(int fd, struct dk_gpt **vtoc) argument [all...] |
/osnet-11/usr/src/lib/libfcoe/common/ |
H A D | libfcoe.c | 56 * fd - pointer to integer. On success, contains the fcoe file descriptor 59 openFcoe(int flag, int *fd) argument 63 if ((*fd = open(FCOE_DEV_PATH, O_NDELAY | O_RDONLY | flag)) != -1) {
|
/osnet-11/usr/src/lib/libipsecutil/common/ |
H A D | algs.c | 187 int fd, i, j, k; local 204 fd = open(tmp_name, O_WRONLY|O_CREAT|O_EXCL, CFG_PERMS); 205 if (fd == -1) { 210 f = fdopen(fd, "w"); 212 (void) close(fd); 315 if (fchmod(fd, CFG_PERMS) == -1) { 319 if (fchown(fd, CFG_OWNER, CFG_GROUP) == -1) {
|
/osnet-11/usr/src/lib/efcode/fcdriver/ |
H A D | misc.c | 463 FILE *fd; local 467 if ((fd = popen(buf, "r")) == NULL) 469 fgets(buf, sizeof (buf), fd); 470 pclose(fd);
|
/osnet-11/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi_uscsi.c | 1039 uscsi_cmd(int fd, struct uscsi_cmd *ucmd, void *rqbuf, int *rqlen) argument 1101 status = ioctl(fd, USCSICMD, ucmd); 1163 uscsi_request_sense(int fd, caddr_t buf, int buflen, void *rqbuf, int *rqblen) argument 1178 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1195 uscsi_mode_sense(int fd, int page_code, int page_control, caddr_t page_data, argument 1229 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1331 uscsi_mode_sense_10(int fd, int page_code, int page_control, argument 1365 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); 1470 uscsi_mode_select(int fd, int page_code, int options, caddr_t page_data, argument 1526 status = uscsi_cmd(fd, 1538 uscsi_mode_select_10(int fd, int page_code, int options, caddr_t page_data, int page_size, struct scsi_ms_header_g1 *header, void *rqbuf, int *rqblen) argument 1607 uscsi_log_sense(int fd, int page_code, int page_control, caddr_t page_data, int page_size, void *rqbuf, int *rqblen) argument [all...] |
/osnet-11/usr/src/lib/fm/libldom/sparc/ |
H A D | ldmsvcs_utils.h | 71 int fd; /* FD for this channel */ member in struct:fds_channel
|