kvm.c (58f0484fa251c266ede97b591b499fe3dd4f578e) | kvm.c (b3bfc7199eb51b03496567ea71bff82b75a2209d) |
---|---|
1/*- 2 * Copyright (c) 1989, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software developed by the Computer Systems 6 * Engineering group at Lawrence Berkeley Laboratory under DARPA contract 7 * BG 91-66 and contributed to Berkeley. 8 * --- 212 unchanged lines hidden (view full) --- 221 goto failed; 222 } 223 if ((kd->swfd = open(sf, flag, 0)) < 0) { 224 _kvm_syserr(kd, kd->program, "%s", sf); 225 goto failed; 226 } 227 /* 228 * Open kvm nlist database. We go ahead and do this | 1/*- 2 * Copyright (c) 1989, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software developed by the Computer Systems 6 * Engineering group at Lawrence Berkeley Laboratory under DARPA contract 7 * BG 91-66 and contributed to Berkeley. 8 * --- 212 unchanged lines hidden (view full) --- 221 goto failed; 222 } 223 if ((kd->swfd = open(sf, flag, 0)) < 0) { 224 _kvm_syserr(kd, kd->program, "%s", sf); 225 goto failed; 226 } 227 /* 228 * Open kvm nlist database. We go ahead and do this |
229 * here so that we don't have to hold on to the vmunix | 229 * here so that we don't have to hold on to the kernel |
230 * path name. Since a kvm application will surely do 231 * a kvm_nlist(), this probably won't be a wasted effort. 232 * If the database cannot be opened, open the namelist 233 * argument so we revert to slow nlist() calls. 234 */ 235 if (kvm_dbopen(kd, uf) < 0 && 236 (kd->nlfd = open(uf, O_RDONLY, 0)) < 0) { 237 _kvm_syserr(kd, kd->program, "%s", uf); --- 303 unchanged lines hidden --- | 230 * path name. Since a kvm application will surely do 231 * a kvm_nlist(), this probably won't be a wasted effort. 232 * If the database cannot be opened, open the namelist 233 * argument so we revert to slow nlist() calls. 234 */ 235 if (kvm_dbopen(kd, uf) < 0 && 236 (kd->nlfd = open(uf, O_RDONLY, 0)) < 0) { 237 _kvm_syserr(kd, kd->program, "%s", uf); --- 303 unchanged lines hidden --- |