aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-10-04 14:25:23 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-10-04 14:25:23 +0000
commit19d06873fbdb0fb7c16045fbec7650a05fcc372f (patch)
treea2ba3ff9ce538a523e953e42df32c1ff35868b02
parentd41fe609843dfa3be29db962e22daa453530c029 (diff)
Notes
-rw-r--r--release/sysinstall/uc_main.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/release/sysinstall/uc_main.c b/release/sysinstall/uc_main.c
index 50a029a57b17..4135415ff6bb 100644
--- a/release/sysinstall/uc_main.c
+++ b/release/sysinstall/uc_main.c
@@ -24,7 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* library functions for userconfig library
*
- * $Id: uc_main.c,v 1.2 1996/10/03 07:50:09 jkh Exp $
+ * $Id: uc_main.c,v 1.3 1996/10/04 13:33:45 jkh Exp $
*/
#include <sys/types.h>
@@ -71,6 +71,7 @@ uc_open(char *name){
struct kernel *kern;
struct stat sb;
char kname[80];
+ int i;
if (strcmp(name, "-incore")==0){
incore=1;
@@ -94,7 +95,7 @@ uc_open(char *name){
i = 0;
}
else
- i = nlist(kname, nl);
+ i = nlist(kname, kern_nl);
#else
i = nlist(kname, nl);
#endif
@@ -103,9 +104,15 @@ uc_open(char *name){
kern = (struct kernel *)-5;
return kern;
}
+#ifdef KERN_NO_SYMBOLS
+ if (!incore) {
+ kern->nl=(struct nlist *)malloc(sizeof(kern_nl));
+ bcopy(kern_nl, kern->nl, sizeof(kern_nl));
+ }
+#else
kern->nl=(struct nlist *)malloc(sizeof(nl));
bcopy(nl, kern->nl, sizeof(nl));
-
+#endif
if(incore){
if((kd=open("/dev/kmem", O_RDONLY))<0){
free(kern);