Commit Graph

142856 Commits

Author SHA1 Message Date
uwe 08c90217fd Use NULL, not 0 for null pointer.
Fix #else/#endif trailing comment.
Use explicit "continue" for the body of the infinite loop.
2006-01-20 04:30:03 +00:00
uwe 9e88e2f24a Use uint32_t. Declare jump and boot functions noreturn. Move scratch
variable to outputs of the asm statement that tweaks sr, so that gcc
doesn't insist on it being initialized.  Move boot function template
closer to instantiation.  Misc prettification.
2006-01-20 03:55:55 +00:00
uwe cebdea24e0 Use uintN_t. 2006-01-20 02:47:30 +00:00
elad 3281cee076 Default socket owner to operator:operator. 2006-01-20 00:21:35 +00:00
cube a7a7ef8a54 ktrace-lwp fallout for SYSCALL_DEBUG. From Vasily Levchenko. 2006-01-20 00:10:33 +00:00
elad 7db6fc6be2 xref qsieve(6). 2006-01-19 23:31:09 +00:00
xtraeme 10aed9d2fa * Show Advanced Power Management extended features from CPUID.
* Split out the code that checks for CPUID 0x80000007 (powernow)
  into another function.
* Cleaned up the code a bit.

More to come...

cpu0: AMD PowerNow! Technology.
cpu0: AMD features: TS FID VID
cpu0: available frequencies (Mhz): 798 864 931 997 1064 1197
cpu0: current frequency (Mhz): 1197

The frequency values are not correct (yet).

Thanks to Rhialto for testing and provide feedback.
2006-01-19 23:28:12 +00:00
elad d4bdf04e28 Descend to moduli too. 2006-01-19 23:25:19 +00:00
elad 0e71d2c846 Add qsieve and qsafe, two programs used for generating the moduli file.
These were written by William Allen Simpson and submitted in PR 21983,
and are added with minor adjustments and nits from christos@ and myself.

Approved by christos@ and groo@.
2006-01-19 23:23:58 +00:00
garbled 19fe295582 Fix some minor buglets in wump:
1) Don't put two pits in the same room.
2) Don't put bats and pits in the same room.  (you will never hit the bat)
3) Don't start the player in a room with a pit or bad, if possible.  Some
caves are so crowded the loop may go on forever, so we give up after 100
tries to put them in a safe location (as long as it's not with the wumpus).
4) Make the manpage reflect reality WRT the default number of rooms.

Bug #3 pointed out by salo.
2006-01-19 21:20:35 +00:00
garbled c2c322c5a5 Apply patch from PR bin/23836 cmp did not correctly parse skip arguments
given in hex or octal, as the manpage states it can.
2006-01-19 20:44:57 +00:00
garbled b2fc76e5cb Apply patch from PR bin/26501 to fix hang in wump if you play too many
games in a row.  Also modify change made in rev 1.18 to work correctly.
take_action() returns 1 if the player dies, causing the game to allways
exit after any death, now the game correctly asks if the player would
like to play again.
2006-01-19 20:15:31 +00:00
garbled fad94e160d Fix PR bin/30272 Lpd would create the tempfile "remotexxxxx" and send
that, but then fill out the control file with the "df" filename.  Fix by
sending the remote file with the "df" filename, as suggested by Robert
Vargason on tech-userlevel.  lpd -r now works properly with an if (input
filter)
2006-01-19 19:17:59 +00:00
wiz 7ddd0cc392 error() already adds a newline at the end, so do not provide one
in its format string.
2006-01-19 17:50:33 +00:00
christos 349408700d PR/32572: John Kohl: xdr_rec.c missing a bugfix for an improper security check
The correct way to check for a zero record length is to check for it
without the LAST_FRAG marker in it, since it's legal to send a LAST_FRAG
marker with 0 bytes of data.
[This should be pulled up to 3.0]
2006-01-19 16:40:44 +00:00
he 061762c234 Wrap the definition of cg14_set_rcons_luts() in an #ifdef RASTERCONSOLE,
to allow the INSTALL kernel to build, as it's unused there.
2006-01-19 15:09:57 +00:00
yamt a76cc9d9c4 - mmrw, mmmmap: reject accesses to unknown pa if securelevel > 0.
- mmmmap: remove physmem check.  it was wrong and superseded by the above.
- mmmmap: remove suser() check.  there's no point to limit the operation
  to root here, given that the almost same thing can be done by
  normal read and write.
2006-01-19 13:34:11 +00:00
he 1f8841dea3 Make this compile again by ensuring that we don't cast away the volatile
qualifier.
2006-01-19 09:32:37 +00:00
uwe b5b426b4a5 Bump date to welcome back # operator. 2006-01-19 00:19:13 +00:00
uwe 74fe467153 Widen "Value" column in the reboot desccription to accomodate RB_POWERDOWN.
Make the table aligned properly in PostScript output.
2006-01-19 00:12:21 +00:00
uwe 9457018f06 Reinstate description of # operator lost in an editing accident.
While here, fix spacing in the description of possible identifier syntax.
2006-01-19 00:00:27 +00:00
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