/freebsd-current/bin/cat/ |
H A D | cat.c | 63 static const char *filename; variable 244 filename = "stdin"; 247 filename = path; 371 warn("%s", filename); 429 warn("%s", filename);
|
/freebsd-current/bin/cp/tests/ |
H A D | sparse.c | 23 sparse(const char *filename) argument 28 if ((fd = open(filename, O_RDONLY)) < 0 || 31 err(1, "%s", filename); 35 printf("%s: hole at %zu\n", filename, (size_t)hole);
|
/freebsd-current/bin/ls/tests/ |
H A D | ls_tests.sh | 376 atf_set "descr" "Verify that -S sorts by file size, then by filename lexicographically" 400 filename=$1; shift 401 echo $filename >> $file_list_dir/${size}
|
/freebsd-current/bin/setfacl/ |
H A D | file.c | 40 get_acl_from_file(const char *filename) argument 46 if (filename == NULL) 47 err(1, "(null) filename in get_acl_from_file()"); 49 if (strcmp(filename, "-") == 0) { 55 file = fopen(filename, "r"); 57 err(1, "fopen() %s failed", filename); 64 err(1, "error reading from %s", filename); 67 errx(1, "line too long in %s", filename);
|
H A D | mask.c | 37 set_acl_mask(acl_t *prev_acl, const char *filename) argument 56 err(1, "%s: acl_dup() failed", filename); 67 warn("%s: acl_calc_mask() failed", filename); 84 filename); 98 warnx("%s: warning: no mask entry", filename);
|
H A D | merge.c | 85 merge_acl(acl_t acl, acl_t *prev_acl, const char *filename) argument 101 "entry to be merged is %s", filename, 108 err(1, "%s: acl_dup() failed", filename); 120 "invalid ACL entry", filename); 131 filename); 134 filename); 145 "failed", filename); 148 "failed", filename); 168 filename); 171 filename); 236 add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, const char *filename) argument [all...] |
H A D | remove.c | 39 remove_acl(acl_t acl, acl_t *prev_acl, const char *filename) argument 53 "entry to be removed is %s", filename, 62 err(1, "%s: acl_dup() failed", filename); 71 err(1, "%s: acl_get_tag_type() failed", filename); 77 filename); 91 remove_by_number(uint entry_number, acl_t *prev_acl, const char *filename) argument 103 err(1, "%s: acl_dup() failed", filename); 120 err(1, "%s: acl_get_tag_type() failed", filename); 127 warn("%s: acl_delete_entry_np() failed", filename); 143 remove_default(acl_t *prev_acl, const char *filename) argument 158 remove_ext(acl_t *prev_acl, const char *filename) argument [all...] |
H A D | setfacl.c | 89 char filename[PATH_MAX]; local 97 bzero(&filename, sizeof(filename)); 101 while (fgets(filename, (int)sizeof(filename), stdin)) { 103 filename[strlen(filename) - 1] = '\0'; 104 files_list[i] = strdup(filename);
|
H A D | setfacl.h | 37 acl_t get_acl_from_file(const char *filename); 39 int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename); 41 const char *filename); 43 int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename); 45 const char *filename); 46 int remove_default(acl_t *prev_acl, const char *filename); 47 void remove_ext(acl_t *prev_acl, const char *filename); 49 int set_acl_mask(acl_t *prev_acl, const char *filename);
|
/freebsd-current/bin/sh/ |
H A D | main.c | 316 char *filename, *fullname; local 319 error("missing filename"); 327 filename = argc > 2 && strcmp(argv[1], "--") == 0 ? argv[2] : argv[1]; 329 fullname = find_dot_file(filename);
|
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/baddof/ |
H A D | baddof.c | 156 char *filename = argv[1]; local 166 if ((fp = fopen(filename, "r")) == NULL) 167 fatal("couldn't open %s", filename); 181 fatal("failed to compile script %s: %s\n", filename,
|
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestBean.java | 665 System.err.println("usage: java TestBean < filename > " + 670 String filename = args[0]; 676 file = new File(filename); 682 System.err.println("failed to create " + filename); 687 System.err.println("failed to open " + filename);
|
/freebsd-current/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 471 ctf_open(const char *filename, int *errp) argument 476 if ((fd = open64(filename, O_RDONLY)) == -1) {
|
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_error.c | 174 const char *filename, int lineno, const char *format, va_list ap) 191 if (filename == NULL) 192 filename = dtp->dt_filetag; 194 if (filename != NULL) 195 (void) snprintf(s, n, "\"%s\", line %d: ", filename, lineno); 173 dt_set_errmsg(dtrace_hdl_t *dtp, const char *errtag, const char *region, const char *filename, int lineno, const char *format, va_list ap) argument
|
H A D | dt_printf.c | 1668 char selfbuf[40], restorebuf[40], *filename; local 1702 filename = restorebuf; 1704 filename = dtp->dt_sprintf_buf; 1723 if ((nfp = fopen(filename, "aF")) == NULL) { 1728 len += strlen(msg) + strlen(filename); 1732 filename, strerror(errno));
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | ctfconvert.c | 82 file_read(tdata_t *td, char *filename, int ignore_non_c) argument 94 if ((fd = open(filename, O_RDONLY)) < 0) 95 terminate("failed to open %s", filename); 101 terminate("failed to read %s: %s\n", filename, 105 source_types = built_source_types(elf, filename); 109 debug(1, "Ignoring file %s from unknown sources\n", filename); 114 if ((rc = readers[i](td, elf, filename)) == 0) 125 if (findelfsecidx(elf, filename, ".debug") >= 0) { 127 filename); 132 filename); [all...] |
H A D | dwarf.c | 1913 dw_read(tdata_t *td, Elf *elf, char *filename __unused)
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/dump/ |
H A D | dump.c | 896 const char *filename = NULL; local 945 if (filename != NULL) 947 filename = argv[optind]; 951 if (filename == NULL) 957 if ((fd = open(filename, O_RDONLY)) == -1) 958 die("failed to open %s", filename); 969 die("%s does not contain .SUNW_ctf data\n", filename); 1004 die("failed to fstat %s", filename); 1010 die("failed to mmap %s", filename); 1019 die("%s does not contain a CTF preamble\n", filename); [all...] |
/freebsd-current/contrib/atf/atf-sh/ |
H A D | atf-sh.cpp | 48 fix_plain_name(const char *filename) argument 50 const atf::fs::path filepath(filename); 52 return std::string("./") + filename; 54 return std::string(filename); 59 construct_script(const char* filename) argument 72 ". " + fix_plain_name(filename) + " ; " +
|
/freebsd-current/contrib/bc/gen/ |
H A D | strgen.c | 98 * @param filename The name of the file. 102 open_file(FILE** f, const char* filename, const char* mode) argument 106 *f = fopen(filename, mode); 113 fopen_s(f, filename, mode); 223 * math libraries because the parse and lex code expects a filename. The label 224 * becomes the filename for the purposes of lexing and parsing. 236 * @param name The actual label text, which is a filename. 310 * input Input filename. 311 * output Output filename. 318 * output_label() function. It is meant as a "filename" fo [all...] |
/freebsd-current/contrib/bmake/ |
H A D | parse.c | 456 * Remember the location (filename and lineno) where the last command was 743 * (and filename globbing) have happened, it is given a dependency on each 1192 * filename. 2021 ".include filename must be delimited by '\"' or '<'"); 2033 "Unclosed .include filename. '%c' expected", endc); 2045 * Split filename into dirname + basename, then assign these to the 2049 SetFilenameVars(const char *filename, const char *dirvar, const char *filevar) argument 2054 slash = strrchr(filename, '/'); 2057 basename = filename; 2059 dirname = FStr_InitOwn(bmake_strsedup(filename, slas 2091 SetParseFile(const char *filename) argument [all...] |
/freebsd-current/contrib/bmake/unit-tests/ |
H A D | dep-var.mk | 44 # in this filename pattern, resulting in the string "1-2-$INDIRECT_2-2-1".
|
H A D | directive-include.mk | 34 # The filename to be included can contain expressions. 44 # If the whole line were expanded before parsing, the filename to be included 51 # When the expression in a filename cannot be evaluated, the failing 68 # XXX: trailing whitespace in diagnostic, missing quotes around filename 71 # the current file has a slash or is a relative filename. In the first case, 75 # or any other indicator for the empty filename at the end of the line.
|
H A D | posix1.mk | 74 "Directory and filename parts of local variables\n\
|
H A D | varmod-edge.mk | 207 # XXX: The error message should report the filename:lineno.
|