| /netbsd-src/external/bsd/am-utils/dist/amd/ |
| H A D | am_ops.c | 386 ops_match(am_opts *fo, char *key, char *g_key, char *path, char *keym, char *map) in ops_match() argument 394 if (!eval_fs_opts(fo, key, g_key, path, keym, map)) { in ops_match() 396 } else if (fo->opt_type == 0) { in ops_match() 403 rop = ops_search(fo->opt_type); in ops_match() 405 plog(XLOG_USER, "fs type \"%s\" not recognized", fo->opt_type); in ops_match() 414 if (fo->opt_opts == 0) in ops_match() 415 fo->opt_opts = xstrdup("rw,defaults"); in ops_match() 416 else if (*fo->opt_opts == '-') { in ops_match() 422 char *old = fo->opt_opts; in ops_match() 423 fo->opt_opts = xstrdup(old + 1); in ops_match() [all …]
|
| H A D | ops_lustre.c | 45 static char *lustre_match(am_opts *fo); 78 lustre_match(am_opts *fo) in lustre_match() argument 85 if (fo->opt_fs && !fo->opt_rfs) in lustre_match() 86 fo->opt_rfs = fo->opt_fs; in lustre_match() 87 if (!fo->opt_rfs) { in lustre_match() 91 if (!fo->opt_rhost) { in lustre_match() 99 rhost = xstrdup(fo->opt_rhost); in lustre_match() 143 XFREE(fo->opt_rhost); in lustre_match() 144 fo->opt_rhost = remhost; in lustre_match() 146 l = strlen(fo->opt_rhost) + strlen(fo->opt_rfs) + 2; in lustre_match() [all …]
|
| H A D | amfs_link.c | 85 amfs_link_match(am_opts *fo) in amfs_link_match() argument 88 if (!fo->opt_fs) { in amfs_link_match() 108 if (fo->opt_fs[0] == '/') { in amfs_link_match() 109 char *link_hack = str3cat(NULL, ".", fo->opt_fs, ""); in amfs_link_match() 110 if (fo->opt_sublink == NULL || fo->opt_sublink[0] == '\0') in amfs_link_match() 111 fo->opt_sublink = xstrdup(fo->opt_fs); in amfs_link_match() 112 XFREE(fo->opt_fs); in amfs_link_match() 113 fo->opt_fs = link_hack; in amfs_link_match() 116 return xstrdup(fo->opt_fs); in amfs_link_match()
|
| H A D | amfs_program.c | 53 static char *amfs_program_match(am_opts *fo); 87 amfs_program_match(am_opts *fo) in amfs_program_match() argument 91 if (fo->opt_unmount && fo->opt_umount) { in amfs_program_match() 95 if (!fo->opt_mount) { in amfs_program_match() 99 if (!fo->opt_unmount && !fo->opt_umount) { in amfs_program_match() 100 fo->opt_unmount = str3cat(NULL, UNMOUNT_PROGRAM, " umount ", fo->opt_fs); in amfs_program_match() 102 fo->opt_unmount); in amfs_program_match() 104 prog = strchr(fo->opt_mount, ' '); in amfs_program_match() 106 return xstrdup(prog ? prog + 1 : fo->opt_mount); in amfs_program_match()
|
| H A D | amfs_nfsx.c | 71 static char *amfs_nfsx_match(am_opts *fo); 102 amfs_nfsx_match(am_opts *fo) in amfs_nfsx_match() argument 108 if (!fo->opt_rfs) { in amfs_nfsx_match() 113 if (!fo->opt_rhost) { in amfs_nfsx_match() 119 if (fo->opt_sublink == NULL || fo->opt_sublink[0] == '\0') { in amfs_nfsx_match() 120 ptr = strchr(fo->opt_rfs, ','); in amfs_nfsx_match() 121 if (ptr && ptr > (fo->opt_rfs + 1)) in amfs_nfsx_match() 122 fo->opt_sublink = strnsave(fo->opt_rfs + 1, ptr - fo->opt_rfs - 1); in amfs_nfsx_match() 130 if ((ptr = strchr(fo->opt_fs, ','))) in amfs_nfsx_match() 132 deslashify(fo->opt_fs); in amfs_nfsx_match() [all …]
|
| H A D | amfs_nfsl.c | 58 static char *amfs_nfsl_match(am_opts *fo); 95 amfs_nfsl_match(am_opts *fo) in amfs_nfsl_match() argument 98 char *ho = fo->opt_rhost; in amfs_nfsl_match() 102 if (fo->opt_sublink && fo->opt_sublink[0]) in amfs_nfsl_match() 103 cp = fo->opt_sublink; in amfs_nfsl_match() 105 cp = fo->opt_fs; in amfs_nfsl_match() 120 retval = nfs_ops.fs_match(fo); in amfs_nfsl_match() 123 retval = nfs_ops.fs_match(fo); in amfs_nfsl_match() 126 retval = amfs_link_ops.fs_match(fo); in amfs_nfsl_match()
|
| H A D | ops_lofs.c | 53 static char *lofs_match(am_opts *fo); 86 lofs_match(am_opts *fo) in lofs_match() argument 88 if (!fo->opt_rfs) { in lofs_match() 93 fo->opt_rfs, fo->opt_fs); in lofs_match() 98 return xstrdup(fo->opt_rfs); in lofs_match()
|
| H A D | ops_xfs.c | 53 static char *xfs_match(am_opts *fo); 86 xfs_match(am_opts *fo) in xfs_match() argument 89 if (!fo->opt_dev) { in xfs_match() 94 dlog("XFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in xfs_match() 99 return xstrdup(fo->opt_dev); in xfs_match()
|
| H A D | ops_efs.c | 53 static char *efs_match(am_opts *fo); 86 efs_match(am_opts *fo) in efs_match() argument 89 if (!fo->opt_dev) { in efs_match() 94 dlog("EFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in efs_match() 99 return xstrdup(fo->opt_dev); in efs_match()
|
| H A D | ops_ufs.c | 53 static char *ufs_match(am_opts *fo); 90 ufs_match(am_opts *fo) in ufs_match() argument 93 if (!fo->opt_dev) { in ufs_match() 98 dlog("UFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in ufs_match() 103 return xstrdup(fo->opt_dev); in ufs_match()
|
| H A D | ops_cachefs.c | 53 static char *cachefs_match(am_opts *fo); 89 cachefs_match(am_opts *fo) in cachefs_match() argument 92 if (!fo->opt_rfs || !fo->opt_fs || !fo->opt_cachedir) { in cachefs_match() 97 dlog("CACHEFS: using cache directory \"%s\"", fo->opt_cachedir); in cachefs_match() 100 return xstrdup(fo->opt_cachedir); in cachefs_match()
|
| H A D | ops_tmpfs.c | 53 static char *tmpfs_match(am_opts *fo); 86 tmpfs_match(am_opts *fo) in tmpfs_match() argument 89 if (!fo->opt_dev) { in tmpfs_match() 94 dlog("EFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in tmpfs_match() 99 return xstrdup(fo->opt_dev); in tmpfs_match()
|
| H A D | ops_ext.c | 53 static char *ext_match(am_opts *fo); 129 ext_match(am_opts *fo) in ext_match() argument 132 if (!fo->opt_dev) { in ext_match() 137 dlog("EXT: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in ext_match() 142 return xstrdup(fo->opt_dev); in ext_match()
|
| H A D | ops_cdfs.c | 53 static char *cdfs_match(am_opts *fo); 86 cdfs_match(am_opts *fo) in cdfs_match() argument 88 if (!fo->opt_dev) { in cdfs_match() 93 fo->opt_dev, fo->opt_fs); in cdfs_match() 98 return xstrdup(fo->opt_dev); in cdfs_match()
|
| H A D | ops_pcfs.c | 53 static char *pcfs_match(am_opts *fo); 87 pcfs_match(am_opts *fo) in pcfs_match() argument 89 if (!fo->opt_dev) { in pcfs_match() 93 dlog("PCFS: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in pcfs_match() 98 return xstrdup(fo->opt_dev); in pcfs_match()
|
| H A D | ops_udf.c | 53 static char *udf_match(am_opts *fo); 125 udf_match(am_opts *fo) in udf_match() argument 128 if (!fo->opt_dev) { in udf_match() 132 dlog("UDF: mounting device \"%s\" on \"%s\"", fo->opt_dev, fo->opt_fs); in udf_match() 137 return xstrdup(fo->opt_dev); in udf_match()
|
| H A D | ops_nfs.c | 106 static char *nfs_match(am_opts *fo); 698 nfs_match(am_opts *fo) in nfs_match() argument 703 if (fo->opt_fs && !fo->opt_rfs) in nfs_match() 704 fo->opt_rfs = fo->opt_fs; in nfs_match() 705 if (!fo->opt_rfs) { in nfs_match() 709 if (!fo->opt_rhost) { in nfs_match() 717 l = strlen(fo->opt_rhost) + strlen(fo->opt_rfs) + 2; in nfs_match() 719 xsnprintf(xmtab, l, "%s:%s", fo->opt_rhost, fo->opt_rfs); in nfs_match() 721 fo->opt_rhost, fo->opt_rfs, fo->opt_fs); in nfs_match()
|
| /netbsd-src/sys/modules/examples/fopsmapper/ |
| H A D | fopsmapper.c | 96 struct fopsmapper_softc *fo; in fopsmapper_open() local 103 fo = kmem_zalloc(sizeof(*fo), KM_SLEEP); in fopsmapper_open() 105 return fd_clone(fp, fd, flag, &mapper_fileops, fo); in fopsmapper_open() 112 struct fopsmapper_softc *fo; in fopsmapper_mmap() local 122 if ((fo = fp->f_data) == NULL) in fopsmapper_mmap() 125 fo->bufsize = size; in fopsmapper_mmap() 126 fo->uobj = uao_create(size, 0); in fopsmapper_mmap() 128 fo->buf = NULL; in fopsmapper_mmap() 134 error = uvm_map(kernel_map, &va, fo->bufsize, fo->uobj, 0, 0, in fopsmapper_mmap() 138 uao_detach(fo->uobj); in fopsmapper_mmap() [all …]
|
| /netbsd-src/usr.bin/mail/ |
| H A D | mime_codecs.c | 119 mime_ficonv(FILE *fi, FILE *fo, void *cookie) in mime_ficonv() argument 142 (void)fprintf(fo, in mime_ficonv() 156 (void)fprintf(fo, in mime_ficonv() 162 (void)fprintf(fo, in mime_ficonv() 172 (void)fwrite(outbuf, 1, OUTBUFSIZE - outbytes, fo); in mime_ficonv() 180 (void)fprintf(fo, "\n\t[ iconv(): %s ]\n\n", in mime_ficonv() 185 (void)fwrite(outbuf, 1, OUTBUFSIZE - outbytes, fo); in mime_ficonv() 315 mime_fB64_encode(FILE *fi, FILE *fo, void *cookie __unused) in mime_fB64_encode() argument 337 (void)fwrite(b64, sizeof(*b64), (size_t)4 * roundup(cnt, 3) / 3, fo); in mime_fB64_encode() 338 (void)putc('\n', fo); in mime_fB64_encode() [all …]
|
| H A D | send.c | 365 fmt(const char *str, struct name *np, FILE *fo, size_t comma) in fmt() argument 373 (void)fputs(str, fo); in fmt() 380 (void)fputs("\n ", fo); in fmt() 383 (void)putc(' ', fo); in fmt() 384 (void)fputs(np->n_name, fo); in fmt() 386 (void)putc(',', fo); in fmt() 389 (void)putc('\n', fo); in fmt() 399 fmt2(const char *str, FILE *fo) in fmt2() argument 409 (void)putc(*str, fo); in fmt2() 415 (void)putc(' ', fo); /* output a single space after the ':' */ in fmt2() [all …]
|
| H A D | mime_child.c | 118 mime_run_command(const char *cmd, FILE *fo) in mime_run_command() argument 130 if (fo == NULL) /* no output file, just return the flags! */ in mime_run_command() 145 flush_files(fo, 0); /* flush fo, all registered files, and stdout */ in mime_run_command() 147 switch (pid = start_command(cmd, &nset, p[READ], fileno(fo), NULL)) { in mime_run_command() 176 mime_run_function(void (*fn)(FILE *, FILE *, void *), FILE *fo, void *cookie) in mime_run_function() argument 187 flush_files(fo, 0); /* flush fo, all registered files, and stdout */ in mime_run_function() 198 prepare_child(&nset, p[READ], fileno(fo)); in mime_run_function()
|
| H A D | popen.c | 75 show_one_file(FILE *fo, struct fp *fpp) 77 (void)fprintf(fo, ">>> fp: %p, pipe: %d, pid: %d, link: %p\n", 81 void show_all_files(FILE *fo); 84 show_all_files(FILE *fo) 88 (void)fprintf(fo, ">> FILES\n"); 90 show_one_file(fo, fpp); 91 (void)fprintf(fo, ">> -------\n"); 92 (void)fflush(fo); 408 flush_files(FILE *fo, int only_pipes) in flush_files() argument 412 if (fo) in flush_files() [all …]
|
| H A D | mime_decode.c | 695 prefix_line(FILE *fi, FILE *fo, void *cookie) in prefix_line() argument 709 (void)fputs(prefix, fo); in prefix_line() 712 prefixlen, fo); in prefix_line() 713 (void)fwrite(line, sizeof(*line), length, fo); in prefix_line() 715 (void)fflush(fo); in prefix_line() 788 FILE *fo; in run_mime_ficonv() local 791 fo = pipe_end(mip); in run_mime_ficonv() 801 (void)fprintf(fo, "\t [ iconv_open failed: %s ]\n\n", in run_mime_ficonv() 803 (void)fflush(fo); /* flush here or see double! */ in run_mime_ficonv() 809 (void)fprintf(fo, "\t[ converting %s -> %s ]\n\n", in run_mime_ficonv() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/gdb/testsuite/gdb.cp/ |
| H A D | koenig.cc | 52 int foo ( O fo, ::E::O eo){ return 4;} in foo() argument 53 int foo (int i, O fo, ::E::O eo){ return 5;} in foo() argument 59 int foo (O go, ::F::O fo, ::E::O eo){ return 6; } in foo() argument 257 F::O fo; in main() local 263 foo (fo, eo); in main() 264 foo (1 ,fo, eo); in main() 265 foo (go, fo, eo); in main() 326 foo (fo, eo) + foo (1 ,fo, eo) + in main() 327 foo (go, fo, eo); in main()
|
| /netbsd-src/sys/arch/sparc64/include/ |
| H A D | pmap.h | 202 #define PMAP_PREFER(fo, va, sz, td) pmap_prefer((fo), (va), (td)) argument 204 pmap_prefer(vaddr_t fo, vaddr_t *va, int td) in pmap_prefer() argument 210 newva = (*va & ~(m - 1)) | (fo & (m - 1)); in pmap_prefer()
|