dragonfly.git
14 years agoCatch up with ctype.h.
Joerg Sonnenberger [Sun, 8 May 2005 16:10:37 +0000 (16:10 +0000)]
Catch up with ctype.h.

14 years agoNuke ctypeio.c and associated ctype to rune table conversion,
Joerg Sonnenberger [Sun, 8 May 2005 15:55:15 +0000 (15:55 +0000)]
Nuke ctypeio.c and associated ctype to rune table conversion,
we never used it anyway.

14 years agoBite the bullet and add real masks isprint and isgraph. Use this as
Joerg Sonnenberger [Sun, 8 May 2005 15:52:05 +0000 (15:52 +0000)]
Bite the bullet and add real masks isprint and isgraph. Use this as
excuse to make the flags identical to the rune version by adding _A
for the alpha class and by making the hexdigit class self contained.

14 years agoAdd handling of R_386_TLS_TPOFF32.
Joerg Sonnenberger [Sun, 8 May 2005 13:11:06 +0000 (13:11 +0000)]
Add handling of R_386_TLS_TPOFF32.

Submitted-by: Nathaniel W. Filardo <nwf@andrew.cmu.edu>
14 years agoALTQ
Joerg Sonnenberger [Sun, 8 May 2005 11:45:32 +0000 (11:45 +0000)]
ALTQ

14 years agoLeft-over from the old mbuf chain tagging.
Joerg Sonnenberger [Sun, 8 May 2005 11:01:26 +0000 (11:01 +0000)]
Left-over from the old mbuf chain tagging.

Fix-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
14 years agoClean generated directories
Simon Schubert [Sun, 8 May 2005 00:44:59 +0000 (00:44 +0000)]
Clean generated directories

14 years agoFix compliation with gcc40: Move structure definition within headers.
Simon Schubert [Sun, 8 May 2005 00:35:48 +0000 (00:35 +0000)]
Fix compliation with gcc40: Move structure definition within headers.

Taken-from: binutils-2.16

14 years agoincore() is used to detect logical block number collisions, and other
Matthew Dillon [Sun, 8 May 2005 00:12:22 +0000 (00:12 +0000)]
incore() is used to detect logical block number collisions, and other
callers will check B_INVAL on return.  Do not return a false negative
if the buffer we find happens to be B_INVAL as this could result in
duplicate buffers in the buffer cache.  As of the red-black tree code,
which detects duplicate entries, the case will immediately panic the machine.

MFC: 2 weeks

14 years agoFix compilation with gcc40: Move function prototype from function to
Simon Schubert [Sun, 8 May 2005 00:07:39 +0000 (00:07 +0000)]
Fix compilation with gcc40: Move function prototype from function to
file scope.

14 years agoClean generated files/directories.
Simon Schubert [Sun, 8 May 2005 00:06:46 +0000 (00:06 +0000)]
Clean generated files/directories.

14 years agoFix compilation with gcc40: Don't declare static variable extern.
Simon Schubert [Sat, 7 May 2005 23:42:39 +0000 (23:42 +0000)]
Fix compilation with gcc40: Don't declare static variable extern.

14 years agoFix compilation with gcc40: Don't cast lvalue for postincrement.
Simon Schubert [Sat, 7 May 2005 23:39:51 +0000 (23:39 +0000)]
Fix compilation with gcc40: Don't cast lvalue for postincrement.

14 years agoFix compliation with gcc40: Don't export ROOTKEY with wrong type at all.
Simon Schubert [Sat, 7 May 2005 23:35:13 +0000 (23:35 +0000)]
Fix compliation with gcc40: Don't export ROOTKEY with wrong type at all.

14 years agoFix compliation with gcc40: Don't cast the lvalue, instead cast the rvalue.
Simon Schubert [Sat, 7 May 2005 23:32:57 +0000 (23:32 +0000)]
Fix compliation with gcc40: Don't cast the lvalue, instead cast the rvalue.

14 years agoFix compilation with gcc40: *_hash() take (unsigned char *) as
Simon Schubert [Sat, 7 May 2005 23:26:12 +0000 (23:26 +0000)]
Fix compilation with gcc40: *_hash() take (unsigned char *) as
first parameter.

14 years agoFix compilation with gcc40: Make `padchar' char *, like all other
Simon Schubert [Sat, 7 May 2005 23:24:44 +0000 (23:24 +0000)]
Fix compilation with gcc40: Make `padchar' char *, like all other
char pointers in this function.

14 years agoFix compilation with gcc40: Move function prototypes from funtion to
Simon Schubert [Sat, 7 May 2005 23:20:43 +0000 (23:20 +0000)]
Fix compilation with gcc40: Move function prototypes from funtion to
file scope.

This stone-old C sucks the skin off a dead goat. Or even off a living one.

14 years agoFix compilation with gcc40: Swap #include order
Simon Schubert [Sat, 7 May 2005 22:50:05 +0000 (22:50 +0000)]
Fix compilation with gcc40: Swap #include order

14 years agoFix compilation with gcc40: Move structure definitions up so that array
Simon Schubert [Sat, 7 May 2005 22:34:51 +0000 (22:34 +0000)]
Fix compilation with gcc40: Move structure definitions up so that array
type in included header "extern.h" isn't incomplete.

14 years agoFix compilation with gcc40: un-static-ize variable to match extern
Simon Schubert [Sat, 7 May 2005 22:29:39 +0000 (22:29 +0000)]
Fix compilation with gcc40: un-static-ize variable to match extern
declaration.

14 years agoFix compilation with gcc40: Move declaration of variable so that type isn't
Simon Schubert [Sat, 7 May 2005 22:05:41 +0000 (22:05 +0000)]
Fix compilation with gcc40: Move declaration of variable so that type isn't
incomplete.

14 years agoFix compilation with gcc40: Only use -fno-stack-protector with gcc versions
Simon Schubert [Sat, 7 May 2005 21:22:32 +0000 (21:22 +0000)]
Fix compilation with gcc40: Only use -fno-stack-protector with gcc versions
which have propolice support.

14 years agoMake getty compile with gcc40: reorder/include headers to resolve
Simon Schubert [Sat, 7 May 2005 20:00:20 +0000 (20:00 +0000)]
Make getty compile with gcc40: reorder/include headers to resolve
incomplete type.

14 years agoClean generated files
Simon Schubert [Sat, 7 May 2005 19:55:31 +0000 (19:55 +0000)]
Clean generated files

14 years agoFix compilation for gcc40: Don't declare variable with conflicting types.
Simon Schubert [Sat, 7 May 2005 19:48:16 +0000 (19:48 +0000)]
Fix compilation for gcc40: Don't declare variable with conflicting types.

14 years agoFix compilation with gcc40: Remove -fwritable-strings from CFLAGS.
Simon Schubert [Sat, 7 May 2005 18:33:25 +0000 (18:33 +0000)]
Fix compilation with gcc40: Remove -fwritable-strings from CFLAGS.

14 years agoMake this compile with gcc40: rename variables so that they don't collide
Simon Schubert [Sat, 7 May 2005 18:05:14 +0000 (18:05 +0000)]
Make this compile with gcc40: rename variables so that they don't collide
with those from ncurses. Don't ask me why ncurses exports PC, BC and UP.

14 years agoMake this compile with gcc40: Move function prototypes from function scope
Simon Schubert [Sat, 7 May 2005 18:03:39 +0000 (18:03 +0000)]
Make this compile with gcc40: Move function prototypes from function scope
to file scope.

14 years agoMake hack compile with gcc40: Remove previously deprecated, now
Simon Schubert [Sat, 7 May 2005 18:02:35 +0000 (18:02 +0000)]
Make hack compile with gcc40: Remove previously deprecated, now
unsupported option -fwritable-strings.

This might break hack in some way, though a quick check didn't show
anything. Takers for cleaning this code?

14 years agoRemove PCVT kernel part and mop up.
Sascha Wildner [Sat, 7 May 2005 17:38:34 +0000 (17:38 +0000)]
Remove PCVT kernel part and mop up.

14 years agoFix gcc40 compilation of lib/libsvg by merging from FreeBSD:
Simon Schubert [Sat, 7 May 2005 16:22:42 +0000 (16:22 +0000)]
Fix gcc40 compilation of lib/libsvg by merging from FreeBSD:

bde         2004/03/11 05:38:54 PST

  FreeBSD src repository

  Modified files:
    sys/amd64/include    cpufunc.h
    sys/i386/include     cpufunc.h
  Log:
  Don't implement anything in the ffs family in <machine/cpufunc.h>
  in the non-_KERNEL case.  This "fixes" applications that include
  this "kernel-only" header and also include <strings.h> (or get
  <strings.h> via the default _BSD_VISIBLE pollution in <string.h>.
  In C++ there was a fatal error: the declaration specifies C linkage
  but the implementation gives C++ linkage.  In C there was only a
  static/extern mismatch if the headers were included in a certain order
  order, and a partially redundant declaration for all include orders;
  gcc emits incomplete or wrong diagnostics for these, but only for
  compiling with -Wsystem-headers and certain other warning options, so
  the problem was usually not seen for C.

  Ports breakage reported by:     kris

  Revision  Changes    Path
  1.142     +4 -0      src/sys/amd64/include/cpufunc.h
  1.139     +4 -0      src/sys/i386/include/cpufunc.h

14 years agoFix gcc40 compilation by removing casts of lvalues.
Simon Schubert [Sat, 7 May 2005 15:33:05 +0000 (15:33 +0000)]
Fix gcc40 compilation by removing casts of lvalues.

This gives us back one warning (with gcc34, gcc40 emits much more
anyways).  The correct fix would be sys/cdefs.h and __DECONST, but as this
is contrib source anyways I don't feel like fixing warning messages here.

14 years agoMove function prototype from function scope to file scope to
Simon Schubert [Sat, 7 May 2005 15:01:36 +0000 (15:01 +0000)]
Move function prototype from function scope to file scope to
satisfy gcc40.

14 years agoAttempt to make code more readable
Simon Schubert [Sat, 7 May 2005 13:53:47 +0000 (13:53 +0000)]
Attempt to make code more readable

14 years agoK&R -> modern C
Simon Schubert [Sat, 7 May 2005 13:32:24 +0000 (13:32 +0000)]
K&R -> modern C

14 years agoMove function prototype from function scope to file scope to
Simon Schubert [Sat, 7 May 2005 13:29:35 +0000 (13:29 +0000)]
Move function prototype from function scope to file scope to
satisfy gcc40.

14 years ago- Use standard types.
Sascha Wildner [Sat, 7 May 2005 13:06:44 +0000 (13:06 +0000)]
- Use standard types.
- Use TAB for indentation.
- Minor style(9) fixes.

14 years agoSort names.
David Xu [Sat, 7 May 2005 10:08:08 +0000 (10:08 +0000)]
Sort names.

14 years agoRemove unused function.
David Xu [Sat, 7 May 2005 09:59:58 +0000 (09:59 +0000)]
Remove unused function.

14 years ago1. Fix symbols needed by libthread_db.
David Xu [Sat, 7 May 2005 09:29:46 +0000 (09:29 +0000)]
1. Fix symbols needed by libthread_db.
2. Add mechanism to report thread events to debugger.

14 years agoAdd libthread_db, a thread debugging support library.
David Xu [Sat, 7 May 2005 09:25:44 +0000 (09:25 +0000)]
Add libthread_db, a thread debugging support library.

14 years agoAdd prototypes of proc service API, every debugger must provide the
David Xu [Sat, 7 May 2005 08:28:06 +0000 (08:28 +0000)]
Add prototypes of proc service API, every debugger must provide the
set of API before it can load thread debugging assistant library:
libthread_db.

14 years agoDefine type lwpid_t, it will be used for thread debugger code.
David Xu [Sat, 7 May 2005 08:23:51 +0000 (08:23 +0000)]
Define type lwpid_t, it will be used for thread debugger code.

14 years agoFix comment of error member, now errno is TLS based.
David Xu [Sat, 7 May 2005 07:50:51 +0000 (07:50 +0000)]
Fix comment of error member, now errno is TLS based.

14 years agoBackout revision 1.5, the pthread->error was used as internal
David Xu [Sat, 7 May 2005 07:39:14 +0000 (07:39 +0000)]
Backout revision 1.5, the pthread->error was used as internal
communication variable between threads, two tls_set_tcb calls
are not signal safe.

14 years agoCorrect typo: vender -> vendor
Sascha Wildner [Sat, 7 May 2005 02:11:25 +0000 (02:11 +0000)]
Correct typo: vender -> vendor

14 years ago- Produce more informative output to syslog. Generally improve/clean error handling
Liam J. Foy [Fri, 6 May 2005 17:16:18 +0000 (17:16 +0000)]
- Produce more informative output to syslog. Generally improve/clean error handling

Ok: dillon

14 years agoBackout the last commit. _S is also true for a few control codes for which
YONETANI Tomokazu [Fri, 6 May 2005 14:25:17 +0000 (14:25 +0000)]
Backout the last commit. _S is also true for a few control codes for which
isprint() should evaluate to false.

14 years agoFix compilation with gcc-4.0: static int debug can't be extern.
Simon Schubert [Fri, 6 May 2005 13:16:08 +0000 (13:16 +0000)]
Fix compilation with gcc-4.0: static int debug can't be extern.

14 years agoBring in fix from FreeBSD/cperciva:
Simon Schubert [Fri, 6 May 2005 11:52:02 +0000 (11:52 +0000)]
Bring in fix from FreeBSD/cperciva:
  Log:
  If we are going to
  1. Copy a NULL-terminated string into a fixed-length buffer, and
  2. copyout that buffer to userland,
  we really ought to
  0. Zero the entire buffer
  first.

  Security: FreeBSD-SA-05:08.kmem

Thanks to Colin Percival for notifying us!

14 years agoBring in fix from FreeBSD/cperciva:
Simon Schubert [Fri, 6 May 2005 11:27:51 +0000 (11:27 +0000)]
Bring in fix from FreeBSD/cperciva:
  Log:
  Correct improper permissions on /dev/iir.  The earlier permissions
  of 0644 allowed for people to do Evil Things via ioctl(2).

  Security: FreeBSD-SA-05:06.iir

Thanks to Colin Percival for notifying us!

14 years agoRemove DEC Alpha support.
Sascha Wildner [Thu, 5 May 2005 22:57:45 +0000 (22:57 +0000)]
Remove DEC Alpha support.

14 years agoCleanup globals in str.c
Max Okumoto [Thu, 5 May 2005 09:08:42 +0000 (09:08 +0000)]
Cleanup globals in str.c
  o Create ArgArray object.
  o Rewrite brk_string() and MAKEFLAGS_break() to use ArgArray instead
    of global variables.
  o Rewrite code that uses brk_string() and MAKEFLAGS_break() to use
    ArgArray.
  o Remove str_init() code.

14 years agoCleanup MAKEFLAGS_break()
Max Okumoto [Thu, 5 May 2005 09:08:09 +0000 (09:08 +0000)]
Cleanup MAKEFLAGS_break()

14 years agoCleanup brk_string()
Max Okumoto [Thu, 5 May 2005 09:07:51 +0000 (09:07 +0000)]
Cleanup brk_string()

14 years agoinline nomem() and delete the function.
Max Okumoto [Thu, 5 May 2005 09:07:28 +0000 (09:07 +0000)]
inline nomem() and delete the function.

14 years agouse waitpid() instead of wait()
Max Okumoto [Thu, 5 May 2005 09:06:59 +0000 (09:06 +0000)]
use waitpid() instead of wait()

14 years agoMinor cleanup.
Max Okumoto [Thu, 5 May 2005 09:06:23 +0000 (09:06 +0000)]
Minor cleanup.
 o Move stuff in sprite.h into util.h, and include util.h in place
   of sprite.h
 o Move print_flags() from util.[ch] into suff.c since it is only
   used there.

14 years agoJob_ParseShell()
Max Okumoto [Thu, 5 May 2005 09:05:03 +0000 (09:05 +0000)]
Job_ParseShell()
      o constify input param.
      o remove redundent code to skip white spaces, bkr_string() already
        does that.

14 years agoMove #define of DEFMAXJOBS from config.h to main.c
Max Okumoto [Thu, 5 May 2005 09:04:35 +0000 (09:04 +0000)]
Move #define of DEFMAXJOBS from config.h to main.c

14 years agoTypo, linking against -lc_p belongs into the -pg case.
Joerg Sonnenberger [Wed, 4 May 2005 11:28:44 +0000 (11:28 +0000)]
Typo, linking against -lc_p belongs into the -pg case.

14 years agoA few shared libraries get installed with schg turned on.
YONETANI Tomokazu [Wed, 4 May 2005 06:17:41 +0000 (06:17 +0000)]
A few shared libraries get installed with schg turned on.
Drop it so that rm'ing older shared libraries doesn't fail.

14 years agoSplit libc and libc_r. -pthread now links aginst both libc and libc_r.
Joerg Sonnenberger [Tue, 3 May 2005 19:56:37 +0000 (19:56 +0000)]
Split libc and libc_r. -pthread now links aginst both libc and libc_r.

14 years agoAllocate some additional space for dlopen'd libraries. Currently 256 byte,
Joerg Sonnenberger [Tue, 3 May 2005 18:25:13 +0000 (18:25 +0000)]
Allocate some additional space for dlopen'd libraries. Currently 256 byte,
we can decide later to increase it.

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)