/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fgetws.c | 48 _fgetws_impl(wchar_t *_RESTRICT_KYWD ws, int n, FILE *_RESTRICT_KYWD fp, in _fgetws_impl() argument 55 FLOCKFILE(lk, fp); in _fgetws_impl() 56 if (orient && GET_NO_MODE(fp)) in _fgetws_impl() 57 _setorientation(fp, _WC_MODE); in _fgetws_impl() 67 wc = _fgetwc_unlocked(fp); in _fgetws_impl() 92 fgetws(wchar_t *_RESTRICT_KYWD ws, int n, FILE *_RESTRICT_KYWD fp) in fgetws() argument 94 return (_fgetws_impl(ws, n, fp, 0)); in fgetws() 98 __fgetws_xpg5(wchar_t *ws, int n, FILE *fp) in __fgetws_xpg5() argument 100 return (_fgetws_impl(ws, n, fp, 1)); in __fgetws_xpg5()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | paste.c | 89 register Sfio_t *fp; in paste() local 95 if(fp=streams[n]) in paste() 97 if(cp = sfgetr(fp,'\n',0)) in paste() 178 register Sfio_t *fp, **streams; in b_paste() local 263 fp = sfstdin; in b_paste() 266 if(fp && sflag) in b_paste() 270 if(fp!=sfstdin) in b_paste() 271 sfclose(fp); in b_paste() 274 streams[n++] = fp; in b_paste() 281 if((fp=streams[n]) && fp!=sfstdin) in b_paste() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | t-smstdio.c | 23 SM_FILE_T *fp; variable 34 fp = sm_io_stdioopen(stream, "w"); 35 SM_TEST(fp != NULL); 37 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s", testmsg); 38 sm_io_close(fp, SM_TIME_DEFAULT); 53 fp = sm_io_stdioopen(stream, "r"); 54 SM_TEST(fp != NULL); 56 n = sm_io_read(fp, SM_TIME_DEFAULT, buf, sizeof(buf));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getmntent.c | 48 static int getmntent_compat(FILE *fp, struct mnttab *mp); 128 while ((ret = getmntent_compat(fp, mgetp)) == 0 && in getmntany_compat() 202 return (getmntany_compat(fp, mgetp, mrefp)); in getmntany() 265 return (getmntent_compat(fp, (struct mnttab *)emp)); in getmntent_common() 272 getmntent(FILE *fp, struct mnttab *mp) in getmntent() argument 331 resetmnttab(FILE *fp) in resetmnttab() argument 333 rewind(fp); in resetmnttab() 343 getaline(char *lp, FILE *fp) in getaline() argument 347 while ((lp = fgets(lp, MNT_LINE_MAX, fp)) != NULL) { in getaline() 361 getmntent_compat(FILE *fp, struct mnttab *mp) in getmntent_compat() argument [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_nw.c | 85 FILE * fp; member 156 if (pvt->fp) in nw_close() 157 (void)fclose(pvt->fp); in nw_close() 203 if (pvt->fp) { in nw_rewind() 206 (void)fclose(pvt->fp); in nw_rewind() 212 pvt->fp = NULL; in nw_rewind() 227 if (pvt->fp == NULL) in nw_next() 229 if (pvt->fp == NULL) { in nw_next() 259 ungetc(c, pvt->fp); in nw_next() 320 if (pvt->fp != NULL) { in nw_minimize() [all …]
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_alloc.c | 367 unsigned char *fp; in pc_getcluster() local 374 fp = fsp->pcfs_fatp + (cn << 2); in pc_getcluster() 385 cn += (*fp << 4); in pc_getcluster() 387 cn = *fp++; in pc_getcluster() 388 cn += ((*fp & 0x0f) << 8); in pc_getcluster() 408 unsigned char *fp; in pc_setcluster() local 428 *fp = (*fp & 0x0f) | ((ncn << 4) & 0xf0); in pc_setcluster() 429 fp++; in pc_setcluster() 430 *fp = (ncn >> 4) & 0xff; in pc_setcluster() 432 *fp++ = ncn & 0xff; in pc_setcluster() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/ |
H A D | m_vsscan.c | 52 static FILE *fp = NULL; local 58 if (fp == NULL && (fp = tmpfile()) == NULL) 61 (void) rewind(fp); 64 (void) fputs(buf, fp); 67 (void) rewind(fp); 69 return (mks_vfscanf(fp, fmt, vp));
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | getdents.c | 74 file_t *fp; in getdents32() local 89 if ((fp = getf(fd)) == NULL) in getdents32() 91 vp = fp->f_vnode; in getdents32() 96 if (!(fp->f_flag & FREAD)) { in getdents32() 115 auio.uio_loffset = fp->f_offset; in getdents32() 126 fp->f_offset = auio.uio_loffset; in getdents32() 192 file_t *fp; in getdents64() local 207 if ((fp = getf(fd)) == NULL) in getdents64() 209 vp = fp->f_vnode; in getdents64() 214 if (!(fp->f_flag & FREAD)) { in getdents64() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dockdeps.c | 91 static int getaline(FILE *fp); 102 FILE *fp; in dockdeps() local 123 while (getaline(fp)) { in dockdeps() 179 (void) fclose(fp); in dockdeps() 309 getaline(FILE *fp) in getaline() argument 331 (void) ungetc(c, fp); in getaline() 335 if (!fgets(line, LSIZE, fp)) in getaline() 380 FILE *fp; in ckrdeps() local 408 while (getaline(fp)) { in ckpreq() 426 (void) fclose(fp); in ckpreq() [all …]
|
/illumos-gate/usr/src/tools/lintdump/ |
H A D | lintdump.c | 77 FILE *fp; in main() local 109 fp = fopen(argv[i], "r"); in main() 110 if (fp == NULL) { in main() 137 lsu_build(fp); in main() 138 print_lintmod(lnname, fp, &hdr); in main() 141 (void) fclose(fp); in main() 169 print_pass(lnname, fp); in print_lintmod() 197 getstr(fp, name, sizeof (name)); in print_pass() 455 lsu_build(FILE *fp) in lsu_build() argument 460 off_t curoff = ftello(fp); in lsu_build() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_shutdown.c | 55 sctp_faddr_t *fp; in sctp_send_shutdown() local 89 fp = sctp->sctp_current; in sctp_send_shutdown() 94 sctp->sctp_shutdown_faddr = fp; in sctp_send_shutdown() 110 sendmp = sctp_make_mp(sctp, fp, in sctp_send_shutdown() 147 boolean_t rexmit, sctp_faddr_t *fp) in sctp_shutdown_received() argument 178 if (fp == NULL) { in sctp_shutdown_received() 181 fp = sctp->sctp_current; in sctp_shutdown_received() 186 sctp_send_shutdown_ack(sctp, fp, crwsd); in sctp_shutdown_received() 376 ASSERT(fp != NULL); in sctp_send_shutdown_ack() 378 sctp->sctp_shutdown_faddr = fp; in sctp_send_shutdown_ack() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | pkgparam.c | 110 FILE *fp = NULL; in pkginfopen() local 114 fp = fopen(temp, "r"); in pkginfopen() 116 return (fp); in pkginfopen() 321 static FILE *fp = NULL; in pkgparam() local 329 if (fp) { in pkgparam() 330 (void) fclose(fp); in pkgparam() 331 fp = NULL; in pkgparam() 348 (void) fclose(fp); in pkgparam() 349 fp = NULL; in pkgparam() 351 if (!fp) { in pkgparam() [all …]
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 131 fp = fopen(tname, "w"); 132 if (fp == NULL) { 136 return(fp); 185 rewind(fp); in copy_file() 193 if (!fgets(dummy, SIZE, fp)) in copy_file() 203 if (!fgets(dummy, SIZE, fp)) in copy_file() 211 if (fgets(dummy, SIZE, fp) == NULL) { in copy_file() 212 if (feof(fp)) in copy_file() 233 find_pm(FILE *fp, char *pmtag) in find_pm() argument 240 while (fgets(buf, SIZE, fp)) { in find_pm() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/nvlprint/ |
H A D | nvlprint.c | 29 dumpit(FILE *fp) in dumpit() argument 37 if (fstat(fileno(fp), &st) < 0) { in dumpit() 46 rlen = fread(buf, 1, flen, fp); in dumpit() 69 FILE *fp; in main() local 78 fp = fopen(argv[i], "r"); in main() 79 if (fp == NULL) { in main() 84 dumpit(fp); in main() 85 (void) fclose(fp); in main()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 975 fp = stdin; in arguments() 978 conv(fp); in arguments() 979 if ( fp != stdin ) in arguments() 980 fclose(fp); in arguments() 1045 conv(FILE *fp) in conv() argument 1081 put1(getc(fp)); in conv() 1085 put1(getc(fp)); in conv() 1198 devcntrl(fp); in conv() 1220 devcntrl(FILE *fp) in devcntrl() argument 1293 ungetc('\n', fp); in devcntrl() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.proc.c | 115 fp = pp; in pchild() 123 } while ((fp = fp->p_friends) != pp); in pchild() 134 } while ((fp = fp->p_friends) != pp); in pchild() 135 while (fp->p_pid != fp->p_jobid) in pchild() 136 fp = fp->p_friends; in pchild() 235 fp = pp; in pjwait() 239 } while ((fp = fp->p_friends) != pp); in pjwait() 250 while ((fp = (fp->p_friends)) != pp); in pjwait() 298 fp->p_reason | ABN_TERM : fp->p_reason; in pjwait() 299 } while ((fp = fp->p_friends) != pp); in pjwait() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | i386_copy.c | 50 addr_verify(struct preloaded_file *fp, vm_offset_t addr, size_t size) in addr_verify() argument 54 while (fp != NULL) { in addr_verify() 55 f_addr = fp->f_addr; in addr_verify() 58 (f_addr + fp->f_size >= addr)) { in addr_verify() 64 fp = fp->f_next; in addr_verify() 110 struct preloaded_file *fp, *mfp; in i386_loadaddr() local 139 fp = file_findfile(NULL, NULL); in i386_loadaddr() 140 if (fp == NULL) in i386_loadaddr() 142 md = file_findmetadata(fp, MODINFOMD_SMAP); in i386_loadaddr() 150 mfp = fp; in i386_loadaddr() [all …]
|
/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | mdb_ia32util.c | 232 while (fp != 0) { in mdb_ia32_kvm_stack_iter() 233 if (fp & (STACK_ALIGN - 1)) { in mdb_ia32_kvm_stack_iter() 247 tortoise_fp = fp; in mdb_ia32_kvm_stack_iter() 266 if (fp == tortoise_fp) { in mdb_ia32_kvm_stack_iter() 280 lastfp = fp; in mdb_ia32_kvm_stack_iter() 281 fp = fr.fr_savfp; in mdb_ia32_kvm_stack_iter() 290 if ((fp != 0) && (fp < lastfp) && in mdb_ia32_kvm_stack_iter() 292 fp = ~fp; in mdb_ia32_kvm_stack_iter() 294 kregs[KREG_EBP] = fp; in mdb_ia32_kvm_stack_iter() 335 fp = sp - 4; in mdb_ia32_step_out() [all …]
|
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 392 if (fp != 0) in dump_log() 393 (void) fprintf(fp, in dump_log() 402 if (fp != 0) { in dump_log() 478 FILE *fp, in define_one_error() argument 490 (void) fprintf(fp, in define_one_error() 1053 FILE *fp = 0; in log2errdefs() local 1080 fp = outfile; in log2errdefs() 1139 (void) fprintf(fp, in log2errdefs() 1211 if (fp != stdout && fp != stderr) { in log2errdefs() 1647 FILE *fp = 0; in create_test_file() local [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetproject.c | 34 putprojent(const struct project *proj, FILE *fp) in putprojent() argument 41 if (fprintf(fp, "%s:%ld:%s:", in putprojent() 49 if (fputs(*names++, fp) == EOF) in putprojent() 52 if (fprintf(fp, ",%s", *names++) == EOF) in putprojent() 55 if (putc(':', fp) == EOF) in putprojent() 60 if (fputs(*names++, fp) == EOF) in putprojent() 63 if (fprintf(fp, ",%s", *names++) == EOF) in putprojent() 66 if (putc(':', fp) == EOF) in putprojent() 68 if (fprintf(fp, "%s\n", in putprojent()
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 69 static FILE *fp; /* File pointer for receipient's terminal */ variable 77 extern FILE *fp; in warn_send() 119 fp = fopen(&rterminal[0], "w"); in warn_send() 132 (void) fprintf(fp, gettext( in warn_send() 136 fprintf(fp, gettext("\r\nMessage to %s"), msg); in warn_send() 137 fflush(fp); in warn_send() 142 fclose(fp); in warn_send() 188 extern FILE *fp; in eof() 190 (void) fprintf(fp, "%s\r\n", gettext("<EOT>")); in eof()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | merginfo.c | 136 FILE *fp; in merginfo() local 254 (void) putc(' ', fp); in merginfo() 277 (void) putc(' ', fp); in merginfo() 283 (void) putc('\n', fp); in merginfo() 295 (void) fputs(txs1, fp); in merginfo() 297 (void) putc('\n', fp); in merginfo() 300 (void) putc('\n', fp); in merginfo() 417 (void) putc('/', fp); in merginfo() 431 (void) fputs(ep, fp); in merginfo() 432 (void) putc('\n', fp); in merginfo() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | addicmp.c | 24 int addicmp(cp, fp, linenum) in addicmp() argument 26 struct frentry *fp; 35 if (!fp->fr_proto) /* to catch lusers */ 36 fp->fr_proto = IPPROTO_ICMP; 62 fp->fr_icmp = (u_short)(i << 8); 63 fp->fr_icmpm = (u_short)0xff00; 88 fp->fr_icmp |= (u_short)i; 89 fp->fr_icmpm = (u_short)0xffff;
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 329 fp = &svbuf[0]; in listfiles() 386 for (fp = &svbuf[0]; fp < &svbuf[ecount]; fp++) { in listfiles() 391 cp, cp2, fp->sf_lines, fp->sf_name); in listfiles() 420 fp = f; in enter() 426 fp->sf_time = H.Time; in enter() 696 unsigned char *fp, *lp; in rputfile() local 705 fp = genbuf; in rputfile() 717 nib = fp - genbuf; in rputfile() 722 fp = genbuf; in rputfile() 725 fp[-1] = '\n'; in rputfile() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_import.c | 204 print_cmdlist_short(char *name, FILE *fp) in print_cmdlist_short() argument 206 print_cmd_short(name, fp, ilbadm_cmds); in print_cmdlist_short() 263 i_getln_to_argv(FILE *fp, arg_t **ap) in i_getln_to_argv() argument 326 FILE *fp; in ilb_import_file() local 331 if ((fp = fdopen(fd, "r")) == NULL) { in ilb_import_file() 383 FILE *fp; in ilbadm_export() local 400 fp = fdopen(fd, "w"); in ilbadm_export() 401 if (fp == NULL) { in ilbadm_export() 414 rc = ilbadm_export_hc(h, fp); in ilbadm_export() 418 rc = ilbadm_export_rules(h, fp); in ilbadm_export() [all …]
|