/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/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...] |
main.c | 100 bootit(const char *filename, int howto) 102 if (exec_netbsd(filename, 0, howto, 0, alldone) < 0) 201 "boot [filename] [-acdsqv]\n" 205 "multiboot [filename] [<args>]\n" 228 char *filename; local in function:command_boot 231 if (parseboot(arg, &filename, &howto)) 232 bootit(filename, howto); 301 char *filename; local in function:command_multiboot 303 filename = arg; 304 if (exec_multiboot(filename, gettrailer(arg)) < 0 [all...] |
/src/games/battlestar/ |
cypher.c | 50 char *filename, *rfilename; local in function:cypher 479 filename = fgetln(stdin, &filename_len); 481 || (filename_len == 1 && filename[0] == '\n')) 485 if (filename[filename_len - 1] == '\n') 487 rfilename = save_file_name(filename,
|
/src/usr.bin/rev/ |
rev.c | 61 const char *filename; local in function:main 81 filename = "stdin"; 91 filename = *argv++; 102 warn("%s", filename);
|
/src/games/atc/ |
extern.c | 65 const char *filename; variable in typeref:typename:const char *
|
/src/games/phantasia/ |
setup.c | 83 const char *const *filename; /* for pointing to file names */ 107 filename = &files[0]; 108 while (*filename != NULL) 111 path = strrchr(*filename, '/') + 1; 126 ++filename; /* process next file */ 82 const char *const *filename; \/* for pointing to file names *\/ local in function:main
|
/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/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...] |
mem.c | 54 const char *filename = 0; local in function:cmd_mem 80 filename = argp[6]; 81 if (strlen(filename) > BFS_FILENAME_MAXLEN) { 82 printf("too long filename. (max %d)\n", 114 if (bfs_file_write(bfs, filename, p, size) != 0) 120 if (bfs_file_read(bfs, filename, p, size, 0) != 0) 129 if (bfs_file_write(bfs, filename, p, size) != 0) 140 printf("mem d addr access_byte stride count filename\n"); 141 printf("mem b addr access_byte stride count filename\n"); 142 printf("mem g addr access_byte stride count filename (GA-ROM only)\n") [all...] |
loader.c | 179 char *filename; local in function:cmd_boot 185 filename = argp[1]; 190 if (loadfile(filename, marks, LOAD_KERNEL) != 0) { 283 printf("boot dev:filename [argument to kernel]\n");
|
/src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
asan_interface_internal.h | 43 const char *filename; member in struct:__asan_global_source_location
|
/src/tests/fs/ffs/ |
h_ffs_server.c | 55 const char *filename; local in function:main 78 filename = argv[0]; 93 rump_pub_etfs_register("/diskdev", filename, RUMP_ETFS_BLK);
|
/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/usr.bin/sdiff/ |
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/usr.sbin/mopd/mopchk/ |
mopchk.c | 35 * Usage: mopchk [-a] [-v] [filename...] 66 char *filename; local in function:main 115 filename = argv[optind++]; 116 printf("Checking: %s\n", filename); 117 dl.ldfd = open(filename, O_RDONLY, 0); 146 (void) fprintf(stderr, "usage: %s [-a] [-v] [filename...]\n",
|
/src/sys/arch/x68k/stand/newdisk/ |
newdisk.c | 172 char filename[MAXPATHLEN] = "/tmp/diskmarkXXXXX"; local in function:main 173 fd = mkstemp(filename); 175 err(1, "opening %s", filename); 177 err(1, "writing %s", filename); 179 fprintf(stderr, "Disk mark is kept in %s.\n", filename);
|
/src/usr.bin/soelim/ |
soelim.c | 110 char filename[MAXPATHLEN]; local in function:openpath 122 (void)snprintf(filename, sizeof(filename), "%s/%s", 124 f = filename;
|
/src/sys/arch/i386/stand/efiboot/ |
devopen.c | 161 char *filename; local in function:devopen 215 /* If we got passed a filename, pass it to the BOOTP server. */ 217 filename = strchr(fname, ':'); 218 if (filename != NULL) 219 filename++; 221 filename = (char *)fname; 222 strlcpy(bootfile, filename, sizeof(bootfile)); 242 * a separate filename for the kernel. (The name probably was 248 filename = strchr(bootfile, ':'); 249 if (filename != NULL) [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/usr.bin/xlint/lint2/ |
msg.c | 116 int filename; local in function:mkpos 119 filename = posp->p_isrc; 122 filename = posp->p_src; 127 const char *fn = lbasename(fnames[filename]);
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_procmaps.h | 42 : filename(buff), filename_size(size), data_(nullptr) {} 55 char *filename; // owned by caller member in class:__sanitizer::MemoryMappedSegment
|
/src/sys/fs/v7fs/ |
v7fs_file.c | 72 char filename[V7FS_NAME_MAX + 1]; local in function:v7fs_file_lookup_by_name 75 v7fs_dirent_filename(filename, name, namelen); 76 DPRINTF("%s(%.*s) dir=%d\n", filename, (int)namelen, name, 79 struct v7fs_lookup_arg lookup_arg = { .name = filename, 137 /* Check filename. */ 240 char filename[V7FS_NAME_MAX + 1]; local in function:v7fs_file_deallocate 241 v7fs_dirent_filename(filename, name, namelen); 243 if (strncmp(filename, "..", V7FS_NAME_MAX) == 0) { 283 char filename[V7FS_NAME_MAX + 1]; local in function:v7fs_directory_add_entry 285 /* Truncate filename. * 333 char filename[V7FS_NAME_MAX + 1]; local in function:v7fs_directory_remove_entry [all...] |
/src/usr.sbin/npf/npfd/ |
npfd.c | 148 " [-f <filename>] [-p <pidfile>] [-s <snaplen>] expression\n", 183 char *filename = NULL; local in function:main 197 filename = optarg; 218 npfd_log_t *log = npfd_log_create(filename, iface, filter, snaplen);
|
/src/usr.sbin/rbootd/ |
rmpproto.c | 246 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of filename */ 290 char *filename, filepath[RMPBOOTDATA+1]; local in function:SendBootRepl 337 * are purposely link'd out. So, make `filename' become the path- 341 if ((filename = strrchr(filepath,'/')) != NULL) 342 filename++; 344 filename = filepath; 350 if (STREQN(filename, filelist[i])) 370 if ((rconn->bootfd = open(filename, O_RDONLY, 0600)) < 0) { 382 EnetStr(rconn), filename, retval? "granted": "denied");
|