Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 1941) sorted by relevance

12345678910>>...78

/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dxti_wrappers.c82 _xti_close(int fd) in _xti_close() argument
84 return (_tx_close(fd, TX_XTI_API)); in _xti_close()
122 _xti_getstate(int fd) in _xti_getstate() argument
134 _xti_look(int fd) in _xti_look() argument
136 return (_tx_look(fd, TX_XTI_API)); in _xti_look()
170 _xti_rcvrel(int fd) in _xti_rcvrel() argument
172 return (_tx_rcvrel(fd, TX_XTI_API)); in _xti_rcvrel()
227 _xti_sndrel(int fd) in _xti_sndrel() argument
264 _xti_sync(int fd) in _xti_sync() argument
266 return (_tx_sync(fd, TX_XTI_API)); in _xti_sync()
[all …]
H A Dtli_wrappers.c62 t_close(int fd) in t_close() argument
64 return (_tx_close(fd, TX_TLI_API)); in t_close()
101 t_getstate(int fd) in t_getstate() argument
107 t_listen(int fd, struct t_call *call) in t_listen() argument
113 t_look(int fd) in t_look() argument
115 return (_tx_look(fd, TX_TLI_API)); in t_look()
154 t_rcvrel(int fd) in t_rcvrel() argument
184 t_sndrel(int fd) in t_sndrel() argument
202 t_sync(int fd) in t_sync() argument
204 return (_tx_sync(fd, TX_TLI_API)); in t_sync()
[all …]
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dspeedtest.tcl20 close $fd
79 puts $fd {
83 close $fd
87 puts $fd {
91 close $fd
99 close $fd
137 close $fd
150 close $fd
161 close $fd
170 close $fd
[all …]
H A Dspeedtest2.tcl20 close $fd
71 puts $fd {
75 close $fd
79 puts $fd {
83 close $fd
91 close $fd
129 close $fd
135 close $fd
146 close $fd
152 close $fd
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/
H A Dimplicit_dependencies_verbose2671 '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/cmd/lp/lib/msgs/
H A Dfifo_buffs.c53 ResetFifoBuffer(int fd) in ResetFifoBuffer() argument
61 if (FifoBufferTable [fd]) { in ResetFifoBuffer()
72 GetFifoBuffer(int fd) in GetFifoBuffer() argument
74 if (fd < 0) { in GetFifoBuffer()
78 if ((fd >= FifoBufferTableSize) && (GrowFifoBufferTable (fd) < 0)) in GetFifoBuffer()
81 if (!FifoBufferTable [fd]) { in GetFifoBuffer()
82 if (!NewFifoBuffer (fd)) in GetFifoBuffer()
91 return FifoBufferTable [fd]; in GetFifoBuffer()
113 GrowFifoBufferTable (int fd) in GrowFifoBufferTable() argument
123 FifoBufferTableSize = fd+10; in GrowFifoBufferTable()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_files.c42 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/format/
H A Dadd_definition.c81 FILE *fd; in add_definition() local
170 add_disktype(fd, cur_disk); in add_definition()
178 (void) fclose(fd); in add_definition()
187 add_disktype(fd, disk_info) in add_disktype() argument
188 FILE *fd; in add_disktype()
198 col = add_entry(0, fd, " : ctlr = %s",
304 add_partition(fd, disk_info, part) in add_partition() argument
305 FILE *fd; in add_partition()
380 (void) fprintf(fd, " \\\n"); in add_entry()
384 col += fprintf(fd, "\t"); in add_entry()
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/without_structs/
H A Dimplicit_dependencies_verbose.pretty582 '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 Dfiles.c84 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 Dwrite.c214 if (iwrite(fd, &v, 1) != 1) in ipp_write_attribute()
225 if (iwrite(fd, &v, 4) != 4) in ipp_write_attribute()
253 if (iwrite(fd, &x, 4) != 4) in ipp_write_attribute()
255 if (iwrite(fd, &y, 4) != 4) in ipp_write_attribute()
270 if (iwrite(fd, &s, 2) != 2) in ipp_write_attribute()
273 if (iwrite(fd, &c, 1) != 1) in ipp_write_attribute()
360 if (iwrite(fd, &c, 1) != 1) in ipp_write_attribute_groups()
378 if (iwrite(fd, &c, 1) != 1) in ipp_write_message_header()
383 if (iwrite(fd, &c, 1) != 1) in ipp_write_message_header()
390 if (iwrite(fd, &s, 2) != 2) in ipp_write_message_header()
[all …]
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c97 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/lib/libproc/common/
H A Dproc_get_info.c57 int fd; in proc_get_cred() local
67 (void) close(fd); in proc_get_cred()
76 int fd; in proc_get_secflags() local
88 (void) close(fd); in proc_get_secflags()
106 int fd; in proc_get_priv() local
119 (void) close(fd); in proc_get_priv()
135 int fd; in proc_get_ldt() local
159 (void) close(fd); in proc_get_ldt()
168 int fd; in proc_get_psinfo() local
185 int fd; in proc_get_status() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c265 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()
1615 for (fd = 0; fd < fip->fi_nfiles; fd++) { in fisopen()
1642 for (fd = 0; fd < fip->fi_nfiles; fd++) { in files_can_change_zones()
[all …]
/illumos-gate/usr/src/cmd/nvmeadm/
H A Dnvmeadm_dev.c83 nvme_capabilities(int fd) in nvme_capabilities() argument
94 nvme_version(int fd) in nvme_version() argument
105 nvme_identify_ctrl(int fd) in nvme_identify_ctrl() argument
147 nvme_intr_cnt(int fd) in nvme_intr_cnt() argument
169 nvme_detach(int fd) in nvme_detach() argument
175 nvme_attach(int fd) in nvme_attach() argument
208 int fd; in nvme_open() local
223 if (fd < 0) { in nvme_open()
229 return (fd); in nvme_open()
233 nvme_close(int fd) in nvme_close() argument
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmterm.c67 int fd; in set_termio()
143 turnon_canon(fd) in turnon_canon() argument
144 int fd; in turnon_canon()
172 flush_input(fd) in flush_input() argument
173 int fd; in flush_input()
225 hang_up_line(int fd) in hang_up_line() argument
261 initial_termio(fd,pmptr) in initial_termio() argument
262 int fd; in initial_termio()
273 if (auto_termio(fd) == -1) {
274 (void)close(fd);
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c140 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 Dio.c615 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/cdrw/
H A Dmmc.h128 int test_unit_ready(int fd);
129 int inquiry(int fd, uchar_t *inq);
135 int read_disc_info(int fd, uchar_t *di);
145 int load_unload(int fd, int load);
146 int prevent_allow_mr(int fd, int op);
150 int set_streaming(int fd, uchar_t *buf);
151 int rezero_unit(int fd);
152 int start_stop(int fd, int start);
153 int flush_cache(int fd);
155 int format_media(int fd);
[all …]
/illumos-gate/usr/src/cmd/make/bin/
H A Dstate.cc46 #define XFWRITE(string, length, fd) {if (fwrite(string, 1, length, fd) == 0) \ argument
52 #define XFPUTS(string, fd) fputs(string, fd) argument
123 register 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/lp/lib/forms/
H A Dwrform.c77 print_sdn(fd, HEAD, formp->plen); in wrform()
85 print_sdn(fd, HEAD, formp->lpi); in wrform()
102 fdprintf(fd, ",%s", MANSTR); in wrform()
103 fdprintf(fd, "\n"); in wrform()
112 fdprintf(fd, "%s\n", HEAD); in wrform()
119 fdputc ('>', fd); in wrform()
120 fdprintf(fd, "%s\n", cp); in wrform()
137 fdprintf(fd, ",%s", DFTSTR); in wrform()
138 fdprintf(fd, "\n"); in wrform()
194 (void)fdprintf(fd, "%s ", head); in print_sdn()
[all …]
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract.c41 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/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c152 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 Daso-fcntl.c38 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 Dputrequest.c67 int fd; local
139 (void)fdprintf(fd, "%s%s\n", HEAD, *pp);
144 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->form);
151 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_RESUME);
153 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_HOLD);
158 (void)fdprintf(fd, "%sM\n", HEAD);
160 (void)fdprintf(fd, "%sW\n", HEAD);
162 (void)fdprintf(fd, "%sN\n", HEAD);
209 (void)fdprintf(fd, "%s\n", HEAD);
214 (void)fdprintf(fd, "%s\n", HEAD);
[all …]

12345678910>>...78