/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetnetmask.c | 43 putnetmask(const struct in_addr key, const struct in_addr netmask, FILE *fp) in putnetmask() argument 49 if (fprintf(fp, "%-20s", inet_nettoa(net)) == EOF) in putnetmask() 51 if (fprintf(fp, " %s", inet_ntoa(netmask)) == EOF) in putnetmask() 53 if (putc('\n', fp) == EOF) in putnetmask()
|
H A D | dogetproto.c | 37 putprotoent(const struct protoent *pp, FILE *fp) in putprotoent() argument 46 if (fprintf(fp, "%-20s %d", in putprotoent() 50 if (fprintf(fp, " %s", *p) == EOF) in putprotoent() 53 if (putc('\n', fp) == EOF) in putprotoent()
|
/illumos-gate/usr/src/lib/libc/port/unwind/ |
H A D | unwind.c | 72 _t_cancel(void *fp) in _t_cancel() argument 88 if (fp == NULL) { in _t_cancel() 93 if ((head = self->ul_clnup_hdr) != NULL && fp == head->fp) { in _t_cancel()
|
/illumos-gate/usr/src/cmd/zonename/ |
H A D | zonename.c | 47 FILE *fp; in main() local 93 (fp = zonecfg_open_scratch("", B_FALSE)) != NULL) { in main() 94 (void) zonecfg_reverse_scratch(fp, zonename, zonename, in main() 96 zonecfg_close_scratch(fp); in main()
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kspoll.c | 83 file_t *fp; in t_kspoll() local 92 fp = tiptr->fp; in t_kspoll() 93 vp = fp->f_vnode; in t_kspoll()
|
H A D | t_koptmgmt.c | 69 file_t *fp; in t_koptmgmt() local 78 fp = tiptr->fp; in t_koptmgmt() 79 vp = fp->f_vnode; in t_koptmgmt() 115 fp->f_cred, &retval); in t_koptmgmt()
|
H A D | t_kbind.c | 72 file_t *fp; in t_kbind() local 80 fp = tiptr->fp; in t_kbind() 81 vp = fp->f_vnode; in t_kbind() 117 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, fp->f_cred, in t_kbind()
|
H A D | t_kutil.c | 78 vp = tiptr->fp->f_vnode; in tli_send() 97 vp = tiptr->fp->f_vnode; in tli_recv() 204 file_t *fp; in t_kadvise() local 210 fp = tiptr->fp; in t_kadvise() 211 vp = fp->f_vnode; in t_kadvise()
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_nfssec.c | 122 FILE *fp; in nfssec_get_nfs_secmode_list() local 127 if ((fp = fopen(NFSSEC_CONF, "r")) == NULL) { in nfssec_get_nfs_secmode_list() 135 seclist = fileutil_get_first_column_data(fp, num_elements, &err); in nfssec_get_nfs_secmode_list() 136 (void) fclose(fp); in nfssec_get_nfs_secmode_list()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | elf32_freebsd.c | 53 elf32_exec(struct preloaded_file *fp) in elf32_exec() argument 60 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) in elf32_exec() 64 err = bi_load32(fp->f_args, &boothowto, &bootdev, &bootinfop, &modulep, &kernend); in elf32_exec() 80 elf32_obj_exec(struct preloaded_file *fp __unused) in elf32_obj_exec()
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vexpf.S | 402 st %f2,[%fp+tmp1] 406 st %f4,[%fp+tmp2] 410 st %f6,[%fp+tmp3] 414 st %f8,[%fp+tmp4] 662 st %f2,[%fp+tmp0] 668 ld [%fp+tmp0],%o0 829 ld [%fp+tmp0],%o0 925 st %f2,[%fp+tmp1] 945 ld [%fp+tmp0],%o0 948 ld [%fp+tmp1],%o1 [all …]
|
/illumos-gate/usr/src/boot/include/ |
H A D | stdio.h | 501 #define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp)) argument 502 #define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : (putc)(x, fp)) argument 518 #define getc_unlocked(fp) __sgetc(fp) argument 519 #define putc_unlocked(x, fp) __sputc(x, fp) argument
|
/illumos-gate/usr/src/lib/mpss/common/ |
H A D | mpss.c | 89 mpsserr(FILE *fp, char *fmt, ...) in mpsserr() argument 93 if (fp) in mpsserr() 94 (void) vfprintf(fp, fmt, ap); in mpsserr() 306 FILE *fp = NULL, *errfp = NULL; in __mpssmain() local 362 fp = fopen(cfgfile, "rF"); in __mpssmain() 363 if (!fp) { in __mpssmain() 370 fp = fopen(cfgfile, "rF"); in __mpssmain() 375 if (fp) { in __mpssmain() 384 while (fgets(lbuf, MAXLINELEN, fp)) { in __mpssmain() 486 (void) fclose(fp); in __mpssmain()
|
/illumos-gate/usr/src/boot/common/ |
H A D | gfx_fb.c | 1994 struct font *fp; in load_font() local 2025 free(fp); in load_font() 2037 free(fp); in load_font() 2048 bp->font = fp; in load_font() 2078 size = howmany(fp->vf_width, 8) * fp->vf_height * glyphs; in load_font() 2114 bp->font = fp; in load_font() 2126 free(fp); in load_font() 2240 fp = calloc(sizeof (*fp), 1); in insert_font() 2245 fp->font_data = calloc(sizeof (*fp->font_data), 1); in insert_font() 2248 free(fp); in insert_font() [all …]
|
/illumos-gate/usr/src/lib/libnvpair/ |
H A D | libnvpair.c | 194 FILE *fp = pctl->nvprt_fp; \ 227 FILE *fp = pctl->nvprt_fp; \ 236 (void) fprintf(fp, "[%d]: ", i); \ 262 FILE *fp = pctl->nvprt_fp; in nvprint_nvlist() local 282 FILE *fp = pctl->nvprt_fp; in nvaprint_nvlist_array() local 314 pctl->nvprt_fp = fp; in nvlist_prtctl_setdest() 385 FILE *fp = pctl->nvprt_fp; in nvlist_prtctl_dofmt() local 512 pctl->nvprt_fp = fp; in prtctl_defaults() 567 FILE *fp = pctl->nvprt_fp; in nvlist_print_with_indent() local 756 nvlist_print(FILE *fp, nvlist_t *nvl) in nvlist_print() argument [all …]
|
/illumos-gate/usr/src/cmd/newform/ |
H A D | newform.c | 139 FILE *fp; /* Pointer to current file */ in main() local 151 if ((fp = fopen(scan, "r")) == NULL) { in main() 156 process(fp); in main() 157 (void) fclose(fp); in main() 325 FILE *fp; /* File pointer */ in cnvtspec() local 553 if ((fp = fopen(filep, "r")) == NULL) { in cnvtspec() 558 (void) readline(fp, work); in cnvtspec() 559 (void) fclose(fp); in cnvtspec() 648 if (kludge && (fp == stdin)) { in readline() 649 if (fp != NULL) { in readline() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ttyslot.c | 60 FILE *fp; in ttyslot() local 77 if ((fp = fopen(UTMPX_FILE, "rF")) != NULL) { in ttyslot() 78 while ((fread(&ubuf, sizeof (ubuf), 1, fp)) == 1) { in ttyslot() 91 (void) fclose(fp); in ttyslot()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | util.c | 717 printav(fp, av) in printav() argument 718 SM_FILE_T *fp; in printav() 730 xputs(fp, *av++); 750 xputs(fp, s) in xputs() argument 751 SM_FILE_T *fp; in xputs() 814 (void) sm_io_putc(fp, 820 (void) sm_io_putc(fp, 1283 SM_FILE_T *fp; 1294 if (fp == NULL) 1307 while (!sm_io_eof(fp) && !sm_io_error(fp)) [all …]
|
H A D | collect.c | 279 collect(fp, smtpmode, hdrp, e, rsetsize) in collect() argument 280 SM_FILE_T *fp; in collect() 360 while (!sm_io_eof(fp) && !sm_io_error(fp)) 367 sm_io_clearerr(fp); 611 sm_io_clearerr(fp); 696 if ((sm_io_eof(fp) && smtpmode) || sm_io_error(fp)) 700 if (sm_io_eof(fp)) 809 if (sm_io_eof(fp)) 811 else if (sm_io_error(fp)) 815 if (LogLevel > 0 && sm_io_eof(fp)) [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | p2open.c | 49 p2open(const char *cmd, FILE *fp[2]) in p2open() 56 fp[0] = fdopen(fds[0], "w"); in p2open() 57 fp[1] = fdopen(fds[1], "r"); in p2open() 62 p2close(FILE *fp[2]) in p2close() 64 return (__p2close(NULL, fp, 0)); in p2close()
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadc.c | 194 int fp; in main() local 224 fp = 1; in main() 243 if (fcntl(fp, F_SETLK, &lock) == -1) in main() 250 if (fstat(fp, &buf) == -1) in main() 256 if (ftruncate(fp, 0) == -1) in main() 275 ftruncate(fp, flength), fail(1, "write failed"); in main() 298 ftruncate(fp, flength), fail(1, "write failed"); in main() 308 close(fp); in main() 566 void *fp = kstat_data_lookup(ksp, name); in safe_kstat_data_lookup() local 568 if (fp == NULL) in safe_kstat_data_lookup() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mail.local.c | 568 fp = hfp; 624 if (fflush(fp) == EOF || ferror(fp)) { 628 fclose(fp); 633 fclose(fp); 637 fp = bfp; 652 fclose(fp); 657 fclose(fp); 668 fclose(fp); 688 if (fflush(fp) == EOF || ferror(fp)) { 693 fclose(fp); [all …]
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | iconv_main.c | 69 FILE *fp; in main() local 157 fp = fopen(argv[optind], "r"); in main() 158 if (fp == NULL) { in main() 162 iconv_file(fp, argv[optind]); in main() 163 (void) fclose(fp); in main() 181 iconv_file(FILE *fp, const char *fname) in iconv_file() argument 196 while ((nr = fread(ibuf+MB_LEN_MAX, 1, BUFSIZ, fp)) > 0) { in iconv_file()
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_salloc.c | 284 __db_shalloc_dump(addr, fp) in __db_shalloc_dump() argument 286 FILE *fp; 291 if (fp == NULL) 292 fp = stderr; 294 fprintf(fp, "%s\nMemory free list\n", DB_LINE); 299 fprintf(fp, "%#lx: %lu\t", (u_long)elp, (u_long)elp->len); 300 fprintf(fp, "\n");
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rwall_subr.c | 63 FILE *fp; in wallproc_wall_1_svc() local 90 (fp = popen(WALL_PROG, "w")) == NULL) { in wallproc_wall_1_svc() 105 (void) fprintf(fp, "%s", msg); in wallproc_wall_1_svc() 106 (void) pclose(fp); in wallproc_wall_1_svc()
|