Julian Elischer
269fb9d764
Collect all the functioons concerned with rebooting into one place
...
also add the at_shutdown callout list, and change the one user of
the present (broken) method (the vn driver) to use the new scheme.
1996-08-19 20:07:07 +00:00
Bruce Evans
2baeef32b6
Removed unnecessary #includes of vm stuff. Most of them were once
...
prerequisites for <sys/sysctl.h>.
subr_prof.c:
Also replaced #include of <sys/user.h> by #include of <sys/resourcevar.h>.
1995-12-06 23:37:44 +00:00
Bruce Evans
98d938220c
Completed function declarations and/or added prototypes.
1995-12-02 18:58:56 +00:00
Poul-Henning Kamp
78535df223
Remove unused var.
1995-11-20 12:14:40 +00:00
Poul-Henning Kamp
27aef04699
Get rid of domainnamelen.
1995-11-14 09:10:54 +00:00
Bruce Evans
f35a53bf11
Restored the (buggy) historical behaviour of getdomainname().
...
Negative name lengths for getdomainname() and setdomainname() were
converted to large positive ones by misdeclaring the args struct.
1995-11-12 07:04:30 +00:00
Bruce Evans
d2d3e8751c
Included <sys/sysproto.h> to get central declarations for syscall args
...
structs and prototypes for syscalls.
Ifdefed duplicated decentralized declarations of args structs. It's
convenient to have this visible but they are hard to maintain. Some
are already different from the central declarations. 4.4lite2 puts
them in comments in the function headers but I wanted to avoid the
large changes for that.
1995-11-12 06:43:28 +00:00
Bruce Evans
2635f86c68
Fixed types of ogethostid() and osethostid(). The args struct names
...
conflicted with the machine generated ones in <sys/sysproto.h>.
Fixed type of oquota(). It didn't even use an args struct.
1995-11-11 01:04:42 +00:00
Poul-Henning Kamp
b8da239623
Make the old compat functions use the sysctl front door, rather than
...
crashing through the walls.
This should save Peters blood pressure and netscapes uname call.
1995-11-09 20:22:12 +00:00
Nate Williams
4756154a9e
Removed unused local variable from shutdown_nice()
1995-09-06 15:23:20 +00:00
David Greenman
cd92a6182d
Call boot() instead of cpu_reset() if init isn't running in shutdown_nice.
1995-08-20 04:42:25 +00:00
Joerg Wunsch
352abcd4a7
Extentd David's recent change to shutdown_nice() by calling
...
cpu_reset() directly in case init(8) is *not* running.
1995-08-06 19:45:34 +00:00
David Greenman
887f41183e
Rewrote shutdown_nice() to fix the init-not-yet-started panic().
1995-07-30 17:10:36 +00:00
Rodney W. Grimes
9b2e535452
Remove trailing whitespace.
1995-05-30 08:16:23 +00:00
Poul-Henning Kamp
54213fd84a
Implemented a "TEXT_SET" called 'cleanup_set' which will be called before
...
the reboot takes place (if not RB_NOSYNC that is). The vn driver needs this.
Other places might benefit too.
1994-12-04 19:58:43 +00:00
Poul-Henning Kamp
797f2d22f0
All of this is cosmetic. prototypes, #includes, printfs and so on. Makes
...
GCC a lot more silent.
1994-10-02 17:35:40 +00:00
Poul-Henning Kamp
bb56ec4a05
While in the real world, I had a bad case of being swapped out for a lot of
...
cycles. While waiting there I added a lot of the extra ()'s I have, (I have
never used LISP to any extent). So I compiled the kernel with -Wall and
shut up a lot of "suggest you add ()'s", removed a bunch of unused var's
and added a couple of declarations here and there. Having a lap-top is
highly recommended. My kernel still runs, yell at me if you kernel breaks.
1994-09-25 19:34:02 +00:00
Andrey A. Chernov
a40a3595b7
oget/sethostname: add missing argument to kern_sysctl
...
Reviewed by:
Submitted by:
Obtained from:
1994-09-19 21:15:14 +00:00
Garrett Wollman
f23b4c91c4
Fix up some sloppy coding practices:
...
- Delete redundant declarations.
- Add -Wredundant-declarations to Makefile.i386 so they don't come back.
- Delete sloppy COMMON-style declarations of uninitialized data in
header files.
- Add a few prototypes.
- Clean up warnings resulting from the above.
NB: ioconf.c will still generate a redundant-declaration warning, which
is unavoidable unless somebody volunteers to make `config' smarter.
1994-08-18 22:36:09 +00:00
Garrett Wollman
4849be9c13
Define a sysctl MIB variable for the YP domain name.
1994-08-08 00:30:12 +00:00
David Greenman
3c4dd3568f
Added $Id$
1994-08-02 07:55:43 +00:00
Rodney W. Grimes
26f9a76710
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
...
Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman
1994-05-25 09:21:21 +00:00
Rodney W. Grimes
df8bae1de4
BSD 4.4 Lite Kernel Sources
1994-05-24 10:09:53 +00:00