Home
last modified time | relevance | path

Searched refs:nlistf (Results 1 – 11 of 11) sorted by relevance

/original-bsd/sbin/dmesg/
H A Ddmesg.c50 char *memf, *nlistf; local
54 memf = nlistf = NULL;
61 nlistf = optarg;
74 if (memf != NULL || nlistf != NULL)
78 if ((kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg")) == NULL)
83 errx(1, "%s: msgbufp not found", nlistf ? nlistf : "namelist");
/original-bsd/usr.bin/vmstat.sparc/
H A Dmain.c75 char *memf, *nlistf; local
78 memf = nlistf = NULL;
95 nlistf = optarg;
120 if (nlistf != NULL || memf != NULL)
123 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
/original-bsd/usr.bin/netstat/
H A Dmain.c170 char *nlistf = NULL, *memf = NULL; local
229 nlistf = optarg;
277 nlistf = *argv;
288 if (nlistf != NULL || memf != NULL)
291 if ((kvmd = kvm_open(nlistf, memf, NULL, O_RDONLY, prog)) == NULL) {
296 if (nlistf)
297 fprintf(stderr, "%s: %s: no namelist\n", prog, nlistf);
/original-bsd/usr.bin/nfsstat/
H A Dnfsstat.c62 char *memf, *nlistf; local
66 memf = nlistf = NULL;
73 nlistf = optarg;
90 nlistf = *argv;
100 if (nlistf != NULL || memf != NULL) {
104 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY,
/original-bsd/bin/ps/
H A Dps.c89 char *nlistf, *memf, *swapf, errbuf[256]; local
106 memf = nlistf = swapf = NULL;
144 nlistf = optarg;
224 nlistf = *argv;
236 if (nlistf != NULL || memf != NULL || swapf != NULL)
239 kd = kvm_openfiles(nlistf, memf, swapf, O_RDONLY, errbuf);
/original-bsd/usr.sbin/iostat/
H A Diostat.c114 char **cp, *memf, *nlistf, buf[30]; local
118 nlistf = memf = NULL;
129 nlistf = optarg;
146 if (nlistf != NULL || memf != NULL)
149 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
/original-bsd/usr.bin/w/
H A Dw.c102 char *memf, *nlistf, *p, *vis_args, *x; local
117 memf = nlistf = NULL;
131 nlistf = optarg;
146 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
/original-bsd/usr.bin/fstat/
H A Dfstat.c131 char *memf, *nlistf; local
137 nlistf = memf = NULL;
147 nlistf = optarg;
204 if (nlistf != NULL || memf != NULL)
207 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL) {
/original-bsd/usr.bin/vmstat/
H A Dvmstat.c150 char *memf, *nlistf; local
153 memf = nlistf = NULL;
175 nlistf = optarg;
203 if (nlistf != NULL || memf != NULL)
206 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
/original-bsd/old/sdb/
H A Dps.c110 char *kmemf, *memf, *swapf, *nlistf; variable
271 nlistf = argc > 3 ? argv[3] : "/vmunix";
272 nlist(nlistf, nl);
274 fprintf(stderr, "%s: No namelist\n", nlistf);
/original-bsd/usr.sbin/pstat/
H A Dpstat.c118 char *nlistf = NULL; variable
216 nlistf = optarg;
244 if (nlistf != NULL || memf != NULL)
247 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == 0)