Commit Graph

78191 Commits

Author SHA1 Message Date
dwmalone
64cc23aed3 Improve WARNS situation for kdump:
1) Define _KERNEL while including sys/time.h to get some function prototypes.
2) Add prototypes and ANSIify definitions.
3) Constness changes.
4) Remove register keyword.
5) Actually return a sensible value from main.
6) Make fread_tail take a void * instead of a char *.
7) Avoid a signedness warning by casting to a size_t. Should be safe
   enough 'cos we also check for nonnegativity.
8) Be extra chummy with sigset_t rather than passing a struct to printf
   and pretending it is an int.
2002-07-28 16:05:07 +00:00
mike
50795253ed Revert the previous delta; uintfptr_t needs to be available to
userland for libc/gmon to compile, so the typedef in <machine/types.h>
isn't good enough.  This is really ugly since we end up with the
actual value which uintfptr_t is typedef'd from, in multiple places.
This is bug for bug compatible with the other FreeBSD architectures.

Noticed by:	sparc64 tinderbox
2002-07-28 15:59:51 +00:00
dwmalone
13b25f0d4e ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dwmalone
7eeb84c96d The return value of snprintf should be always nonnegative, so it should
be safe to cast it to a size_t before comparing it to a sizeof().
2002-07-28 15:41:15 +00:00
dwmalone
ed41e3f44c ANSIify function definitions to avoid a warning. 2002-07-28 15:32:17 +00:00
dwmalone
c18366b9c9 ANSIify function definitions to avoid a warning.
Minor constness changes.
2002-07-28 15:28:38 +00:00
dwmalone
d6cc156940 ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
dwmalone
27811f5813 ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
dwmalone
c9e99bb187 ANSIify function definitions to avoid a warning.
PR:		38930
Submitted by:	keramida
2002-07-28 15:20:10 +00:00
dwmalone
7e6edb2c7e ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
dwmalone
63deb0eba7 ANSIify function definitions to avoid some warnings.
Include stdlib.h for exit.
2002-07-28 15:02:24 +00:00
dwmalone
0a03fb6785 ANSIify function definitions to avoid a warning.
Minor constness changes.
2002-07-28 14:55:59 +00:00
dwmalone
7d3063759a ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
jmallett
c9bb9f8b5b Search the include path for the argument to -f, to make lives easier for
those of us who want to figure out how old Jim Mock is, but only want to
type 'calendar -f calendar.freebsd'.  This is done in a way that should
be totally backwards compatible with no noticable differences, at all.

Reviewed by:	mux
MFC after:	4 weeks
2002-07-28 13:46:09 +00:00
dd
650fcfb597 New release notes: devfs rule subsystem, lock(1) -v 2002-07-28 08:45:26 +00:00
alc
4f2061c595 Lock page queue accesses by vm_page_free(). 2002-07-28 08:01:48 +00:00
dd
559cc21a49 Add a -v option that prevents switching virtual terminals while this
terminal is locked.  This permits the user to easily lock the entire
console from a single terminal.
2002-07-28 07:13:53 +00:00
dd
5128222396 Nuke whitespace at EOL. 2002-07-28 06:59:40 +00:00
dd
f141dc87a6 Correct misindentation of DRA_UID. 2002-07-28 06:57:57 +00:00
dd
05ad2e83ea What we're actually passing around is an ioctl request, not a command,
and it's an unsigned long, not an int.
2002-07-28 06:57:13 +00:00
dd
c98ad7894f This compiles cleanly with WARNS=5 on i386 and alpha, so try to make
sure that doesn't change.
2002-07-28 06:52:47 +00:00
dd
182e2ecab0 Implement this (quoted from the updated man page): If the first token
of a rule specification is a single dash (``-''), rules are read from
the standard input and the rest of the specification is ignored.
2002-07-28 06:45:30 +00:00
alc
7ba02c96b0 o Lock page queue accesses by vm_page_free().
o Increment cnt.v_dfree inside vm_pageout_page_free() rather than
   at each call.
2002-07-28 05:46:47 +00:00
alc
5468b52b93 o Lock page queue accesses by vm_page_free(). 2002-07-28 04:23:03 +00:00
dd
3a2ef2d1d3 Use more standard section names in an attempt to unconfuse new users
(and make it easier to find stuff for the old ones).  I originally put
everything under one "RULE SUBSYSTEM" so it didn't look like devfs(8)
is dedicated to the rule subsystem, but since nobody has any idea what
else might go here, it's not worth confusing people just to save a
little time for someone that might add something rule-unrelated to
devfs(8) in a few years.

Suggested by:	sheldonh, phk
2002-07-28 03:58:12 +00:00
jmallett
66fcf1b065 As of revision 1.38 of make/parse.c, our make(1) will warn too. Note that
this isn't just for the sake of testing behaviour, and that things really
do break if this regression occurs.
2002-07-28 03:57:08 +00:00
dd
e9e1112112 Unimplement panic(8) by making sure that we don't recurse into a
ruleset.  If we do, that means there's a ruleset loop (10 includes 20
include 30 includes 10), which will quickly cause a double fault due
to stack overflow (since "include" is implemented by recursion).
(Previously, we only checked that X didn't include X.)
2002-07-28 03:52:44 +00:00
jmallett
68b016d677 Print a warning when we are given two scripts for one target. This is neither
as wide-reaching nor intensive as NetBSD's similar, but the warning uses the
same text.

Inspired by:	NetBSD
2002-07-28 03:52:41 +00:00
dd
d54594015a Stock -current has more than 300 files in /etc, so 255 inodes for the
/etc filesystem isn't enough; consequently, add "-i 4096" to the newfs
command for /etc.  This results in 1022 inodes, which should be enough
for the forseeable future (although I don't know why we would ever
have more than 1000 files in a default /etc).

Silence by:	-current
2002-07-28 03:41:53 +00:00
dd
ac57ecfeb0 Add a period to the end of the "starting" message to be consistent
with the rest of the output during a boot.
2002-07-28 03:38:10 +00:00
fenner
1ef08a8805 Calculate checksums correctly when LSRR is in effect by passing the
IP header and protocol header seperately.
Also calculate TCP checksums.

Submitted by:	orion
2002-07-28 02:34:39 +00:00
fenner
5db809b70f Update for traceroute 1.4a12 2002-07-28 02:27:07 +00:00
fenner
93227e8c5f Merge 1.4a12 2002-07-28 02:26:31 +00:00
fenner
346e890a4a This commit was generated by cvs2svn to compensate for changes in r100784,
which included commits to RCS files with non-trunk default branches.
2002-07-28 02:24:33 +00:00
fenner
30e877e999 Virgin import of LBL traceroute v1.4a12 2002-07-28 02:24:33 +00:00
jake
8394fd428c Add declarations for btext and etext. 2002-07-28 01:01:14 +00:00
grog
a8f79f01b6 Clarify J.S. Bach's life: he was only born once, and he died in Leipzig.
Add entry for Antonio Vivaldi's death.
2002-07-28 00:42:02 +00:00
peter
170d858006 Unwind the syscall_with_err_pushed tweak that jake did some time back.
OK'ed by:	jake
2002-07-28 00:27:51 +00:00
jake
04dc84f537 uintfptr_t has moved to machine/types.h. 2002-07-27 23:36:51 +00:00
alc
5805f56cf3 o Require that the page queues lock is held on entry to vm_pageout_clean()
and vm_pageout_flush().
 o Acquire the page queues lock before calling vm_pageout_clean()
   or vm_pageout_flush().
2002-07-27 23:20:32 +00:00
dwmalone
57f793c52f Make usage match options.
Approved by:	rwatson
2002-07-27 23:19:25 +00:00
dwmalone
44193d38f9 Make bn_name a const char * to quieten some warnings.
Approved by:	bp (long ago)
2002-07-27 23:16:49 +00:00
dwmalone
fd98c7b760 Make spxnames a const char * to quieten some warnings in netstat. 2002-07-27 23:15:08 +00:00
dwmalone
d0801ff4cd If a socket is disconnected for some reason (like a TCP connection
not responding) then drop any data on the outgoing queue in
soisdisconnected because there is no way to get it to its destination
any longer.

The only objection to this patch I got on -net was from Terry, who
wasn't sure that the condition in question could arise, so I provided
some example code.
2002-07-27 23:06:52 +00:00
dwmalone
649a07af8d Make test check the tv_nsec part of a struct stat when comparing
the mtimes of a file. (This is probably only useful if you have
vfs.timestamp_precision set to something nonzero).

PR:		39163
Submitted by:	Hal Burch <hburch@lumeta.com>
MFC after:	2 weeks
2002-07-27 22:53:44 +00:00
jhb
ff42578760 - Fixup whitespace after previous commit.
- To minimize whitespace changes, remove a test that didn't define
  _CPUCFLAGS if both NO_CPU_CFLAGS and NO_CPU_COPTFLAGS were defined
  since it is redundant (we don't use _CPUCFLAGS if those are defined).
2002-07-27 22:15:42 +00:00
jhb
9846f06a99 If there is not a CPUTYPE defined by default, then allow for _CPUCFLAGS
to tune for more advanced processors while still supporting the minimum
processor in an architecture.  We can do this with the '-mtune=' option
to gcc for alpha, sparc64, and powerpc and with the mis-named '-mcpu='
option for i386.

This defaults to tuning i386 builds for i686 machines though not using
any instructions that aren't found on an 80386.  For alpha it defaults
to tuning for an EV5.

Approved by:	peter
Peril sensitive sunglasses borrowed from:	peter
2002-07-27 22:04:05 +00:00
jake
48b3ac74f0 Implement a direct mapped address region, like alpha and ia64. This
basically maps all of physical memory 1:1 to a range of virtual addresses
outside of normal kva.  The advantage of doing this instead of accessing
phsyical addresses directly is that memory accesses will go through the
data cache, and will participate in the normal cache coherency algorithm
for invalidating lines in our own and in other cpus' data caches.  So
we don't have to flush the cache manually or send IPIs to do so on other
cpus.  Also, since the mappings never change, we don't have to flush them
from the tlb manually.
This makes pmap_copy_page and pmap_zero_page MP safe, allowing the idle
zero proc to run outside of giant.

Inspired by:	ia64
2002-07-27 21:57:38 +00:00
fenner
0ad813b645 Fix location and name of if_an_pci.c in comment. 2002-07-27 21:28:40 +00:00
jhb
f4305bc470 Document DOCRELEASETAG and PORTSRELEASETAG. 2002-07-27 21:09:29 +00:00