/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | getusershell.c | 123 FILE *fp; local 151 if ((fp = fopen(_PATH_SHELLS, "r")) == NULL) 153 if (fstat(fileno(fp), &statb) == -1) { 154 fclose(fp); 158 fclose(fp); 163 fclose(fp); 170 while (fgets(cp, MaxPathLen + 1, fp) != NULL) { 180 fclose(fp);
|
/freebsd-11-stable/usr.bin/rwall/ |
H A D | rwall.c | 131 FILE *fp; local 138 if ((fd = mkstemp(tmpname)) == -1 || (fp = fdopen(fd, "r+")) == NULL) 158 fprintf(fp, "Remote Broadcast Message from %s@%s\n", 163 fprintf(fp, " (%s) at %d:%02d ...\n", tty, 166 putc('\n', fp); 171 fputs(lbuf, fp); 172 rewind(fp); 180 if (fread(mbuf, sizeof(*mbuf), mbufsize, fp) != (u_int)mbufsize)
|
/freebsd-11-stable/usr.sbin/fstyp/ |
H A D | cd9660.c | 45 fstyp_cd9660(FILE *fp, char *label, size_t size) argument 49 sector = read_buf(fp, ISO9660_OFFSET, 512);
|
H A D | fstyp.c | 73 read_buf(FILE *fp, off_t off, size_t len) argument 79 error = fseek(fp, off, SEEK_SET); 91 nread = fread(buf, len, 1, fp); 94 if (feof(fp) == 0) 137 type_check(const char *path, FILE *fp) argument 143 fd = fileno(fp); 164 FILE *fp; local 190 fp = fopen(path, "r"); 191 if (fp == NULL) 199 type_check(path, fp); [all...] |
/freebsd-11-stable/usr.bin/unifdef/ |
H A D | unifdef.h | 43 #define fbinmode(fp) (fp)
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_consume.c | 537 dt_print_quanthdr(dtrace_hdl_t *dtp, FILE *fp, int width) argument 539 return (dt_printf(dtp, fp, "\n%*s %41s %-9s\n", 545 dt_print_quanthdr_packed(dtrace_hdl_t *dtp, FILE *fp, int width, argument 568 if (dt_printf(dtp, fp, "\n%*s %*s .", 573 if (dt_printf(dtp, fp, "-") < 0) 577 return (dt_printf(dtp, fp, ". %*s | count\n", -maxwidth, "max")); 594 dt_print_quantline_utf8(dtrace_hdl_t *dtp, FILE *fp, int64_t val, argument 605 if (dt_printf(dtp, fp, "|") < 0) 609 if (dt_printf(dtp, fp, "%c%c%c", 619 if (dt_printf(dtp, fp, " 633 dt_print_quantline(dtrace_hdl_t *dtp, FILE *fp, int64_t val, uint64_t normal, long double total, char positives, char negatives) argument 706 dt_print_packed(dtrace_hdl_t *dtp, FILE *fp, long double datum, long double total) argument 765 dt_print_quantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 821 dt_print_quantize_packed(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, const dtrace_aggdata_t *aggdata) argument 863 dt_print_lquantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 942 dt_print_lquantize_packed(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, const dtrace_aggdata_t *aggdata) argument 994 dt_print_llquantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 1110 dt_print_average(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t size, uint64_t normal) argument 1122 dt_print_stddev(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t size, uint64_t normal) argument 1134 dt_print_bytes(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t nbytes, int width, int quiet, int forceraw) argument 1252 dt_print_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr, int depth, int size) argument 1331 dt_print_ustack(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr, uint64_t arg) argument 1464 dt_print_usym(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, dtrace_actkind_t act) argument 1500 dt_print_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 1543 dt_print_memory(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr) argument 1562 FILE *fp; member in struct:dt_type_cbdata 1774 dt_print_type(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr) argument 1851 dt_print_sym(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 1887 dt_print_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 2104 dt_print_datum(dtrace_hdl_t *dtp, FILE *fp, dtrace_recdesc_t *rec, caddr_t addr, size_t size, const dtrace_aggdata_t *aggdata, uint64_t normal, dt_print_aggdata_t *pd) argument 2264 FILE *fp = pd->dtpa_fp; local 2403 dt_consume_cpu(dtrace_hdl_t *dtp, FILE *fp, int cpu, dtrace_bufdesc_t *buf, boolean_t just_one, dtrace_consume_probe_f *efunc, dtrace_consume_rec_f *rfunc, void *arg) argument 3060 dt_consume_begin(dtrace_hdl_t *dtp, FILE *fp, dtrace_consume_probe_f *pf, dtrace_consume_rec_f *rf, void *arg) argument 3205 dtrace_consume(dtrace_hdl_t *dtp, FILE *fp, dtrace_consume_probe_f *pf, dtrace_consume_rec_f *rf, void *arg) argument [all...] |
/freebsd-11-stable/contrib/amd/fsinfo/ |
H A D | fsi_analyze.c | 407 fixup_required_mount_info(fsmount *fp, dict_ent *de) argument 409 if (!ISSET(fp->f_mask, FM_FROM)) { 411 lerror(fp->f_ioloc, "ambiguous mount: %s is a replicated filesystem", fp->f_volname); 419 fp->f_ref = mp; 420 set_fsmount(fp, FM_FROM, mp->m_dk->d_host->h_hostname); 421 fsi_log("set: %s comes from %s", fp->f_volname, fp->f_from); 425 if (!ISSET(fp->f_mask, FM_FSTYPE)) { 426 set_fsmount(fp, FM_FSTYP 479 fsmount *fp; local [all...] |
/freebsd-11-stable/contrib/groff/src/utils/tfmtodit/ |
H A D | tfmtodit.cpp | 278 FILE *fp = fopen(file, FOPEN_RB); local 279 if (!fp) { 283 int c1 = getc(fp); 284 int c2 = getc(fp); 286 fclose(fp); 293 if (fread(buf, 1, toread, fp) != (size_t)toread) { 294 if (feof(fp)) 299 fclose(fp); 302 fclose(fp); 379 static int sread4(int *p, FILE *fp); 418 FILE *fp = fopen(file, FOPEN_RB); local 549 sread4(int *p, FILE *fp) argument 563 uread3(int *p, FILE *fp) argument 573 uread2(int *p, FILE *fp) argument 581 skip(int n, FILE *fp) argument 604 FILE *fp = fopen(file, "r"); local [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_decl.c | 87 ctf_decl_push(ctf_decl_t *cd, ctf_file_t *fp, ctf_id_t type) argument 97 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) { 98 cd->cd_err = fp->ctf_errno; 102 switch (kind = LCTF_INFO_KIND(fp, tp->ctt_info)) { 104 (void) ctf_array_info(fp, type, &ar); 105 ctf_decl_push(cd, fp, ar.ctr_contents); 111 if (ctf_strptr(fp, tp->ctt_name)[0] == '\0') { 112 ctf_decl_push(cd, fp, tp->ctt_type); 119 ctf_decl_push(cd, fp, tp->ctt_type); 124 ctf_decl_push(cd, fp, t [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | timevar.c | 384 timevar_print (FILE *fp) argument 397 if (fp == 0) 398 fp = stderr; 412 fputs (_("\nExecution times (seconds)\n"), fp); 436 fprintf (fp, " %-22s:", tv->name); 440 fprintf (fp, "%7.2f (%2.0f%%) usr", 447 fprintf (fp, "%7.2f (%2.0f%%) sys", 454 fprintf (fp, "%7.2f (%2.0f%%) wall", 460 fprintf (fp, "%8u kB (%2.0f%%) ggc", 466 putc ('\n', fp); [all...] |
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ipv6cp.c | 466 ipv6cp_LayerUp(struct fsm *fp) argument 469 struct ipv6cp *ipv6cp = fsm2ipv6cp(fp); 472 log_Printf(LogIPV6CP, "%s: LayerUp.\n", fp->link->name); 481 radius_Account_Set_Ipv6(&fp->bundle->radacct6, ipv6cp->his_ifid); 482 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6, 483 fp->bundle->links, RAD_START, &ipv6cp->throughput); 490 if (!Enabled(fp->bundle, OPT_IPCP)) { 491 if (*fp->bundle->radius.cfg.file && fp 522 ipv6cp_LayerDown(struct fsm *fp) argument 574 ipv6cp_LayerStart(struct fsm *fp) argument 587 ipv6cp_LayerFinish(struct fsm *fp) argument 598 ipv6cp_InitRestartCounter(struct fsm *fp, int what) argument 618 ipv6cp_SendConfigReq(struct fsm *fp) argument 644 ipv6cp_SendTerminateAck(struct fsm *fp, u_char id) argument 684 ipv6cp_DecodeConfig(struct fsm *fp, u_char *cp, u_char *end, int mode_type, struct fsm_decode *dec) argument [all...] |
H A D | auth.c | 168 FILE *fp; local 173 fp = OpenSecret(SECRETFILE); 174 if (fp != NULL) { 177 while (fgets(buff, sizeof buff, fp)) { 188 CloseSecret(fp); 200 rewind(fp); 204 CloseSecret(fp); 213 FILE *fp; local 234 fp = OpenSecret(SECRETFILE); 235 if (fp ! 296 FILE *fp; local 347 FILE *fp; local [all...] |
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-new.c | 80 pcap_t *fp; local 259 fp = pcap_open_offline(filename, errbuf); 261 if (fp) 327 pcap_close(fp); 358 pcap_t *fp; local 390 fp = pcap_create(name, errbuf); 407 if (fp == NULL) 409 status = pcap_set_snaplen(fp, snaplen); 414 status = pcap_set_promisc(fp, 1); 420 status = pcap_set_immediate_mode(fp, [all...] |
H A D | pcap-rpcap.c | 151 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog); 152 static int pcap_createfilter_norpcappkt(pcap_t *fp, struct bpf_program *prog); 153 static int pcap_updatefilter_remote(pcap_t *fp, struct bpf_program *prog); 154 static void pcap_save_current_filter_rpcap(pcap_t *fp, const char *filter); 155 static int pcap_setfilter_rpcap(pcap_t *fp, struct bpf_program *prog); 156 static int pcap_setsampling_remote(pcap_t *fp); 157 static int pcap_startcapture_remote(pcap_t *fp); 396 * 'fp->rmt_sockdata' has always to be set before calling the select(), 688 static void pcap_cleanup_rpcap(pcap_t *fp) argument 690 struct pcap_rpcap *pr = fp 1012 pcap_startcapture_remote(pcap_t *fp) argument 1429 pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) argument 1500 pcap_updatefilter_remote(pcap_t *fp, struct bpf_program *prog) argument 1537 pcap_save_current_filter_rpcap(pcap_t *fp, const char *filter) argument 1571 pcap_setfilter_rpcap(pcap_t *fp, struct bpf_program *prog) argument 1600 pcap_createfilter_norpcappkt(pcap_t *fp, struct bpf_program *prog) argument 1730 pcap_setsampling_remote(pcap_t *fp) argument 2188 pcap_t *fp; local [all...] |
/freebsd-11-stable/contrib/groff/src/roff/troff/ |
H A D | mtsm.cpp | 42 void int_value::diff(FILE *fp, const char *s, int_value compare) argument 45 fputs("x X ", fp); 46 fputs(s, fp); 47 fputs(" ", fp); 48 fputs(i_to_a(compare.value), fp); local 49 fputs("\n", fp); 53 fflush(fp); 88 void bool_value::diff(FILE *fp, const char *s, bool_value compare) argument 91 fputs("x X ", fp); 92 fputs(s, fp); 109 diff(FILE *fp, const char *s, units_value compare) argument 115 fputs(i_to_a(compare.value), fp); local 145 diff(FILE *fp, const char *s, string_value compare) argument 199 flush(FILE *fp, statem *compare) argument 443 flush(FILE *fp, statem *s, string tag_list) argument 547 add_tag(FILE *fp, string s) argument [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | ntp_util.c | 185 FILE *fp; local 281 if ((fp = fopen(stats_temp_file, "w")) == NULL) { 286 fprintf(fp, "%.3f\n", drift_comp * 1e6); 287 (void)fclose(fp); 303 if ((fp = fopen(stats_drift_file, "w")) == 337 FILE *fp; local 414 if ((fp = fopen(stats_drift_file, "r")) == NULL) 417 if (fscanf(fp, "%lf", &old_drift) != 1) { 421 fclose(fp); 425 fclose(fp); [all...] |
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | make_keys.c | 137 FILE *fp = fopen(argv[n], "r"); local 138 if (fp != 0) { 139 make_keys(fp, stdout); 140 fclose(fp);
|
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | file.h | 102 isc_file_openunique(char *templet, FILE **fp); 104 isc_file_openuniqueprivate(char *templet, FILE **fp); 106 isc_file_openuniquemode(char *templet, int mode, FILE **fp); 126 *\li 'fp' is non-NULL and '*fp' is NULL. 133 * *fp points to an stream opening in stdio's "w+" mode. 136 * *fp is NULL. 280 isc_file_safecreate(const char *filename, FILE **fp);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/ |
H A D | tst.branch.s | 41 stb %g0, [%fp - 4] 44 sub %fp, 4, %o0
|
H A D | tst.embedded.s | 41 stb %g0, [%fp - 4] 44 sub %fp, 4, %o0
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/ |
H A D | tst.circstack.s | 36 mov %sp, %fp
|
/freebsd-11-stable/contrib/groff/src/preproc/eqn/ |
H A D | main.cpp | 50 int read_line(FILE *fp, string *p) argument 54 while ((c = getc(fp)) != EOF) { 66 void do_file(FILE *fp, const char *filename) argument 73 while (read_line(fp, &linebuf)) { 92 if (!read_line(fp, &linebuf)) 121 && inline_equation(fp, linebuf, str)) 132 static int inline_equation(FILE *fp, string &linebuf, string &str) argument 167 if (!read_line(fp, &linebuf)) 369 FILE *fp = config_macro_path.open_file(STARTUP_FILE, &path); local 370 if (fp) { 384 FILE *fp = fopen(argv[i], "r"); local [all...] |
/freebsd-11-stable/sys/dev/aac/ |
H A D | aac_linux.c | 79 struct file *fp; local 83 error = fget(td, args->fd, cap_rights_init(&rights, CAP_IOCTL), &fp); 91 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td->td_ucred, td)); 92 fdrop(fp, td);
|
/freebsd-11-stable/sys/dev/aacraid/ |
H A D | aacraid_linux.c | 82 struct file *fp; local 93 &fp)) != 0) { 101 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td->td_ucred, td)); 102 fdrop(fp, td);
|
/freebsd-11-stable/sys/dev/amr/ |
H A D | amr_linux.c | 76 struct file *fp; local 79 error = fget(p, args->fd, cap_rights_init(&rights, CAP_IOCTL), &fp); 82 error = fo_ioctl(fp, args->cmd, (caddr_t)args->arg, p->td_ucred, p); 83 fdrop(fp, p);
|