Searched refs:nlistf (Results 1 - 13 of 13) sorted by relevance

/netbsd-current/usr.sbin/mlxctl/
H A Dextern.h37 extern const char *nlistf;
H A Dmain.c55 const char *nlistf; variable
/netbsd-current/usr.sbin/crash/
H A Dcrash.c347 const char *nlistf, *memf; local
356 nlistf = _PATH_KSYMS;
372 nlistf = optarg;
392 kd = kvm_open(nlistf, memf, NULL, flags, getprogname());
396 fd = open(nlistf, O_RDONLY);
398 err(EXIT_FAILURE, "open `%s'", nlistf);
401 err(EXIT_FAILURE, "stat `%s'", nlistf);
411 err(EXIT_FAILURE, "read `%s'", nlistf);
420 err(EXIT_FAILURE, "mmap `%s'", nlistf);
/netbsd-current/sbin/dmesg/
H A Ddmesg.c154 char *memf, *nlistf; local
179 memf = nlistf = NULL;
189 nlistf = optarg;
227 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg");
233 errx(1, "%s: msgbufp not found", nlistf ? nlistf :
/netbsd-current/usr.bin/systat/
H A Dmain.c66 char *nlistf = NULL; variable
115 nlistf = optarg;
177 if (nlistf != NULL || memf != NULL)
182 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
187 if (nlistf == NULL && memf == NULL)
/netbsd-current/usr.bin/nfsstat/
H A Dnfsstat.c116 char *memf, *nlistf; local
120 memf = nlistf = NULL;
128 nlistf = optarg;
153 nlistf = *argv;
159 if (nlistf || memf) {
160 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf))
/netbsd-current/usr.sbin/lockstat/
H A Dmain.c172 const char *nlistf, *outf; local
179 nlistf = NULL;
203 nlistf = optarg;
270 if (nlistf == NULL) {
272 nlistf = getbootfile();
276 if ((nlfd = open(nlistf, O_RDONLY)) < 0)
278 nlistf);
/netbsd-current/bin/ps/
H A Dps.c212 char *nlistf, *memf, *swapf, errbuf[_POSIX2_LINE_MAX]; local
232 memf = nlistf = swapf = NULL;
299 nlistf = optarg;
396 nlistf = *argv;
409 kd = kvm_openfiles(nlistf, memf, swapf, O_RDONLY, errbuf);
/netbsd-current/usr.bin/w/
H A Dw.c138 char *memf, *nlistf, *usrnp; local
165 memf = nlistf = NULL;
182 nlistf = optarg;
197 use_sysctl = (memf == NULL && nlistf == NULL);
199 if ((kd = kvm_openfiles(nlistf, memf, NULL,
/netbsd-current/usr.bin/netstat/
H A Dmain.c327 static const char *nlistf = NULL, *memf = NULL; variable
336 if ((kvmd = prepare_kvmd(nlistf, memf, buf)) == NULL)
480 nlistf = optarg;
551 nlistf = *argv;
558 prepare(nlistf, memf, tp);
/netbsd-current/usr.sbin/pstat/
H A Dpstat.c110 char *nlistf = NULL; variable
205 nlistf = optarg;
247 if (nlistf != NULL || memf != NULL)
252 use_sysctl = (nlistf == NULL && memf == NULL);
254 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == 0)
258 if (nlistf == NULL && memf == NULL)
/netbsd-current/usr.bin/fstat/
H A Dfstat.c192 char *memf, *nlistf; local
200 nlistf = memf = NULL;
210 nlistf = optarg;
276 if (nlistf != NULL || memf != NULL)
281 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL)
285 if (nlistf == NULL && memf == NULL)
/netbsd-current/usr.bin/vmstat/
H A Dvmstat.c323 char *nlistf, *memf; variable
345 memf = nlistf = NULL;
385 nlistf = optarg;
425 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);

Completed in 537 milliseconds