enami
0ac5bcaa77
Cosmetic changes:
...
- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
1997-09-21 02:35:40 +00:00
lukem
8732be2e09
More cleanups from Todd Miller <Todd.Miller@courtesan.com>:
...
* Use an int, not "union wait".
* Move the "parsed_url" label so that the next statement is not an "else" --
some ansi C compilers don't like it the old way (SGI's for example).
* Deal with the possibility of getlogin(2) failing.
* Don't error out if the remote server doesn't support the "MDTM" command.
1997-09-21 01:06:30 +00:00
lukem
d2f145c7a6
a quad_t is an int64_t, not a u_int64_t...
1997-09-21 00:24:55 +00:00
pk
3aa9abb4d8
Use the copied-in string to pass to cpu_reboot(), not a pointer into user space.
1997-09-20 19:32:15 +00:00
mjacob
03a798a3fd
Add some defines for alpha interrupt types.
1997-09-20 19:02:34 +00:00
pk
fca3465b96
Do not skip over a break trap instruction, now that the DDB code can
...
do it properly.
1997-09-20 19:00:40 +00:00
mjacob
2896e07556
Allow SDOUTSTANDING to be defined elsewhere (e.g., config file).
1997-09-20 18:56:30 +00:00
pk
7dad7db427
The `cpu_kcore' header has changed allowing libkvm to be independent of
...
the kernel's link address (KERNBASE).
1997-09-20 18:26:20 +00:00
pk
9b3d64edb9
Remove the `segmap' array from the header. Insert an offset and count
...
field to get to it instead.
Add field `kernbase' so libkvm can be independent of the kernel's link address.
1997-09-20 18:23:51 +00:00
pk
59ed02a11b
pmap_dumpsize() returns a number of disk blocks.
1997-09-20 18:18:33 +00:00
pk
1cd19dc013
Change crash dump layout a bit so the size of the `cpu_kcore' structure
...
does not depend on the value of KERNBASE.
Change pmap_dumpsize() to return disk block units, in stead of pages.
1997-09-20 18:14:01 +00:00
christos
24002425ac
Work around ggc-2.7.2 off_t initialization bug on m68k.
1997-09-20 16:28:00 +00:00
lukem
b0f016ea70
- cleanup for WARNS=1
...
- use fgetln() correctly; the last line may not have a trailing \n
1997-09-20 14:55:00 +00:00
lukem
d829744648
- WARNSify
...
- deprecate register
- getopts returns -1 not EOF
- last character returned by fgetln() isn't always \n
- cleanup .Nm use
1997-09-20 14:28:16 +00:00
drochner
7de20a5b45
Call device_register() on i386 too.
1997-09-20 14:16:43 +00:00
drochner
1f1e574146
-implement a "device_register()" function to identify network interfaces
...
by bus type / address (for diskless boot)
-add some (experimental, commented out) code which could be used for
identification of boot disks - should help for BIOS remappings
1997-09-20 14:15:54 +00:00
drochner
6c6328cc8f
enable "device_register()" for the i386 too
1997-09-20 14:08:27 +00:00
drochner
610abce93b
Copy data passed by the boot loader into an array "bootinfo".
...
The former "cyloffset" argument is used as an (indirect) pointer to the
information structures. "cyloffset" has always been set to zero in the
past, so this should be save to do.
1997-09-20 14:01:26 +00:00
drochner
968f26b9d3
-define a buffer for information passed by the bootloader
...
-add a function ("lookup_bootinfo") to extract data
-use passed console information, if present, for console attachment
-arrange definitions for console and KGDB device a bit nicer
1997-09-20 12:51:13 +00:00
drochner
b8a47d06da
Define "machdep.booted_kernel" for sysctl.
1997-09-20 12:40:25 +00:00
drochner
c03122fcb1
In some future (ie, without COMPAT_OLDBOOT), we don't want to bother
...
with the disk type (IDE or SCSI) here - the BIOS doesn't do it either.
Set "#ifdef"s accordingly.
1997-09-20 12:36:05 +00:00
drochner
dc0b04e0ad
Note use of common menu functions and new framework for argument passing
...
to the kernel.
1997-09-20 12:28:21 +00:00
drochner
041680f614
don't forget to save the partition number for the kernel
1997-09-20 12:17:41 +00:00
drochner
9b4679d869
-Don't pass hardware address, it is not of much use for the kernel.
...
-define "addr" differently for ISA and PCI devices - for PCI, it is
(bus,device,function) now, in the format used by the PCI BIOS
1997-09-20 12:13:01 +00:00
leo
1e11bfa8b7
Move the definition of MSGBUFSIZE up to the machine-arch level if
...
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:12:24 +00:00
leo
2b138578d7
Correct for the extra member in 'struct kern_msgbuf' when calculating
...
the number of bytes we want to allocate.
1997-09-20 12:10:09 +00:00
drochner
1d47009a08
Use <machine/bootinfo.h> for definitions shared with the kernel.
1997-09-20 12:10:06 +00:00
leo
ef6f3f7e25
Move the definition of MSGBUFSIZE up to the machine-arch level if
...
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:08:24 +00:00
drochner
17b42ff68d
Data structures passed from the boot loader to the kernel.
1997-09-20 12:08:21 +00:00
leo
c5ba7a3102
Move the definition of MSGBUFSIZE up to the machine-arch level if
...
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:06:37 +00:00
enami
8c389fd0c2
Cosmetic change;
...
- indent continuation line by four space.
- put an empty line at the beginning of function which has no local variable.
1997-09-20 09:48:35 +00:00
enami
c6e5d31119
Fix revived bug, described in PR#3285. But use a bit simple way;
...
Use loop count instead of hackery pointer play.
1997-09-20 09:43:22 +00:00
enami
2d4b680a58
Don't include <sys/cdefs.h> twice in same file.
1997-09-20 06:26:43 +00:00
lukem
af479c48b8
- don't indiscriminately include <stdlib.h> and <unistd.h> in "fsck.h"
...
- explicitly pull in <stdio.h>, <stdlib.h> and <unistd.h> in *.c as necessary
1997-09-20 06:16:23 +00:00
mikel
c833d17bf1
xref rmail(8) not nonexistent rmail(1)
1997-09-20 06:02:44 +00:00
mikel
6e9797c617
set WARNS?=1
1997-09-20 05:51:40 +00:00
mikel
f08412063c
update for use with WARNS=1:
...
- use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
- add parens and main() prototype to shut up gcc -Wall
also replace {,r}index() with str{,r}chr(), nuke 'register', and
otherwise KNFify and clean up
1997-09-20 05:50:45 +00:00
mikel
28cd33c439
xref syslog(3) not nonexistent syslog(8)
1997-09-20 05:24:36 +00:00
mikel
f1b4d4127e
fix xrefs: signal(2) -> signal(3), syslog(8) -> syslog(3)
1997-09-20 05:16:29 +00:00
mikel
1ff7d5da2e
crib text from sleep(3) to document response to signals; fixes PR 4008
1997-09-20 04:52:36 +00:00
mikel
e13ea50bb5
RCSid police
1997-09-20 04:16:40 +00:00
mikel
3d302c58a2
make some more files optional; from Erik Bertelsen in PR 4048
1997-09-20 04:02:01 +00:00
mikel
3ea25f34ca
fix SYNOPSIS declarations; from <entropy@zippy.bernstein.com> in PR 4054
...
also fixed some other bogosities, i.e. massive .Nm abuse.
1997-09-20 03:56:38 +00:00
mikel
b7c59de85d
RCSid police
1997-09-20 03:09:17 +00:00
mikel
3e3f02a092
don't try to copy nonexistent README, & RCSid police
1997-09-20 03:05:39 +00:00
mikel
42c4fcf3eb
reference SS_* constants, not SA_* constants; from der Mouse in PR lib/4117
...
add some whitespace
1997-09-20 02:49:43 +00:00
mikel
2f014c40e6
remove obsolete comment about scsi files
...
don't include ppp_bsdcomp or ppp_deflate support unless ppp defined
alphabetize (mostly) file list
1997-09-20 02:20:52 +00:00
enami
64edd9d48a
Use TAB instead of SPACE to indent. Line up if possible.
1997-09-20 01:02:29 +00:00
enami
8a45521059
Convert RTC_OFFSET, DEVPAGER, SWAPPAGER and VNODEPAGER to be declared
...
by defopt.
1997-09-20 00:44:05 +00:00
cgd
e8733ec0da
mark scsipi_make_xs() as potentially unused, so that this can be
...
compiled with -Wunused without optimization/inlining enabled.
Also, make it a little bit closer to KNF.
1997-09-19 23:53:33 +00:00