Home
last modified time | relevance | path

Searched refs:fp (Results 201 – 225 of 1263) sorted by relevance

12345678910>>...51

/illumos-gate/usr/src/tools/findunref/
H A Dfindunref.c201 FILE *fp = NULL; in hg_manifest() local
213 if (fp == NULL) in hg_manifest()
225 (void) pclose(fp); in hg_manifest()
230 if (fp != NULL) in hg_manifest()
231 (void) pclose(fp); in hg_manifest()
243 FILE *fp = NULL; in git_manifest() local
255 if (fp == NULL) in git_manifest()
267 (void) pclose(fp); in git_manifest()
272 if (fp != NULL) in git_manifest()
401 FILE *fp; in make_exset() local
[all …]
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c97 extern FILE *fp; in main()
362 (void) fprintf(fp, in main()
365 fflush(fp); in main()
401 putc('\r', fp); in main()
407 putc(*bp, fp); in main()
411 putc(*bp, fp); in main()
419 putc('^', fp); in main()
427 fflush(fp); in main()
428 if (ferror(fp) || feof(fp)) { in main()
435 fflush(fp); in main()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_main.c709 fp = (qede_fastpath_t *)vect_info->fp; in qede_fp_handler()
969 vect_info->fp = in qede_config_intrs()
2755 fp->sb_phys = 0; in qede_free_sb_phys()
2803 fp->sb_info, in qede_alloc_sb_phys()
2805 fp->sb_phys, in qede_alloc_sb_phys()
2806 fp->fp_index); in qede_alloc_sb_phys()
2987 fp->fp_hw_eng_index = fp->fp_index % num_hwfns; in qede_fastpath_config()
2990 fp->rss_id = fp->fp_index; in qede_fastpath_config()
2991 fp->rx_queue_index = fp->fp_index; in qede_fastpath_config()
3003 rx_ring->fp = fp; in qede_fastpath_config()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_client_debug.c334 fp->rf_op = op; in set_fact()
341 fp->rf_op = op; in set_fact()
357 fp->rf_op = op; in set_fact()
361 fp->rf_rp1 = rp1; in set_fact()
828 fp = kmem_zalloc(sizeof (*fp), KM_SLEEP); in print_facts()
841 fp->rf_action ? nfs4_recov_action_to_str(fp->rf_action) : in print_facts()
844 fp->rf_stat4 ? nfs4_stat_to_str(fp->rf_stat4) : "", in print_facts()
859 if (fp) in print_facts()
860 kmem_free(fp, sizeof (*fp)); in print_facts()
1108 nfs4_op_to_str(fp->rf_op), fp->rf_error, in queue_print_fact()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Djoin.c309 fp->spaces = 0; in getrec()
310 fp->hit = 0; in getrec()
316 fp->recptr = cp; in getrec()
317 fp->reclen = sfvalue(fp->iop); in getrec()
331 fp->fields = newof(fp->fields, Field_t, n + 1, 0); in getrec()
332 field = fp->fields + fp->maxfields; in getrec()
414 fp->nfields = field - fp->fields; in getrec()
415 if ((n = fp->field) < fp->nfields) in getrec()
419 if (fp->spaces) in getrec()
443 fp->fieldlen = fp->fields[n].end - cp; in getrec()
[all …]
H A Dhead.c75 register Sfio_t* fp; in b_head() local
130 fp = sfstdin; in b_head()
131 sfset(fp, SF_SHARE, 1); in b_head()
133 else if (!(fp = sfopen(NiL, cp, "r"))) in b_head()
143 if ((moved = sfmove(fp, NiL, skip, delim)) < 0 && !ERROR_PIPE(errno) && errno != EINTR) in b_head()
148 if ((moved = sfmove(fp, sfstdout, keep, delim)) < 0 && !ERROR_PIPE(errno) && errno != EINTR || in b_head()
149 …delim >= 0 && moved < keep && sfmove(fp, sfstdout, SF_UNBOUND, -1) < 0 && !ERROR_PIPE(errno) && er… in b_head()
152 if (fp != sfstdin) in b_head()
153 sfclose(fp); in b_head()
/illumos-gate/usr/src/uts/common/syscall/
H A Dfcntl.c71 file_t *fp; in fcntl() local
166 fp->f_count++; in fcntl()
174 fp->f_count--; in fcntl()
215 fp->f_count++; in fcntl()
226 fp->f_count--; in fcntl()
230 (void) closef(fp); in fcntl()
238 vp = fp->f_vnode; in fcntl()
239 flag = fp->f_flag; in fcntl()
266 vp = fp->f_vnode; in fcntl()
267 flag = fp->f_flag; in fcntl()
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_decl.c85 ctf_decl_push(ctf_decl_t *cd, ctf_file_t *fp, ctf_id_t type) in ctf_decl_push() argument
95 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) { in ctf_decl_push()
96 cd->cd_err = fp->ctf_errno; in ctf_decl_push()
100 switch (kind = LCTF_INFO_KIND(fp, tp->ctt_info)) { in ctf_decl_push()
102 (void) ctf_array_info(fp, type, &ar); in ctf_decl_push()
103 ctf_decl_push(cd, fp, ar.ctr_contents); in ctf_decl_push()
109 if (ctf_strptr(fp, tp->ctt_name)[0] == '\0') { in ctf_decl_push() local
110 ctf_decl_push(cd, fp, tp->ctt_type); in ctf_decl_push()
117 ctf_decl_push(cd, fp, tp->ctt_type); in ctf_decl_push()
122 ctf_decl_push(cd, fp, tp->ctt_type); in ctf_decl_push()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c75 FILE *fp; in getmapent_files() local
189 if (fp) { in getmapent_files()
191 (void) fclose(fp); in getmapent_files()
202 FILE *fp = NULL; in getmapkeys_files() local
295 if (fp) { in getmapkeys_files()
312 FILE *fp; in loadmaster_files() local
392 (void) fclose(fp); in loadmaster_files()
401 FILE *fp; in loaddirect_files() local
445 FILE *fp; in file_open() local
457 if (fp != NULL) { in file_open()
[all …]
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Dbootinfo.c181 struct preloaded_file *fp; in bi_copymodules() local
185 for (fp = file_findfile(NULL, NULL); fp != NULL; fp = fp->f_next) { in bi_copymodules()
187 MOD_NAME(addr, fp->f_name); in bi_copymodules()
188 MOD_TYPE(addr, fp->f_type); in bi_copymodules()
189 if (fp->f_args) in bi_copymodules()
190 MOD_ARGS(addr, fp->f_args); in bi_copymodules()
191 MOD_ADDR(addr, fp->f_addr); in bi_copymodules()
192 MOD_SIZE(addr, fp->f_size); in bi_copymodules()
209 bi_load(struct preloaded_file *fp, uint64_t *bi_addr) in bi_load() argument
235 md = file_findmetadata(fp, MODINFOMD_SSYM); in bi_load()
[all …]
/illumos-gate/usr/src/cmd/dispadmin/
H A Ddispadmin.c257 read_default_file(FILE *fp) in read_default_file() argument
276 (void) fclose(fp); in read_default_file()
281 (void) fclose(fp); in read_default_file()
297 FILE *fp; in set_scheduler() local
317 clname = read_default_file(fp); in set_scheduler()
338 if ((fp = fdopen(fd, "w")) == NULL) in set_scheduler()
344 "#\n", fp); in set_scheduler()
347 if (fflush(fp) != 0) in set_scheduler()
363 (void) fclose(fp); in set_scheduler()
374 FILE *fp; in set_default_class() local
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_printf.c240 return (dt_printf(dtp, fp, format, in pfprint_sint()
243 return (dt_printf(dtp, fp, format, in pfprint_sint()
246 return (dt_printf(dtp, fp, format, in pfprint_sint()
249 return (dt_printf(dtp, fp, format, in pfprint_sint()
265 return (dt_printf(dtp, fp, format, in pfprint_uint()
268 return (dt_printf(dtp, fp, format, in pfprint_uint()
271 return (dt_printf(dtp, fp, format, in pfprint_uint()
274 return (dt_printf(dtp, fp, format, in pfprint_uint()
1609 (void) fflush(fp); in dtrace_system()
1630 if (rval == -1 || fp == NULL) in dtrace_freopen()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmemstat.c200 static FILE *fp;
215 fp = fopen("/proc/meminfo", "r");
216 return (fp != NULL) ? 0 : errno;
232 if (fp != NULL)
234 fclose(fp);
235 fp = NULL;
265 if (fp == NULL)
267 rewind(fp);
271 while (fgets(buf, sizeof(buf), fp) != NULL)
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fd.c85 file_t *fp; in port_fd_callback() local
96 fp = getf(pdp->pd_fd); in port_fd_callback()
97 if (fp == NULL) { in port_fd_callback()
102 if (fp != pdp->pd_fp) { in port_fd_callback()
183 file_t *fp; in port_associate_fd() local
236 pdp->pd_fp = fp; in port_associate_fd()
446 file_t *fp; in port_dissociate_fd() local
524 file_t *fp; in port_bind_pollhead() local
541 fp = pdp->pd_fp; in port_bind_pollhead()
609 file_t *fp; in port_remove_portfd() local
[all …]
/illumos-gate/usr/src/lib/libnsl/saf/
H A Ddoconfig.c84 if (fp == NULL) in doconfig()
93 (void) fclose(fp); in doconfig()
125 (void) fclose(fp); in doconfig()
130 (void) fclose(fp); in doconfig()
135 (void) fclose(fp); in doconfig()
140 (void) fclose(fp); in doconfig()
145 (void) fclose(fp); in doconfig()
150 (void) fclose(fp); in doconfig()
154 if (!feof(fp)) { in doconfig()
155 (void) fclose(fp); in doconfig()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dgwd.c44 FILE *fp; local
52 fp = popen(cmd, "r");
55 fp = popen(cmd, "r");
58 if (fp == NULL)
61 if (fgets(wkdir, MAXFULLNAME, fp) == NULL) {
62 (void) pclose(fp);
67 (void) pclose(fp);
H A Dcntrl.c247 FILE * fp; in cntrl() local
515 fp->_ptr = fp->_base; in cntrl()
677 fp->_cnt = 0; in cntrl()
678 fp->_ptr = fp->_base; in cntrl()
868 fp->_cnt = 0; in cntrl()
869 fp->_ptr = fp->_base; in cntrl()
930 (void) fclose(fp); in cntrl()
1225 fclose(fp); in cntrl()
1260 fp->_cnt = 0; in cntrl()
1261 fp->_ptr = fp->_base; in cntrl()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c75 FILE *fp; member
134 if (pvt->fp != NULL) in ng_close()
135 fclose(pvt->fp); in ng_close()
150 if (pvt->fp != NULL && fseek(pvt->fp, SEEK_CUR, 0L) == -1) { in ng_rewind()
151 fclose(pvt->fp); in ng_rewind()
152 pvt->fp = NULL; in ng_rewind()
158 if (pvt->fp != NULL) in ng_rewind()
159 fclose(pvt->fp); in ng_rewind()
166 fclose(pvt->fp); in ng_rewind()
167 pvt->fp = NULL; in ng_rewind()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dprompter.c39 FILE *fp; in krb5_prompter_posix() local
59 fp = NULL; in krb5_prompter_posix()
63 fp = fdopen(fd, "r"); in krb5_prompter_posix()
64 if (fp == NULL) in krb5_prompter_posix()
66 if (setvbuf(fp, NULL, _IONBF, 0)) in krb5_prompter_posix()
87 fp); in krb5_prompter_posix()
106 scratchchar = getc(fp); in krb5_prompter_posix()
116 if (fp != NULL) in krb5_prompter_posix()
117 fclose(fp); in krb5_prompter_posix()
163 fd = fileno(fp); in setup_tty()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dinit.c519 if(fp && !fp->nofree) in put_ifs()
522 fp = 0; in put_ifs()
529 if(fp) in put_ifs()
605 if(fp && !fp->nofree) in put_seconds()
627 NOT_USED(fp); in get_seconds()
638 NOT_USED(fp); in nget_seconds()
653 if(fp && !fp->nofree) in put_rand()
675 NOT_USED(fp); in nget_rand()
711 if(fp && !fp->nofree) in put_lineno()
760 while(fp && !fp->disc->getnum && !fp->disc->getval) in hasgetdisc()
[all …]
/illumos-gate/usr/src/cmd/dumpadm/
H A Dminfree.c56 FILE *fp = minfree_open(dir, O_RDONLY, "r"); in minfree_read() local
58 if (fp != NULL) { in minfree_read()
62 if (fgets(buf, BUFSIZ, fp) != NULL) { in minfree_read()
70 (void) fclose(fp); in minfree_read()
80 FILE *fp = minfree_open(dir, O_WRONLY | O_CREAT | O_TRUNC, "w"); in minfree_write() local
82 if (fp != NULL) { in minfree_write()
83 int status = fprintf(fp, "%llu\n", ull); in minfree_write()
84 (void) fclose(fp); in minfree_write()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipf.c507 static void showstats(fp) in showstats() argument
508 friostat_t *fp; in showstats()
511 fp->f_st[0].fr_bad, fp->f_st[1].fr_bad);
513 fp->f_st[0].fr_block, fp->f_st[0].fr_pass,
514 fp->f_st[0].fr_nom);
517 fp->f_st[1].fr_block, fp->f_st[1].fr_pass,
518 fp->f_st[1].fr_nom);
521 fp->f_st[0].fr_bpkl, fp->f_st[0].fr_ppkl);
523 fp->f_st[1].fr_bpkl, fp->f_st[1].fr_ppkl);
525 fp->f_st[0].fr_pkl, fp->f_st[0].fr_skip,
[all …]
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dxregs.c191 kfpu_t *fp = lwptofpu(lwp); in xregs_getfpregs() local
201 fp->fpu_fprs = _fp_read_fprs(); in xregs_getfpregs()
202 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) { in xregs_getfpregs()
212 fp->fpu_fprs = fprs; in xregs_getfpregs()
220 fp_v8p_fksave(fp); in xregs_getfpregs()
222 (void) kcopy(&fp->fpu_fr.fpu_dregs[16], in xregs_getfpregs()
326 kfpu_t *fp = lwptofpu(lwp); in xregs_setfpregs() local
341 &fp->fpu_fr.fpu_dregs[16], in xregs_setfpregs()
345 fp->fpu_fsr); in xregs_setfpregs()
359 fp->fpu_fprs = _fp_read_fprs(); in xregs_setfpregs()
[all …]
/illumos-gate/usr/src/uts/common/dtrace/
H A Dfasttrap.c324 if (!fp->ftp_retired || fp->ftp_rcount != 0) in fasttrap_pid_cleanup_cb()
1316 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) { in fasttrap_provider_lookup()
1317 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 && in fasttrap_provider_lookup()
1321 return (fp); in fasttrap_provider_lookup()
1376 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) { in fasttrap_provider_lookup()
1377 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 && in fasttrap_provider_lookup()
1383 return (fp); in fasttrap_provider_lookup()
1478 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) { in fasttrap_provider_retire()
1479 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 && in fasttrap_provider_retire()
1484 if (fp == NULL) { in fasttrap_provider_retire()
[all …]
/illumos-gate/usr/src/uts/sparc/os/
H A Darchdep.c80 struct frame *fp, *minfp, *stacktop; in getpcstack() local
114 fp = (struct frame *)(nextfp + STACK_BIAS); in getpcstack()
117 if (fp <= minfp || fp >= stacktop) { in getpcstack()
131 minfp = fp; in getpcstack()
133 nextpc = (pc_t)fp->fr_savpc; in getpcstack()
134 fp = (struct frame *)((uintptr_t)fp->fr_savfp + STACK_BIAS); in getpcstack()
305 minfp = fp; in traceback()
307 while ((uintptr_t)fp >= KERNELBASE) { in traceback()
308 uintptr_t pc = (uintptr_t)fp->fr_savpc; in traceback()
386 fp = nextfp; in traceback()
[all …]

12345678910>>...51