Commit Graph

145755 Commits

Author SHA1 Message Date
rpaulo
38619605fc Add new files from 0.4.8 that we won't need. 2006-04-10 20:43:00 +00:00
christos
4bb7462638 PR/33231: Anraud Degroote: Miscellaneous cleanups in the route code:
- use of 0 instead of NULL
    - questionnable macros
2006-04-10 19:06:37 +00:00
jmcneill
23049d4c58 Use the current VESA mode's RGB info to setup 15/16/24/32bpp modes
properly.
2006-04-10 18:44:11 +00:00
perseant
fbf75b2bf7 Correct a locking bug in the recent pager optimization. 2006-04-10 18:42:48 +00:00
garbled
78fba760a5 de-__P, minor formatting nits, bump version. 2006-04-10 18:40:06 +00:00
garbled
6f63c9c5a1 Remove unused fd.c and video.c files. 2006-04-10 18:01:44 +00:00
garbled
7c00973093 Clean up the bootloader a little bit. Get rid of some unused code,
set the makefile to build the bootloader without the DB_MONITOR stuff by
default, as it is primarily for debugging.  Reduces bootloader size by
about 8k.
2006-04-10 17:58:59 +00:00
pavel
3b08981d4d In rev. 1.98, the ioctl method of the (g)sip drivers was optimized for
SIOCSIFFLAGS: it compares the new flags with the old flags and avoids
reset if there are only certain changes. This was done to fix PR 29126.

It does not take into account, though, that there is other state which
can change and SIOCSIFFLAGS is called to inform about it.  Namely,
if_capenable, ec_capenable and ec_nvlans. For all three, the _init
method must program the hardware specially. Not doing it resulted in:
- VLAN frames getting truncated
- hw checksumming not working
- outgoing VLAN frames not being tagged when they should
- incoming VLAN frames being treated as untagged.

Fix by keeping all the old state in the softc and initializing the
hardware if any of it changes.

Tested on gsip. Also tested by Nino Dehne and Martin J. Laubach
on sip, thanks.

Fixes PRs 32900 and 33216.

Approved by martin@ .
2006-04-10 16:37:22 +00:00
chuck
02ff9e80b9 fix .Xr to invalid man page that i put in by mistake 2006-04-10 16:20:46 +00:00
chuck
d09fe2c467 modified man(1):
- avoid double slashes when displaying man pages (got tired
   of '/usr/share/man//cat1/man.0').
 - got rid of __P() while working on it.
 - incorporate some of my old notes explaining how manpath works into the
   comments of the code itself.
 - renamed some of the vars so that the code is consistent throughout
   (and hopefully clearer and easier to understand)
 - fixed relative man paths for multiple man pages (man did a chdir()
   on the first man page it had to format --- this broke any remaining
   relative path man pages left to process).   save old directory and
   fchdir() back to it after formatting.
 - improved doc on "man -h" which does more than just whatis(1) [e.g.
   "man -h fopen" prints the required include files and the prototypes
   rather than just the one-liner you get with whatis(1)]
 - manconf.c now fills in the "len" length field in the TAG/ENTRY
   structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out.   this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating.  revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this.  also remove
__P on updated files.
2006-04-10 14:39:06 +00:00
simonb
f7a378cb65 Fix some comment grammar nits. 2006-04-10 14:20:48 +00:00
chuck
82ad9348f2 rework the wording in these man pages (mainly in man.conf.5) based on
some old notes I found to make it clearer and easier to understand
how the man stuff works (hopefully!).
2006-04-10 14:02:57 +00:00
onoe
ec94ced902 Move "opt_maxuprc.h" from init_main.c to kern_proc.c, as the definition
of maxuprc has been moved to kern_proc.c (rev. 1.80).
2006-04-10 11:16:22 +00:00
simonb
a65c1d2e41 Fix a couple of typos in some comments. 2006-04-10 04:13:58 +00:00
simonb
a8b3022a42 Tab Police. 2006-04-10 03:36:03 +00:00
dbj
a015786b0d the root directory of non fat32 filesystems is stored in a special area.
a couple of corner cases can cause it to fail to write out that area
after it performs repairs.
2006-04-10 03:25:11 +00:00
simonb
4338faf3d6 Unwrap a not-too-long-line. 2006-04-10 03:07:40 +00:00
bouyer
c2c545c188 Move xenkernfs_init() back in hypervisor.c so that /kern/xen/privcmd can
also register properly.
2006-04-09 22:14:13 +00:00
yamt
539544d937 ffs_gop_size: revert a problematic part of 1.78.
problems reported by Kouichirou Hiratsuka and Jukka Salmi on current-users@.
2006-04-09 21:59:35 +00:00
bouyer
4ac2bb53f4 start xenbus support for domain0: allocate the page and the event channel,
and export theses via /kern/xen/xsd_mfn and /kern/xen/xsd_port.
2006-04-09 21:39:42 +00:00
christos
857164eeb5 Coverity CID 2536: Clarify the error path further. 2006-04-09 20:01:40 +00:00
christos
c5e22666b0 Coverity CID 1596: Plug memory leak. 2006-04-09 19:51:23 +00:00
christos
e550e02b95 Coverity CID 1624: Plug memory leak. 2006-04-09 19:47:43 +00:00
christos
79059c6361 Coverity CID 1563: Fix memory leak. 2006-04-09 19:42:03 +00:00
christos
3bf01f5c84 Duh fixed error printing. 2006-04-09 19:39:17 +00:00
christos
034e8bc313 Coverity CID 1580: Plug memory leak. 2006-04-09 19:37:50 +00:00
bouyer
aab0004b68 Add support for ACPI in xen-3 dom0 support. We can now boot a xen-3 dom0
kernel with a default xen comamnd line.
2006-04-09 19:28:00 +00:00
christos
c1cd33addf Coverity CID 2331: Plug memory leak. 2006-04-09 19:27:22 +00:00
bouyer
5086e476d2 #if out read_frontend_details() for now, so that it compiles with DOM0OPS. 2006-04-09 19:25:50 +00:00
christos
5d96bf2cf0 Coverity CID 2333: Fix memory leak. 2006-04-09 19:21:26 +00:00
christos
bd21f84917 Coverity CID 1253, 1254: Don't assign the return of read or write to size_t.
It will never be negative.
2006-04-09 19:12:17 +00:00
christos
f5a5211062 It is silly to creat() and close a file just to stat it. open/fstat/close
instead checking for errors. From Coverity CID 1276.
2006-04-09 19:06:34 +00:00
christos
5800a5519e Coverity CID 2078, 2079, 2080: Plug memory leaks. 2006-04-09 19:03:32 +00:00
christos
e90cb419e0 Coverity CID 2355: Checking event for NULL is supefluous; restructure the
code to make this obvious.
2006-04-09 18:57:10 +00:00
christos
347d6ce9be Pass lint. Also fix errx/err confusion. 2006-04-09 18:54:28 +00:00
christos
61894ae043 Coverity CID 894: Avoid NULL dereference that cannot really happen. 2006-04-09 18:47:49 +00:00
christos
9d0203193c Pass lint. 2006-04-09 18:45:19 +00:00
christos
eb8f5ea98d Coverity CID 1090: Only check suser if we have a process context. 2006-04-09 18:33:43 +00:00
jschauma
2871f9db99 document that VIS_CSTYLE encodes space (SP 040) as '\s'. 2006-04-09 15:24:34 +00:00
tls
3b526da7d6 bsd.lib.mk used MKDEBUG, but nothing defined it. Fix this. 2006-04-09 04:21:27 +00:00
christos
2731b15f5e fix debug build 2006-04-09 02:52:20 +00:00
christos
1c364e3284 Add MKDEBUG and the ability to build debugging versions of the libraries. 2006-04-09 01:52:06 +00:00
christos
5bba7270fa fix debugging printf format. 2006-04-09 01:36:51 +00:00
tsutsui
106e914ccd Replace some magic numbers with macro. 2006-04-09 01:24:05 +00:00
tsutsui
1fc83a9af6 Remove declaration for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:20:06 +00:00
tsutsui
9c7179ce5d Remove declarations for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:18:14 +00:00
christos
ac579202bd fix debug build. 2006-04-09 00:49:55 +00:00
christos
98527081b1 make debug build work. 2006-04-09 00:44:40 +00:00
wiz
498c64811f Note that -v is broken in this version. 2006-04-08 23:56:39 +00:00
riz
2d877b926c Add NetBSD RCSIDs 2006-04-08 23:41:46 +00:00