revert previous. oops.
This commit is contained in:
parent
58540a2274
commit
48c12bfeed
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_subr.c,v 1.46 1999/04/21 02:31:49 mrg Exp $ */
|
||||
/* $NetBSD: kern_subr.c,v 1.47 1999/04/21 02:37:07 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -757,13 +757,8 @@ setroot(bootdv, bootpartition, nam2blk)
|
||||
} else if (rootdv->dv_class == DV_IFNET)
|
||||
goto nodumpdev;
|
||||
else {
|
||||
#if 0 /* DUMPCTL */
|
||||
dumpdv = dumpdev = NULL;
|
||||
goto nodumpdev;
|
||||
#else
|
||||
dumpdv = rootdv;
|
||||
dumpdev = MAKEDISKDEV(major(rootdev), dumpdv->dv_unit, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
out:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_synch.c,v 1.58 1999/04/21 02:31:50 mrg Exp $ */
|
||||
/* $NetBSD: kern_synch.c,v 1.59 1999/04/21 02:37:07 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1991, 1993
|
||||
@ -620,12 +620,10 @@ mi_switch()
|
||||
rlim->rlim_cur += 5;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
if (autonicetime && s > autonicetime && p->p_ucred->cr_uid && p->p_nice == NZERO) {
|
||||
p->p_nice = autoniceval + NZERO;
|
||||
resetpriority(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Pick a new current process and record its start time.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: subr_autoconf.c,v 1.38 1999/04/21 02:31:50 mrg Exp $ */
|
||||
/* $NetBSD: subr_autoconf.c,v 1.39 1999/04/21 02:37:07 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -359,8 +359,7 @@ config_attach(parent, cf, aux, print)
|
||||
if (cf->cf_fstate == FSTATE_STAR)
|
||||
cf->cf_unit++;
|
||||
}
|
||||
#if defined(__alpha__) || defined(hp300) || defined(__i386__) || \
|
||||
(defined(__sparc__) && !defined(SUN4U))
|
||||
#if defined(__alpha__) || defined(hp300) || defined(__i386__) || defined(__sparc__)
|
||||
device_register(dev, aux);
|
||||
#endif
|
||||
(*ca->ca_attach)(parent, dev, aux);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uipc_usrreq.c,v 1.40 1999/04/21 02:31:50 mrg Exp $ */
|
||||
/* $NetBSD: uipc_usrreq.c,v 1.41 1999/04/21 02:37:07 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -916,8 +916,6 @@ unp_internalize(control, p)
|
||||
morespace:
|
||||
neededspace = (ALIGN(sizeof(*cm)) + nfds * sizeof(struct file *)) -
|
||||
control->m_len;
|
||||
if (neededspace)
|
||||
printf("unp_internalize: neededspace=%d\n", neededspace);
|
||||
if (neededspace > M_TRAILINGSPACE(control)) {
|
||||
|
||||
/* if we already have a cluster, the message is just too big */
|
||||
@ -939,22 +937,6 @@ morespace:
|
||||
cm->cmsg_len += neededspace;
|
||||
control->m_len = cm->cmsg_len;
|
||||
|
||||
if (neededspace) {
|
||||
fdp = (int *)(cm + 1);
|
||||
for (i = 0; i < nfds; i++) {
|
||||
fd = *fdp++;
|
||||
if ((unsigned)fd >= fdescp->fd_nfiles ||
|
||||
fdescp->fd_ofiles[fd] == NULL) {
|
||||
printf("unp_internalize: ERROR DETECTED (1)\n");
|
||||
return (EBADF);
|
||||
}
|
||||
}
|
||||
if ((cm->cmsg_len / sizeof(struct file *)) != nfds) {
|
||||
printf("unp_internalize: ERROR DETECTED (2)\n");
|
||||
return (EBADF);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Transform the file descriptors into struct file pointers, in
|
||||
* reverse order so that if pointers are bigger than ints, the
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vfs_subr.c,v 1.101 1999/04/21 02:31:50 mrg Exp $ */
|
||||
/* $NetBSD: vfs_subr.c,v 1.102 1999/04/21 02:37:07 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -1471,10 +1471,6 @@ printlockedvnodes()
|
||||
extern const char *mountcompatnames[];
|
||||
extern const int nmountcompatnames;
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* This belongs in sys/compat/common/vfs_44.c
|
||||
*/
|
||||
/*
|
||||
* Top level filesystem related information gathering.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user