dragonfly.git
14 years ago- Use socklen_t
Liam J. Foy [Tue, 3 May 2005 17:39:03 +0000 (17:39 +0000)]
- Use socklen_t

Obtained from: FreeBSD (rev 1.17)

14 years ago- When calling syslog(3), use %m for errno and lose strerror(3)
Liam J. Foy [Tue, 3 May 2005 17:32:23 +0000 (17:32 +0000)]
- When calling syslog(3), use %m for errno and lose strerror(3)

14 years ago- WARNS 6
Liam J. Foy [Tue, 3 May 2005 17:22:01 +0000 (17:22 +0000)]
- WARNS 6
- Remove keyword 'register'
- Cleanup

Submitted by: Joe Talbott <josepht@cstone.net>

14 years agoRemove obsolete patches.
Joerg Sonnenberger [Tue, 3 May 2005 16:00:08 +0000 (16:00 +0000)]
Remove obsolete patches.

14 years agoDon't bother dealing with hidden syscalls, just do it for all.
Joerg Sonnenberger [Tue, 3 May 2005 15:49:17 +0000 (15:49 +0000)]
Don't bother dealing with hidden syscalls, just do it for all.

14 years agoMerge from vendor branch LIBARCHIVE:
Joerg Sonnenberger [Tue, 3 May 2005 14:46:11 +0000 (14:46 +0000)]
Merge from vendor branch LIBARCHIVE:
Sync with FreeBSD. This adds read-only support for zip and ISO9660.

14 years agoMerge from vendor branch BSDTAR:
Joerg Sonnenberger [Tue, 3 May 2005 14:46:11 +0000 (14:46 +0000)]
Merge from vendor branch BSDTAR:
Sync with FreeBSD. This adds read-only support for zip and ISO9660.

14 years agoSync with FreeBSD. This adds read-only support for zip and ISO9660.
Joerg Sonnenberger [Tue, 3 May 2005 14:46:12 +0000 (14:46 +0000)]
Sync with FreeBSD. This adds read-only support for zip and ISO9660.

14 years agoSync with FreeBSD. This adds read-only support for zip and ISO9660.
Joerg Sonnenberger [Tue, 3 May 2005 14:46:11 +0000 (14:46 +0000)]
Sync with FreeBSD. This adds read-only support for zip and ISO9660.

14 years agoSync with FreeBSD. This adds read-only support for zip and ISO9660. vendor/BSDTAR
Joerg Sonnenberger [Tue, 3 May 2005 14:46:11 +0000 (14:46 +0000)]
Sync with FreeBSD. This adds read-only support for zip and ISO9660.

14 years agoMove old locale sources into the attic.
Joerg Sonnenberger [Tue, 3 May 2005 14:23:39 +0000 (14:23 +0000)]
Move old locale sources into the attic.

14 years agognu/usr.sbin and gnu/libexec have been empty for ages, so save us
Joerg Sonnenberger [Tue, 3 May 2005 14:21:31 +0000 (14:21 +0000)]
gnu/usr.sbin and gnu/libexec have been empty for ages, so save us
some microseconds in buildworld.

14 years agoRefine USE_RC_SUBR / USE_RCORDER handling. The install-rc-script target
Joerg Sonnenberger [Tue, 3 May 2005 14:16:04 +0000 (14:16 +0000)]
Refine USE_RC_SUBR / USE_RCORDER handling. The install-rc-script target
should not be defined for bsd.pre.port.mk, since some ports define the
variables after it.

Another-bug-from: Erik P. Skaalerud <erik@pentadon.com>

14 years agoMore spring-cleaning.
Joerg Sonnenberger [Tue, 3 May 2005 08:48:55 +0000 (08:48 +0000)]
More spring-cleaning.

14 years agoMore spring-cleaning.
Joerg Sonnenberger [Tue, 3 May 2005 08:00:41 +0000 (08:00 +0000)]
More spring-cleaning.

14 years agoSpring-cleaning.
Joerg Sonnenberger [Tue, 3 May 2005 07:45:33 +0000 (07:45 +0000)]
Spring-cleaning.

14 years agoMake errno a thread-local variable and remove the __error function.
Joerg Sonnenberger [Tue, 3 May 2005 07:29:04 +0000 (07:29 +0000)]
Make errno a thread-local variable and remove the __error function.
The handling of ceiling violations on mutexes can be improved, it
currently needs two syscalls.

14 years agoRemove PCVT related entries.
Joerg Sonnenberger [Tue, 3 May 2005 07:23:37 +0000 (07:23 +0000)]
Remove PCVT related entries.

14 years agoWe have to allocate the TLS area for _thread_kern_thread too.
Joerg Sonnenberger [Tue, 3 May 2005 07:21:45 +0000 (07:21 +0000)]
We have to allocate the TLS area for _thread_kern_thread too.

14 years agoForgotten major bump.
Joerg Sonnenberger [Tue, 3 May 2005 07:19:03 +0000 (07:19 +0000)]
Forgotten major bump.

Reminder-by: dillon
14 years agoAdjust the upgrade target to remove libraries from /usr/lib that exist in
Matthew Dillon [Mon, 2 May 2005 23:53:47 +0000 (23:53 +0000)]
Adjust the upgrade target to remove libraries from /usr/lib that exist in
/usr/lib/compat.  This occurs when upgrading from RELEASE-1.2 to HEAD.

14 years agoIf a process does not block between setting up %gs and fork()ing, a
Matthew Dillon [Mon, 2 May 2005 23:20:38 +0000 (23:20 +0000)]
If a process does not block between setting up %gs and fork()ing, a
stale %gs will be inherited by the forked child.

Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>
14 years agoExplicitly close low descriptors to keep the internal state
Joerg Sonnenberger [Mon, 2 May 2005 20:40:50 +0000 (20:40 +0000)]
Explicitly close low descriptors to keep the internal state
in-sync. Move the signal pipe initialisation into a common function
and share that between fork(), init and closefrom().

14 years agoThe library compat Makefile needs 'tail'.
Matthew Dillon [Mon, 2 May 2005 20:19:50 +0000 (20:19 +0000)]
The library compat Makefile needs 'tail'.

14 years agoAdd a binary library compatibility infrastructure. Library updates are
Matthew Dillon [Mon, 2 May 2005 20:19:19 +0000 (20:19 +0000)]
Add a binary library compatibility infrastructure.  Library updates are
handled by creating a new library binary with an appropriate extension.
The Makefile will locate the binary with the highest-numbered extension.

Emplace the 1.2 release library set so programs (e.g. ports) built prior
to the major number bump will continue to operate with a fresh install.

Chooser-algorithm-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
14 years agoOverride closefrom() in libc_r to prevent it from closing the
Joerg Sonnenberger [Mon, 2 May 2005 19:52:58 +0000 (19:52 +0000)]
Override closefrom() in libc_r to prevent it from closing the
internal signal pipe. Handle this by closing it directly and
reopening it after calling closefrom. This fixes the 100% system load
from sshd.

14 years agoA program which sets up a TLS segment and then loops with random sleeps
Matthew Dillon [Mon, 2 May 2005 19:33:52 +0000 (19:33 +0000)]
A program which sets up a TLS segment and then loops with random sleeps
testing that the segment pointer is still pointing to the right place.

14 years agoReport on segmentation violations (from testing file mmap) rather then
Matthew Dillon [Mon, 2 May 2005 19:31:56 +0000 (19:31 +0000)]
Report on segmentation violations (from testing file mmap) rather then
just seg-faulting.

14 years agoisprint() should be true only for characters in space, not blank.
Joerg Sonnenberger [Mon, 2 May 2005 17:41:05 +0000 (17:41 +0000)]
isprint() should be true only for characters in space, not blank.
blank might contain control chars, like TAB in the POSIX locale.

14 years agoRemove sys_set_tls_area hack, doesn't matter when we fault in case
Joerg Sonnenberger [Mon, 2 May 2005 16:23:37 +0000 (16:23 +0000)]
Remove sys_set_tls_area hack, doesn't matter when we fault in case
of a missing syscall.

Requested-by: dillon
14 years agoFix typo inside #ifdef SMP.
YONETANI Tomokazu [Mon, 2 May 2005 00:56:48 +0000 (00:56 +0000)]
Fix typo inside #ifdef SMP.

Reported-by: Jasse Jansson
14 years ago- Add missing include <stdlib.h> for exit()
Liam J. Foy [Sun, 1 May 2005 23:39:40 +0000 (23:39 +0000)]
- Add missing include <stdlib.h> for exit()

14 years agoLink with --no-undefined to enfore the normal missing symbol check,
Joerg Sonnenberger [Sun, 1 May 2005 19:19:12 +0000 (19:19 +0000)]
Link with --no-undefined to enfore the normal missing symbol check,
it was disabled by the -Bshared. RTLD is a shared object, but can't
depend on any other source for symbols.

14 years agoInclude __error in libc_rtld too, otherwise RTLD is left with an undefined
Joerg Sonnenberger [Sun, 1 May 2005 18:38:11 +0000 (18:38 +0000)]
Include __error in libc_rtld too, otherwise RTLD is left with an undefined
symbol.

14 years ago- Use socklen_t
Liam J. Foy [Sun, 1 May 2005 14:52:08 +0000 (14:52 +0000)]
- Use socklen_t

Obtained from: OpenBSD Camp (Rev: 1.25)

14 years ago- sprintf -> snprintf
Liam J. Foy [Sun, 1 May 2005 12:11:36 +0000 (12:11 +0000)]
- sprintf -> snprintf

14 years agoNetworking routing statistics on a per-CPU basis:
Hiten Pandya [Sun, 1 May 2005 04:05:35 +0000 (04:05 +0000)]
Networking routing statistics on a per-CPU basis:

(a) sysctl node net.route introduced.

(b) sysctl leaf node net.route.stats can be used for retrieving
    a cpu indexed array of struct rtstatistics.

(a) add a function kinfo_get_net_rtstatistics(3), which will be
    responsible for providing an aggregated view of the routing
    statistics; part of libkinfo(3).

(d) adapt netstat(8) to make use of the new libkinfo interface
for retrieving routing statistics.

Discussed-with: Jeffrey Hsu <hsu at dragonflybsd.org> (long time ago)

14 years agoAdd some useful comments to interface functions; required a little bit of
Hiten Pandya [Sun, 1 May 2005 03:26:07 +0000 (03:26 +0000)]
Add some useful comments to interface functions; required a little bit of
re-arrangement.

14 years agoUse reallocf(3) and cleanup some NULL checks.
Hiten Pandya [Sun, 1 May 2005 03:01:20 +0000 (03:01 +0000)]
Use reallocf(3) and cleanup some NULL checks.

14 years agoMinor adjustment of types for consistency.
Hiten Pandya [Sun, 1 May 2005 02:36:49 +0000 (02:36 +0000)]
Minor adjustment of types for consistency.

14 years agoAdapt kcore_get_sched_cputime(3) to retrieve and present an aggregated
Hiten Pandya [Sun, 1 May 2005 02:30:50 +0000 (02:30 +0000)]
Adapt kcore_get_sched_cputime(3) to retrieve and present an aggregated
CPU time statistics to the client.  The CPU indexed array is retrieved
from the kernel core and then put together.

14 years agoFix breakage.
Hiten Pandya [Sat, 30 Apr 2005 23:28:57 +0000 (23:28 +0000)]
Fix breakage.

14 years agoRemove DEC Alpha support.
Sascha Wildner [Sat, 30 Apr 2005 23:04:21 +0000 (23:04 +0000)]
Remove DEC Alpha support.

14 years ago- Improve option handling
Liam J. Foy [Sat, 30 Apr 2005 16:17:06 +0000 (16:17 +0000)]
- Improve option handling

More patches for rwhod to come.

14 years agoAdd NO_PKGTOOLS to not install the FreeBSD derived version of the tools.
Joerg Sonnenberger [Sat, 30 Apr 2005 15:39:17 +0000 (15:39 +0000)]
Add NO_PKGTOOLS to not install the FreeBSD derived version of the tools.
Useful for pkgsrc installations.

14 years agoBack out getloadavg()'s change from int to size_t. This breaks gmake, for
Jeroen Ruigrok/asmodai [Sat, 30 Apr 2005 08:24:48 +0000 (08:24 +0000)]
Back out getloadavg()'s change from int to size_t.  This breaks gmake, for
example.  No telling what else breaks.
Needs further investigation.

14 years agoleftover from proc->thread stage 4
YONETANI Tomokazu [Sat, 30 Apr 2005 04:27:51 +0000 (04:27 +0000)]
leftover from proc->thread stage 4
remove extra NULL check on non-existent pointer.

14 years agoFreeBSD-Date: 2005/04/29 16:15:28
Max Okumoto [Fri, 29 Apr 2005 23:11:49 +0000 (23:11 +0000)]
FreeBSD-Date: 2005/04/29 16:15:28
Author: harti

Rename the directive_hash.[ch] files to hash_tables.[ch] now
that there are more than one hash table in them. There is no
history to preserve here, so go without a repo-copy.

Asked for by:   Max Okumoto <okumoto@ucsd.edu>

14 years agoFreeBSD-Date: 2005/04/29 15:37:44
Max Okumoto [Fri, 29 Apr 2005 22:44:38 +0000 (22:44 +0000)]
FreeBSD-Date: 2005/04/29 15:37:44
Author: harti

Implement a pseudo-target .WARN that allows toggeling the warning flags
for the current make. This does not override flags specified on the
command line and these settings are not passed to sub-makes.

14 years agosys_set_tls_area is called from _init_tls path, it should not touch
Joerg Sonnenberger [Fri, 29 Apr 2005 22:01:43 +0000 (22:01 +0000)]
sys_set_tls_area is called from _init_tls path, it should not touch
errno at all. It might be better to explicitly call abort on error
conditions, instead of panicing when trying to load %gs.

14 years agoPrepare for thread-local errno by implementing full TLS support for
Joerg Sonnenberger [Fri, 29 Apr 2005 22:00:20 +0000 (22:00 +0000)]
Prepare for thread-local errno by implementing full TLS support for
static binaries, which does not touch errno before the initial TLS
space is created. This code path is *very* sensitive to changes.

14 years agoMake a special libc version for RTLD which doesn't use TLS as it will
Joerg Sonnenberger [Fri, 29 Apr 2005 21:46:41 +0000 (21:46 +0000)]
Make a special libc version for RTLD which doesn't use TLS as it will
soon be added. Don't install it, keep it in the build tree. Also
build the rtld itself without TLS dependencies. Stop building and
installing the normal libc as PIC archive.

Discussed-with: dillon

14 years agoSeparate INTERNALLIB and INSTALL_PIC_ARCHIVE. We want to have the latter
Joerg Sonnenberger [Fri, 29 Apr 2005 21:25:09 +0000 (21:25 +0000)]
Separate INTERNALLIB and INSTALL_PIC_ARCHIVE. We want to have the latter
for RTLD, but we don't want to install it.

14 years agoOnly install man page for libc.
Joerg Sonnenberger [Fri, 29 Apr 2005 21:23:42 +0000 (21:23 +0000)]
Only install man page for libc.

14 years agoPut paren around return arg.
Max Okumoto [Fri, 29 Apr 2005 19:40:49 +0000 (19:40 +0000)]
Put paren around return arg.

14 years agoFinal forced commit to correct log comments. char's are *signed*, not
Matthew Dillon [Fri, 29 Apr 2005 16:12:52 +0000 (16:12 +0000)]
Final forced commit to correct log comments.  char's are *signed*, not
unsigned.  However, most string operations must do unsigned comparisons.
The CTYPE API is expected to properly fold signed chars when making
conversions but if a call does not do a conversion, e.g. tolower() on a
character which is not upper case, the original contents (negative or
positive) may be returned.

This means that we can safely use signed chars everywhere *except* when
we have to do an inequality.

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 10:04:45 +0000 (10:04 +0000)]
de-errno

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 09:51:32 +0000 (09:51 +0000)]
de-errno

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 09:43:58 +0000 (09:43 +0000)]
de-errno

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 09:27:00 +0000 (09:27 +0000)]
de-errno

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 09:22:57 +0000 (09:22 +0000)]
de-errno

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 09:14:50 +0000 (09:14 +0000)]
de-errno

14 years agoWe have no more warnings, turn on WARNS_WERROR.
Max Okumoto [Fri, 29 Apr 2005 03:54:52 +0000 (03:54 +0000)]
We have no more warnings, turn on WARNS_WERROR.

14 years agoUpdate directive_hash.c by running
Max Okumoto [Fri, 29 Apr 2005 03:46:32 +0000 (03:46 +0000)]
Update directive_hash.c by running

% make hash

14 years agoFreeBSD-Date: 2005/04/28 16:37:25
Max Okumoto [Fri, 29 Apr 2005 03:46:01 +0000 (03:46 +0000)]
FreeBSD-Date: 2005/04/28 16:37:25
Author: harti

Introduce a flag to enable extended warnings (-x) and make them off
by default. This should fix the problem of getting lots of errors
when building with an up-to-date make and old *.mk files.

14 years agoFreeBSD-Date: 2005/04/28 13:05:43
Max Okumoto [Fri, 29 Apr 2005 03:45:36 +0000 (03:45 +0000)]
FreeBSD-Date: 2005/04/28 13:05:43
Author: harti

Use a minimal perfect hash for the special sources/targets too. Add
the corresponding magic to create the hash function to the Makefile.

14 years agoAdd C90 Amendment 1 (for citrus man pages).
Sascha Wildner [Fri, 29 Apr 2005 02:54:51 +0000 (02:54 +0000)]
Add C90 Amendment 1 (for citrus man pages).

14 years agoAdd a missing .El and fix a couple of typos.
Sascha Wildner [Fri, 29 Apr 2005 01:48:46 +0000 (01:48 +0000)]
Add a missing .El and fix a couple of typos.

14 years agode-errno
Joerg Sonnenberger [Fri, 29 Apr 2005 01:00:27 +0000 (01:00 +0000)]
de-errno

14 years agoextern int errno considered harmful.
Joerg Sonnenberger [Fri, 29 Apr 2005 00:37:08 +0000 (00:37 +0000)]
extern int errno considered harmful.

14 years agoIncluding errno.h and still declaring errno is BROKEN.
Joerg Sonnenberger [Thu, 28 Apr 2005 23:46:19 +0000 (23:46 +0000)]
Including errno.h and still declaring errno is BROKEN.

14 years agoPANIC for now, if the linker can't allocate TLS space.
Joerg Sonnenberger [Thu, 28 Apr 2005 22:10:48 +0000 (22:10 +0000)]
PANIC for now, if the linker can't allocate TLS space.

14 years agoRestructured building the directive_hash.[ch] files via the Makefile.
Max Okumoto [Thu, 28 Apr 2005 21:11:51 +0000 (21:11 +0000)]
Restructured building the directive_hash.[ch] files via the Makefile.

14 years agoReadd lost line.
Joerg Sonnenberger [Thu, 28 Apr 2005 20:53:19 +0000 (20:53 +0000)]
Readd lost line.

14 years agoReadd explicit u_char casts for tolower().
Joerg Sonnenberger [Thu, 28 Apr 2005 19:40:51 +0000 (19:40 +0000)]
Readd explicit u_char casts for tolower().

Requested-by: dillon
Confusion-by: joerg
14 years agoHandle longjmp(), vfork() warning message about variables.
Max Okumoto [Thu, 28 Apr 2005 18:52:52 +0000 (18:52 +0000)]
Handle longjmp(), vfork() warning message about variables.

14 years agogot rid of mktemp() warning.
Max Okumoto [Thu, 28 Apr 2005 18:52:32 +0000 (18:52 +0000)]
got rid of mktemp() warning.

14 years agogot rid of last warning in cond.c
Max Okumoto [Thu, 28 Apr 2005 18:52:15 +0000 (18:52 +0000)]
got rid of last warning in cond.c

14 years agoMove code between goto do_compare and label, above the goto and remove
Max Okumoto [Thu, 28 Apr 2005 18:52:00 +0000 (18:52 +0000)]
Move code between goto do_compare and label, above the goto and remove
the goto.

14 years agoPass CondToken() through indent to cleanup indention.
Max Okumoto [Thu, 28 Apr 2005 18:51:48 +0000 (18:51 +0000)]
Pass CondToken() through indent to cleanup indention.

14 years agoNegate if-statement and swap code sections in CondToken()
Max Okumoto [Thu, 28 Apr 2005 18:51:31 +0000 (18:51 +0000)]
Negate if-statement and swap code sections in CondToken()

14 years agoCleanup suff.c:SuffFindArchiveDeps() this removes two more warnings.
Max Okumoto [Thu, 28 Apr 2005 18:50:57 +0000 (18:50 +0000)]
Cleanup suff.c:SuffFindArchiveDeps() this removes two more warnings.

14 years agoThe first element of the array return by brk_string(), is never
Max Okumoto [Thu, 28 Apr 2005 18:50:35 +0000 (18:50 +0000)]
The first element of the array return by brk_string(), is never
used so we can remove the Var_Value() call.  This is good since
that code hasn't worked for a while.

14 years agoClean up main.c
Max Okumoto [Thu, 28 Apr 2005 18:50:08 +0000 (18:50 +0000)]
Clean up main.c
      o Moved initialization of progam globals and file globals
        to top of main().
      o Grouped file and program globals defintions.
      o made chdir_verify_path() static since it is only used in main.c

14 years agoReduce the use of global variables by creating Var_SetGlobal() and
Max Okumoto [Thu, 28 Apr 2005 18:49:40 +0000 (18:49 +0000)]
Reduce the use of global variables by creating Var_SetGlobal() and
replacing Var_Set(name, val, VAR_GLOBAL).

14 years agoCleanup main()
Max Okumoto [Thu, 28 Apr 2005 18:49:18 +0000 (18:49 +0000)]
Cleanup main()
 o Moved setting signal handler for SIGCHLD into job.c
 o Moved unsetenv("ENV") into job.c where it belongs.
 o Moved setting machine, machine_arch, machine_cpu close to its usage.
 o Invert negative logic.

14 years agoRemove prototype for usage(), and move the definition above its use.
Max Okumoto [Thu, 28 Apr 2005 18:48:52 +0000 (18:48 +0000)]
Remove prototype for usage(), and move the definition above its use.

14 years agoremove prototype for Compat_RunCommand() and make it static.
Max Okumoto [Thu, 28 Apr 2005 18:48:31 +0000 (18:48 +0000)]
remove prototype for Compat_RunCommand() and make it static.

14 years agoMove printing of variables into var.c
Max Okumoto [Thu, 28 Apr 2005 18:48:15 +0000 (18:48 +0000)]
Move printing of variables into var.c

14 years agoMove some variables into the correct files.
Max Okumoto [Thu, 28 Apr 2005 18:47:52 +0000 (18:47 +0000)]
Move some variables into the correct files.

14 years agocleanup middle part of JobFinish()
Max Okumoto [Thu, 28 Apr 2005 18:47:27 +0000 (18:47 +0000)]
cleanup middle part of JobFinish()

14 years agoCleanup code near the top part of JobFinish()
Max Okumoto [Thu, 28 Apr 2005 18:47:09 +0000 (18:47 +0000)]
Cleanup code near the top part of JobFinish()

14 years agoMove comments to the proper section, and removed some unnessisary
Max Okumoto [Thu, 28 Apr 2005 18:46:26 +0000 (18:46 +0000)]
Move comments to the proper section, and removed some unnessisary
gcc magic.

14 years agoConvert Compat_RunCommand() to use ProcWait()
Max Okumoto [Thu, 28 Apr 2005 18:45:57 +0000 (18:45 +0000)]
Convert Compat_RunCommand() to use ProcWait()

14 years agoAlways allocate static TLS space.
Joerg Sonnenberger [Thu, 28 Apr 2005 18:29:54 +0000 (18:29 +0000)]
Always allocate static TLS space.

14 years agoForced commit to correct imporant spelling error:
Joerg Sonnenberger [Thu, 28 Apr 2005 18:26:03 +0000 (18:26 +0000)]
Forced commit to correct imporant spelling error:
DragonFly has decided to depend on char being *unsigned*.

14 years agoSlight correction for the last commit, thread TCB == NULL as error
Joerg Sonnenberger [Thu, 28 Apr 2005 18:24:10 +0000 (18:24 +0000)]
Slight correction for the last commit, thread TCB == NULL as error
condition and return it. This could happen in case of memory shortage.

14 years agoFor the initial thread, rtld has already created the TCB and TLS storage.
Joerg Sonnenberger [Thu, 28 Apr 2005 18:22:13 +0000 (18:22 +0000)]
For the initial thread, rtld has already created the TCB and TLS storage.
Use this. For all other threads allocate it. The TCB itself must not be
NULL, so we don't have to check for it.

14 years agoAdd support for TLS.
Joerg Sonnenberger [Thu, 28 Apr 2005 18:16:47 +0000 (18:16 +0000)]
Add support for TLS.

14 years agoAlways setup the initial TCB correctly. This saves us from having to
Joerg Sonnenberger [Thu, 28 Apr 2005 18:09:03 +0000 (18:09 +0000)]
Always setup the initial TCB correctly. This saves us from having to
check for special cases in the thread initialisation code.