162588 Commits

Author SHA1 Message Date
christos
961c73981f From Anon Ymous:
- general whitespace, lint fixes, error checking
- document the exit status of the command per POSIX
- use the shared with su group adding utilities.
2007-10-17 21:07:49 +00:00
christos
40d5720e00 From Anon Ymous:
- general cleanup [e-funcs, lint fixes, exit values, more error checking]
- add the ability to change the primary group group as login:group, or :group
  *disabled*, until it is discussed.
- remove krb4 code since there is no more krb4 code in the tree.
- also make the old su behave like the pam su: su to the same user, does
  not ask for a password.
- split out shared code into a separate file.
2007-10-17 21:05:39 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
tls
18c80b6525 RCS IDs 2007-10-17 18:47:59 +00:00
tls
13d3c473b0 Fix two memory leaks noted by Coverity (CID-4694, CIT-4695) and use
SIMPLEQ_FOREACH where possible.  Patch from Arnaud Lacombe.
2007-10-17 18:43:46 +00:00
he
663275b41c Fix typo: in disk_init() call: fd -> sc. 2007-10-17 17:58:56 +00:00
he
b68a467e51 Correct the order of the arguments to disk_init(). 2007-10-17 17:57:11 +00:00
ad
55ec699f95 Fix reversed args to memset. From Iain Hibbert. 2007-10-17 17:50:07 +00:00
ad
155ff6bf05 Make it build without IPL_SERIAL. 2007-10-17 17:44:19 +00:00
ad
fd7e1bf0d1 Sync with ffs: fix ufs_ihashlock / ufs_hash_lock deadlock.
From Sverre Froyen.
2007-10-17 17:34:25 +00:00
ad
c90404d176 Match amd64:
-#if defined(_KERNEL) || defined(_LKM)
+#if defined(_KERNEL)
2007-10-17 17:33:22 +00:00
ad
933b05e877 Use __SIMPLELOCK_LOCKED_P(). 2007-10-17 17:22:19 +00:00
ad
6d904cb986 Reapply rev 1.262 and add a comment about it. 2007-10-17 17:20:41 +00:00
pooka
b16ab0b2da Compile most genfs routines directly out of the kernel sources.
Move special I/O routines to genfs_io.c to mirror kernel naming.
2007-10-17 16:48:16 +00:00
pooka
735dd21e07 Split I/O-related routines (getpages, putpages, etc.) which are heavily
tied to uvm out of genfs_vnops into genfs_io.c
2007-10-17 16:45:00 +00:00
reed
15823ba9ad Document .htpasswd / HTTP "Basic" authentication support.
Update date of man page too.
2007-10-17 13:55:46 +00:00
reed
7c5821fbe4 Fix typo in EXAMPLES (unknown service).
While there mention inetd.conf(5) again (since in a new section of man page).
2007-10-17 13:33:18 +00:00
reed
dbfaed2362 Fix typo on Makefile which causes HTTP Authentication support
to not be used.

Now fix auth-bozo.c to not have warnings "may be used uninitialized"
and pointer targets "differ in signedness".
2007-10-17 13:27:19 +00:00
billc
be65260f34 Populated a few popular ones. 2007-10-17 07:22:14 +00:00
wiz
313b8a7f85 gdb-6.7 out. 2007-10-17 06:57:12 +00:00
jld
5f139070d1 If callout_t is to be used, then <sys/callout.h> should be included.
Fixes the build of ifconfig(8), which failed otherwise.
2007-10-17 04:35:34 +00:00
garbled
56452ceddd Fix a missing include noted by Gerald Lee on tech-kern 2007-10-17 00:43:51 +00:00
joerg
bc08b9a85d Make the check for a working RNG a bit more aggressive. Try to read
10 samples and bail out if there was a timeout to get either of those
within 10ms or if they are all 0xff. Both are good indicators of a
missing RNG.
2007-10-16 22:53:11 +00:00
reed
ca8ed3ab02 Remove extra period. 2007-10-16 22:50:01 +00:00
joerg
926fafca19 Exploit that only Intel devices are matched and all devices do the same.
This saves two levels of indentation for the main body, making it more
readable. Don't hide the error for disabling the RNG under DIAGNOSTIC,
verbose is enough. Use aprint_*_dev.
2007-10-16 22:29:08 +00:00
joerg
55e50c10e7 Use callout_setfunc/callout_schedule instead of callout_reset.
Use mstohz for the calculations.
2007-10-16 21:06:09 +00:00
joerg
1e1c64c041 Inline callout_t in struct in6_multi. This fixes a number of possible
memory leaks. Explicitly destroy the callout before freeing it.
Use callout_setfunc/callout_schedule instead of repeating it for
callout_reset.

Bump NetBSD version to 4.99.34 for kvm users.
2007-10-16 20:31:33 +00:00
joerg
eb11af29b5 Merge 1.34.22.7 from jmcneill-pm:
Next attempt at trying to fix the irregular interrupt storms on my
Thinkpad: when we find a PCI Express device, check the list of
notification events and if any are sets, clear them. We can't handle
them ATM anyway.
2007-10-16 18:27:00 +00:00
joerg
7f01b64cf1 Merge 1.103.22.4 from jmcneill-pm:
Decode capabilities for PCI-PCI bridges as well.
2007-10-16 18:25:53 +00:00
christos
a9a5cf56c3 Don't fail to produce the argument vector if the program has modified it
by deleting arguments. This is a popular practice, and failing means that
ps(1) prints (programname). For example this is what XtOpenDisplay() with
-geometry. This used to work before 2.0H, and the behavior is allowed and
hinted by POSIX. Found out by Anon Ymous.
2007-10-16 16:10:59 +00:00
christos
e221af6ac2 - fix comment sentence capitalization.
- whitespace cleanup.
No functional changes.
2007-10-16 16:05:50 +00:00
he
917131a2cf When checking for the length of the user name, check against the size
of the correct field.  Fix provided by Bernhard Moellemann in PR#37137.
2007-10-16 15:37:32 +00:00
ad
84a6749ef2 Note that libpthread_dbg needs to be checked after making changes to
libpthread.
2007-10-16 15:21:54 +00:00
yamt
b79fded28d use mremap for huge -> huge realloc.
fix PR/31425 (Nicolas Joly) and possibly PR/36175 (Brian de Alwis).
2007-10-16 15:12:16 +00:00
ad
bc9419f99a Crank libpthread_dbg major. 2007-10-16 15:11:27 +00:00
ad
f1b2c1c4c9 ... but preserve the linked list, for the debugger only. 2007-10-16 15:07:02 +00:00
ad
9472415c5e Remove stuff that is no longer useful. 2007-10-16 15:06:11 +00:00
kiyohara
3c75d069ac Whenever writing once, m_adj() is called.
Do not call m_adj() by 0 when it is "rlen==m_len" and is not empty in the
  buffer.
Must call m_adj().
2007-10-16 13:47:17 +00:00
ad
9583eeb248 Replace the global thread list with a red-black tree. From joerg@. 2007-10-16 13:41:18 +00:00
simonb
198e82a3b8 Recognise the R2000A cpu as found in some pmaxen.
From Dennis Grevenstein on port-pmax@.
2007-10-16 12:19:19 +00:00
pooka
8215b8c2bc Close file handles if opencount drops to zero instead of closing
them if it does not drop to zero, i.e. fix a pretty obvious bug.
2007-10-16 10:53:02 +00:00
joerg
545f4d8d88 Sync callout(9) man page with bool changes. 2007-10-16 09:17:44 +00:00
tls
215e50961e Add httpd to the build. Add _httpd to passwd and groups and postinstall.
Add /var/www to mtree, add example line to inetd.conf.
2007-10-16 02:47:12 +00:00
tls
1d63366b2d Get httpd ready for inclusion in build. 2007-10-16 01:31:03 +00:00
tls
ba6eac50dd Move bozohttpd.8 to httpd.8 2007-10-16 01:29:44 +00:00
tls
60dbe74596 Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
2007-10-16 01:14:01 +00:00
wiz
ceaca18114 Fix syntax error in example. 2007-10-16 00:21:51 +00:00
xtraeme
f2b7f02f51 Remove reference to unexistent cpu(4) manpage. 2007-10-15 20:32:51 +00:00
plunky
f7ac443042 for PRU_ATTACH, we should make sure that so_pcb is not allocated when
there is any error
2007-10-15 18:04:34 +00:00
pooka
1b050f3a07 update usage to match reality. caught by jmcneill 2007-10-15 17:28:13 +00:00