/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | xti_wrappers.c | 79 _xti_close(int fd) in _xti_close() argument 81 return (_tx_close(fd, TX_XTI_API)); in _xti_close() 119 _xti_getstate(int fd) in _xti_getstate() argument 131 _xti_look(int fd) in _xti_look() argument 133 return (_tx_look(fd, TX_XTI_API)); in _xti_look() 167 _xti_rcvrel(int fd) in _xti_rcvrel() argument 169 return (_tx_rcvrel(fd, TX_XTI_API)); in _xti_rcvrel() 224 _xti_sndrel(int fd) in _xti_sndrel() argument 261 _xti_sync(int fd) in _xti_sync() argument 263 return (_tx_sync(fd, TX_XTI_API)); in _xti_sync() [all …]
|
H A D | tli_wrappers.c | 60 t_close(int fd) in t_close() argument 62 return (_tx_close(fd, TX_TLI_API)); in t_close() 99 t_getstate(int fd) in t_getstate() argument 105 t_listen(int fd, struct t_call *call) in t_listen() argument 111 t_look(int fd) in t_look() argument 113 return (_tx_look(fd, TX_TLI_API)); in t_look() 152 t_rcvrel(int fd) in t_rcvrel() argument 182 t_sndrel(int fd) in t_sndrel() argument 200 t_sync(int fd) in t_sync() argument 202 return (_tx_sync(fd, TX_TLI_API)); in t_sync() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | speedtest.tcl | 17 close $fd 76 puts $fd { 80 close $fd 84 puts $fd { 88 close $fd 96 close $fd 134 close $fd 147 close $fd 158 close $fd 167 close $fd [all …]
|
H A D | speedtest2.tcl | 17 close $fd 68 puts $fd { 72 close $fd 76 puts $fd { 80 close $fd 88 close $fd 126 close $fd 132 close $fd 143 close $fd 149 close $fd [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/ |
H A D | implicit_dependencies_verbose | 2671 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2673 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2676 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2679 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2681 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2683 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2685 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2687 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2689 'reason': set([('fd', 'file'), ('fd', 'flags')])}, 2691 'reason': set([('fd', 'file'), ('fd', 'flags')])}, [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_files.c | 42 int fd, in evSelectFD() argument 58 if (fd > ctx->highestFD) in evSelectFD() 70 if (fd >= ctx->maxnfds && evPollfdRealloc(ctx, 1, fd) != 0) in evSelectFD() 101 id->fd = fd; in evSelectFD() 130 ctx->fdTable[fd] = id; in evSelectFD() 134 FD_SET(fd, &ctx->rdNext); in evSelectFD() 141 if (fd > ctx->fdMax) in evSelectFD() 142 ctx->fdMax = fd; in evSelectFD() 219 if (cur->fd == del->fd) in evDeselectFD() 250 ctx->fdMax = cur->fd; in evDeselectFD() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | fifo_buffs.c | 51 ResetFifoBuffer(int fd) in ResetFifoBuffer() argument 59 if (FifoBufferTable [fd]) { in ResetFifoBuffer() 63 FifoBufferTable [fd]->save; in ResetFifoBuffer() 70 GetFifoBuffer(int fd) in GetFifoBuffer() argument 72 if (fd < 0) { in GetFifoBuffer() 76 if ((fd >= FifoBufferTableSize) && (GrowFifoBufferTable (fd) < 0)) in GetFifoBuffer() 79 if (!FifoBufferTable [fd]) { in GetFifoBuffer() 80 if (!NewFifoBuffer (fd)) in GetFifoBuffer() 89 return FifoBufferTable [fd]; in GetFifoBuffer() 111 GrowFifoBufferTable (int fd) in GrowFifoBufferTable() argument [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_get_info.c | 58 int fd; in proc_get_cred() local 68 (void) close(fd); in proc_get_cred() 77 int fd; in proc_get_secflags() local 107 int fd; in proc_get_priv() local 136 int fd; in proc_get_ldt() local 160 (void) close(fd); in proc_get_ldt() 169 int fd; in proc_get_psinfo() local 186 int fd; in proc_get_status() local 209 int fd; in proc_get_auxv() local 226 int fd; in proc_get_lwpsinfo() local [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | add_definition.c | 79 FILE *fd; in add_definition() local 168 add_disktype(fd, cur_disk); in add_definition() 171 add_partition(fd, cur_disk, cur_parts); in add_definition() 176 (void) fclose(fd); in add_definition() 194 col = add_entry(0, fd, " : ctlr = %s", in add_disktype() 274 col = add_entry(col, fd, " : bps = %d", in add_disktype() 336 col = add_entry(col, fd, " : %c = ", in add_partition() 342 col = add_entry(col, fd, " %s,", s); in add_partition() 372 (void) fprintf(fd, " \\\n"); in add_entry() 376 col += fprintf(fd, "\t"); in add_entry() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/without_structs/ |
H A D | implicit_dependencies_verbose.pretty | 582 'reason': set([('fd', 'flags')])}, 683 'reason': set([('fd', 'flags')])}, 691 'reason': set([('fd', 'flags')])}, 901 'reason': set([('fd', 'flags')])}, 1303 'reason': set([('fd', 'flags'), 1383 'reason': set([('fd', 'flags')])}, 1506 'reason': set([('fd', 'flags'), 9273 'reason': set([('fd', 'flags'), 9277 'reason': set([('fd', 'flags'), 9287 'reason': set([('fd', 'flags'), [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | files.c | 84 if (fd == 1) in fdprintf() 116 if (fd == 1) in fdputc() 125 int fd, in open_locked() local 186 Close(fd); in open_locked() 206 int fd; in open_lpfile() local 268 int fd; in loadline() local 286 close(fd); in loadline() 297 int fd; in loadstring() local 310 close(fd); in loadstring() 321 int fd; in dumpstring() local [all …]
|
/illumos-gate/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 212 if (iwrite(fd, &v, 1) != 1) in ipp_write_attribute() 223 if (iwrite(fd, &v, 4) != 4) in ipp_write_attribute() 251 if (iwrite(fd, &x, 4) != 4) in ipp_write_attribute() 253 if (iwrite(fd, &y, 4) != 4) in ipp_write_attribute() 268 if (iwrite(fd, &s, 2) != 2) in ipp_write_attribute() 271 if (iwrite(fd, &c, 1) != 1) in ipp_write_attribute() 358 if (iwrite(fd, &c, 1) != 1) in ipp_write_attribute_groups() 376 if (iwrite(fd, &c, 1) != 1) in ipp_write_message_header() 381 if (iwrite(fd, &c, 1) != 1) in ipp_write_message_header() 388 if (iwrite(fd, &s, 2) != 2) in ipp_write_message_header() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 97 int fd; in nlist() local 110 (void) close(fd); in nlist() 115 (void) close(fd); in nlist() 125 (void) close(fd); in nlist() 274 (void) close(fd); in _elf_nlist() 350 (void) close(fd); in end_elf_job() 394 sym_close(fd); in _coff_nlist() 471 sym_close(fd); in _coff_nlist() 479 sym_close(int fd) in sym_close() argument 494 sym_close(fd); in sym_read() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fio.c | 265 for (fd = minfd; (uint_t)fd < fip->fi_nfiles; fd |= fd + 1) { in fd_find() 266 size = fd ^ (fd | (fd + 1)); in fd_find() 302 int fd; in flist_minsize() local 311 for (fd = fip->fi_nfiles; fd != 0; fd >>= 1) in flist_minsize() 327 for (fd = fip->fi_nfiles; fd != 0; fd >>= 1) in flist_nalloc() 904 for (fd = 0; fd < fip->fi_nfiles; fd++, ufp++) { in closeall() 1018 if (fd >= 0 && fd == fip->fi_badfd) { in ufalloc_file() 1454 for (fd = 0; fd < fip->fi_nfiles; fd++, ufp++) { in close_exec() 1617 for (fd = 0; fd < fip->fi_nfiles; fd++) { in fisopen() 1644 for (fd = 0; fd < fip->fi_nfiles; fd++) { in files_can_change_zones() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 140 int fd; in nfslib_transport_open() local 153 if (fd == -1) { in nfslib_transport_open() 216 return (fd); in nfslib_transport_open() 285 int fd; in nfslib_bindit() local 447 return (fd); in nfslib_bindit() 522 anonmlp(int fd) in anonmlp() argument 813 poll_array[num_fds].fd = fd; in add_to_poll_list() 847 if (poll_array[i].fd == fd) { in remove_from_poll_list() 907 oldfd = fd; in do_poll_clts_action() 1172 int fd; in conn_close_oldest() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | io.c | 615 job.fd=fd; in io_preserve() 616 *shp->fdptrs[fd] = fd; in io_preserve() 831 if((fd=dup(fd))<0) in sh_open() 899 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0) in sh_pipe() 1763 for(newfd=fd=0; fd < shp->topfd; fd++) in sh_iounsave() 1785 for (fd = shp->topfd - 1; fd >= last; fd--) in sh_iorestore() 1842 for (fd = last ; fd < shp->topfd; fd++) in sh_iorestore() 2269 if(fd<0 || fd==PSEUDOFD || !VALIDATE_FD(shp, fd)) in sftrack() 2739 if(!fd || memcmp(fd,"/dev/fd/",8) || fd[8]==0) in sh_isdevfd() 2741 for ( fd=&fd[8] ; *fd != '\0' ; fd++ ) in sh_isdevfd() [all …]
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | state.cc | 46 #define XFWRITE(string, length, fd) {if (fwrite(string, 1, length, fd) == 0) \ argument 52 #define XFPUTS(string, fd) fputs(string, fd) argument 123 FILE *fd; in write_state_file() local 202 (void) fclose(fd); in write_state_file() 228 fd); in write_state_file() 233 fd); in write_state_file() 280 fd); in write_state_file() 303 fd, in write_state_file() 346 fd); in write_state_file() 422 fd); in print_auto_depes() [all …]
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | mmc.h | 126 int test_unit_ready(int fd); 127 int inquiry(int fd, uchar_t *inq); 133 int read_disc_info(int fd, uchar_t *di); 143 int load_unload(int fd, int load); 144 int prevent_allow_mr(int fd, int op); 148 int set_streaming(int fd, uchar_t *buf); 149 int rezero_unit(int fd); 150 int start_stop(int fd, int start); 151 int flush_cache(int fd); 153 int format_media(int fd); [all …]
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | libcontract.c | 41 ct_tmpl_activate(int fd) in ct_tmpl_activate() argument 43 if (ioctl(fd, CT_TACTIVATE) == -1) in ct_tmpl_activate() 49 ct_tmpl_clear(int fd) in ct_tmpl_clear() argument 51 if (ioctl(fd, CT_TCLEAR) == -1) in ct_tmpl_clear() 181 ct_ctl_adopt(int fd) in ct_ctl_adopt() argument 183 if (ioctl(fd, CT_CADOPT) == -1) in ct_ctl_adopt() 189 ct_ctl_abandon(int fd) in ct_ctl_abandon() argument 191 if (ioctl(fd, CT_CABANDON) == -1) in ct_ctl_abandon() 487 ct_event_reset(int fd) in ct_event_reset() argument 489 if (ioctl(fd, CT_ERESET) == -1) in ct_event_reset() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/forms/ |
H A D | wrform.c | 75 print_sdn(fd, HEAD, formp->plen); in wrform() 83 print_sdn(fd, HEAD, formp->lpi); in wrform() 100 fdprintf(fd, ",%s", MANSTR); in wrform() 101 fdprintf(fd, "\n"); in wrform() 110 fdprintf(fd, "%s\n", HEAD); in wrform() 117 fdputc ('>', fd); in wrform() 118 fdprintf(fd, "%s\n", cp); in wrform() 135 fdprintf(fd, ",%s", DFTSTR); in wrform() 136 fdprintf(fd, "\n"); in wrform() 192 (void)fdprintf(fd, "%s ", head); in print_sdn() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/ |
H A D | libfruaccess.c | 152 int fd; in fru_get_num_sections() local 171 int fd; in fru_get_sections() local 190 int fd; in fru_get_num_segments() local 209 int fd; in fru_get_segments() local 229 int fd; in fru_add_segment() local 259 int fd; in fru_delete_segment() local 285 int fd; in fru_read_segment() local 305 int fd; in fru_write_segment() local 326 int fd; in fru_get_num_packets() local 345 int fd; in fru_get_packets() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 38 int fd; 52 int fd; 80 fcntl(apl->fd, F_SETLK, &lock); 84 close(apl->fd); 88 fd = -1; 120 …if (fd >= 0 || (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexe… 137 if (fcntl(fd, F_SETLKW, &lock) < 0) 149 fcntl(fd, F_SETLK, &lock); 151 apl->fd = fd; 158 if (fd >= 0) [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/requests/ |
H A D | putrequest.c | 65 int fd; local 137 (void)fdprintf(fd, "%s%s\n", HEAD, *pp); 142 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->form); 149 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_RESUME); 151 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_HOLD); 156 (void)fdprintf(fd, "%sM\n", HEAD); 158 (void)fdprintf(fd, "%sW\n", HEAD); 160 (void)fdprintf(fd, "%sN\n", HEAD); 207 (void)fdprintf(fd, "%s\n", HEAD); 212 (void)fdprintf(fd, "%s\n", HEAD); [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmterm.c | 129 turnon_canon(int fd) in turnon_canon() argument 136 if (ioctl(fd, TCGETA, &termio) != 0) { in turnon_canon() 157 flush_input(int fd) in flush_input() argument 159 if (ioctl(fd, I_FLUSH, FLUSHR) == -1) in flush_input() 162 if (ioctl(fd, TCSBRK, 1) == -1) in flush_input() 172 int fd, /* fd to push modules on */ in push_linedisc() argument 193 if (ioctl(fd, I_PUSH, p) == -1) { in push_linedisc() 206 hang_up_line(int fd) in hang_up_line() argument 250 if (auto_termio(fd) == -1) { in initial_termio() 251 (void) close(fd); in initial_termio() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | mkservice.c | 118 short fd; member 140 if(sp->fd==fd) in fdclose() 187 if(fd==sp->fd) /* connection socket */ in process_stream() 191 fd = accept(fd, &addr, &addrlen); in process_stream() 195 if(fd>=0) in process_stream() 207 close(fd); in process_stream() 285 int fd; in Accept() local 307 return fd; in Accept() 449 if((sp->fd = fcntl(fd, F_DUPFD, 10))>=10) in b_mkservice() 450 close(fd); in b_mkservice() [all …]
|