/freebsd-11-stable/contrib/amd/amd/ |
H A D | amfs_link.c | 83 amfs_link_match(am_opts *fo) argument 86 if (!fo->opt_fs) { 106 if (fo->opt_fs[0] == '/') { 107 char *link_hack = str3cat(NULL, ".", fo->opt_fs, ""); 108 if (fo->opt_sublink == NULL || fo->opt_sublink[0] == '\0') 109 fo->opt_sublink = xstrdup(fo->opt_fs); 110 XFREE(fo->opt_fs); 111 fo [all...] |
H A D | amfs_program.c | 51 static char *amfs_program_match(am_opts *fo); 85 amfs_program_match(am_opts *fo) argument 89 if (fo->opt_unmount && fo->opt_umount) { 93 if (!fo->opt_mount) { 97 if (!fo->opt_unmount && !fo->opt_umount) { 98 fo->opt_unmount = str3cat(NULL, UNMOUNT_PROGRAM, " umount ", fo->opt_fs); 100 fo [all...] |
H A D | am_ops.c | 384 ops_match(am_opts *fo, char *key, char *g_key, char *path, char *keym, char *map) argument 392 if (!eval_fs_opts(fo, key, g_key, path, keym, map)) { 394 } else if (fo->opt_type == 0) { 401 rop = ops_search(fo->opt_type); 403 plog(XLOG_USER, "fs type \"%s\" not recognized", fo->opt_type); 412 if (fo->opt_opts == 0) 413 fo->opt_opts = xstrdup("rw,defaults"); 414 else if (*fo->opt_opts == '-') { 416 * We cannot simply do fo->opt_opts++ here since the opts 417 * module will try to free the pointer fo [all...] |
H A D | ops_lustre.c | 43 static char *lustre_match(am_opts *fo); 76 lustre_match(am_opts *fo) argument 83 if (fo->opt_fs && !fo->opt_rfs) 84 fo->opt_rfs = fo->opt_fs; 85 if (!fo->opt_rfs) { 89 if (!fo->opt_rhost) { 97 rhost = xstrdup(fo->opt_rhost); 141 XFREE(fo [all...] |
H A D | ops_ufs.c | 51 static char *ufs_match(am_opts *fo); 88 ufs_match(am_opts *fo) argument 91 if (!fo->opt_dev) { 96 dlog("UFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 101 return xstrdup(fo->opt_dev);
|
H A D | ops_xfs.c | 51 static char *xfs_match(am_opts *fo); 84 xfs_match(am_opts *fo) argument 87 if (!fo->opt_dev) { 92 dlog("XFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 97 return xstrdup(fo->opt_dev);
|
H A D | ops_efs.c | 51 static char *efs_match(am_opts *fo); 84 efs_match(am_opts *fo) argument 87 if (!fo->opt_dev) { 92 dlog("EFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 97 return xstrdup(fo->opt_dev);
|
H A D | ops_lofs.c | 51 static char *lofs_match(am_opts *fo); 84 lofs_match(am_opts *fo) argument 86 if (!fo->opt_rfs) { 91 fo->opt_rfs, fo->opt_fs); 96 return xstrdup(fo->opt_rfs);
|
H A D | amfs_nfsx.c | 69 static char *amfs_nfsx_match(am_opts *fo); 100 amfs_nfsx_match(am_opts *fo) argument 106 if (!fo->opt_rfs) { 111 if (!fo->opt_rhost) { 117 if (fo->opt_sublink == NULL || fo->opt_sublink[0] == '\0') { 118 ptr = strchr(fo->opt_rfs, ','); 119 if (ptr && ptr > (fo->opt_rfs + 1)) 120 fo->opt_sublink = strnsave(fo [all...] |
H A D | amfs_nfsl.c | 56 static char *amfs_nfsl_match(am_opts *fo); 93 amfs_nfsl_match(am_opts *fo) argument 96 char *ho = fo->opt_rhost; 100 if (fo->opt_sublink && fo->opt_sublink[0]) 101 cp = fo->opt_sublink; 103 cp = fo->opt_fs; 118 retval = nfs_ops.fs_match(fo); 121 retval = nfs_ops.fs_match(fo); 124 retval = amfs_link_ops.fs_match(fo); [all...] |
H A D | ops_tmpfs.c | 51 static char *tmpfs_match(am_opts *fo); 84 tmpfs_match(am_opts *fo) argument 87 if (!fo->opt_dev) { 92 dlog("EFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 97 return xstrdup(fo->opt_dev);
|
H A D | ops_ext.c | 51 static char *ext_match(am_opts *fo); 127 ext_match(am_opts *fo) argument 130 if (!fo->opt_dev) { 135 dlog("EXT: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 140 return xstrdup(fo->opt_dev);
|
H A D | amfs_error.c | 54 static char *amfs_error_match(am_opts *fo); 89 amfs_error_match(am_opts *fo) argument
|
H A D | ops_cachefs.c | 51 static char *cachefs_match(am_opts *fo); 87 cachefs_match(am_opts *fo) argument 90 if (!fo->opt_rfs || !fo->opt_fs || !fo->opt_cachedir) { 95 dlog("CACHEFS: using cache directory \"%s\"", fo->opt_cachedir); 98 return xstrdup(fo->opt_cachedir);
|
H A D | ops_pcfs.c | 51 static char *pcfs_match(am_opts *fo); 85 pcfs_match(am_opts *fo) argument 87 if (!fo->opt_dev) { 91 dlog("PCFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 96 return xstrdup(fo->opt_dev);
|
H A D | ops_udf.c | 51 static char *udf_match(am_opts *fo); 123 udf_match(am_opts *fo) argument 126 if (!fo->opt_dev) { 130 dlog("UDF: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); 135 return xstrdup(fo->opt_dev);
|
H A D | ops_cdfs.c | 51 static char *cdfs_match(am_opts *fo); 84 cdfs_match(am_opts *fo) argument 86 if (!fo->opt_dev) { 91 fo->opt_dev, fo->opt_fs); 96 return xstrdup(fo->opt_dev);
|
H A D | ops_TEMPLATE.c | 58 static char *foofs_match(am_opts *fo); 101 foofs_match(am_opts *fo) argument
|
H A D | ops_nfs.c | 104 static char *nfs_match(am_opts *fo); 696 nfs_match(am_opts *fo) argument 701 if (fo->opt_fs && !fo->opt_rfs) 702 fo->opt_rfs = fo->opt_fs; 703 if (!fo->opt_rfs) { 707 if (!fo->opt_rhost) { 715 l = strlen(fo->opt_rhost) + strlen(fo [all...] |
/freebsd-11-stable/tools/tools/vop_table/ |
H A D | vop_table.tcl | 4 set fo [open _.html w] 58 puts $fo {<HTML> 80 puts $fo {<TR>} 81 puts $fo {<TD>} 82 puts $fo {</TD>} 83 puts $fo "<TR>" 84 puts $fo "<TD></TD>" 86 puts $fo "<TD>" 89 puts $fo "[string index $j $i]<BR>" 91 puts $fo "</T [all...] |
/freebsd-11-stable/usr.sbin/ctm/ctm/ |
H A D | ctm_ed.c | 20 FILE *fi=0,*fo=0; local 28 fo = fopen(fileout,"w"); 29 if(!fo) { 56 putc(c,fo); 74 putc(c,fo); 80 putc(c,fo); 93 putc(c,fo); 103 if(fo) { 104 if(fflush(fo) != 0) { 108 if(fclose(fo) ! [all...] |
/freebsd-11-stable/usr.sbin/fifolog/fifolog_reader/ |
H A D | fifolog_reader.c | 50 static FILE *fo; variable 66 fprintf(fo, "%s\n", p); 71 fprintf(fo, "%s %s\n", buf, p); 73 fprintf(fo, "%12ld %s\n", (long)now, p); 163 fo = stdout; 165 fo = fopen(opt_o, "w"); 166 if (fo == NULL)
|
/freebsd-11-stable/usr.bin/mail/ |
H A D | send.c | 505 puthead(struct header *hp, FILE *fo, int w) argument 511 fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++; 513 fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++; 515 fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++; 517 fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++; 519 fprintf(fo, "Reply-To: %s\n", hp->h_replyto), gotcha++; 521 fprintf(fo, "In-Reply-To: <%s>\n", hp->h_inreplyto), gotcha++; 523 (void)putc('\n', fo); 531 fmt(const char *str, struct name *np, FILE *fo, int comma) argument 538 fputs(str, fo); 565 FILE *fo; local [all...] |
/freebsd-11-stable/sbin/ipfw/ |
H A D | ipfw2.c | 391 static int ipfw_get_config(struct cmdline_opts *co, struct format_opts *fo, 393 static int ipfw_show_config(struct cmdline_opts *co, struct format_opts *fo, 1188 print_ip(struct buf_pr *bp, const struct format_opts *fo, ipfw_insn_ip *cmd) argument 1203 t = table_search_ctlv(fo->tstate, ((ipfw_insn *)cmd)->arg1); 1213 t = table_search_ctlv(fo->tstate, ((ipfw_insn *)cmd)->arg1); 1445 print_instruction(struct buf_pr *bp, const struct format_opts *fo, argument 1476 print_ip(bp, fo, insntod(cmd, ip)); 1485 print_ip(bp, fo, insntod(cmd, ip)); 1574 table_search_ctlv(fo->tstate, 1583 s = table_search_ctlv(fo 1752 print_opcode(struct buf_pr *bp, struct format_opts *fo, struct show_state *state, int opcode) argument 1805 print_action_instruction(struct buf_pr *bp, const struct format_opts *fo, struct show_state *state, const ipfw_insn *cmd) argument 1985 print_action(struct buf_pr *bp, struct format_opts *fo, struct show_state *state, uint8_t opcode) argument 2004 print_proto(struct buf_pr *bp, struct format_opts *fo, struct show_state *state) argument 2068 print_address(struct buf_pr *bp, struct format_opts *fo, struct show_state *state, const int opcodes[], size_t nops, int portop, int flag) argument 2138 show_static_rule(struct cmdline_opts *co, struct format_opts *fo, struct buf_pr *bp, struct ip_fw_rule *rule, struct ip_fw_bcounter *cntr) argument 2256 show_dyn_state(struct cmdline_opts *co, struct format_opts *fo, struct buf_pr *bp, ipfw_dyn_rule *d) argument 2380 struct format_opts fo; local 2512 prepare_format_dyn(struct cmdline_opts *co, struct format_opts *fo, void *arg, void *_state) argument 2544 foreach_state(struct cmdline_opts *co, struct format_opts *fo, caddr_t base, size_t sz, state_cb dyn_bc, void *dyn_arg) argument 2585 prepare_format_opts(struct cmdline_opts *co, struct format_opts *fo, ipfw_obj_tlv *rtlv, int rcnt, caddr_t dynbase, size_t dynsz) argument 2624 list_static_range(struct cmdline_opts *co, struct format_opts *fo, struct buf_pr *bp, ipfw_obj_tlv *rtlv, int rcnt) argument 2659 list_dyn_state(struct cmdline_opts *co, struct format_opts *fo, void *_arg, void *_state) argument 2687 list_dyn_range(struct cmdline_opts *co, struct format_opts *fo, struct buf_pr *bp, caddr_t base, size_t sz) argument 2756 ipfw_show_config(struct cmdline_opts *co, struct format_opts *fo, ipfw_cfg_lheader *cfg, size_t sz, int ac, char *av[]) argument 2887 ipfw_get_config(struct cmdline_opts *co, struct format_opts *fo, ipfw_cfg_lheader **pcfg, size_t *psize) argument [all...] |
/freebsd-11-stable/usr.sbin/ctm/mkCTM/ |
H A D | mkCTM | 98 set fo [open $CTMref/.ctm_status w] 99 puts $fo "$CTMname $CTMnbr" 100 close $fo
|