Commit Graph

132008 Commits

Author SHA1 Message Date
ws
4aa5370862 Use correct stack offsets after pushing values onto it. 2004-12-01 01:08:18 +00:00
peter
f3d63aa1de Remove duplicated 'libedit'.
ok wiz@
2004-12-01 00:07:37 +00:00
peter
192aae95b5 Add missing LIBRARY section.
ok wiz@
2004-12-01 00:06:46 +00:00
perry
e45cb21451 Mike Cheponis noted that I didn't list the edition of Knuth that the
page number refers to. Fixed.
2004-12-01 00:03:45 +00:00
nathanw
bb630a5378 Add PSL_T to PSL_USER; it's fine for a program to want to trap itself. 2004-11-30 22:41:57 +00:00
martin
5b98d0afc6 Declare functions with the proper type they return. While there, replace
some strange type names with their C99 equivalent.
This avoids sign extension of 32bit fields (like the file size) on 64bit
archs.
Based on a patch supplied by Olaf 'Rhialto' Seibert in PR kern/28471;
should fix that PR.
2004-11-30 21:36:28 +00:00
nathanw
45204d9ceb Punt to setcontext() system call if the PSL_T bit (single-step trap)
is set, so that the single-step trap happens in the thread's context
and not in the middle of _setcontext_u.

XXX might be able to do something here with iret, too, but it needs
more testing.
2004-11-30 21:05:01 +00:00
wiz
c6dfed6dc5 Sort options in SYNOPSIS, bump date for -x, and misc. cleanup. 2004-11-30 10:41:20 +00:00
wiz
53693aebe6 Add -x to usage and to getopt options string (hi Jim!). 2004-11-30 10:39:53 +00:00
grant
de8ed3cda9 regen 2004-11-30 05:02:57 +00:00
grant
63ea06b029 add ITE 8212 IDE controller. 2004-11-30 05:02:37 +00:00
christos
0146482549 Clonify bpf. I am not changing /dev/bpfX -> /dev/bpf until all userland
programs have been fixed.
2004-11-30 04:28:43 +00:00
christos
31c81b28f5 Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
    - EDUPFD (used to overload ENODEV)
    - EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
   EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
   fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat
2004-11-30 04:25:43 +00:00
christos
2b9d36c223 PR/28473: Jed Davis: telnetd loses data and corrupts crypto state due to
typo in use of poll(). There was an && instead of an & (hi charles)
2004-11-30 04:13:43 +00:00
christos
67a132acdc PR/28474: Geoff C. Wing: write does some weird checking and can't handle ptyfs 2004-11-30 04:08:38 +00:00
briggs
87dda823cf Minor tweak to add newline to an aprint_error(). 2004-11-30 03:08:27 +00:00
jwise
5b40cd9b6b With the recent fixes to cpp(1) and calendar(1), it is now safe to turn
on run_calendar by default.  Include a note advising users who replace
/usr/bin/cpp with a non-basesrc version to turn this off.
2004-11-30 02:03:57 +00:00
jwise
69de851d35 Now that cpp(1) understands the CPP_RESTRICTED environment variable, set
that before invoking cpp -- and provide (with appropriate man page warnings)
an option to run cpp without this set.
2004-11-30 01:54:17 +00:00
jwise
48f45412af As discussed on tech-toolchain@netbsd.org, make cpp refuse to attempt to
parse a #include'd file which does not pass S_ISREG() if the environment variable
CPP_RESTRICTED is set.

This is primarily intended for use by programs such as calendar(1) which
use cpp to parse untrusted user files -- without this change (and the corresponding
change to calendar(1)), any user can cause a denial-of-service for the daily
calendar -a run by #include'ing a named pipe.

Many thanks to christos@netbsd for his help in polishing this.
2004-11-30 01:51:13 +00:00
wiz
68f709428b Bump date for new calendar searching behaviour; new sentence, new line. 2004-11-29 20:22:31 +00:00
jwise
fe72e40594 Note switch to searching home directory, and add a note to the COMPATIBILITY
section describing how to get the historical behavior.
2004-11-29 18:33:45 +00:00
jwise
e7f10875fa On further thought, always search for calendar files in the caller's home
directory when called directly (this was already done for calendar -a, by
definition).

Old behavior is still available by setting "CALENDAR_DIR=.".
2004-11-29 18:25:14 +00:00
jwise
9720571221 Note new behavior for finding calendar files when none specifically given. 2004-11-29 17:58:07 +00:00
jwise
d728174e30 Instead of searching only for a calendar file named `calendar' in the current
directory, use the first found of:

	./calendar
	./.calendar
	/etc/calendar

Note that currently only the first found of these is used (so that users may
override a system calendar placed in /etc if desired).  Users who want can always
use #include to continue the chain...
2004-11-29 17:03:43 +00:00
ginsbach
e9042901ff rresvport_af() should return -1 when the address family is unsupported
and set errno accordingly.
2004-11-29 17:00:06 +00:00
skrll
9fc7f0ee07 Add in VT switching support for NetBSD/cats. 2004-11-29 16:49:18 +00:00
jmc
355c871f88 Fix the way this checks the object files so it works correctly with make -j 2004-11-29 15:19:26 +00:00
atatat
f9bdf3cd08 Remove the digits() function and simply set va_bytes and va_size to
zero in ptyfs_getattr().  There's no reason to make them something
else and no other devices (except for disk devices) report anything
other than zero here, so why should we be different?
2004-11-29 13:55:59 +00:00
yamt
7acc501dd3 splvm should be enough to protect rnd sample queue and rnd_mempool
as you can't use rnd_add_uint32 safely with >IPL_VM anyway.
2004-11-29 13:33:37 +00:00
agc
19642544a8 Add some suggested projects (from Christos Zoulas). 2004-11-29 09:48:03 +00:00
lukem
77966ade4d WARNS=3 2004-11-29 05:02:52 +00:00
lukem
7fde79333c Improve printing of various items to be more human-readable.
Display all the supported databases in the usage.
2004-11-29 05:02:40 +00:00
atatat
fde0dde8b2 Make ps understand "-tpts/4" by assuming that ptyfs is mounted on
/dev/pts and that the '/' immediately preceding the digits does not
need a 'p' in front of it (ick, kludge_oldps_options()).
2004-11-29 04:44:10 +00:00
lukem
6d8ce32cbf Implement "services" 2004-11-29 04:13:15 +00:00
ws
739e2052fd We just checked that the parent is the root, not current.
So we better determine the bus number of this parent node.
Now, MPACPI on my Opteron board finally correctly determines its
PCI/AGP busses even without the help of the AMD64 Address Map
support implemented in my local tree.
2004-11-29 00:07:22 +00:00
thorpej
961245b8bf Sync with i386 bus_dma. 2004-11-28 17:36:27 +00:00
thorpej
7a60e77293 bus_dmamap_load_mbuf(): Skip zero-length mbufs.
kern/24811
2004-11-28 17:34:45 +00:00
skrll
4979a4d3be Re-order the inclusion of opt_pfil_hooks so PFIL_HOOKS gets set properly. 2004-11-28 17:16:10 +00:00
bouyer
9958df25fd Add RAID support, from Shin'ichiro TAYA on current-users@. 2004-11-28 14:34:31 +00:00
martin
e07d3f82e7 Add a pfil(9) hook to get notified when interfaces detach.
When the ethernet interface of a pppoe pseudo-interface detaches, remove
the association and mark the pppoe interface down.
This should fix PR kern/28375.
2004-11-28 11:44:36 +00:00
jmc
496146dda9 Work around the fact opaque_t gets defined by sys/properties.h and could be
pulled in via MD includes from sys/param.h.
2004-11-28 11:15:26 +00:00
jmc
9bfe9b9970 Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc
ca09268a5e Reduce pci pullin's to just pcibusprint.c. This doesn't attach pci in a way
config will include any of the generic pci code and all the current code
needs is pcibusprint for now. XXX this really needs more careful looking over
but does allow ofppc to build clean again.
2004-11-28 10:01:25 +00:00
jmc
4a8d169c08 Just include files.wscons since it has some defparams needed by includes
that get picked up from rcons files. Note the fact we're assuming files.wscons
will include files.rcons. Fixes builds on pmax.
2004-11-28 09:05:49 +00:00
thorpej
29671d6616 Fix the fcntl entry points; cmd is a command, not the flags themselves.
Pointed out by Christos (he wrote the broken code originally, and I copied
it to another file later :-)
2004-11-28 07:44:05 +00:00
jmc
c7464d49db Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
jmc
9da9dc64b7 Add heapsort to libnbcompat 2004-11-28 06:57:14 +00:00
christos
a0d7588f62 Simplify code a bit, and whitespace. 2004-11-28 05:40:47 +00:00
christos
694d5b6a91 We don't need to include bpfilter.h 2004-11-28 02:37:38 +00:00
lukem
3d10694e7c "doc" SUBDIR needs config_local.h from "libamu", so reorder former after .WAIT. 2004-11-28 01:11:17 +00:00