OSDN Git Service

uclinux-h8/uClibc.git
22 years agoCleanup some silly warnings
Eric Andersen [Thu, 8 Aug 2002 05:28:52 +0000 (05:28 -0000)]
Cleanup some silly warnings

22 years agoAvoid bad things happening on macro expansion...
Eric Andersen [Thu, 8 Aug 2002 05:27:37 +0000 (05:27 -0000)]
Avoid bad things happening on macro expansion...
 -Erik

22 years agoCleanup to avoid some undefined behavior
Eric Andersen [Thu, 8 Aug 2002 04:29:47 +0000 (04:29 -0000)]
Cleanup to avoid some undefined behavior
 -Erik

22 years agoIgnore symbol '_gp_disp' if it's missing from 'libgcc.a'. That's okay for
"Steven J. Hill" [Wed, 7 Aug 2002 19:56:08 +0000 (19:56 -0000)]
Ignore symbol '_gp_disp' if it's missing from 'libgcc.a'. That's okay for
MIPS platforms.

22 years agoAdd getrpcent.c to default rpc build
Eric Andersen [Wed, 7 Aug 2002 15:23:00 +0000 (15:23 -0000)]
Add getrpcent.c to default rpc build

22 years agoCleanup crypt and remove the crypt_r stuff, since SuSv3
Eric Andersen [Wed, 7 Aug 2002 15:11:51 +0000 (15:11 -0000)]
Cleanup crypt and remove the crypt_r stuff, since SuSv3
(IEEE Std 1003.1-2001) states that crypt need not be reentrant.
 -Erik

22 years agoRemove some noise
Eric Andersen [Wed, 7 Aug 2002 13:35:11 +0000 (13:35 -0000)]
Remove some noise

22 years agoChanged my mind. Keep this separate.
Eric Andersen [Wed, 7 Aug 2002 13:13:40 +0000 (13:13 -0000)]
Changed my mind.  Keep this separate.
 -Erik

22 years agoRewrite getenv
Eric Andersen [Wed, 7 Aug 2002 13:04:32 +0000 (13:04 -0000)]
Rewrite getenv

22 years agorework getopt. no read need to split this one up since
Eric Andersen [Wed, 7 Aug 2002 12:49:38 +0000 (12:49 -0000)]
rework getopt.  no read need to split this one up since
the parts are so tightly coupled.

22 years agomissed a file
Eric Andersen [Wed, 7 Aug 2002 12:47:50 +0000 (12:47 -0000)]
missed a file

22 years agogetopt tests
Eric Andersen [Wed, 7 Aug 2002 12:47:11 +0000 (12:47 -0000)]
getopt tests

22 years agoUpdates to the working apps list from Kagan Kongar. Thanks!
Eric Andersen [Wed, 7 Aug 2002 10:10:14 +0000 (10:10 -0000)]
Updates to the working apps list from Kagan Kongar.  Thanks!

22 years agoApply integer overflow security fix for "CERT Advisory CA-2002-25 Integer
Eric Andersen [Wed, 7 Aug 2002 09:07:10 +0000 (09:07 -0000)]
Apply integer overflow security fix for "CERT Advisory CA-2002-25 Integer
Overflow In XDR Library" http://www.cert.org/advisories/CA-2002-25.html
Patch from Solar Designer <solar@openwall.com>.

22 years agoMessage catalog support for internationalization is not currently
Eric Andersen [Wed, 7 Aug 2002 08:42:33 +0000 (08:42 -0000)]
Message catalog support for internationalization is not currently
provided by uClibc, and here I have added macros to disable it.
 -Erik

22 years agoPer suggestion from Miles Bader, move calloc.c to libc/stdlib.
Eric Andersen [Wed, 7 Aug 2002 07:57:49 +0000 (07:57 -0000)]
Per suggestion from Miles Bader, move calloc.c to libc/stdlib.
Also, Manuel notices that I forgot to check for when nmemb=0,
which would result in a segfault, so fix that case as well.
 -Erik

22 years agoWhen symbols are missing, its supposed to be an error...
Eric Andersen [Tue, 6 Aug 2002 14:50:14 +0000 (14:50 -0000)]
When symbols are missing, its supposed to be an error...
 -Erik

22 years agoSeveral pthreads updates. Enable linuxthreads_db. Several fixes
Eric Andersen [Tue, 6 Aug 2002 14:49:17 +0000 (14:49 -0000)]
Several pthreads updates.  Enable linuxthreads_db.  Several fixes
related to thread local storage.
 -Erik

22 years agoFixup the last missing pieces of thread locking
Eric Andersen [Tue, 6 Aug 2002 14:47:12 +0000 (14:47 -0000)]
Fixup the last missing pieces of thread locking
 -Erik

22 years agoRework RPC code once again. By default, only enable the
Eric Andersen [Tue, 6 Aug 2002 14:46:14 +0000 (14:46 -0000)]
Rework RPC code once again.  By default, only enable the
stuff needed for NFS mounts, rsh, and similar.
 -Erik

22 years agoEnable getpt prototype.
Manuel Novoa III [Tue, 6 Aug 2002 13:47:58 +0000 (13:47 -0000)]
Enable getpt prototype.

22 years agoChanged fflush() behavior to no-op for r/w streams in read-mode.
Manuel Novoa III [Tue, 6 Aug 2002 05:27:13 +0000 (05:27 -0000)]
Changed fflush() behavior to no-op for r/w streams in read-mode.
   This falls under undefined behavior wrt ANSI/ISO C99, but
   SUSv3 seems to treat it as a no-op and it occurs in some apps.
Fixed a problem with _stdio_fwrite() not checking for underlying
   write() failures.
Fixed both _stdio_fwrite() and _stdio_fread() to make sure that
   the putc and getc macros were disabled if the stream was in
   and error state.

The above changes should take care of a problem initially reported
by "Steven J. Hill" <sjhill@realitydiluted.com>.

22 years agoUnify calloc (its the same thing regardless of the underlying
Eric Andersen [Tue, 6 Aug 2002 03:28:45 +0000 (03:28 -0000)]
Unify calloc (its the same thing regardless of the underlying
malloc implementation).  Fix problem reported to bugtraq about
problems with integer overflow that can occur during the
computation of the memory region size by calloc (and similar
functions) which could result in a subsequent buffer overflow.
 -Erik

22 years agoJust in case, crash if somehow `exit' returns anyways
Eric Andersen [Tue, 6 Aug 2002 00:45:58 +0000 (00:45 -0000)]
Just in case, crash if somehow `exit' returns anyways
 -Erik

22 years agoremove BUILDTIME since it is not used
Eric Andersen [Mon, 5 Aug 2002 22:33:03 +0000 (22:33 -0000)]
remove BUILDTIME since it is not used

22 years agoA couple of little cleanups I forgot to check in.
Manuel Novoa III [Sat, 3 Aug 2002 18:49:09 +0000 (18:49 -0000)]
A couple of little cleanups I forgot to check in.

22 years agoWhen DODEBUG and HAS_WCHAR were enabled and HAS_LOCALE was disabled,
Eric Andersen [Sat, 3 Aug 2002 10:58:12 +0000 (10:58 -0000)]
When DODEBUG and HAS_WCHAR were enabled and HAS_LOCALE was disabled,
wchar.c wouldn't compile:
    wchar.c: In function `__mbsnrtowcs':
    wchar.c:631: `__ctype_encoding_7_bit' undeclared (first use in this function)
This fixes it by keeping the locale specific asserts hidden when not relevant.
 -Erik

22 years agoUse MALLOC_REALLOC_MIN_FREE_SIZE.
Miles Bader [Thu, 1 Aug 2002 07:46:55 +0000 (07:46 -0000)]
Use MALLOC_REALLOC_MIN_FREE_SIZE.

22 years ago(MALLOC_REALLOC_MIN_FREE_SIZE): New macro.
Miles Bader [Thu, 1 Aug 2002 07:46:20 +0000 (07:46 -0000)]
(MALLOC_REALLOC_MIN_FREE_SIZE): New macro.
Enable debugging if MALLOC_DEBUGGING is defined.

22 years ago(HEAP_MIN_SIZE): New macro.
Miles Bader [Thu, 1 Aug 2002 07:45:47 +0000 (07:45 -0000)]
(HEAP_MIN_SIZE): New macro.
(HEAP_MIN_FREE_AREA_SIZE): Increase size.
Enable debugging if HEAP_DEBUGGING is defined.

22 years agoJoseph Chiu <josephc@idealab.com> found an off-by-one bug. oops!
Eric Andersen [Thu, 1 Aug 2002 01:31:17 +0000 (01:31 -0000)]
Joseph Chiu <josephc@idealab.com> found an off-by-one bug.  oops!

22 years agoIn the allocate-and-copy case, don't include the malloc header in our
Miles Bader [Wed, 31 Jul 2002 09:44:09 +0000 (09:44 -0000)]
In the allocate-and-copy case, don't include the malloc header in our
size calculations.

22 years agoSigh. A bit more cleanup.
Eric Andersen [Wed, 31 Jul 2002 08:23:03 +0000 (08:23 -0000)]
Sigh.  A bit more cleanup.

22 years agoUpdate debugging printfs.
Miles Bader [Wed, 31 Jul 2002 07:13:19 +0000 (07:13 -0000)]
Update debugging printfs.

22 years agoPer discussion on the mailing list, simply vfork -> fork mapping to only apply
Eric Andersen [Wed, 31 Jul 2002 04:38:58 +0000 (04:38 -0000)]
Per discussion on the mailing list, simply vfork -> fork mapping to only apply
iff we do not have vfork available, which is simpler and more reasonable.
 -Erik

22 years agoMore i960 support
Eric Andersen [Wed, 31 Jul 2002 04:31:33 +0000 (04:31 -0000)]
More i960 support

22 years agoPatch from Martin Proulx <mproulx@okiok.com> to fix i960
Eric Andersen [Wed, 31 Jul 2002 04:29:18 +0000 (04:29 -0000)]
Patch from Martin Proulx <mproulx@okiok.com> to fix i960
create_module() support.

22 years agoPatch from Alexander Pevzner <pzz@pzz.msk.ru> to fixup things when invoked as
Eric Andersen [Wed, 31 Jul 2002 04:20:04 +0000 (04:20 -0000)]
Patch from Alexander Pevzner <pzz@pzz.msk.ru> to fixup things when invoked as
the C++ compiler to to automagically add include/g++ into the include search
path, and automagically add -lstdc++ and -lm into the set of automatically
linked libraries.

22 years agoYou fool foolish. Goodbye level 2.
Eric Andersen [Wed, 31 Jul 2002 02:45:47 +0000 (02:45 -0000)]
You fool foolish.  Goodbye level 2.

22 years agoAlways build utils by default
Eric Andersen [Wed, 31 Jul 2002 02:34:49 +0000 (02:34 -0000)]
Always build utils by default
 -Erik

22 years agoAccount for MALLOC_HEADER_SIZE when calculating new size.
Miles Bader [Wed, 31 Jul 2002 02:10:52 +0000 (02:10 -0000)]
Account for MALLOC_HEADER_SIZE when calculating new size.

22 years agoUse MALLOC_HEADER_SIZE.
Miles Bader [Wed, 31 Jul 2002 02:09:57 +0000 (02:09 -0000)]
Use MALLOC_HEADER_SIZE.

22 years ago(MALLOC_HEADER_SIZE): New macro.
Miles Bader [Wed, 31 Jul 2002 02:09:37 +0000 (02:09 -0000)]
(MALLOC_HEADER_SIZE): New macro.
(MALLOC_BASE, MALLOC_ADDR): Use it.

22 years agoMake sure NEW_SIZE is a multiple of HEAP_GRANULARITY.
Miles Bader [Tue, 30 Jul 2002 09:51:02 +0000 (09:51 -0000)]
Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY.
Calculate amount freed when shrinking correctly.

22 years agoUpdate the size of grown/shrunk allocations.
Miles Bader [Tue, 30 Jul 2002 09:47:05 +0000 (09:47 -0000)]
Update the size of grown/shrunk allocations.
MALLOC_SET_SIZE now takes the user-address rather than the base-address.

22 years agoMALLOC_SET_SIZE now takes the user-address rather than the base-address.
Miles Bader [Tue, 30 Jul 2002 09:46:24 +0000 (09:46 -0000)]
MALLOC_SET_SIZE now takes the user-address rather than the base-address.

22 years agoDefine MALLOC_SET_SIZE to take the user-address rather than the base-address.
Miles Bader [Tue, 30 Jul 2002 09:45:58 +0000 (09:45 -0000)]
Define MALLOC_SET_SIZE to take the user-address rather than the base-address.

22 years agoImplement shrinking.
Miles Bader [Tue, 30 Jul 2002 09:23:59 +0000 (09:23 -0000)]
Implement shrinking.
Fix bug when growing an allocation.
Use new malloc header macros.

22 years agoUse new malloc header macros.
Miles Bader [Tue, 30 Jul 2002 09:22:51 +0000 (09:22 -0000)]
Use new malloc header macros.

22 years agoAdd macros to abstract the malloc header format a bit.
Miles Bader [Tue, 30 Jul 2002 09:20:31 +0000 (09:20 -0000)]
Add macros to abstract the malloc header format a bit.

22 years agoAvoid errors in case some loon has explicitly included
Eric Andersen [Sat, 27 Jul 2002 08:31:42 +0000 (08:31 -0000)]
Avoid errors in case some loon has explicitly included
linux/kernel.h (even though doing so is very dumb).
 -Erik

22 years agoOops. I accidentally omitted the actual mknod() function.
Eric Andersen [Sat, 27 Jul 2002 07:16:20 +0000 (07:16 -0000)]
Oops.  I accidentally omitted the actual mknod() function.
 -Erik

22 years agoOk, I get it. sjhill kept adding the 'find' command since
Eric Andersen [Fri, 26 Jul 2002 05:21:56 +0000 (05:21 -0000)]
Ok, I get it.  sjhill kept adding the 'find' command since
include/sgidefs.h wasn't getting scrubbed.  Fix it so this
symlink gets properly scrubbed, even for mipsel.
 -Erik

22 years agoKill ill advised find command that was not doing anything
Eric Andersen [Fri, 26 Jul 2002 05:12:16 +0000 (05:12 -0000)]
Kill ill advised find command that was not doing anything
productive, but did annoying things instead.
 -Erik

22 years agoThe __set_errno macro _must_ match that defined in include/bits/errno.h. We
Eric Andersen [Fri, 26 Jul 2002 04:53:10 +0000 (04:53 -0000)]
The __set_errno macro _must_ match that defined in include/bits/errno.h.  We
can't tack in the return -1 since then when people include errno.h, the return
-1 mysteriously vanishes...  Setting the __set_errno back and restoring the
'return -1;' calls to each _syscall[0-n] macro makes mips syscalls work again.
 -Erik

22 years agoAddition to 'distclean' for little endian MIPS.
"Steven J. Hill" [Thu, 25 Jul 2002 21:16:43 +0000 (21:16 -0000)]
Addition to 'distclean' for little endian MIPS.

22 years agoldso specific syscalls and userspace syscalls all in one file now.
"Steven J. Hill" [Thu, 25 Jul 2002 21:16:01 +0000 (21:16 -0000)]
ldso specific syscalls and userspace syscalls all in one file now.

22 years agoCleanup from Neal Crook fixing some formatting and eliminating
Eric Andersen [Thu, 25 Jul 2002 09:29:15 +0000 (09:29 -0000)]
Cleanup from Neal Crook fixing some formatting and eliminating
some "sh: cd: ./lib: No such file or directory" errors.

22 years agoKill cruft. Build ldd for the host system by default.
Eric Andersen [Thu, 25 Jul 2002 09:19:17 +0000 (09:19 -0000)]
Kill cruft.  Build ldd for the host system by default.
 -Erik

22 years agoImplement syscall() for arm
Eric Andersen [Thu, 25 Jul 2002 09:16:48 +0000 (09:16 -0000)]
Implement syscall() for arm
 -Erik

22 years agoSize tweaks.
Miles Bader [Thu, 25 Jul 2002 07:31:09 +0000 (07:31 -0000)]
Size tweaks.

22 years agoMiscellaneous tidying-up.
Miles Bader [Thu, 25 Jul 2002 04:23:28 +0000 (04:23 -0000)]
Miscellaneous tidying-up.

22 years agoTake advantage of the new syscall stuff on x86 and arm to kill
Eric Andersen [Thu, 25 Jul 2002 03:31:20 +0000 (03:31 -0000)]
Take advantage of the new syscall stuff on x86 and arm to kill
the ldso specific syscalls and use the generic ones instead.
 -Erik

22 years agoRedo the locking, so that it may actually work. Now locking is done at
Miles Bader [Thu, 25 Jul 2002 01:58:57 +0000 (01:58 -0000)]
Redo the locking, so that it may actually work.  Now locking is done at
the malloc/free level, not within the heap abstraction, and there's a
separate lock to control sbrk access.

Also, get rid of the separate `unmap_free_area' function in free.c, and
just put the code in the `free' function directly, which saves a bunch
of space (even compared to using an inline function) for some reason.

22 years agoAdd support for people calling syscall()
Eric Andersen [Wed, 24 Jul 2002 19:51:46 +0000 (19:51 -0000)]
Add support for people calling syscall()
 -Erik

22 years agoRemove source files that, well, no longer exist :).
"Steven J. Hill" [Wed, 24 Jul 2002 17:29:35 +0000 (17:29 -0000)]
Remove source files that, well, no longer exist :).

22 years agoThis rule is only necessary for little endian MIPS.
"Steven J. Hill" [Wed, 24 Jul 2002 16:34:31 +0000 (16:34 -0000)]
This rule is only necessary for little endian MIPS.

22 years agoFactor out some common code sequences into inline functions.
Miles Bader [Wed, 24 Jul 2002 06:48:48 +0000 (06:48 -0000)]
Factor out some common code sequences into inline functions.

22 years agoMisc small cleanups.
Miles Bader [Wed, 24 Jul 2002 06:07:17 +0000 (06:07 -0000)]
Misc small cleanups.

22 years agoRemove, since it's entirely incorrect
Miles Bader [Wed, 24 Jul 2002 05:01:38 +0000 (05:01 -0000)]
Remove, since it's entirely incorrect

22 years ago(__ASMNAME): Use C_SYMBOL_PREFIX.
Miles Bader [Wed, 24 Jul 2002 02:16:28 +0000 (02:16 -0000)]
(__ASMNAME): Use C_SYMBOL_PREFIX.
(__ASMNAME2): Macro removed.

22 years ago* Automatically try to unmap heap free-areas when they get very big.
Miles Bader [Tue, 23 Jul 2002 06:50:40 +0000 (06:50 -0000)]
* Automatically try to unmap heap free-areas when they get very big.

* Instead of using mmap/munmap directly for large allocations, just use
  the heap for everything (this is reasonable now that heap memory can
  be unmapped).

* Use sbrk instead of mmap/munmap on systems with an MMU.

22 years agoAdd some syscalls which I moved out of syscalls.c
Eric Andersen [Mon, 22 Jul 2002 17:11:58 +0000 (17:11 -0000)]
Add some syscalls which I moved out of syscalls.c
 -Erik

22 years agoRework syscall handling. Rewrite syscall handlers for x86 and ARM.
Eric Andersen [Mon, 22 Jul 2002 17:10:30 +0000 (17:10 -0000)]
Rework syscall handling.  Rewrite syscall handlers for x86 and ARM.
Prepare to kill the UNIFIED_SYSCALL option and instead have it be
a per arch thing that is either enabled or not for that arch.
 -Erik

22 years agoFix spelling
Eric Andersen [Fri, 19 Jul 2002 08:09:17 +0000 (08:09 -0000)]
Fix spelling

22 years agoDoc fix.
Miles Bader [Fri, 19 Jul 2002 04:27:30 +0000 (04:27 -0000)]
Doc fix.

22 years agoRename mutex stuff to use heap-specific names.
Miles Bader [Fri, 19 Jul 2002 04:26:41 +0000 (04:26 -0000)]
Rename mutex stuff to use heap-specific names.
Doc fix.

22 years agoMiles Bader implemented a new mmap based malloc which is much
Eric Andersen [Thu, 18 Jul 2002 15:00:07 +0000 (15:00 -0000)]
Miles Bader implemented a new mmap based malloc which is much
smarter than the old "malloc-simple", and actually works, unlike
the old "malloc".  So kill the old "malloc-simple" and the old
"malloc" and replace them with Miles' new malloc implementation.
Update Config files to match.  Thanks Miles!

22 years agoFix from "Gerhard Uttenthaler" <uttenthaler@ems-wuensche.com> so
Eric Andersen [Tue, 16 Jul 2002 15:02:01 +0000 (15:02 -0000)]
Fix from "Gerhard Uttenthaler" <uttenthaler@ems-wuensche.com> so
that cfsetspeed would actually be compiled in.

22 years agoWe don't need the debug versions
Eric Andersen [Tue, 16 Jul 2002 12:34:42 +0000 (12:34 -0000)]
We don't need the debug versions

22 years ago__morecore need not be a function pointer
Eric Andersen [Tue, 16 Jul 2002 12:33:48 +0000 (12:33 -0000)]
__morecore need not be a function pointer

22 years agoDisable debug stuff by default
Eric Andersen [Tue, 16 Jul 2002 12:27:00 +0000 (12:27 -0000)]
Disable debug stuff by default

22 years agoOdd. Got a copy of junk in here.
Eric Andersen [Tue, 16 Jul 2002 12:20:40 +0000 (12:20 -0000)]
Odd.  Got a copy of junk in here.

22 years agoDo not assume NULL termination on the ut_id field. Thanks
Eric Andersen [Tue, 16 Jul 2002 10:56:19 +0000 (10:56 -0000)]
Do not assume NULL termination on the ut_id field.  Thanks
to mac12@po.cwru.edu for spotting this one.

22 years agoClean up CLK_TCK situation. clock() and sysconf() now use an
Manuel Novoa III [Mon, 15 Jul 2002 16:26:52 +0000 (16:26 -0000)]
Clean up CLK_TCK situation.  clock() and sysconf() now use an
arch-specific constant value defined in bits/uClibc_clk_tck.h.
Default is 100 (common/bits) but alpha uses 1024 following glibc.
Override per arch as necessary.

22 years agostupid cut-n-paste bug
Eric Andersen [Mon, 15 Jul 2002 12:16:05 +0000 (12:16 -0000)]
stupid cut-n-paste bug
 -Erik

22 years agoPatch for a silly bug from David Blythe
Eric Andersen [Mon, 15 Jul 2002 10:15:07 +0000 (10:15 -0000)]
Patch for a silly bug from David Blythe

22 years agoSilence a couple of silly warnings
Eric Andersen [Mon, 15 Jul 2002 10:03:12 +0000 (10:03 -0000)]
Silence a couple of silly warnings
 -Erik

22 years agoRework pread and pwrite support so it should actually work.
Eric Andersen [Mon, 15 Jul 2002 09:59:46 +0000 (09:59 -0000)]
Rework pread and pwrite support so it should actually work.
Add support for pread64 and pwrite64.  Fixup llseek a bit.
 -Erik

22 years agoAdd both pthread_mutexattr_setpshared() and
Eric Andersen [Sun, 14 Jul 2002 07:01:41 +0000 (07:01 -0000)]
Add both pthread_mutexattr_setpshared() and
pthread_mutexattr_getpshared(), which were
missing
 -Erik

22 years agoAdd missing pthread_condattr_getpshared and pthread_condattr_setpshared
Eric Andersen [Sun, 14 Jul 2002 06:52:23 +0000 (06:52 -0000)]
Add missing pthread_condattr_getpshared and pthread_condattr_setpshared
 -Erik

22 years agoKill this stale file
Eric Andersen [Thu, 11 Jul 2002 14:06:06 +0000 (14:06 -0000)]
Kill this stale file

22 years agoNote updated toolchains are available
Eric Andersen [Thu, 11 Jul 2002 10:14:26 +0000 (10:14 -0000)]
Note updated toolchains are available
 -Erik

22 years agoGrumble...
Miles Bader [Thu, 11 Jul 2002 07:15:29 +0000 (07:15 -0000)]
Grumble...

22 years agoThe mips config files were broken, and failed to define NM
Eric Andersen [Wed, 10 Jul 2002 05:40:19 +0000 (05:40 -0000)]
The mips config files were broken, and failed to define NM
for some reason...

22 years agoTobias Anderberg <tobias.anderberg@axis.com> noticed that
Eric Andersen [Wed, 10 Jul 2002 04:38:37 +0000 (04:38 -0000)]
Tobias Anderberg <tobias.anderberg@axis.com> noticed that
we were opening the socket() as SOCK_STREAM instead of
using SOCK_DGRAM like we should have done.

22 years agoPer bug report from Ronald Wahl <rwa@peppercon.com>:
Eric Andersen [Wed, 10 Jul 2002 04:32:03 +0000 (04:32 -0000)]
Per bug report from Ronald Wahl <rwa@peppercon.com>:
    ...inet_pton breaks since tolower is implemented as
    a macro and its argument is evaluated more than once:

while ((ch = tolower (*src++)) != '\0') {

So I fixed it by just undefining tolower() so we use the
function version, not the macro.
 -Erik

22 years agoAdd missing stropts.h
Eric Andersen [Wed, 10 Jul 2002 04:15:31 +0000 (04:15 -0000)]
Add missing stropts.h

22 years agoPatch from Ronald Wahl <rwa@peppercon.com> to fix a memory leak
Eric Andersen [Wed, 10 Jul 2002 04:09:18 +0000 (04:09 -0000)]
Patch from Ronald Wahl <rwa@peppercon.com> to fix a memory leak

22 years agoFix a typo
Eric Andersen [Mon, 8 Jul 2002 22:02:34 +0000 (22:02 -0000)]
Fix a typo