/illumos-gate/usr/src/cmd/ndmpadm/ |
H A D | ndmpadm_main.c | 167 FILE *fp = requested ? stdout : stderr; in usage() local 170 (void) fprintf(fp, in usage() 172 (void) fprintf(fp, in usage() 176 (void) fprintf(fp, "%s", in usage() 179 (void) fprintf(fp, gettext("\t\twhere %s can be either " in usage() 182 (void) fprintf(fp, gettext("Usage:\n")); in usage() 196 (void) fprintf(fp, in usage() 199 (void) fprintf(fp, gettext("\n\tPROPERTY")); in usage() 200 (void) fprintf(fp, "\n\t%s", "-------------"); in usage() 202 (void) fprintf(fp, "\n\t%s", prop_table[i]); in usage() [all …]
|
/illumos-gate/usr/src/boot/efi/loader/arch/arm/ |
H A D | exec.c | 63 __elfN(arm_exec)(struct preloaded_file *fp) in __elfN() 71 if ((fmp = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) in __elfN() 77 if ((error = bi_load(fp->f_args, &modulep, &kernend)) != 0) { in __elfN() 84 printf("Kernel args: %s\n", fp->f_args); in __elfN()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_event.c | 824 fad = F2A(fp); in aus_fchown() 949 fad = F2A(fp); in aus_fchmod() 1017 fad = F2A(fp); in aus_fchmodat() 1485 fad = F2A(fp); in aus_execve() 1533 fad = F2A(fp); in aus_fcntl() 2024 fad = F2A(fp); in aus_close() 2079 fad = F2A(fp); in aus_fstatfs() 2393 fad = F2A(fp); in aus_ioctl() 2518 fad = F2A(fp); in aus_mmap() 5278 file_t *fp; in au_door_lookup() local [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | send.c | 71 int (*fp)(const char *, FILE *)) in msend() 124 (*fp)(field, obuf); in msend() 153 (*fp)("\n", obuf); in msend() 187 (*fp)(line, obuf); in msend() 222 (*fp)(line, obuf); in msend() 257 int (*fp)(const char *, FILE *)) in statusput() 271 (*fp)(statout, obuf); in statusput() 409 FILE *mtf, *fp; in mail1() local 533 if (fp = fopen(deadletter, in mail1() 538 lcwrite(deadletter, mtf, fp, in mail1() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 1032 fp = fopen(filename, "w"); in _glh_save_history() 1033 if(!fp) in _glh_save_history() 1068 fputc('\n', fp); in _glh_save_history() 1073 if(fclose(fp) == EOF) in _glh_save_history() 1100 if(fp) in _glh_cant_save_history() 1101 (void) fclose(fp); in _glh_cant_save_history() 1123 if(fprintf(fp, "?") < 0) in _glh_write_timestamp() 1190 if(!fp) in _glh_load_history() 1266 (void) fclose(fp); in _glh_load_history() 1290 if(fp) in _glh_cant_load_history() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | chdir.c | 97 file_t *fp; in fchdir() local 100 if ((fp = getf(fd)) == NULL) in fchdir() 102 vp = fp->f_vnode; in fchdir() 147 file_t *fp; in fchroot() local 150 if ((fp = getf(fd)) == NULL) in fchroot() 152 vp = fp->f_vnode; in fchroot()
|
H A D | mmapobjsys.c | 72 struct file *fp; in mmapobjsys() local 88 fp = getf(fd); in mmapobjsys() 89 if (fp == NULL) { in mmapobjsys() 92 vp = fp->f_vnode; in mmapobjsys() 94 if ((fp->f_flag & FREAD) == 0) { in mmapobjsys() 148 error = mmapobj(vp, flags, mrp, &num_mapped, padding, fp->f_cred); in mmapobjsys()
|
/illumos-gate/usr/src/uts/sparc/fpu/ |
H A D | iu_simulator.c | 53 } fp; in fbcc_sim() local 140 fp.fi = pinst; in fbcc_sim() 145 (int)((fp.i << 13) >> 11); in fbcc_sim() 148 (int)((fp.i << 10) >> 8); in fbcc_sim() 155 (int)((fp.i << 13) >> 11); in fbcc_sim() 158 (int)((fp.i << 10) >> 8); in fbcc_sim()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | fold.c | 173 register Sfio_t *fp; in b_fold() local 227 fp = sfstdin; in b_fold() 228 else if(!(fp = sfopen(NiL,cp,"r"))) in b_fold() 234 fold(fp,sfstdout,width,cont,contsize,cols); in b_fold() 235 if(fp!=sfstdin) in b_fold() 236 sfclose(fp); in b_fold()
|
H A D | cat.c | 401 register Sfio_t* fp; in b_cat() local 521 fp = sfstdin; in b_cat() 523 sfopen(fp, NiL, mode); in b_cat() 525 else if (!(fp = sfopen(NiL, cp, mode))) in b_cat() 533 sfsetbuf(fp, (void*)fp, -1); in b_cat() 535 n = vcat(states, fp, sfstdout, reserve, flags); in b_cat() 536 else if (sfmove(fp, sfstdout, SF_UNBOUND, -1) >= 0 && sfeof(fp)) in b_cat() 540 if (fp != sfstdin) in b_cat() 541 sfclose(fp); in b_cat()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | ldap.c | 309 char *fp, *p, *q; local 317 fp = filter; 350 (void) sm_snprintf(fp, SPACELEFT(filter, fp), 352 fp += strlen(fp); 360 (void) sm_snprintf(fp, SPACELEFT(filter, fp), 362 fp += strlen(fp); 379 fp += strlen(fp); 383 *fp++ = *k++; 388 (void) sm_snprintf(fp, SPACELEFT(filter, fp), 391 fp += strlen(fp); [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetserv.c | 38 putservent(const struct servent *sp, FILE *fp) in putservent() argument 47 if (fprintf(fp, "%-20s %d/%s", in putservent() 51 if (fprintf(fp, " %s", *p) == EOF) in putservent() 54 if (putc('\n', fp) == EOF) in putservent()
|
H A D | dogethost.c | 39 puthostent(const struct hostent *hp, FILE *fp) in puthostent() argument 53 if (fprintf(fp, "%s\t%s", in puthostent() 57 if (fprintf(fp, " %s", *q) == EOF) in puthostent() 60 if (putc('\n', fp) == EOF) in puthostent()
|
H A D | dogetprofattr.c | 34 putprofattr(const profattr_t *prof, FILE *fp) in putprofattr() argument 43 if (fprintf(fp, "%s:%s:%s:%s:", in putprofattr() 53 if (fprintf(fp, "%s=%s%s", in putprofattr() 60 if (putc('\n', fp) == EOF) in putprofattr()
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kgtstate.c | 73 file_t *fp; in t_kgetstate() local 78 fp = tiptr->fp; in t_kgetstate() 79 vp = fp->f_vnode; in t_kgetstate()
|
H A D | t_kunbind.c | 74 file_t *fp; in t_kunbind() local 82 fp = tiptr->fp; in t_kunbind() 83 vp = fp->f_vnode; in t_kunbind()
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | bgets.c | 75 bgets(char *buf, size_t count, FILE *fp, char *stopstr) in bgets() argument 94 flockfile(fp); in bgets() 101 if ((c = getc(fp)) == EOF) { in bgets() 113 funlockfile(fp); in bgets()
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | utils.c | 175 FILE *fp; in dmesg() local 180 fp = level >= RCM_DEBUG ? stderr : stdout; in dmesg() 183 (void) fputs(pname, fp); in dmesg() 184 (void) fputs(": ", fp); in dmesg() 186 (void) fputs(msg, fp); in dmesg() 187 (void) fputc('\n', fp); in dmesg() 188 (void) fflush(fp); in dmesg()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcplugin/ |
H A D | psvcplugin.c | 75 FILE *fp; member 109 static int32_t count_records(FILE *fp, char *end, uint32_t *countp) in count_records() argument 116 first_record = ftell(fp); in count_records() 118 while ((ret = fgets(buf, BUFSZ, fp)) != NULL) { in count_records() 129 fseek(fp, first_record, SEEK_SET); in count_records() 296 load_projected_properties(FILE *fp) in load_projected_properties() argument 310 if (find_file_section(fp, "PROJECTED_PROPERTIES") != 0) in load_projected_properties() 313 if (count_records(fp, "PROJECTED_PROPERTIES_END", in load_projected_properties() 321 fgets(buf, BUFSZ, fp); in load_projected_properties() 462 load_projected_properties(psvc_hdl.fp); in psvc_psr_plugin_init()
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | read.c | 58 bytes(FILE *fp, const char *fn, off_t off) in bytes() argument 68 for (wrap = 0, ep = p + off; (ch = getc(fp)) != EOF; ) { in bytes() 75 if (ferror(fp)) { in bytes() 128 lines(FILE *fp, const char *fn, off_t off) in lines() argument 146 while ((ch = getc(fp)) != EOF) { in lines() 169 if (ferror(fp)) { in lines()
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n9.c | 413 tchar ii, jj, *fp; in setfield() local 447 fp = fbuf; in setfield() 457 *pp++ = fp; in setfield() 470 *fp++ = ii; in setfield() 476 *pp++ = fp; in setfield() 477 *fp++ = 0; in setfield() 479 *fp++ = temp; in setfield() 480 *fp++ = 0; in setfield() 521 *fp++ = ii; in setfield() 525 *fp++ = ii; in setfield() [all …]
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | getdomain.c | 68 FILE *fp = fopen(file, "r"); in look4domain() local 70 if (!fp) in look4domain() 73 while (fgets(buf, size, fp)) in look4domain() 85 (void) fclose(fp); in look4domain()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fabric-xlate.c | 55 FILE *fp = NULL; in fab_update_topo() local 73 if ((fp = fdopen(fd, "w")) == NULL) { in fab_update_topo() 85 if (topo_xml_print(thp, fp, FM_FMRI_SCHEME_HC, &err) < 0) { in fab_update_topo() 105 if (fp != NULL) in fab_update_topo() 106 (void) fclose(fp); in fab_update_topo()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | alarm.c | 163 *fp) in setdisc() 165 register struct tevent *tp = (struct tevent*)fp; in setdisc() 171 return(nv_setdisc(np, event, action, fp)); in setdisc() 183 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) in putval() argument 185 register struct tevent *tp = (struct tevent*)fp; in putval() 198 nv_putv(np,val,flag,fp); in putval() 203 nv_putv(np,(char*)&x,NV_INTEGER|NV_DOUBLE,fp); in putval() 220 free((void*)fp); in putval()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 418 uintptr_t pc, fp, lastfp; in showstack() local 421 fp = (uintptr_t)fpreg; in showstack() 422 if (fp < minaddr) { in showstack() 432 (fp > xpv_end || fp < xen_virt_start)) in showstack() 442 lastfp = fp; in showstack() 443 fp = fpp->fr_savfp; in showstack() 449 if (fp < lastfp) { in showstack() 450 if ((~fp > minaddr) && ((~fp) ^ lastfp) < 0xfff) in showstack() 451 fp = ~fp; in showstack() 453 } while (fp > lastfp); in showstack() [all …]
|