Commit Graph

142885 Commits

Author SHA1 Message Date
garbled
2d58d3d4c7 If we set SIGCHLD to SIG_IGN then any wait()'s on the child processes will
return -1.  This causes filters to fail because we get a value for
child_pid we weren't expecting.  Set SIGCHLD to SIG_DFL instead to clear
the reapchild setting when forking the child lpd.
2006-01-18 23:17:38 +00:00
garbled
9ca158e136 change return(0) to return(rv). We went to all the trouble to calculate the
return value, we might as well return it. (fixes lpq -a, and probably lpd)
2006-01-18 19:11:25 +00:00
chs
5570661cd8 in amap_alloc(), only put the amap on the list of amaps if we succeeded
in allocating it.
2006-01-18 17:03:36 +00:00
reinoud
6e09afa9be vfs_mountedon() can only and only handle special device nodes and will
otherwise generate an UVM trap or will access random memory. This is due to
the dereference of vp->v_specmountpoint that is really
vp->v_specinfo->si_mountpoint. The field v_specinfo is multiplexed with
other structs in the vun union in struct vnode like struct socket.

The patch adds a sanity check for accessing the specinfo fields by only
allowing VBLK nodes to be passed. In theory also VCHR could be valid since
its also a special node though mounting is only done on VBLK so be strict.

Ok'd by yamt.
2006-01-18 14:26:55 +00:00
christos
0149d50904 Apply patch from FreeBSD-SA-06:05. This avoids the overflow during the
lenght calculation phase instead of just growing the buffer like the older
patch did. I am leaving the bigger buffer too for now since it does not hurt.
2006-01-18 14:01:16 +00:00
is
c5b9cc482c Instead of abusing the function md_prep_label(), create a new (optional)
md_view_labels() and a variable to mark its availability, so checking of
the available disklabels can be done before the root device is chosen.
Suggested by Martin Bertelsmann.
2006-01-18 13:39:05 +00:00
is
1719c90222 Only provide uncompressed tools, so that they can be run directly
from CD-ROM, and buggy CD-ROM file systems aren't confused by two
tools with the same prefix.
2006-01-18 13:19:01 +00:00
uwe
ed89efb8bf Define indp_t as signed int32_t, like ffsv1.c does. 2006-01-18 02:52:22 +00:00
uwe
f60eb26259 Prune CPPDEF_LIST from unnecessary defines. 2006-01-18 01:08:57 +00:00
uwe
bcd9f83758 We no longer use printf from libsa, so we don't need to provide putchar.
Don't include <stand.h> that we thus no longer need.
Include <winbase.h> instead on <windows.h> - it's enough for what we use.
2006-01-18 01:06:37 +00:00
uwe
160de00800 Include <malloc.h>. Spell "unsigned int" in full. 2006-01-18 01:05:02 +00:00
uwe
2467db8264 Prune stuff from libsa that we don't need. 2006-01-18 01:04:04 +00:00
uwe
d9f3e59eb8 zlib doesn't care about __daddr_t.
Nothing cares about __signed.
Move common/dist/zlib up in the list of include dirs.
2006-01-18 00:11:27 +00:00
uwe
2565c191eb Remove duplicate CPPDEF_LIST. 2006-01-17 23:39:53 +00:00
garbled
d1a9ef55c4 per PR bin/12958 change buf[MAXPATHLEN] to buf[BUFSIZ] to avoid potential
future problems if either should change.
2006-01-17 19:41:49 +00:00
garbled
68a050d9cc Document "pf" postscript filter capability 2006-01-17 19:16:51 +00:00
jmmv
67319a158c Note the removal of the tb(4) driver which happened on past December 20th. 2006-01-17 19:14:45 +00:00
garbled
517b1ba160 Update a comment regarding control file WRT "o" 2006-01-17 19:12:17 +00:00
garbled
fae257a066 Fix PR bin/14247
This PR claims that MacOSX 10.1 cannot print postscript files to a NetBSD
lpd because the mac will tag the file with an "o" for postscript, which
we do not handle.  Rather than simply mapping o -> f as was done in the
PR, or mapping o -> l as was done in FreeBSD, I have implemented full
support for the "o" option.  If a postscript filter does not exist in the
printcap file however, it will default to "l" handling.

With this change, you can now specify a "pf" or postscript filter in your
printcap, and have it handle postscript files sent to it with "lpr -o".

The "o" format in lpd is specified in RFC1179 as being a valid format flag.
2006-01-17 19:11:12 +00:00
rpaulo
2b8fd263b2 Add missing authors and history sections.
Ok'ed by Jason Thorpe.
2006-01-17 19:09:15 +00:00
jmmv
faac4d565d The tb(4) driver is gone, so should be the manual page. 2006-01-17 19:08:28 +00:00
garbled
e76be65112 in ckqueue() if "sd" is not an existing capability, than sd will be
uninitialized, causing the free() in out: to explode.  Initialize sd to NULL.
2006-01-17 18:38:12 +00:00
thorpej
f69c907605 Add a firmload(9) manual page. 2006-01-17 17:29:28 +00:00
chs
3db49f0e25 add fault-protection in sbc_pdma_in() like in all the other PDMA functions.
fixes PR 9679.
2006-01-17 16:41:29 +00:00
christos
4dde6a6d1b Make sure that breq is also cleared (from Xin LI) 2006-01-17 13:23:02 +00:00
is
42796049d0 C versions of non-IEEE round() / roundf(). Alas, using the VAX
cvtrdl; cvtld doesn't work for big numbers.
2006-01-17 13:16:08 +00:00
xtraeme
e2aca22c8e From OpenBSD:
--
Add a workaround for VIA EHCI controllers which, under load, signal qTD
completion before they have performed writeback from the overlay qTD.

This condition would exhibit itself as a umass stall that never recovers.
--

This fixes the problem reported by Thomas Klausner on current-users@:
http://mail-index.netbsd.org/current-users/2006/01/17/0000.html
2006-01-17 12:30:00 +00:00
peter
5d1968b1c0 Include netinet/in.h, for compatibility with OpenBSD (we #ifdef'ed out a
header which includes netinet/in.h on OpenBSD).

Pointed out by Thomas E. Spanjaard.
No objection from yamt@.
2006-01-17 12:24:53 +00:00
yamt
d91bf59ce6 dmoverioopen: add a missing simple_lock_init(). 2006-01-17 12:10:51 +00:00
is
e08ae477d9 Oops - round() is supposed to return double, not integer. 2006-01-17 10:39:23 +00:00
thorpej
13f83a7396 Add /libdata, /libdata/firmware, and /usr/libdata/firmware directories. 2006-01-17 06:58:28 +00:00
thorpej
14c13d7969 Conditionalize firmload.c on the firmload attribute. 2006-01-17 06:52:43 +00:00
thorpej
f789b6be70 Add an API for loading firmware images for devices. 2006-01-17 06:08:48 +00:00
christos
d07104a9ce PR/32552: Antonio Bravo: cgfourteen 24-bit support
Original code from der Mouse, posted to the mailing lists by Jakob Menzi.
2006-01-17 04:22:08 +00:00
uwe
589b108660 Nuke libsa and libkern defines from here. 2006-01-17 03:32:10 +00:00
uwe
c498580cc6 Adapt to new zlib. Get rid of proxy zlib.h, we supply proper "-I".
Implement zcalloc/zfree in terms of WinCE functions.
2006-01-17 03:12:29 +00:00
uwe
b674645e95 New zlib doesn't use bzero, so we don't need this hack any more. 2006-01-17 03:09:04 +00:00
uwe
75ad327e11 New zlib is smart enough to not include <errno.h> under WinCE, so this
empty fake one is no longer necessary (old zlib could also do without
one if supplied -DNO_ERRNO_H).
2006-01-17 03:07:19 +00:00
uwe
0d1e222eff Hide plutid_dump() under #ifdef PLATID_TEST. Saves space in the
kernel and avoids printf dependency for hpcboot.
While here, constify its first argument.
2006-01-17 02:50:59 +00:00
uwe
4f6e1f3b52 Adjust to new zlib location. 2006-01-17 02:40:55 +00:00
bouyer
038345f3e8 Add missing ch_ndrive initialisations. Pointed out by Juan RP. 2006-01-17 00:40:49 +00:00
wiz
b3b44f7885 Be a bit more explicit what happens when init_func fails.
After explanation from yamt@.
2006-01-17 00:14:16 +00:00
wiz
f3c03afe5a Sort SEE ALSO. 2006-01-17 00:02:19 +00:00
wiz
a1cc6cb40c Improve English. 2006-01-16 23:58:43 +00:00
christos
ac9c2323d2 regen 2006-01-16 23:00:17 +00:00
christos
a39411c0d7 PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics 2006-01-16 22:59:36 +00:00
cube
10c6a3a4b9 tap(4) depends on arp: it is an Ethernet interface, after all.
Solves PR 32548 by Pawel Chwalowski.
2006-01-16 22:49:23 +00:00
yamt
0541bd8909 add getiobuf.9 2006-01-16 22:32:07 +00:00
yamt
7706432040 note that biodone and biowait don't really belong here. 2006-01-16 22:26:41 +00:00
yamt
b77e625049 add a missing .Ed 2006-01-16 22:14:54 +00:00