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

/netbsd-6-1-5-RELEASE/usr.sbin/mlxctl/
H A Dextern.h37 extern const char *nlistf;
H A Dmain.c55 const char *nlistf; variable
H A Ddklist.c181 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
/netbsd-6-1-5-RELEASE/sbin/dmesg/
H A Ddmesg.c79 char *memf, *nlistf; local
84 memf = nlistf = NULL;
91 nlistf = optarg;
125 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg");
131 errx(1, "%s: msgbufp not found", nlistf ? nlistf :
/netbsd-6-1-5-RELEASE/usr.bin/systat/
H A Dmain.c73 char *nlistf = NULL; variable
118 nlistf = optarg;
174 if (nlistf != NULL || memf != NULL)
179 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
186 if (nlistf == NULL && memf == NULL)
190 if (nlistf)
191 errx(1, "%s: no namelist", nlistf);
/netbsd-6-1-5-RELEASE/usr.sbin/crash/
H A Dcrash.c326 const char *nlistf, *memf; local
335 nlistf = _PATH_KSYMS;
350 nlistf = optarg;
367 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, getprogname());
371 fd = open(nlistf, O_RDONLY);
373 err(EXIT_FAILURE, "open `%s'", nlistf);
376 err(EXIT_FAILURE, "stat `%s'", nlistf);
386 err(EXIT_FAILURE, "read `%s'", nlistf);
395 err(EXIT_FAILURE, "mmap `%s'", nlistf);
/netbsd-6-1-5-RELEASE/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-6-1-5-RELEASE/usr.sbin/lockstat/
H A Dmain.c165 const char *nlistf, *outf; local
172 nlistf = NULL;
196 nlistf = optarg;
260 if (nlistf == NULL) {
262 nlistf = getbootfile();
266 if ((nlfd = open(nlistf, O_RDONLY)) < 0)
268 nlistf);
/netbsd-6-1-5-RELEASE/bin/ps/
H A Dps.c204 char *nlistf, *memf, *swapf, errbuf[_POSIX2_LINE_MAX]; local
224 memf = nlistf = swapf = NULL;
276 nlistf = optarg;
373 nlistf = *argv;
386 kd = kvm_openfiles(nlistf, memf, swapf, O_RDONLY, errbuf);
/netbsd-6-1-5-RELEASE/usr.bin/w/
H A Dw.c139 char *memf, *nlistf, *p, *x, *usrnp; local
166 memf = nlistf = NULL;
180 nlistf = optarg;
195 use_sysctl = (memf == NULL && nlistf == NULL);
197 if ((kd = kvm_openfiles(nlistf, memf, NULL,
/netbsd-6-1-5-RELEASE/usr.bin/netstat/
H A Dmain.c356 static const char *nlistf = NULL, *memf = NULL; variable
365 if ((kvmd = prepare_kvmd(nlistf, memf, buf)) == NULL)
528 nlistf = optarg;
599 nlistf = *argv;
606 prepare(nlistf, memf, tp);
/netbsd-6-1-5-RELEASE/usr.sbin/iostat/
H A Diostat.c95 char *nlistf, *memf; variable
157 nlistf = optarg;
/netbsd-6-1-5-RELEASE/usr.sbin/pstat/
H A Dpstat.c107 char *nlistf = NULL; variable
203 nlistf = optarg;
245 if (nlistf != NULL || memf != NULL)
250 use_sysctl = (nlistf == NULL && memf == NULL);
252 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == 0)
256 if (nlistf == NULL && memf == NULL)
/netbsd-6-1-5-RELEASE/usr.bin/fstat/
H A Dfstat.c187 char *memf, *nlistf; local
195 nlistf = memf = NULL;
205 nlistf = optarg;
261 if (nlistf != NULL || memf != NULL)
266 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL)
270 if (nlistf == NULL && memf == NULL)
/netbsd-6-1-5-RELEASE/usr.bin/vmstat/
H A Ddrvstats.c71 /* Kernel pointers: nlistf and memf defined in calling program. */
73 extern char *nlistf;
356 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY,
H A Dvmstat.c329 char *nlistf, *memf; variable
350 memf = nlistf = NULL;
390 nlistf = optarg;
430 if (nlistf != NULL || memf != NULL)
435 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, kvm_errbuf);
437 if (nlistf != NULL || memf != NULL) {
442 if (nlistf == NULL && memf == NULL)
/netbsd-6-1-5-RELEASE/libexec/rpc.rstatd/
H A Drstat_proc.c104 char *memf = NULL, *nlistf = NULL; variable

Completed in 134 milliseconds