Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/freebsd/usr.sbin/manctl/
H A Dmanctl.sh57 local fname
69 fname=$1 ; shift
71 fname=$fname.$1
153 local fname
167 fname=$1;
170 rm -f $fname
175 cat $fname | \
192 local fname
204 fname=$fname.$1
246 local fname
[all …]
/freebsd/usr.bin/msgs/
H A Dmsgs.c228 snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS); in main()
332 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, nextmsg); in main()
371 unlink(fname); in main()
391 snprintf(fname, sizeof(fname), "%s/%s", cp, MSGSRC); in main()
455 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, msg); in main()
669 unlink(fname); in onintr()
671 unlink(fname); in onintr()
750 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, cmsg); in ask()
767 fname[n] = '\0'; in ask()
778 fname); in ask()
[all …]
/freebsd/usr.bin/sed/
H A Dmain.c77 char *fname; member
233 fname = "stdin"; in cu_fgets()
237 fname = script->s; in cu_fgets()
247 fname = string_ident; in cu_fgets()
331 fname = "stdin"; in mf_fgets()
392 fname = files->fname; in mf_fgets()
395 err(1, "%s", fname); in mf_fgets()
422 err(1, "%s", fname); in mf_fgets()
435 warn("%s", fname); in mf_fgets()
450 err(1, "%s", fname); in mf_fgets()
[all …]
H A Dcompile.c166 linenum, fname); in compile_stream()
318 linenum, fname); in compile_stream()
429 linenum, fname); in compile_delimited()
432 linenum, fname); in compile_delimited()
439 linenum, fname); in compile_delimited()
668 linenum, fname); in compile_subst()
752 linenum, fname, *p); in compile_flags()
781 linenum, fname); in compile_tr()
785 linenum, fname); in compile_tr()
789 linenum, fname); in compile_tr()
[all …]
/freebsd/crypto/openssl/tools/
H A Dc_rehash.in148 my ($cert, $crl) = check_file($fname);
153 link_hash_cert($fname) if ($cert);
154 link_hash_crl($fname) if ($crl);
162 my $fname = $_[0];
164 open(my $in, "<", $fname);
216 my ($fname, $type) = @_;
223 "-in", $fname);
244 print "link $fname -> $hash\n" if $verbose;
245 symlink $fname, $hash || warn "Can't symlink, $!";
247 print "copy $fname -> $hash\n" if $verbose;
[all …]
/freebsd/bin/sh/
H A Dredir.c169 const char *fname; in openredirect() local
176 fname = redir->nfile.expfname; in openredirect()
177 if ((f = open(fname, O_RDONLY)) < 0) in openredirect()
181 fname = redir->nfile.expfname; in openredirect()
187 fname = redir->nfile.expfname; in openredirect()
188 if (stat(fname, &sb) == -1) { in openredirect()
192 if ((f = open(fname, O_WRONLY, 0666)) < 0) in openredirect()
196 error("cannot create %s: %s", fname, in openredirect()
200 error("cannot create %s: %s", fname, in openredirect()
206 fname = redir->nfile.expfname; in openredirect()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_mkexrc.c41 char *fname; in ex_mkexrc() local
46 fname = _PATH_EXRC; in ex_mkexrc()
50 fname, flen); in ex_mkexrc()
51 set_alt_name(sp, fname); in ex_mkexrc()
57 if (!FL_ISSET(cmdp->iflags, E_C_FORCE) && !stat(fname, &sb)) { in ex_mkexrc()
58 msgq_str(sp, M_ERR, fname, in ex_mkexrc()
64 if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY, in ex_mkexrc()
66 msgq_str(sp, M_SYSERR, fname, "%s"); in ex_mkexrc()
89 msgq_str(sp, M_INFO, fname, "138|New exrc file: %s"); in ex_mkexrc()
95 msgq_str(sp, M_SYSERR, fname, "%s"); in ex_mkexrc()
/freebsd/contrib/unbound/contrib/
H A Dunbound_cache.cmd13 set fname="unbound_cache.dmp" variable
31 dir /a %program_path%\%fname%
32 type %program_path%\%fname%|%uc% load_cache
41 echo Saving cache to %program_path%\%fname%
42 %uc% dump_cache>%program_path%\%fname%
43 dir /a %program_path%\%fname%
50 dir /a %program_path%\%fname%
51 type %program_path%\%fname%|%uc% load_cache
56 echo Saving cache to %program_path%\%fname%
57 dir /a %program_path%\%fname%
[all …]
/freebsd/contrib/unbound/dynlibmod/
H A Ddynlibmod.c40 static HMODULE open_library(const char* fname) { in open_library() argument
41 return LoadLibrary(fname); in open_library()
44 static void close_library(const char* fname, __DYNMOD handle) { in close_library() argument
45 (void)fname; in close_library()
57 static void* open_library(const char* fname) { in open_library() argument
58 return dlopen(fname, RTLD_LAZY | RTLD_GLOBAL); in open_library()
64 log_err("dlclose %s: %s", fname, strerror(errno)); in close_library()
87 de->fname = NULL; in dynlibmod_init()
96 de->fname = cfg_item->str; in dynlibmod_init()
99 dynamic_library = open_library(de->fname); in dynlibmod_init()
[all …]
/freebsd/usr.bin/split/
H A Dsplit.c167 if (strlcpy(fname, *argv, sizeof(fname)) >= sizeof(fname)) { in main()
177 if (strlen(fname) + (unsigned long)sufflen >= sizeof(fname)) in main()
362 if (fname[0] == '\0') { in newfile()
363 fname[0] = 'x'; in newfile()
364 fpnt = fname + 1; in newfile()
366 fpnt = fname + strlen(fname); in newfile()
369 err(1, "%s", fname); in newfile()
394 if (strlen(fname) + 2 >= sizeof(fname)) in newfile()
397 fpnt = fname + strlen(fname) - sufflen; in newfile()
434 if ((ofd = open(fname, flags, DEFFILEMODE)) < 0) { in newfile()
[all …]
/freebsd/contrib/tcsh/
H A Ddotlock.c47 create_exclusive(const char *fname) in create_exclusive() argument
67 if ((ptr = strrchr(fname, '/')) == NULL) in create_exclusive()
68 ptr = fname; in create_exclusive()
73 (int)(ptr - fname), fname, hostname, (u_long)cookie); in create_exclusive()
93 if (link(path, fname) == -1) in create_exclusive()
127 dot_lock(const char *fname, int pollinterval) in dot_lock() argument
143 (void)snprintf(path, sizeof(path), "%s.lock", fname); in dot_lock()
173 dot_unlock(const char *fname) in dot_unlock() argument
177 (void)snprintf(path, sizeof(path), "%s.lock", fname); in dot_unlock()
H A Dgethost.c226 const char *fname = "stdin"; in main() local
247 if ((fp = fopen(fname = argv[1], "r")) == NULL) { in main()
296 pname, fname, lineno); in main()
301 pname, fname, lineno); in main()
311 pname, fname, lineno); in main()
323 pname, fname, lineno); in main()
340 pname, fname, lineno); in main()
345 pname, fname, lineno); in main()
365 pname, fname, lineno); in main()
389 pname, fname, lineno); in main()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_filegen.c62 const char * fname, in filegen_init() argument
68 fgp->fname = estrdup(fname); in filegen_init()
86 free(fgp->fname); in filegen_uninit()
419 if (strcmp(dir, gen->dir) == 0 && strcmp(fname, gen->fname) == 0 in filegen_config()
443 gen->fname, fname, in filegen_config()
452 if (strcmp(gen->fname, fname) != 0) { in filegen_config()
453 free(gen->fname); in filegen_config()
454 gen->fname = estrdup(fname); in filegen_config()
479 const char * fname in valid_fileref() argument
503 if (NULL == fname) in valid_fileref()
[all …]
/freebsd/usr.sbin/cron/cron/
H A Ddatabase.c155 char fname[MAXNAMLEN+1], tabname[MAXNAMLEN+1]; in load_database() local
165 (void) strncpy(fname, dp->d_name, sizeof(fname)); in load_database()
166 fname[sizeof(fname)-1] = '\0'; in load_database()
172 process_crontab(fname, fname, tabname, in load_database()
249 log_it(fname, getpid(), "ORPHAN", "no passwd entry"); in process_crontab()
256 log_it(fname, getpid(), "CAN'T OPEN", tabname); in process_crontab()
261 log_it(fname, getpid(), "FSTAT FAILED", tabname); in process_crontab()
265 Debug(DLOAD, ("\t%s:", fname)) in process_crontab()
266 u = find_user(old_db, fname); in process_crontab()
288 log_it(fname, getpid(), "RELOAD", tabname); in process_crontab()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Dtasn_prn.c215 if (fname || sname) { in asn1_item_print_ctx()
268 const char *sname, *fname; in asn1_template_print_ctx() local
276 fname = NULL; in asn1_template_print_ctx()
278 fname = tt->field_name; in asn1_template_print_ctx()
295 if (fname) { in asn1_template_print_ctx()
328 fname, sname, 0, pctx); in asn1_template_print_ctx()
348 fname = NULL; in asn1_print_fsname()
349 if (!sname && !fname) in asn1_print_fsname()
351 if (fname) { in asn1_print_fsname()
352 if (BIO_puts(out, fname) <= 0) in asn1_print_fsname()
[all …]
/freebsd/contrib/libpcap/
H A Dsf-pcap.c837 fname); in pcap_dump_open()
844 fname, p->linktype); in pcap_dump_open()
849 if (fname == NULL) { in pcap_dump_open()
854 if (fname[0] == '-' && fname[1] == '\0') { in pcap_dump_open()
856 fname = "standard output"; in pcap_dump_open()
867 errno, "%s", fname); in pcap_dump_open()
939 fname, linktype); in pcap_dump_open_append()
943 if (fname == NULL) { in pcap_dump_open_append()
948 if (fname[0] == '-' && fname[1] == '\0') in pcap_dump_open_append()
967 errno, "%s", fname); in pcap_dump_open_append()
[all …]
/freebsd/usr.bin/ldd/
H A Dldd.c279 warnx("%s: %s", fname, elf_errmsg(0)); in has_freebsd_abi_tag()
346 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
352 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
410 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
415 warnx("%s: not a dynamic ELF executable", fname); in is_executable()
419 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
434 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
441 freebsd = has_freebsd_abi_tag(fname, elf, &ehdr, in is_executable()
447 pie = is_pie(fname, elf, &ehdr, phdr.p_offset, in is_executable()
455 warnx("%s: not a dynamic ELF executable", fname); in is_executable()
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dload.c128 size_t len = strlen(fname); in optionMakePath()
137 if (*fname != '$') { in optionMakePath()
138 char const * src = fname; in optionMakePath()
155 else switch (fname[1]) { in optionMakePath()
160 if (! add_prog_path(p_buf, b_sz, fname, prg_path)) in optionMakePath()
169 program_pkgdatadir, fname + 2) >= b_sz) in optionMakePath()
174 if (! add_env_val(p_buf, b_sz, fname)) in optionMakePath()
193 switch (fname[2]) { in add_prog_path()
225 fname += skip; in add_prog_path()
226 fname_len = strlen(fname) + 1; // + NUL byte in add_prog_path()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmktree.c100 char fname[MAXPATHLEN] = {0}; in mktree() local
122 (void) memset(fname, '\0', sizeof (fname)); in mktree()
123 (void) strcpy(fname, in mktree()
125 crtfile(fname); in mktree()
131 (void) memset(fname, '\0', sizeof (fname)); in mktree()
132 (void) strcpy(fname, getfdname(pdir, TYPE_F, level, d, f)); in mktree()
133 crtfile(fname); in mktree()
/freebsd/contrib/mandoc/
H A Ddbm_map.c60 dbm_map(const char *fname) in dbm_map() argument
65 if ((ifd = open(fname, O_RDONLY)) == -1) in dbm_map()
70 warnx("dbm_map(%s): File too short", fname); in dbm_map()
86 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
90 fname); in dbm_map()
97 fname, be32toh(*magic), MANDOCDB_VERSION); in dbm_map()
104 fname, (long long)st.st_size, max_offset); in dbm_map()
114 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_str.cpp247 fname->path = NULL; in __kmp_str_fname_init()
248 fname->dir = NULL; in __kmp_str_fname_init()
249 fname->base = NULL; in __kmp_str_fname_init()
261 fname->dir = __kmp_str_format("%s", fname->path); in __kmp_str_fname_init()
267 slash = &fname->dir[1]; in __kmp_str_fname_init()
278 __kmp_str_free(&fname->path); in __kmp_str_fname_free()
279 __kmp_str_free(&fname->dir); in __kmp_str_fname_free()
280 __kmp_str_free(&fname->base); in __kmp_str_fname_free()
291 (fname->dir != NULL && __kmp_str_eqf(fname->dir, ptrn.dir)); in __kmp_str_fname_match()
293 (fname->base != NULL && __kmp_str_eqf(fname->base, ptrn.base)); in __kmp_str_fname_match()
[all …]
/freebsd/tests/sys/cddl/zfs/bin/
H A Dmktree.c100 char fname[MAXPATHLEN] = {0}; in mktree() local
122 (void) memset(fname, '\0', sizeof (fname)); in mktree()
123 (void) strcpy(fname, in mktree()
125 crtfile(fname); in mktree()
131 (void) memset(fname, '\0', sizeof (fname)); in mktree()
132 (void) strcpy(fname, getfdname(pdir, TYPE_F, level, d, f)); in mktree()
133 crtfile(fname); in mktree()
/freebsd/tools/regression/usr.bin/env/
H A Dregress-sb.rb92 def check_out(name, fname, expect_arr) argument
96 rdata = File.open(fname)
284 def CommandOptions.set_rgdatafile(fname) argument
285 if not File.exists?(fname)
286 $stderr.printf "Error: Rgdata file '%s' does not exist\n", fname
288 elsif not File.readable?(fname)
292 $rgdatafile = File.expand_path(fname)
296 def CommandOptions.set_testpgm(fname) argument
297 if not File.exists?(fname)
300 elsif not File.executable?(fname)
[all …]
/freebsd/contrib/ntp/scripts/
H A Dsummary.in123 my ($directory, $fname, $out_file) = @_;
124 print "$directory/$fname\n";
125 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
127 print OUTPUT "$fname\n";
183 warn "no valid lines in $directory/$fname";
193 print "$directory/$fname\n";
194 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
196 print OUTPUT "$fname\n";
285 print "$directory/$fname\n";
286 open INPUT, "$directory/$fname";
[all …]
/freebsd/tools/tools/kdrv/
H A DKernelDriver144 proc readDrvFile {fname} { argument
149 set fh [open $fname r];
395 set fh [open $fname a];
411 set fh [open $fname a];
448 set fh [open $fname a];
499 set fh [open $fname r];
530 set fh [open $fname r];
557 set fh [open $fname r];
596 set fh [open $fname r];
677 set fh [open $fname r];
[all …]

12345678910>>...18