Jeff Johnston
084fba647c
Fix reference to __mknod syscall to pass proper third argument.
2006-03-29 21:50:52 +00:00
Jeff Johnston
fac690bef7
2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/io.c (__mknod): Fix declaration of
syscall to pass a dev_t as third argument rather than
a pointer to dev_t.
2006-03-29 21:49:58 +00:00
Jeff Johnston
9e443adbaf
2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/net/name6.c: Fix struct references.
2006-03-29 21:45:17 +00:00
Mark Mitchell
3078fb4f36
* acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
...
* configure.in (--disable-newlib-atexit-dynamic-alloc): New
option.
* configure: Regenerated.
* newlib.hin: Regenerated.
* libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
if _ATEXIT_DYNAMIC_ALLOC is undefined.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
if _ATEXIT_DYNAMIC_ALLOC is undefined.
2006-03-21 00:57:34 +00:00
Jeff Johnston
9d5cff74ae
2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/linuxthreads/config.h: Remove definition
of UINT32_C.
2006-03-17 22:27:37 +00:00
Jeff Johnston
490cfb83e9
2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer
for a string I/O file that isn't using the asprintf family.
2006-03-15 22:38:59 +00:00
Jeff Johnston
ce10f1789e
2006-03-07 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
filename, allow read-only or write-only FILE atop O_RDWR file
descriptor.
* libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
2006-03-07 22:20:18 +00:00
Jeff Johnston
e48682cff5
2006-02-27 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
s_isnand, and sf_isnanf object files.
* Makefile.in: Regenerated.
* libc/include/ieeefp.h: Undef isnan and isinf to avoid
conflict if <math.h> has previously been included.
* libc/include/math.h
* libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and
sf_isinf files which have been moved from math/mathfp directories.
* libm/common/Makefile.in: Regenerated.
* libm/common/s_isinfd.c: New file.
* libm/common/s_isnand.c: Ditto.
* libm/common/sf_isinff.c: Ditto.
* libm/common/sf_isnanf.c: Ditto.
* libm/common/s_isinf.c: Moved from libm/math directory.
* libm/common/s_isnan.c: Ditto.
* libm/common/sf_isinf.c: Ditto.
* libm/common/sf_isnan.c: Ditto.
* libm/math/Makefile.am: Remove isinf and isnan family functions
which have been moved into common directory.
* libm/mathfp/Makefile.am: Ditto.
* libm/math/Makefile.in: Regenerated.
* libm/mathfp/Makefile.in: Ditto.
* libm/math/s_isinf.c: Removed.
* libm/math/s_isnan.c: Ditto.
* libm/math/sf_isinf.c: Ditto.
* libm/math/sf_isnan.c: Ditto.
* libm/mathfp/s_isinf.c: Ditto.
* libm/mathfp/s_isnan.c: Ditto.
* libm/mathfp/sf_isinf.c: Ditto.
* libm/mathfp/sf_isnan.c: Ditto.
2006-02-27 23:51:28 +00:00
Jeff Johnston
99db626d21
2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/fflush.c (fflush): For an fflush on a read-only
stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
* libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
seek, turn off the __SNPT no-optimization flag.
2006-02-20 23:24:00 +00:00
Jeff Johnston
49103e2ba4
2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
will be defined.
* libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
<features.h> to preset special flags.
2006-02-16 21:25:45 +00:00
Corinna Vinschen
680e0f1ffd
* libc/include/sys/time.h (struct timeval): Change member types
...
according to SUSv3.
* libc/include/sys/types.h (useconds_t): Change to unsigned
according to SUSv3.
(suseconds_t): Define type.
2006-02-15 10:26:30 +00:00
Jeff Johnston
d6593503c6
2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
...
David Carne <davidcarne@gmail.com>
* libc/string/strndup_r.c (_strndup_r): Use strnlen logic
instead of strlen to determine number of bytes to copy.
* libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
before looking at storage location.
2006-02-13 17:27:50 +00:00
Jeff Johnston
9bbe6d5d28
2006-02-07 Paul Brook <paul@codesourcery.com>
...
* libc/machine/arm/setjmp.S: Add Thumb-2 support.
* libc/sys/arm/crt0.S: Add Thumb-2 startup code.
* libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
* libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
* libc/sys/arm/trap.S: Disable for Thumb-2.
2006-02-07 18:44:54 +00:00
Jeff Johnston
d968b3c86f
2006-01-31 Leif Ekblad <leif@rdos.net>
...
* configure.host: RDOS support added
* libc/include/sys/config.h: Ditto.
* libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
* libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
* libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
* libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
* libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
* libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
* libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
* libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
* libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
* libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
* libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
* libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
* libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
* libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
* libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
* libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
* libc/sys/rdos/write.c: Ditto.
2006-01-31 19:33:56 +00:00
Jeff Johnston
54abc854d0
2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
...
* acconfig.h: New file to generate newlib.hin from.
* newlib.hin: Regenerated.
* stamp-h.in: Regenerated.
* Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
called automatically.
* Makefile.in: Regenerated.
* acinclude.m4: Add proper comment for hack in previous change.
* aclocal.m4 */aclocal.m4: Regenerated.
* configure */configure: Regenerated.
2006-01-20 22:42:46 +00:00
Jeff Johnston
33c9cfbde9
2006-01-11 Jeff Johnston <jjohnstn@redhat.com>
...
* acinclude.m4: Add hack to prevent INSTALL in subdirs
from being set to "../".
* Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.in: Ditto.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/*/aclocal.m4: Ditto.
* libc/*/configure: Ditto.
* libc/libc.texinfo: Ditto.
* libm/*/aclocal.m4: Ditto.
* libm/*/configure: Ditto.
2006-01-11 23:50:33 +00:00
Jeff Johnston
dea958bc06
2006-01-10 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-10 17:09:43 +00:00
Jeff Johnston
64ae8ab5f0
2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
* libc/stdio64/freopen64.c: Ditto.
2006-01-09 20:01:09 +00:00
Jeff Johnston
0da7297ef1
2006-01-09 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-09 17:51:01 +00:00
Jeff Johnston
a37aaf88a8
2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/getopt.h: Add macros needed by
new version of getopt.c in libc/stdlib.
2006-01-06 20:59:13 +00:00
Jeff Johnston
791c9bda57
2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
...
* libc/stdlib/getopt.c: Replaced with version
that adds getopt_long and getopt_long_only support.
* libc/include/getopt.h: New file.
2006-01-04 21:21:52 +00:00
Jeff Johnston
0217078f77
2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 1.14.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 1.14.0.
* aclocal.m4: Regenerated.
* configure: Ditto.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* libc/*/aclocal.m4: Ditto.
* libc/*/configure: Ditto.
* libc/libc.texinfo: Ditto.
* libm/*/aclocal.m4: Ditto.
* libm/*/configure: Ditto.
* libm/libm.texinfo: Ditto.
* libc/sys/linux/shared.ld: Add VERS_1.14.
2005-12-16 20:49:42 +00:00
Jeff Johnston
a4cd7f20f7
2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
take a pointer to struct stat64 rather than struct stat.
2005-12-16 19:11:10 +00:00
Jeff Johnston
843e635aaa
2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h: Prefer long over int for int32_t.
Use __have_long32 to set up int32_t.
* libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
(Sync with stdint.h).
2005-12-16 19:03:12 +00:00
Corinna Vinschen
10cba930d4
* libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
...
typo in O_NDELAY comment.
2005-12-14 09:06:00 +00:00
Jeff Johnston
c8ba5c2205
2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
...
* libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
* libc/include/machine/setjmp.h (__mt__): Likewise.
* libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
* libc/machine/configure.in: Ditto.
2005-12-13 22:57:31 +00:00
Nathan Sidwell
ad83f0cc13
Rename ms1 files to mt files (part 1 -- renames only)
2005-12-12 11:16:41 +00:00
Jeff Johnston
2a1fc53c92
2005-12-08 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/sys/types.h: Remove the ifdef armour around
standard POSIX types.
2005-12-08 19:45:43 +00:00
Jeff Johnston
77e70d34ce
2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
rtems_gxx_key_delete, rtems_gxx_getspecific,
rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
2005-12-06 21:58:45 +00:00
Christopher Faylor
b1da33a0b0
* libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.
...
Declare unsetenv and _unsetenv_r when not cygwin.
2005-12-05 22:15:21 +00:00
Jeff Johnston
6b1a6ec67b
2005-11-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/strptime.c (strptime): Don't abort for %c and %Z.
Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
2005-11-18 19:00:29 +00:00
Corinna Vinschen
ef1206e45b
* libc/include/ieeefp.h: Add C++ guards.
2005-11-18 17:40:21 +00:00
Christopher Faylor
d7d477b7f7
* include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
2005-11-18 16:08:10 +00:00
Christopher Faylor
c1534dbe09
* include/time.h: Remove more cygwin-specific stuff.
2005-11-18 15:57:24 +00:00
Christopher Faylor
d3e81bdac8
* include/time.h: Move cygwin declarations to cygwin-specific header.
...
* include/sys/time.h: Rename cygwin include to "sys_time.h".
2005-11-18 15:45:54 +00:00
Jeff Johnston
1396951b20
2005-11-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
in libc/sys/linux/include.
* libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
* libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
* libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
in libc/sys/linux/dl.
2005-11-17 21:51:21 +00:00
Christopher Faylor
37bd11ed12
* libc/include/sys/time.h: For cygwin, use general header rather than specific
...
"sys/select.h".
2005-11-11 16:23:36 +00:00
Jeff Johnston
b397593c94
2005-11-08 Tom Walsh <tom@openhardware.net>
...
* libc/time/tzvars.c: New file.
* libc/time/tzset_r.c: Moved globals into tzvars.c
so other time functions needn't link in __tzset_r and its
dependencies.
* libc/time/Makefile.am: Add the new file.
* libc/time/Makefile.in: Regenerated.
2005-11-08 22:44:16 +00:00
Christopher Faylor
86c6c4212f
* libc/include/string.h: Add cygwin-specific function declaration.
2005-11-08 22:10:33 +00:00
Jeff Johnston
15eaca1c3f
2005-11-03 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/unix/getcwd.c: Don't use non-reentrant syscall names.
* libc/unix/getlogin.c: Ditto.
* libc/unix/getpass.c: Ditto.
* libc/unix/getut.c: Ditto.
* libc/unix/ttyname.c: Ditto.
2005-11-03 20:47:50 +00:00
Jeff Johnston
d31a862312
2005-11-03 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/sys/unistd.h (readlink, symlink): Provide these
prototypes by default.
* libc/sys/linux/include/unistd.h (readlink): Remove this
prototype.
* libc/sys/linux/sys/unistd.h (readlink, symlink): New
prototypes.
2005-11-03 16:52:15 +00:00
Jeff Johnston
71ac53ee13
2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h: Cleanup #if vs. #ifdef.
2005-11-01 22:26:21 +00:00
Jeff Johnston
884c0ff016
2005-10-28 Bob Wilson <bob.wilson@acm.org>
...
* libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
* libc/stdio/siscanf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdio/vfprintf.c: Likewise.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdio/viprintf.c: Likewise.
* libc/stdio/viscanf.c: Likewise.
2005-10-28 21:38:59 +00:00
Jeff Johnston
a9c15f6feb
2005-10-28 Bob Wilson <bob.wilson@acm.org>
...
* libc/sys.tex (Stubs): Format examples consistently. Change sbrk
example to use "_end" symbol instead of "end". Change write example
to use "outbyte" instead of "writechar".
2005-10-28 21:36:05 +00:00
Jeff Johnston
a306ebc97e
2005-10-28 Bob Wilson <bob.wilson@acm.org>
...
* libc/ctype/ctype.tex: Use hyphens as appropriate, but not otherwise.
* libc/ctype/islower.c: Likewise.
* libc/ctype/isupper.c: Likewise.
* libc/ctype/iswalnum.c: Likewise.
* libc/ctype/iswalpha.c: Likewise.
* libc/ctype/iswblank.c: Likewise.
* libc/ctype/iswcntrl.c: Likewise.
* libc/ctype/iswdigit.c: Likewise.
* libc/ctype/iswgraph.c: Likewise.
* libc/ctype/iswlower.c: Likewise.
* libc/ctype/iswprint.c: Likewise.
* libc/ctype/iswpunct.c: Likewise.
* libc/ctype/iswspace.c: Likewise.
* libc/ctype/iswupper.c: Likewise.
* libc/ctype/iswxdigit.c: Likewise.
* libc/ctype/tolower.c: Likewise.
* libc/ctype/toupper.c: Likewise.
* libc/ctype/towctrans.c: Likewise.
* libc/ctype/towlower.c: Likewise.
* libc/ctype/towupper.c: Likewise.
* libc/string/strcasecmp.c: Likewise.
* libc/string/strcoll.c: Likewise.
* libc/string/strings.tex: Likewise.
* libc/string/strlwr.c: Likewise.
* libc/string/strncasecmp.c: Likewise.
* libc/string/strupr.c: Likewise.
* libc/string/wcscoll.c: Likewise.
* libc/string/wcslcat.c: Likewise.
* libc/string/wcslcpy.c: Likewise.
* libc/string/wcsnlen.c: Likewise.
* libc/string/wcsstr.c: Likewise.
* libc/string/wcstrings.tex: Likewise.
* libc/string/wmemchr.c: Likewise.
* libc/string/wmemcmp.c: Likewise.
* libc/string/wmemcpy.c: Likewise.
* libc/string/wmemmove.c: Likewise.
* libc/string/wmemset.c: Likewise.
2005-10-28 21:33:23 +00:00
Jeff Johnston
239c2bf93e
2005-10-28 Bob Wilson <bob.wilson@acm.org>
...
* libc/misc/unctrl.c: Replace FUNCTION description.
* libc/signal/signal.c: Remove documentation for raise and _raise_r.
* libc/stdio/getdelim.c: Fix spelling errors.
* libc/stdio/getw.c: Put RETURNS on a separate line. Fix punctuation.
* libc/stdio/putw.c: Likewise.
* libc/stdlib/a64l.c: Fix formatting, spelling and punctuation in
documentation.
* libc/stdlib/assert.c: Do not capitalize FUNCTION description.
* libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
* libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
* libc/stdlib/mlock.c: Likewise.
* libc/stdlib/mstats.c: Likewise.
* libc/time/tzlock.c: Likewise.
* libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe" in NOTES.
* libc/stdlib/rand48.c: Remove extra space in FUNCTION description
and hyphenate "pseudo-random".
* libc/string/bcmp.c: Remove extra blank lines in documentation.
* libc/string/strncat.c: Likewise.
* libc/string/memchr.c: Remove extra ">" character in documentation.
* libc/string/strcspn.c: Use "characters" instead of "chars".
* libc/string/strpbrk.c: Likewise.
* libc/string/strerror_r.c: Capitalize "GNU".
* libc/string/strnlen.c: Likewise.
* libc/string/strtok.c: Fix formatting, spelling and punctuation in
documentation. Use "multi-threaded" and "thread-safe" in NOTES.
* libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
* libc/string/wcschr.c: Likewise.
* libc/string/wcscmp.c: Likewise.
* libc/string/wcscpy.c: Likewise.
* libc/string/wcscspn.c: Likewise.
* libc/string/wcslen.c: Likewise.
* libc/string/wcsncat.c: Likewise.
* libc/string/wcsncmp.c: Likewise.
* libc/string/wcsncpy.c: Likewise.
* libc/string/wcsnlen.c: Likewise.
* libc/string/wcspbrk.c: Likewise.
* libc/string/wcsrchr.c: Likewise.
* libc/string/wcsspn.c: Likewise.
* libc/string/wmemchr.c: Likewise.
* libc/string/wmemcmp.c: Likewise.
* libc/string/wmemcpy.c: Likewise.
* libc/string/wmemset.c: Likewise.
* libc/string/wmemmove.c: Likewise. Also fix FUNCTION description.
* libc/string/wcswidth.c: Formatting and punctuation in documentation.
* libc/string/wcwidth.c: Likewise.
* libm/common/s_modf.c: Remove extra period from documentation.
* libm/math/s_isnan.c: Fix formatting, grammar and punctuation in
documentation.
* libm/mathfp/s_isnan.c: Likewise.
* libm/math/s_ldexp.c: Fix punctuation.
* libm/mathfp/s_ldexp.c: Likewise.
* libm/math/w_log.c: Likewise.
* libm/mathfp/s_logarithm.c: Likewise.
* libm/math/w_j0.c: Add spaces to FUNCTION description.
* libm/mathfp/w_jn.c: Likewise.
2005-10-28 21:21:08 +00:00
Jeff Johnston
2556eb8d41
2005-10-26 Shaun Jackman <sjackman@gmail.com>
...
* libc/posix/scandir.c (scandir): Update the function
prototype to match the header.
* libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
extraneous #endif.
* libc/sys/linux/sys/lock.h: Do not include
machine/weakalias.h, since it's not used by this file.
2005-10-26 22:16:34 +00:00
Jeff Johnston
c9d71a8d46
2005-10-26 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/Makefile.am: Reorder SUBLIBS so machine and sys
directories can override properly.
2005-10-26 22:10:51 +00:00
Jeff Johnston
09968b6d27
2005-10-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
gcc is 3.3 or greater, use special gcc builtins.
2005-10-20 21:42:33 +00:00
Corinna Vinschen
c70571bdbe
* libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
2005-10-20 14:38:57 +00:00
Corinna Vinschen
a92822b747
* libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
2005-10-18 18:39:46 +00:00
Jeff Johnston
d2c2c1328b
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
* libm/common/Makefile.am: Add s_infconst.c support.
* libm/common/Makefile.in: Regenerated.
* libm/common/s_infconst.c: New file with float and
long double infinity support added.
* libm/math/Makefile.am: Remove s_infconst.c support.
* libm/math/Makefile.in: Regenerated.
* libm/math/s_infconst.c: Moved to common directory.
* libm/mathfp/Makefile.am: Remove s_infconst.c support.
* libm/mathfp/Makefile.in: Regenerated.
* libm/mathfp/s_infconst.c: Moved to common directory.
2005-10-14 21:11:39 +00:00
Jeff Johnston
4d57c1edc7
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
dbgprintf to prevent conflict with new dprintf function.
2005-10-14 21:06:20 +00:00
Jeff Johnston
1012585f1f
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
"nan" processing for systems that have long double support.
2005-10-14 21:03:13 +00:00
Jeff Johnston
e9154015a0
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/sys/types.h (int8_t): Add type.
2005-10-14 20:01:55 +00:00
Jeff Johnston
e0811fb3bf
2005-10-14 Bob Wilson <bob.wilson@acm.org>
...
* libc/libc.texinfo (Top): Surround this node with @ifnottex
instead of @ifinfo. Update menu to add Introduction and match
SUBDIRS order.
(Introduction): New section.
2005-10-14 18:45:19 +00:00
Jeff Johnston
e63c98c61b
2005-10-14 Bob Wilson <bob.wilson@acm.org>
...
* libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
with "Red Hat newlib C Library".
* libc/sys.tex (Stubs): Likewise.
* libm/math/math.tex (Math): Likewise.
* libm/mathfp/mathfp.tex (Math): Likewise.
2005-10-14 18:37:24 +00:00
Jeff Johnston
339195bf12
2005-10-11 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/stdio.h (dprintf): New declaration.
(vdprintf): Ditto.
* libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
and vdprintf.c.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/dprintf.c: New file.
* libc/stdio/vdprintf.c: New file.
* libc/stdio/stdio.tex (dprintf): New entry.
2005-10-11 23:59:32 +00:00
Jeff Johnston
da71e51811
2005-10-11 David Weatherford <weath@tensilica.com>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
Print "inf" and "nan" in lowercase for e/f/g formats and in
uppercase for E/F/G formats.
2005-10-11 22:51:37 +00:00
Jeff Johnston
f011605a90
2005-10-07 Bob Wilson <bob.wilson@acm.org>
...
* libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
to ENOMEM on failure.
2005-10-07 18:07:26 +00:00
Jeff Johnston
bc037f3a51
2005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h: Add [u]int_fast<N>_t types.
2005-10-06 19:46:21 +00:00
Jeff Johnston
c7e209797c
2005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h: Move magic to set __have_long* to the
beginning. Use #if __have* instead of #if defined(__have*).
Minor typo fixes.
2005-10-04 21:02:59 +00:00
Jeff Johnston
58e78add8b
2005-10-04 James E Wilson <wilson@specifix.com>
...
* libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add
#error.
2005-10-04 20:47:39 +00:00
Jeff Johnston
8afb8202d4
2005-10-03 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/stdint.h: Include <sys/types.h> and
incorporate Ralf's change below.
2005-10-03 17:22:38 +00:00
Jeff Johnston
14491fd0e0
2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h:
Use __INTMAX_TYPE__ to derive intmax_t.
Use __UINTMAX_TYPE__ to derive uintmax_t.
Fix minor typo.
2005-10-03 17:02:48 +00:00
Jeff Johnston
ee694aea01
2005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
handling GCC >= 4.
2005-09-27 20:49:53 +00:00
Jeff Johnston
9f1926f2d8
2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/stdint.h: Update to match functionality
of generic newlib stdint.h.
2005-09-20 22:36:07 +00:00
Jeff Johnston
0ce4fcefed
2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
and do not #undef the macro after it is used. Fix typos.
Also change 64-bit constants to use the __have_long64 and
__have_longlong64 flags to determine if long or long long
constants should be used.
* libc/include/inttypes.h: Include stddef.h to get wchar_t
type defined.
2005-09-20 21:21:51 +00:00
Jeff Johnston
1706081793
2005-09-20 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/stdint.h: Fix typo in names of
LEAST macros.
2005-09-20 19:33:58 +00:00
Jeff Johnston
1e1d1d3d7e
2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/rtems/include/inttypes.h: Moved to...
* libc/include/inttypes.h: ...here.
2005-09-20 19:25:57 +00:00
Jeff Johnston
cddfc170fd
2005-09-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/rtems/include/stdint.h: Moved to...
* libc/include/stdint.h: ...here.
2005-09-19 22:02:23 +00:00
Jeff Johnston
b10ab72581
2005-09-08 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am: Add include files under bits sub-directory.
* Makefile.in: Regenerated.
* libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
actual value of 1 to be compatible with newer glibc headers.
* libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
glibc headers.
* libc/sys/linux/sys/dirent.h: Ditto.
* libc/sys/linux/argp/argp-xinl.c: Ditto.
* libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
profile_fixup routines are marked used so they won't be
optimized away.
* libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
to mark functions as weak.
* libc/sys/linux/dl/dl-open.c: Ditto.
* libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
rules about lvalues.
* libc/sys/linux/iconv/gconv_simple.c: Ditto.
* libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
weak_extern macro to mark functions as weak. Instead always
use #pragma weak.
* iconvdata/jis0208.h: Fix to work with gcc4.
* libc/sys/linux/dl/dl-load.c: Ditto.
* libc/sys/linux/dl/dl-reloc.c: Ditto.
* libc/sys/linux/dl/do-rel.h: Ditto.
* libc/sys/linux/dl/dynamic-link.h: Ditto.
* libc/sys/linux/include/ltdl.h: Ditto.
* libc/sys/linux/machine/i386/dl-machine.h: Ditto.
* libc/sys/linux/machine/i386/weakalias.h: Ditto.
* libc/sys/linux/net/ns_ntoa.c: Ditto.
* libc/sys/linux/bits/initspin.h: New file.
* libc/sys/linux/bits/libc-lock.h: Ditto.
* libc/sys/linux/bits/pthreadtypes.h: Ditto.
* libc/sys/linux/bits/typesizes.h: Ditto.
2005-09-08 22:45:53 +00:00
Jeff Johnston
7b786e4861
2005-09-08 Eric Blake <ebb9@byu.net>
...
* libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
before is NULL.
2005-09-08 21:07:43 +00:00
Jeff Johnston
8f36ef2f33
2005-09-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Add prototype for viprintf.
2005-09-02 15:39:29 +00:00
Jeff Johnston
45c8bb8f8c
2005-08-31 Paul Brook <paul@codesourcery.com>
...
* configure.host: Set have_crt0 to no for Arm targts when not
providing syscalls. Set sys_dir=arm unconditionally.
Default have_crt0 based on sys_dir.
* configure.in: Use have_crt0.
* libc/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* configure: Regenerate.
* libc/configure: Regenerate.
* libc/sys/configure: Regenerate.
* libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
Only build other files when providing syscalls.
* libc/sys/arm/Makefile.in: Regenerate.
* libc/sys/arm/aeabi_atexit.c: New file.
2005-08-31 20:39:43 +00:00
Christopher Faylor
dbeee890d4
* libc/include/string.h: Revert previous change.
2005-08-26 04:33:02 +00:00
Christopher Faylor
377d3ea0e2
* libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
2005-08-25 23:02:24 +00:00
Jeff Johnston
4797a77c28
2005-08-22 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
define _opendir as opendir, _readdir as readdir, and
_closedir as closedir so that the implementations in
libc/posix will be used.
2005-08-22 21:13:35 +00:00
Jeff Johnston
56448afa06
2005-08-10 DJ Delorie <dj@redhat.com>
...
* configure.host: Add m32c support.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/sys/config.h: Likewise.
* libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
* libc/machine/m32c/aclocal.m4: New file.
* libc/machine/m32c/configure: Ditto.
* libc/machine/m32c/configure.in: Ditto.
* libc/machine/m32c/Makefile.am: Ditto.
* libc/machine/m32c/Makefile.in: Ditto.
* libc/machine/m32c/setjmp.S: Ditto.
2005-08-10 20:35:13 +00:00
Hans-Peter Nilsson
12499c7a5d
* libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
...
used.
2005-07-26 20:37:13 +00:00
Jeff Johnston
108d7dd833
2005-07-19 Paul Brook <paul@codesourcery.com>
...
* libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
2005-07-19 15:14:16 +00:00
Jeff Johnston
88540e248e
2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
...
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
2005-07-08 18:28:46 +00:00
Jeff Johnston
b32adfc5cf
*** empty log message ***
2005-07-07 17:29:13 +00:00
Aldy Hernandez
dee9edd9ed
* configure.host: Added entry for ms1*.
...
* libc/include/machine/ieeefp.h: Handle ms1.
* libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
* libc/machine/ms1/aclocal.m4: New.
* libc/machine/ms1/configure: New.
* libc/machine/ms1/configure.in: New.
* libc/machine/ms1/Makefile.am: New.
* libc/machine/ms1/Makefile.in: New.
* libc/machine/ms1/setjmp.S: New.
2005-07-06 13:14:10 +00:00
Jeff Johnston
68cdbb18da
2005-06-16 Christopher Faylor <cgf@timesys.com>
...
* libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
determine characteristics of long double. Use a union instead.
* ldtoa.c (_ldtoa_r): Ditto.
(_ldcheck): Ditto.
(_strtold): Ditto.
(union uconv): New union.
2005-06-16 19:14:01 +00:00
Jeff Johnston
15c04fd16e
2005-06-03 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
instead of memcpy.
2005-06-03 18:57:30 +00:00
Jeff Johnston
b6e654c498
2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/getpwuid.c: Removed.
* libc/sys/linux/getpwnam.c: Removed.
* libc/sys/linux/getpwent.c: New file containing logic
from files removed above. This allows overriding of file
in libc/unix.
* libc/sys/linux/Makefile.am: Support changes above.
* libc/sys/linux/Makefile.in: Regenerated.
2005-05-12 22:06:26 +00:00
Jeff Johnston
5456408b84
2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
when checking for multiple flags.
2005-04-28 18:26:08 +00:00
Jeff Johnston
6e75bff67d
2005-04-08 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/libgen.h: New file.
2005-04-08 Shaun Jackman <sjackman@gmail.com>
* libc/unix/Makefile.am: Add support for basename and dirname.
* libc/unix/Makefile.in: Regenerated.
* libc/unix/basename.c: New file.
* libc/unix/dirname.c: New file.
2005-04-08 20:48:40 +00:00
Jeff Johnston
95c136c40a
2005-04-07 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/inode.c (lchown): New function.
2005-04-07 23:40:42 +00:00
Jeff Johnston
9ae26f7e2e
2005-04-07 Shaun Jackman <sjackman@gmail.com>
...
* libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
ELIX level is defined.
* libc/unix/Makefile.in: Regenerated.
2005-04-07 23:37:06 +00:00
Jeff Johnston
85da703991
2005-04-05 Dave Korn <dave.korn@artimi.com>
...
* libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
something that looks like a "NaN", put back the characters processed.
2005-04-05 18:38:09 +00:00
Corinna Vinschen
fefc73a0c7
* libc/stdlib/strtod.c (_strtod_r): Never change s00.
2005-04-01 09:54:19 +00:00
Jeff Johnston
859c94e8de
2005-03-22 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
* libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
than errno.
2005-03-22 23:45:43 +00:00
Christopher Faylor
7e3fd32b1c
* libc/include/machine/_types.h: Make trivial change to comment to avoid a
...
spurious warning from gcc.
2005-03-22 18:12:29 +00:00
Jeff Johnston
d4eb892018
2005-03-21 Nicholas Wourms <nwourms@netscape.net>
...
* libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
since _WANT_IO_POS_ARGS is now defined in there. Remove duplicate
reent.h include.
2005-03-21 22:34:35 +00:00
Jeff Johnston
45030958d3
2005-03-18 Hans-Peter Nilsson <hp@axis.com>
...
Corinna Vinschen <corinna@vinschen.de>
* libc/include/ctype.h: Remove invalid +1 offset from
ctype macro references to __ctype_ptr.
(_ctype_): Move declaration outside #ifndef __cplusplus.
2005-03-18 17:18:59 +00:00
Corinna Vinschen
5c9b5ac72d
* libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
...
evaluate first parameter only once.
(siglongjmp): Ditto.
2005-03-18 09:46:30 +00:00
Jeff Johnston
dd801fdabd
2005-03-17 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.in: Add new check to see if compiler supports
aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
* configure: Regenerated.
* Makefile.in: Ditto.
* newlib.hin: Add _HAVE_ARRAY_ALIASING.
* libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
aliasing the _ctype_ array to _ctype_b.
* libc/include/ctype.h: Change macros to use __ctype_ptr. Mark
_ctype_ as deprecated.
2005-03-17 20:11:23 +00:00
Jeff Johnston
df5a5b3592
2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/include/inttypes.h: New file.
* libc/sys/rtems/include/stdint.h: Ditto.
2005-03-06 20:51:38 +00:00