Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd-14.2/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-14.2/usr.bin/msgs/
H A Dmsgs.c241 snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS); in main()
345 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, nextmsg); in main()
384 unlink(fname); in main()
404 snprintf(fname, sizeof(fname), "%s/%s", cp, MSGSRC); in main()
468 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, msg); in main()
682 unlink(fname); in onintr()
684 unlink(fname); in onintr()
763 snprintf(fname, sizeof(fname), "%s/%d", _PATH_MSGS, cmsg); in ask()
780 fname[n] = '\0'; in ask()
791 fname); in ask()
[all …]
/freebsd-14.2/usr.bin/sed/
H A Dmain.c88 char *fname; member
244 fname = "stdin"; in cu_fgets()
248 fname = script->s; in cu_fgets()
258 fname = string_ident; in cu_fgets()
342 fname = "stdin"; in mf_fgets()
403 fname = files->fname; in mf_fgets()
406 err(1, "%s", fname); in mf_fgets()
433 err(1, "%s", fname); in mf_fgets()
446 warn("%s", fname); in mf_fgets()
461 err(1, "%s", fname); in mf_fgets()
[all …]
H A Dcompile.c169 linenum, fname); in compile_stream()
321 linenum, fname); in compile_stream()
432 linenum, fname); in compile_delimited()
435 linenum, fname); in compile_delimited()
442 linenum, fname); in compile_delimited()
671 linenum, fname); in compile_subst()
755 linenum, fname, *p); in compile_flags()
784 linenum, fname); in compile_tr()
788 linenum, fname); in compile_tr()
792 linenum, fname); in compile_tr()
[all …]
/freebsd-14.2/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-14.2/bin/sh/
H A Dredir.c175 const char *fname; in openredirect() local
182 fname = redir->nfile.expfname; in openredirect()
183 if ((f = open(fname, O_RDONLY)) < 0) in openredirect()
187 fname = redir->nfile.expfname; in openredirect()
193 fname = redir->nfile.expfname; in openredirect()
194 if (stat(fname, &sb) == -1) { in openredirect()
198 if ((f = open(fname, O_WRONLY, 0666)) < 0) in openredirect()
202 error("cannot create %s: %s", fname, in openredirect()
206 error("cannot create %s: %s", fname, in openredirect()
212 fname = redir->nfile.expfname; in openredirect()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/usr.bin/split/
H A Dsplit.c178 if (strlcpy(fname, *argv, sizeof(fname)) >= sizeof(fname)) { in main()
188 if (strlen(fname) + (unsigned long)sufflen >= sizeof(fname)) in main()
373 if (fname[0] == '\0') { in newfile()
374 fname[0] = 'x'; in newfile()
375 fpnt = fname + 1; in newfile()
377 fpnt = fname + strlen(fname); in newfile()
380 err(1, "%s", fname); in newfile()
405 if (strlen(fname) + 2 >= sizeof(fname)) in newfile()
408 fpnt = fname + strlen(fname) - sufflen; in newfile()
445 if ((ofd = open(fname, flags, DEFFILEMODE)) < 0) { in newfile()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/contrib/libpcap/
H A Dsf-pcap.c915 fname); in pcap_dump_open()
922 fname, p->linktype); in pcap_dump_open()
927 if (fname == NULL) { in pcap_dump_open()
932 if (fname[0] == '-' && fname[1] == '\0') { in pcap_dump_open()
934 fname = "standard output"; in pcap_dump_open()
945 errno, "%s", fname); in pcap_dump_open()
1017 fname, linktype); in pcap_dump_open_append()
1021 if (fname == NULL) { in pcap_dump_open_append()
1026 if (fname[0] == '-' && fname[1] == '\0') in pcap_dump_open_append()
1045 errno, "%s", fname); in pcap_dump_open_append()
[all …]
/freebsd-14.2/usr.bin/ldd/
H A Dldd.c280 warnx("%s: %s", fname, elf_errmsg(0)); in has_freebsd_abi_tag()
347 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
353 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
411 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
416 warnx("%s: not a dynamic ELF executable", fname); in is_executable()
420 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
435 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
442 freebsd = has_freebsd_abi_tag(fname, elf, &ehdr, in is_executable()
448 pie = is_pie(fname, elf, &ehdr, phdr.p_offset, in is_executable()
456 warnx("%s: not a dynamic ELF executable", fname); in is_executable()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/tests/sys/cddl/zfs/bin/
H A Dmktree.c101 char fname[MAXPATHLEN] = {0}; in mktree() local
123 (void) memset(fname, '\0', sizeof (fname)); in mktree()
124 (void) strcpy(fname, in mktree()
126 crtfile(fname); in mktree()
132 (void) memset(fname, '\0', sizeof (fname)); in mktree()
133 (void) strcpy(fname, getfdname(pdir, TYPE_F, level, d, f)); in mktree()
134 crtfile(fname); in mktree()
/freebsd-14.2/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-14.2/contrib/ntp/scripts/
H A Dsummary.in124 my ($directory, $fname, $out_file) = @_;
125 print "$directory/$fname\n";
126 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
128 print OUTPUT "$fname\n";
184 warn "no valid lines in $directory/$fname";
194 print "$directory/$fname\n";
195 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
197 print OUTPUT "$fname\n";
286 print "$directory/$fname\n";
287 open INPUT, "$directory/$fname";
[all …]
/freebsd-14.2/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