/illumos-gate/usr/src/cmd/tail/ |
H A D | reverse.c | 70 reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) in reverse() argument 76 r_reg(fp, fn, style, off, sbp); in reverse() 81 (void) bytes(fp, fn, off); in reverse() 85 (void) lines(fp, fn, off); in reverse() 88 r_buf(fp, fn); in reverse() 99 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) in r_reg() argument 110 map.fd = fileno(fp); in r_reg() 180 r_buf(FILE *fp, const char *fn) in r_buf() argument 213 len < BSZ && (ch = getc(fp)) != EOF; ++len) in r_buf() 216 if (ferror(fp)) { in r_buf()
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_hash.c | 96 ctf_hash_insert(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) in ctf_hash_insert() argument 98 ctf_strs_t *ctsp = &fp->ctf_str[CTF_NAME_STID(name)]; in ctf_hash_insert() 133 ctf_hash_define(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) in ctf_hash_define() argument 135 const char *str = ctf_strptr(fp, name); in ctf_hash_define() 136 ctf_helem_t *hep = ctf_hash_lookup(hp, fp, str, strlen(str)); in ctf_hash_define() 139 return (ctf_hash_insert(hp, fp, type, name)); in ctf_hash_define() 146 ctf_hash_lookup(ctf_hash_t *hp, ctf_file_t *fp, const char *key, size_t len) in ctf_hash_lookup() argument 157 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_lookup() 182 ctf_hash_dump(const char *tag, ctf_hash_t *hp, ctf_file_t *fp) in ctf_hash_dump() argument 194 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_dump()
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 195 FILE *fp; in lufslist() local 199 if ((fp = fdopen(fd, "r")) == NULL) { in lufslist() 204 (void) fseek(fp, 0L, SEEK_SET); in lufslist() 205 while (fgets(line, sizeof (line), fp) == line) { in lufslist() 245 (void) fclose(fp); in lufslist() 253 FILE *fp; in lustatus() local 257 if ((fp = fdopen(fd, "r")) == NULL) { in lustatus() 262 (void) fseek(fp, 0L, SEEK_SET); in lustatus() 263 while (fgets(line, sizeof (line), fp) == line) { in lustatus() 300 (void) fclose(fp); in lustatus()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | puttext.c | 47 puttext(FILE *fp, char *str, int lmarg, int rmarg) in puttext() argument 81 (void) putc(' ', fp); in puttext() 96 (void) putc('\n', fp); in puttext() 98 (void) putc(' ', fp); in puttext() 117 (void) putc(mbs[i], fp); in puttext() 277 (void) putc(' ', fp); in puttext() 280 (void) putc(mbtemp[i], fp); in puttext() 281 (void) putc('\n', fp); in puttext() 299 (void) putc(' ', fp); in puttext() 302 (void) putc(mbtemp[i], fp); in puttext()
|
/illumos-gate/usr/src/lib/libproc/sparc/ |
H A D | Pisadep.c | 54 file_info_t *fp; in Ppltdest() local 58 if (mp == NULL || (fp = mp->map_file) == NULL || in Ppltdest() 59 fp->file_plt_base == 0 || pltaddr < fp->file_plt_base || in Ppltdest() 60 pltaddr >= fp->file_plt_base + fp->file_plt_size) { in Ppltdest() 65 i = (pltaddr - fp->file_plt_base - in Ppltdest() 68 r_addr = fp->file_jmp_rel + i * sizeof (Elf32_Rela); in Ppltdest() 73 Elf_Data *data = fp->file_dynsym.sym_data_pri; in Ppltdest() 76 return (fp->file_dynsym.sym_strs + symp->st_name); in Ppltdest() 263 prgreg_t fp; in Pstack_iter() local 275 fp = gregs[R_FP]; in Pstack_iter() [all …]
|
/illumos-gate/usr/src/cmd/rctladm/ |
H A D | rctladm.c | 112 FILE *fp = file; in rctl_save_walk_cb() local 130 (void) fprintf(fp, "syslog=%s\n", in rctl_save_walk_cb() 133 (void) fprintf(fp, "none\n"); in rctl_save_walk_cb() 145 FILE *fp; in rctladm_save_config() local 156 if ((fp = fdopen(fd, "w")) == NULL) in rctladm_save_config() 166 fp); in rctladm_save_config() 170 (void) fflush(fp); in rctladm_save_config() 174 (void) fclose(fp); in rctladm_save_config() 192 FILE *fp; in rctladm_read_config() local 208 if ((fp = fdopen(fd, "r")) == NULL) in rctladm_read_config() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | utmp2wtmp.c | 48 FILE *fp; in main() local 50 fp = fopen(WTMPX_FILE, "a+"); in main() 51 if (fp == NULL) { in main() 60 fwrite(utmpx, sizeof (*utmpx), 1, fp); in main() 63 fclose(fp); in main()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fmt.c | 752 switch (fp->f_size) { in mdb_fmt_print() 769 if (fp->f_float == B_TRUE) { in mdb_fmt_print() 770 if (fp->f_size != 8) { in mdb_fmt_print() 780 fp->f_size) { in mdb_fmt_print() 785 switch (fp->f_size) { in mdb_fmt_print() 799 if (fp->f_float) { in mdb_fmt_print() 814 addr += fp->f_size; in mdb_fmt_print() 839 if (fp->f_type == FMT_NONE) in cmd_formats() 844 if (fp->f_type & FMT_FUNC) in cmd_formats() 848 else if (fp->f_help != NULL) in cmd_formats() [all …]
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | wcscoll.c | 81 wchar_t *bp, *fp, c; in wcscoll_l() local 86 fp = tr1 + wcslen(tr1) - 1; in wcscoll_l() 87 while (bp < fp) { in wcscoll_l() 89 *bp++ = *fp; in wcscoll_l() 90 *fp-- = c; in wcscoll_l() 96 fp = tr2 + wcslen(tr2) - 1; in wcscoll_l() 97 while (bp < fp) { in wcscoll_l() 99 *bp++ = *fp; in wcscoll_l() 100 *fp-- = c; in wcscoll_l()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | pictures.c | 213 FILE *fp; /* and pointer for the new temp file */ in picopen() local 234 if ( (fp = fopen(tname, "w+")) == NULL ) in picopen() 238 piccopy(fp_pic, fp, total); in picopen() 239 fseek(fp, 0L, 0); in picopen() 240 return(fp); in picopen() 255 inlinepic(FILE *fp, char *buf) in inlinepic() argument 288 getc(fp); in inlinepic() 290 piccopy(fp, fp_pic, total); in inlinepic() 291 ungetc('\n', fp); in inlinepic()
|
/illumos-gate/usr/src/boot/efi/loader/arch/arm64/ |
H A D | exec.c | 70 elf64_exec(struct preloaded_file *fp) in elf64_exec() argument 109 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) in elf64_exec() 116 err = bi_load(fp->f_args, &modulep, &kernendp); in elf64_exec() 125 clean_addr = (vm_offset_t)efi_translate(fp->f_addr); in elf64_exec() 136 elf64_obj_exec(struct preloaded_file *fp) in elf64_obj_exec() argument 139 printf("%s called for preloaded file %p (=%s):\n", __func__, fp, in elf64_obj_exec() 140 fp->f_name); in elf64_obj_exec()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | put.c | 45 sm_io_putc(fp, timeout, c) 46 SM_FILE_T *fp; 50 SM_REQUIRE_ISA(fp, SmFileMagic); 51 if (cantwrite(fp)) 56 return sm_putc(fp, timeout, c);
|
H A D | fwrite.c | 39 sm_io_write(fp, timeout, buf, size) 40 SM_FILE_T *fp; 48 SM_REQUIRE_ISA(fp, SmFileMagic); 50 if (fp->f_write == NULL) 62 if (sm_fvwrite(fp, timeout, &uio) == 0)
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vrsqrtf.S | 950 ld [%fp+tmp3],%g1 998 ld [%fp+tmp3],%g5 1068 ld [%fp+tmp3],%g1 1129 ld [%fp+tmp3],%i4 1199 ld [%fp+tmp3],%g1 1267 st %f0,[%fp+tmp3] 1268 ld [%fp+tmp3],%o5 1338 ld [%fp+tmp3],%i3 1403 ld [%fp+tmp3],%g5 1473 ld [%fp+tmp3],%g1 [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-merge-dedup.c | 61 ctf_file_t *fp; in main() local 63 if ((fp = ctf_open(argv[i], &ret)) == NULL) { in main() 70 if (!ctftest_check_symbols(fp, check_syms)) { in main() 74 if (!ctftest_duplicates(fp)) { in main() 78 ctf_close(fp); in main()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | bootinfo32.c | 102 struct preloaded_file *fp; in bi_copymodules32() local 108 for (fp = file_findfile(NULL, NULL); fp != NULL; fp = fp->f_next) { in bi_copymodules32() 110 MOD_NAME(addr, fp->f_name, c); /* this field must come first */ in bi_copymodules32() 111 MOD_TYPE(addr, fp->f_type, c); in bi_copymodules32() 112 if (fp->f_args) in bi_copymodules32() 113 MOD_ARGS(addr, fp->f_args, c); in bi_copymodules32() 114 MOD_ADDR(addr, fp->f_addr, c); in bi_copymodules32() 115 MOD_SIZE(addr, fp->f_size, c); in bi_copymodules32() 116 for (md = fp->f_metadata; md != NULL; md = md->md_next) in bi_copymodules32()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_sv.c | 158 if (pvt->sv.fp) in sv_close() 159 fclose(pvt->sv.fp); in sv_close() 254 if (pvt->sv.fp) { in sv_rewind() 257 (void)fclose(pvt->sv.fp); in sv_rewind() 258 pvt->sv.fp = NULL; in sv_rewind() 276 (void)fclose(pvt->sv.fp); in sv_rewind() 277 pvt->sv.fp = NULL; in sv_rewind() 288 if (pvt->sv.fp == NULL) in sv_next() 305 if (pvt->sv.fp == NULL) in sv_next() 320 if (pvt->sv.fp != NULL) { in sv_minimize() [all …]
|
H A D | lcl_ho.c | 103 FILE * fp; member 189 if (pvt->fp) in ho_close() 190 (void) fclose(pvt->fp); in ho_close() 329 if (!pvt->fp) in ho_next() 331 if (!pvt->fp) { in ho_next() 364 ungetc(c, pvt->fp); in ho_next() 427 if (pvt->fp) { in ho_rewind() 430 (void)fclose(pvt->fp); in ho_rewind() 436 pvt->fp = NULL; in ho_rewind() 444 if (pvt->fp != NULL) { in ho_minimize() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfvscanf.c | 319 Fmtpos_t* fp; local 469 if(fp) 518 if(fp) 671 if(fp) 707 { if(!fp) 732 fm->fp = fp; 1052 if(fp) 1053 { free(fp); 1071 fp = fm->fp; 1080 if(fp) [all …]
|
/illumos-gate/usr/src/lib/libm/sparc/src/ |
H A D | nextafter.S | 48 ! variable using fp 55 std %i0,[%fp+x] 58 std %i2,[%fp+y] 61 ldd [%fp+x],%f2 ! x 62 ldd [%fp+y],%f0 ! y 97 std %i0,[%fp+x] 103 ldd [%fp+x],%f0 110 ldd [%fp+x],%f0
|
/illumos-gate/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 316 FILE *fp; in add_cmd() local 403 if (fp == NULL) { in add_cmd() 519 FILE *fp; in list_file() local 525 if (fp == NULL) { in list_file() 544 (void) fclose(fp); in list_file() 553 FILE *fp; in remove_file() local 562 if (fp == NULL) { in remove_file() 569 (void) fclose(fp); in remove_file() 573 rewind(fp); in remove_file() 594 (void) fclose(fp); in remove_file() [all …]
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | s_string.c | 217 if (feof(fp)) in s_seq_read() 222 c = getc(fp); in s_seq_read() 230 while ((c = getc(fp)) != '\n' && c != EOF) in s_seq_read() 252 c = getc(fp); in s_seq_read() 275 c = getc(fp); in s_seq_read() 315 s_read_line(FILE *fp, string *to) in s_read_line() argument 323 if (feof(fp) || (c = getc(fp)) == EOF) in s_read_line() 341 c = getc(fp); in s_read_line() 349 s_read_to_eof(FILE *fp, string *to) in s_read_to_eof() argument 357 if (feof(fp)) in s_read_to_eof() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | statvfs.c | 190 struct file *fp; in fstatvfs() local 193 if ((fp = getf(fdes)) == NULL) in fstatvfs() 241 struct file *fp; in fstatvfs64() local 244 if ((fp = getf(fdes)) == NULL) in fstatvfs64() 246 error = cstatvfs64(fp->f_vnode->v_vfsp, sbp); in fstatvfs64() 315 struct file *fp; in fstatvfs32() local 318 if ((fp = getf(fdes)) == NULL) in fstatvfs32() 320 error = cstatvfs32(fp->f_vnode->v_vfsp, sbp); in fstatvfs32() 356 struct file *fp; in fstatvfs64_32() local 359 if ((fp = getf(fdes)) == NULL) in fstatvfs64_32() [all …]
|
/illumos-gate/usr/src/cmd/sort/ |
H A D | utility.c | 767 pprintc(FILE *fp, char c) in pprintc() argument 770 (void) fprintf(fp, " "); in pprintc() 774 (void) fprintf(fp, "."); in pprintc() 781 (void) fprintf(fp, " "); in pprintwc() 785 (void) fprintf(fp, "."); in pprintwc() 806 (void) fprintf(fp, " "); in xdump() 813 pprintc(fp, d[i]); in xdump() 815 (void) fprintf(fp, "\n"); in xdump() 822 (void) fprintf(fp, " "); in xdump() 829 pprintc(fp, d[i]); in xdump() [all …]
|
/illumos-gate/usr/src/uts/common/fs/doorfs/ |
H A D | door_sys.c | 104 #define FTODH(fp) ((door_handle_t)(fp)) argument 472 *fpp = fp; in door_create_common() 1974 file_t *fp; in door_lookup() local 1991 *fpp = fp; in door_lookup() 2418 *fpp = fp; in door_overflow() 2579 *fpp = fp; in door_args() 2891 *fpp = fp; in door_results() 3337 fp = *fpp; in door_upcall() 3456 file_t *fp; in door_ki_create() local 3499 file_t *fp; in door_ki_open() local [all …]
|