Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd/usr.sbin/manctl/
H A Dmanctl.sh57 local fname
69 fname=$1 ; shift
71 fname=$fname.$1
83 mv $pname $fname.$ext # link
92 mv $pname $fname.$sect
153 local fname
167 fname=$1;
168 echo replacing $fname with a hard link
169 set `cat $fname`;
[all...]
/freebsd/usr.bin/msgs/
H A Dmsgs.c96 static char fname[MAXPATHLEN]; variable
228 snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS); in main()
238 if (stat(fname, &buf) < 0) { in main()
240 err(errno, "%s", fname); in main()
246 bounds = fopen(fname, "r"); in main()
314 bounds = fopen(fname, "w"); in main()
316 err(errno, "%s", fname); in main()
317 chmod(fname, CMODE); in main()
327 bounds = fopen(fname, "w"); in main()
329 err(errno, "%s", fname); in main()
[all …]
/freebsd/usr.bin/sed/
H A Dmain.c77 char *fname; member
102 const char *fname; /* File name. */ variable
233 fname = "stdin"; in cu_fgets()
237 fname = script->s; in cu_fgets()
247 fname = string_ident; in cu_fgets()
327 if (files->fname == NULL) { in mf_fgets()
331 fname = "stdin"; in mf_fgets()
357 if ((link(fname, oldfname) != 0) && in mf_fgets()
358 (rename(fname, oldfname) != 0)) { in mf_fgets()
374 if (rename(tmpfname, fname) != 0) { in mf_fgets()
[all …]
H A Dcompile.c166 linenum, fname); in compile_stream()
210 errx(1, "%lu: %s: command expected", linenum, fname); in compile_stream()
216 errx(1, "%lu: %s: invalid command code %c", linenum, fname, *p); in compile_stream()
220 linenum, fname, *p, fp->naddr, naddr); in compile_stream()
243 errx(1, "%lu: %s: unexpected }", linenum, fname); in compile_stream()
258 linenum, fname, cmd->code); in compile_stream()
265 "%lu: %s: command %c expects \\ followed by text", linenum, fname, cmd->code); in compile_stream()
271 linenum, fname, cmd->code); in compile_stream()
280 errx(1, "%lu: %s: filename expected", linenum, fname); in compile_stream()
293 errx(1, "%lu: %s: filename expected", linenum, fname); in compile_stream()
[all …]
/freebsd/crypto/openssl/tools/
H A Dc_rehash.in146 FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {
148 my ($cert, $crl) = check_file($fname);
150 print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
153 link_hash_cert($fname) if ($cert);
154 link_hash_crl($fname) if ($crl);
162 my $fname = $_[0];
164 open(my $in, "<", $fname);
187 print STDERR "Cannot compute hash on '$fname'\n";
192 print STDERR "Cannot compute hash on '$fname'\n";
216 my ($fname, $type) = @_;
[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()
178 error("cannot open %s: %s", fname, strerror(errno)); in openredirect()
181 fname = redir->nfile.expfname; in openredirect()
182 if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0) in openredirect()
183 error("cannot create %s: %s", fname, strerror(errno)); in openredirect()
187 fname = redir->nfile.expfname; in openredirect()
188 if (stat(fname, &sb) == -1) { in openredirect()
189 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) 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
30 echo Loading cache from %program_path%\%fname%
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%
49 echo Loading cache from %program_path%\%fname%
50 dir /a %program_path%\%fname%
51 type %program_path%\%fname%|%uc% load_cache
[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()
61 static void close_library(const char* fname, __DYNMOD handle) { in close_library() argument
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()
[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()
113 len = strlen(gen->dir) + strlen(gen->fname) + 65; in filegen_open()
117 snprintf(filename, len, "%s%s", gen->dir, gen->fname); in filegen_open()
407 const char * fname, in filegen_config() argument
419 if (strcmp(dir, gen->dir) == 0 && strcmp(fname, gen->fname) == 0 in filegen_config()
426 if (!valid_fileref(dir, fname)) in filegen_config()
443 gen->fname, fname, in filegen_config()
452 if (strcmp(gen->fname, fname) != 0) { in filegen_config()
[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()
168 if (snprintf(tabname, sizeof tabname, CRON_TAB(fname)) in load_database()
172 process_crontab(fname, fname, tabname, in load_database()
237 process_crontab(const char *uname, const char *fname, const char *tabname, in process_crontab() argument
246 if (strcmp(fname, SYS_NAME) != 0 && !(pw = getpwnam(uname))) { in process_crontab()
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()
[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()
248 (void) fprintf(stderr, "%s: Cannot open `%s'\n", pname, fname); 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()
350 (void) fprintf(stdout, "# %d \"%s\"\n", lineno + 1, fname); in main()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Dtasn_prn.c106 const char *fname, const char *sname,
114 const char *fname, const char *sname,
118 const char *fname, const char *sname,
136 const char *fname, const char *sname, in asn1_item_print_ctx() argument
157 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
175 if (!asn1_primitive_print(out, fld, it, indent, fname, sname, pctx)) in asn1_item_print_ctx()
180 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
213 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
215 if (fname || sname) { in asn1_item_print_ctx()
268 const char *sname, *fname; in asn1_template_print_ctx() local
[all …]
/freebsd/usr.bin/split/
H A Dsplit.c60 static char fname[MAXPATHLEN]; /* File name prefix. */ variable
167 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 in newfile()
[all...]
/freebsd/contrib/libpcap/
H A Dsf-pcap.c873 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) in pcap_setup_dump() argument
891 errno, "Can't write to %s", fname); in pcap_setup_dump()
903 pcap_dump_open(pcap_t *p, const char *fname) in pcap_dump_open() argument
915 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()
942 f = pcapint_charset_fopen(fname, "wb"); in pcap_dump_open()
945 errno, "%s", fname); in pcap_dump_open()
[all …]
/freebsd/usr.bin/ldd/
H A Dldd.c72 static int is_executable(const char *fname, int fd, int *is_shlib,
266 has_freebsd_abi_tag(const char *fname, Elf *elf, GElf_Ehdr *ehdr, off_t offset, in has_freebsd_abi_tag() argument
279 warnx("%s: %s", fname, elf_errmsg(0)); in has_freebsd_abi_tag()
296 warnx("%s: failed to parse notes: %s", fname, elf_errmsg(0)); in has_freebsd_abi_tag()
334 is_pie(const char *fname, Elf *elf, GElf_Ehdr *ehdr, off_t offset, size_t len) in is_pie() argument
346 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
352 warnx("%s: %s", fname, elf_errmsg(0)); in is_pie()
370 warnx("%s: failed to parse .dynamic: %s", fname, elf_errmsg(0)); in is_pie()
390 is_executable(const char *fname, int fd, int *is_shlib, int *type) in is_executable() argument
410 warnx("%s: %s", fname, elf_errmsg(0)); in is_executable()
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dload.c125 optionMakePath(char * p_buf, int b_sz, char const * fname, char const * prg_path) in optionMakePath() argument
128 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()
185 add_prog_path(char * buf, int b_sz, char const * fname, char const * prg_path) in add_prog_path() argument
193 switch (fname[2]) { in add_prog_path()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_str.cpp246 void __kmp_str_fname_init(kmp_str_fname_t *fname, char const *path) { in __kmp_str_fname_init() argument
247 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()
254 fname->path = __kmp_str_format("%s", path); in __kmp_str_fname_init()
259 __kmp_str_replace(fname->path, '\\', '/'); in __kmp_str_fname_init()
261 fname->dir = __kmp_str_format("%s", fname->path); in __kmp_str_fname_init()
262 slash = strrchr(fname->dir, '/'); in __kmp_str_fname_init()
265 char first = (char)TOLOWER(fname in __kmp_str_fname_init()
277 __kmp_str_fname_free(kmp_str_fname_t * fname) __kmp_str_fname_free() argument
283 __kmp_str_fname_match(kmp_str_fname_t const * fname,char const * pattern) __kmp_str_fname_match() argument
[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/tools/tools/kdrv/
H A DKernelDriver144 proc readDrvFile {fname} { argument
148 if {$Options(verbose)} {puts "+ read options from '$fname'";}
149 set fh [open $fname r];
394 set fname [format "%si386/conf/LINT" $kpath];
395 set fh [open $fname a];
410 set fname [format "%si386/conf/files.i386" $kpath];
411 set fh [open $fname a];
430 set fname [format "%si386/conf/options.i386" $kpath];
431 set fh [open $fname a];
447 set fname [format "%sconf/files" $kpath];
[all …]
/freebsd/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";
146 warn "ignoring loop offset $Fld[2] (file $fname, line $.)\n";
184 warn "no valid lines in $directory/$fname";
193 my ($directory, $fname, $out_file) = @_;
194 print "$directory/$fname\n";
195 open INPUT, "$directory/$fname" o
[all...]
/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)
289 $stderr.printf "Error: Rgdata file '%s' is not readable\n", fname
292 $rgdatafile = File.expand_path(fname)
296 def CommandOptions.set_testpgm(fname) argument
297 if not File.exists?(fname)
[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()

12345678910>>...18