Commit Graph

115220 Commits

Author SHA1 Message Date
nathanw b5665a9b84 Add fields to struct __sfileext to track how many times the lock has been
taken by internal stdio functions, and what the cancellation state was when
the first such lock was taken.
2003-07-18 21:46:41 +00:00
nathanw d271509d77 Add a stub for setcancelstate(). 2003-07-18 21:44:38 +00:00
thorpej 96ea5b9ac4 Rename clock_rtc_config() to todr_attach(). 2003-07-18 21:41:22 +00:00
thorpej 91b8f572a8 Move the prototype of clock_rtc_config() into <dev/clock_subr.h>. 2003-07-18 19:20:55 +00:00
mbw df3fae3530 pk posted that a longstanding MMU problem with sun4c systems has been
fixed.  Benefits primarily stability and SS1, SS1+, and IPC system speed.
2003-07-18 17:56:48 +00:00
nathanw 1c5f5912e9 Synchronize the featuretest set for pthreads stuff to
_POSIX_C_SOURCE >= 199506L, _XOPEN_SOURCE >= 500, or _NETBSD_SOURCE.
2003-07-18 17:54:35 +00:00
fvdl e4f5334745 Unlock kq_lock in the case of a timeout. 2003-07-18 17:34:07 +00:00
tls dacf9875c8 Allow redefiniton of KERNBASE. Because the type of this constant is
different for locore.S and the rest of the kernel, if you redefine
it from the default value, you must also define KERNBASE_LOCORE -- this
is ugly, but so is having the same constant with two different types
depending where in the kernel it's used...
2003-07-18 17:33:05 +00:00
lukem 1313a78187 fix default location of TOOLDIR 2003-07-18 16:30:48 +00:00
lukem d64f87e97a Consistently check MK* variables against "no"
(e.g.,  ${MKFOO} != "no"  instead of  ${MKFOO} == "yes" )
2003-07-18 16:18:28 +00:00
nathanw 1edfb0e2b3 Add the feature-test wrapping to the inclusion of <pthread_types.h> (I
*swear* I remembered committing this yesterday.....)
2003-07-18 16:09:33 +00:00
lukem 98e8a6d142 #include <pthread_types.h> instead of "pthread_types.h" 2003-07-18 15:58:43 +00:00
thorpej 82b9567e93 Include <pthread_types.h> if compiling for userland. 2003-07-18 15:54:14 +00:00
thorpej b65cdc9721 Back out previous; it is not correct. 2003-07-18 15:50:01 +00:00
lukem bf913f806c MK{MANZ,UPDATE,UNPRIVED} overhaul 2003-07-18 15:48:48 +00:00
lukem 2dbce57996 overhaul to match reality, adding a bunch of missing MK* and other variables. 2003-07-18 15:44:50 +00:00
lukem e928ba19c8 move MKCATPAGES info. add MKHOSTOBJ info 2003-07-18 15:44:07 +00:00
jschauma 749194779b Add SMP and NUMA. 2003-07-18 15:11:23 +00:00
wiz 86e9cd6e52 Add a cast to avoid an integer overflow.
Fixes playing (at least some) DVDs.
Patch from Tsubai Masanari (tsubai at iri.co.jp) -- thanks a lot!
2003-07-18 14:33:54 +00:00
fredb 93dcb2eb39 Regenerate with autoconf 2.57. 2003-07-18 13:51:44 +00:00
fredb c0326dd8e8 As discussed briefly on tech-toolchain, AIX doesn't have "u_long",
so add a check for that. Partial fix for PR toolchain/22177.
2003-07-18 13:45:15 +00:00
dsl 195bdd51af Tested version of code to get local directory (I'd got waylaid by etc.old)
Messages for net.c changes.
2003-07-18 10:29:36 +00:00
dsl 0bf9a036c9 Remember which sets we sucessfully installed (so we know when to
restore /etc).
Improve handling of absent directories in get_via_localdir.
distname[] isn't needed (twice)
2003-07-18 09:49:18 +00:00
dsl da36837548 Copy /etc.old back to /etc if it was saved, but we didn't actually
install the ETC set.
2003-07-18 09:46:11 +00:00
dsl 6e575ea980 Network info has gone to net.c and is now static.
Stuff to put /etc back in upgrade aborted.
2003-07-18 09:44:20 +00:00
dsl 9a9b340a64 Pull local data here and make it static.
Remove one or two fixed length strings (use malloc etc instead).
Change a lot of 'if (strlen(x) == 0)' to 'if (x[0] === 0)'.
Let user skip network config if any non-loopback interfaces are UP.
Always free() buffer allocated by collect(), could be a massive leak.
Whitespace changes.
2003-07-18 09:42:59 +00:00
dsl 6684cadd5e Remove some fixed length strings.
Do limited filename globbing.
2003-07-18 09:34:42 +00:00
lukem f46e3353de for now, pull in <pthread_types.h> to get pthread_t for the
pthread_kill() prototype to work ...

this is probably not the correct long term solution, but the tree is
currently broken without it...
2003-07-18 08:53:42 +00:00
lukem 6d22656bee Update for the MKUNPRIVED/MKUPDATE changes. 2003-07-18 08:38:10 +00:00
lukem 1553f8efd9 Replace UNPRIVED=yes with MKUNPRIVED=yes.
Replace UPDATE=yes with MKUPDATE=yes.
2003-07-18 08:30:07 +00:00
lukem f134f3dc38 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
2003-07-18 08:26:01 +00:00
itojun 74182febed remove #if 0 portion 2003-07-18 06:45:33 +00:00
tron c658ee6379 NetBSD-sparc supports SMP for a while now. 2003-07-18 06:33:45 +00:00
simonb 460c3dca02 Reflect reality a little better. 2003-07-18 05:18:19 +00:00
lukem 87610a53a9 whitespace cleanup 2003-07-18 04:04:03 +00:00
lukem 4d63406463 Add MKMANZ; if not set to "no", compress the manual pages at installation time.
This replaces the previous  .if defined (MANZ) behaviour, although the latter
will set MKMANZ=yes for compatibility purposes.

Don't bother with -P-bou in TOOL_ROFF_HTML; it doesn't appear to be
necessary with groff 1.19.

Fix NOHTML implementation to be consistent with other NOxxx / MKxxx
variables, and expose the user-tweakable MKHTML.
2003-07-18 02:52:51 +00:00
lukem 7a719d0e4e rebuild with new groff 2003-07-18 02:19:55 +00:00
lukem f994b2252e doc2html works here now, so remove NOHTML 2003-07-18 02:18:57 +00:00
lukem 82541d904a doc2html works here now, so remove NOHTML=
(not that it worked here, because NOHTML= was provided *after* <bsd.own.mk>...)
2003-07-18 02:18:49 +00:00
lukem 5df8689a0e grotty from groff 1.19 needs -c for -b, -o or -u to work.
This is damn annoying, because it means the old method of "groff -P-bou"
won't suppress escape codes, unless -P-c is also provided.
(Mmm, quality software...)
2003-07-18 02:15:17 +00:00
lukem a5a6b5f67d fix warning found by new groff 2003-07-18 01:55:08 +00:00
matt 6783111f9f Elimindate MD setrunqueue/remrunqueue (which were out-of-date compared to
the canonical versions in kern_synch.c).  Define __HAVE_BITENDIAN_BITOPS
so the canonical versions will be used but will store priorities in the
desired (MSB) order for PowerPC (which allows the use of the cntlzw (count
leading zeroes, word) instruction in locore_subr.S to find the proper
priority).
2003-07-18 01:08:11 +00:00
matt 5819fb160d Elimindate MD setrunqueue/remrunqueue (which were out-of-date compared to
the canonical versions in kern_synch.c).  Define __HAVE_BIGENDIAN_BITOPS
so the canonical versions will be used but will store priorities in the
desired (MSB) order for PowerPC (which allows the use of the cntlzw (count
leading zeroes, word) instruction in locore_subr.S to find the proper
priority).
2003-07-18 01:08:10 +00:00
matt 0c7a583f3a Add support for storing the priority mask in sched_whichqs in MSB order
(enabled by defining __HAVE_BIGENDIAN_BITOPS in <machine/types.h>).  The
default is still LSB ordering.  This change will allow the powerpc MD
implementations of setrunqueue/remrunqueue to be nuked.
2003-07-18 01:02:31 +00:00
lukem be22974820 deprecate; i replaced this with distrib/common/sunbootcd.sh a while ago 2003-07-18 00:37:35 +00:00
lukem e8de180da8 reorder to be a bit more useable (imho) 2003-07-18 00:33:18 +00:00
nathanw 86b9f2f3b1 Now that sys/types.h defines pthread_t, the forward structure
declaration for pthread_st isn't necessary (and is why I missed that
it was necessary before, as I already had the sys/types.h change in my
local tree).
2003-07-17 23:04:43 +00:00
bjh21 e3167f6ca1 Change !_ANSI_SOURCE to _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE. 2003-07-17 22:39:43 +00:00
nathanw d5ef0c1f39 Adapt to structure name changes. 2003-07-17 21:14:49 +00:00
nathanw 1a9edd35f7 Simplify pthread__stackalloc() by using the newish aligned-mmap()
feature.
2003-07-17 21:07:39 +00:00