HomeSort by: relevance | last modified time | path
    Searched refs:filename (Results 1 - 25 of 282) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/usr.bin/sdiff/
common.c 16 cleanup(const char *filename)
18 if (unlink(filename))
19 err(2, "could not delete: %s", filename);
edit.c 28 edit(const char *filename)
44 execlp(editor, editor, filename, (void *)NULL);
46 cleanup(filename);
49 cleanup(filename);
56 cleanup(filename);
62 cleanup(filename);
75 char *filename; local in function:eparse
127 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1)
129 if ((fd = mkstemp(filename)) == -1)
137 cleanup(filename);
    [all...]
  /src/sys/arch/luna68k/stand/boot/
ls.c 40 char filename[80]; local in function:cmd_ls
43 strcpy(filename, default_file);
44 strcpy(strchr(filename, ')')+1, "/");
46 strcpy(filename, argv[1]);
48 strcat(filename, "/");
50 ls(filename);
  /src/bin/setfacl/
setfacl.h 41 acl_t get_acl_from_file(const char *filename);
43 int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename);
45 const char *filename);
47 int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename);
49 const char *filename);
50 int remove_default(acl_t *prev_acl, const char *filename);
51 void remove_ext(acl_t *prev_acl, const char *filename);
53 int set_acl_mask(acl_t *prev_acl, const char *filename);
file.c 49 get_acl_from_file(const char *filename)
55 if (filename == NULL)
56 err(1, "(null) filename in get_acl_from_file()");
58 if (strcmp(filename, "-") == 0) {
64 file = fopen(filename, "r");
66 err(1, "fopen() %s failed", filename);
73 err(1, "error reading from %s", filename);
76 errx(1, "line too long in %s", filename);
mask.c 49 set_acl_mask(acl_t *prev_acl, const char *filename)
68 err(1, "%s: acl_dup() failed", filename);
79 warn("%s: acl_calc_mask() failed", filename);
96 filename);
110 warnx("%s: warning: no mask entry", filename);
remove.c 50 remove_acl(acl_t acl, acl_t *prev_acl, const char *filename)
64 "entry to be removed is %s", filename,
73 err(1, "%s: acl_dup() failed", filename);
82 err(1, "%s: acl_get_tag_type() failed", filename);
88 filename);
102 remove_by_number(uint entry_number, acl_t *prev_acl, const char *filename)
114 err(1, "%s: acl_dup() failed", filename);
131 err(1, "%s: acl_get_tag_type() failed", filename);
138 warn("%s: acl_delete_entry_np() failed", filename);
154 remove_default(acl_t *prev_acl, const char *filename)
    [all...]
merge.c 95 merge_acl(acl_t acl, acl_t *prev_acl, const char *filename)
111 "entry to be merged is %s", filename,
118 err(1, "%s: acl_dup() failed", filename);
130 "invalid ACL entry", filename);
141 filename);
144 filename);
155 "failed", filename);
158 "failed", filename);
178 filename);
181 filename);
    [all...]
  /src/usr.sbin/fwctl/
fwmethods.h 7 typedef void (fwmethod)(int dev_fd, const char *filename, char ich, int count);
  /src/sys/arch/ews4800mips/stand/common/
devopen.c 65 char *p, *filename; local in function:devopen
72 filename = 0;
75 filename = p + 1;
81 if (filename == 0) { /* not a loader's request. probably ufs_ls() */
109 if (*filename == '\0') {
110 printf("set kernel filename. ex.) nfs:netbsd\n");
113 *--filename = '/';
114 *file = filename;
115 printf("nfs:/%s\n", filename);
122 printf("floppy(boot):/%s (ustarfs)\n", filename);
    [all...]
  /src/distrib/utils/more/
os.c 199 * Expand a filename, substituting any environment variables, etc.
204 glob(filename)
205 char *filename;
213 if (filename[0] == '#')
214 return (filename);
217 * We get the shell to expand the filename for us by passing
224 * Read the output of <echo filename>.
226 asprintf(&cmd, "echo \"%s\"", filename);
228 return (filename);
232 * Read the output of <$SHELL -c "echo filename">
    [all...]
main.c 78 * Filename "-" means standard input.
79 * No filename means the "current" file, from the command line.
82 edit(filename)
83 char *filename;
92 if (filename == NULL || *filename == '\0') {
97 filename = save(av[curr_ac]);
99 else if (strcmp(filename, "#") == 0) {
104 filename = save(previous_file);
107 filename = save(filename)
    [all...]
  /src/tests/modules/k_helper3/
k_helper3.c 61 char filename[MAXPATHLEN], *propsstr, *shortname, *dot; local in function:load
73 (void)vsnprintf(filename, sizeof(filename), fmt, ap);
76 ml.ml_filename = filename;
81 printf("Loading module %s\n", filename);
89 shortname = strrchr(filename, '/');
93 shortname = filename;
  /src/sys/arch/i386/stand/pxeboot/
devopen.c 75 char *filename; local in function:devopen
84 /* if we got passed a filename, pass it to the BOOTP server */
99 * a separate filename for the kernel. (The name probably
108 filename = (fname ? strchr(fname, ':') : NULL);
109 if (filename != NULL) {
110 fsnamelen = (size_t)((const char *)filename - fname);
125 filename++;
126 if (filename[0] == '\0') {
132 filename = (char *)fname;
134 *file = filename;
    [all...]
  /src/usr.bin/crunch/crunchide/
exec_coff.c 58 check_coff(int fd, const char *filename)
81 hide_coff(int fd, const char *filename)
85 filename);
exec_ecoff.c 56 check_ecoff(int fd, const char *filename)
79 hide_ecoff(int fd, const char *filename)
83 filename);
crunchide.c 83 static void add_file_to_keep_list(char *filename);
85 static int hide_syms(const char *filename);
190 add_file_to_keep_list(char *filename)
196 if ((keepf = fopen(filename, "r")) == NULL) {
197 perror(filename);
236 hide_syms(const char *filename)
240 fd = open(filename, O_RDWR, 0);
242 perror(filename);
251 perror(filename);
254 if ((*exec_formats[i].check)(fd, filename) != 0
    [all...]
  /src/usr.sbin/rpcbind/
warmstart.c 74 write_struct(const char *filename, xdrproc_t structproc, void *list)
80 (void)unlink(filename);
81 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
83 syslog(LOG_ERR, "Cannot open `%s' (%m)", filename);
91 syslog(LOG_ERR, "xdr_%s: failed", filename);
101 read_struct(const char *filename, xdrproc_t structproc, void *list)
107 if (stat(filename, &sbuf) != 0) {
108 warn("Cannot stat `%s'", filename);
113 warnx("Invalid permissions on `%s'", filename);
116 fp = fopen(filename, "r")
    [all...]
  /src/sys/arch/evbarm/stand/boot2440/
dev_net.c 89 char *filename; local in function:net_open
98 for(filename = c+strlen(c); *filename != '/' && filename > c; filename--);
99 strncpy(rootpath, c, (filename-c));
100 rootpath[(filename-c)] = '\0';
102 strcpy(bootfile, ++filename);
105 /* No ':' found, assume it's just a filename */
110 /* boot filename was not found *
    [all...]
  /src/usr.bin/error/
filter.c 72 char filename[MAXPATHLEN]; local in function:getignored
88 strlcpy(filename, passwdentry->pw_dir, sizeof(filename));
89 (void)strlcat(filename, ERRORNAME, sizeof(filename));
91 (void)strlcpy(filename, auxname, sizeof(filename));
94 filename);
96 if ((fyle = fopen(filename, "r")) == NULL) {
99 processname, filename);
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/scripts/
cpplint.py 360 def ParseNolintSuppressions(filename, raw_line, linenum, error):
368 filename: str, the name of the input file.
385 error(filename, linenum, 'readability/nolint', 5,
430 filename and line number on which that file was included.
700 def Check(self, error, filename, linenum):
705 filename: The name of the current file.
719 error(filename, linenum, 'readability/fn_size', error_level,
742 def __init__(self, filename):
743 self._filename = filename
852 def Error(filename, linenum, category, confidence, message)
    [all...]
  /src/sys/arch/ia64/stand/common/
load_elf64.c 49 elf64_loadfile(char *filename, u_int64_t dest, struct preloaded_file **result)
61 if (filename == NULL) /* can't handle nameless */
73 fp->f_name = strdup(filename);
78 if ((fd = loadfile(filename, marks, LOAD_KERNEL)) == -1) {
86 printf("%s entry at 0x%lx\n", filename, (uintmax_t)dest);
  /src/sys/arch/x68k/stand/libsa/
parseutils.c 95 parseboot(char *arg, char **filename, int *howto)
99 *filename = 0;
107 /* [[xxNx:]filename] [-adqsv] */
114 *filename = arg;
  /src/libexec/atrun/
atrun.c 147 run_file(const char *filename, uid_t uid, gid_t gid)
171 if (chmod(filename, S_IRUSR) == -1)
172 perr("Cannot change file permissions to `%s'", filename);
191 (unsigned long)uid, filename);
195 stream = fopen(filename, "r");
207 (unsigned long)uid, filename);
217 if (lstat(filename, &lbuf) == -1)
218 perr("Error in lstat of `%s'", filename);
224 filename);
230 "- aborting", filename);
    [all...]
  /src/sys/arch/zaurus/stand/zboot/
boot.h 48 char *sprint_bootsel(const char *filename);
49 void bootit(const char *filename, int howto, int tell);

Completed in 19 milliseconds

1 2 3 4 5 6 7 8 91011>>