aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
AgeCommit message (Collapse)AuthorFilesLines
2005-11-032005-11-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-21/+21
* 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-032005-11-03 Shaun Jackman <sjackman@gmail.com>Jeff Johnston3-3/+3
* 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-012005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston1-9/+8
* libc/include/stdint.h: Cleanup #if vs. #ifdef.
2005-10-282005-10-28 Bob Wilson <bob.wilson@acm.org>Jeff Johnston8-29/+37
* 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-282005-10-28 Bob Wilson <bob.wilson@acm.org>Jeff Johnston1-42/+41
* 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-282005-10-28 Bob Wilson <bob.wilson@acm.org>Jeff Johnston37-133/+133
* 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-282005-10-28 Bob Wilson <bob.wilson@acm.org>Jeff Johnston42-109/+111
* 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-262005-10-26 Shaun Jackman <sjackman@gmail.com>Jeff Johnston3-5/+3
* 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-262005-10-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-8/+8
* libc/Makefile.am: Reorder SUBLIBS so machine and sys directories can override properly.
2005-10-202005-10-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-22/+46
* libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When gcc is 3.3 or greater, use special gcc builtins.
2005-10-20 * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.Corinna Vinschen1-0/+4
2005-10-18 * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.Corinna Vinschen1-0/+1
2005-10-142005-10-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+16
* 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-142005-10-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-9/+9
* libc/sys/linux/net/gethostbydns.c (dprintf): Rename to dbgprintf to prevent conflict with new dprintf function.
2005-10-142005-10-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-2/+8
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and "nan" processing for systems that have long double support.
2005-10-142005-10-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+1
* libc/sys/linux/sys/types.h (int8_t): Add type.
2005-10-142005-10-14 Bob Wilson <bob.wilson@acm.org>Jeff Johnston1-4/+23
* 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-142005-10-14 Bob Wilson <bob.wilson@acm.org>Jeff Johnston2-3/+3
* 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-112005-10-11 Shaun Jackman <sjackman@gmail.com>Jeff Johnston6-40/+227
* 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-112005-10-11 David Weatherford <weath@tensilica.com>Jeff Johnston1-2/+9
* 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-072005-10-07 Bob Wilson <bob.wilson@acm.org>Jeff Johnston1-0/+12
* libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno to ENOMEM on failure.
2005-10-062005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston1-0/+91
* libc/include/stdint.h: Add [u]int_fast<N>_t types.
2005-10-042005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston1-14/+20
* 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-042005-10-04 James E Wilson <wilson@specifix.com>Jeff Johnston1-5/+3
* libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add #error.
2005-10-032005-10-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-5/+18
* libc/sys/linux/include/stdint.h: Include <sys/types.h> and incorporate Ralf's change below.
2005-10-032005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston1-6/+17
* libc/include/stdint.h: Use __INTMAX_TYPE__ to derive intmax_t. Use __UINTMAX_TYPE__ to derive uintmax_t. Fix minor typo.
2005-09-272005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston1-2/+4
* libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly handling GCC >= 4.
2005-09-202005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-11/+245
* libc/sys/linux/include/stdint.h: Update to match functionality of generic newlib stdint.h.
2005-09-202005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-30/+42
* 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-202005-09-20 Shaun Jackman <sjackman@gmail.com>Jeff Johnston1-12/+12
* libc/include/stdint.h: Fix typo in names of LEAST macros.
2005-09-202005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+0
* libc/sys/rtems/include/inttypes.h: Moved to... * libc/include/inttypes.h: ...here.
2005-09-192005-09-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+0
* libc/sys/rtems/include/stdint.h: Moved to... * libc/include/stdint.h: ...here.
2005-09-082005-09-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston22-107/+1136
* 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-082005-09-08 Eric Blake <ebb9@byu.net>Jeff Johnston1-2/+2
* libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when before is NULL.
2005-09-022005-09-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+1
* libc/include/stdio.h: Add prototype for viprintf.
2005-08-312005-08-31 Paul Brook <paul@codesourcery.com>Jeff Johnston7-10/+22
* 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-26* libc/include/string.h: Revert previous change.Christopher Faylor1-4/+0
2005-08-25* libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.Christopher Faylor1-0/+4
2005-08-222005-08-22 Shaun Jackman <sjackman@gmail.com>Jeff Johnston1-3/+12
* 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-102005-08-10 DJ Delorie <dj@redhat.com>Jeff Johnston9-0/+2760
* 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-07-26 * libc/machine/cris/libcdtor.c (defaultors): Mark artificially asHans-Peter Nilsson1-3/+6
used.
2005-07-192005-07-19 Paul Brook <paul@codesourcery.com>Jeff Johnston1-0/+7
* libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
2005-07-082005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>Jeff Johnston1-0/+1
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
2005-07-07*** empty log message ***Jeff Johnston1-5/+3
2005-07-06 * configure.host: Added entry for ms1*.Aldy Hernandez8-0/+2704
* 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-06-162005-06-16 Christopher Faylor <cgf@timesys.com>Jeff Johnston2-14/+28
* 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-032005-06-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+7
* libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove instead of memcpy.
2005-05-122005-05-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-27/+32
* 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-04-282005-04-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+2
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko when checking for multiple flags.
2005-04-082005-04-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-1/+79
* 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.