summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2008-01-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0324-93/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
* 2008-01-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0318-76/+0
| | | | | | | | | | | | | | | | | | | | | | * libc/syscalls/sysclose.c: Always call reentrant version of the underlying syscall since one is guaranteed to exist in libc/reent. * libc/syscalls/sysexecve.c: Ditto. * libc/syscalls/sysfcntl.c: Ditto. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysfstat.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysgettod.c: Ditto. * libc/syscalls/syskill.c: Ditto. * libc/syscalls/syslink.c: Ditto. * libc/syscalls/syslseek.c: Ditto. * libc/syscalls/sysopen.c: Ditto. * libc/syscalls/sysread.c: Ditto. * libc/syscalls/syssbrk.c: Ditto. * libc/syscalls/sysstat.c: Ditto. * libc/syscalls/systimes.c: Ditto. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/syswait.c: Ditto. * libc/syscalls/syswrite.c: Ditto.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-19165-103438/+155192
| | | | | | | | | | | | | | | | | * NEWS: Update with 1.16.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.16.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.16.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-1919-34/+781
| | | | | | | | | | | | | | | | | | | | | | | * libc/string/strcasestr.c: Remove id macro. * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority field reference to be __sched_priority. * libc/sys/linux/linuxthreads/joinrace.c: Ditto. * libc/sys/linux/linuxthreads/manager.c: Ditto. * libc/sys/linux/stdlib/collate.c: Remove id macro. * libc/sys/linux/stdlib/collcmp.c: Ditto. * libc/sys/linux/stdlib/engine.c: Ditto. * libc/sys/linux/stdlib/fnmatch.c: Ditto. * libc/sys/linux/stdlib/glob.c: Ditto. * libc/sys/linux/stdlib/reallocf.c: Ditto. * libc/sys/linux/stdlib/regcomp.c: Ditto. * libc/sys/linux/stdlib/regerror.c: Ditto. * libc/sys/linux/stdlib/regexec.c: Ditto. * libc/sys/linux/stdlib/regfree.c: Ditto. * libc/sys/linux/sys/cdefs.h: Replace with latest version. * libc/sys/linux/include/argp.h: Ditto. * libc/sys/linux/sys/libc-lock.h: New file. * libc/sys/linux/sys/stdint.h: Ditto. * libc/sys/linux/include/sched.h: New file.
* 2007-12-19 Dave Korn <dave.korn@artimi.com>Jeff Johnston2007-12-193-8/+57
| | | | | | | | | | | | | | | | | Jeff Johnston <jjohnstn@redhhat.com> * libc/include/_ansi.h: Add _LONG_LONG definition. * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add prototypes. * libc/machine/i386/machine/fastmath.h: Add support for new i386 fast math versions of rint, lrint, and llrint family functions. * libm/machine/i386/Makefile.am: Add new files. * libm/machine/i386/Makefile.in: Regenerated. * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c, libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c, libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c, libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c, libm/machine/i386/f_rintl.c: New files with fast math implementations.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-191-1/+4
| | | | | * libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
* 2007-11-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-193-182/+198
| | | | | | | | | * libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
* * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.Corinna Vinschen2007-12-196-6/+137
| | | | | | | | | | * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and wcpncpy.c. (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def. * libc/string/Makefile.in: Regenerate. * libc/string/wcpcpy.c: New file. * libc/string/wcpncpy.c: New file. * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call toCorinna Vinschen2007-12-191-2/+2
| | | | _wcsrtombs_r.
* 2007-11-19 Nick Clifton <nickc@redhat.com>Jeff Johnston2007-11-1910-98/+365
| | | | | | | | | | | | | | * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2. * libc/machine/mn10300/Makefile.in: Regenerate. * libc/machine/mn10300/memchar.S: Remove redundant labels. Add .debug_frame section. * libc/machine/mn10300/memcmp.S: Likewise. * libc/machine/mn10300/memcpy.S: Likewise. * libc/machine/mn10300/memset.S: Likewise. * libc/machine/mn10300/strchr.S: Likewise. * libc/machine/mn10300/strcmp.S: Likewise. * libc/machine/mn10300/strcpy.S: Likewise. * libc/machine/mn10300/strlen.S: Likewise.
* * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.Corinna Vinschen2007-11-081-4/+1
|
* 2007-11-07 Dave Brolley <brolley@redhat.com>Dave Brolley2007-11-0710-14/+5445
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/machine/configure: Regenerated to pick up mep-elf changes. * Contribute mep-elf from Red Hat 2006-10-27 DJ Delorie <dj@redhat.com> * libc/include/machine/setjmp.h: Add MeP support. 2003-04-17 DJ Delorie <dj@redhat.com> * configure.host (mep-*-*): Support "long long" type. 2001-06-06 DJ Delorie <dj@redhat.com> * libc/include/machine/ieeefp.h (mep): Support little endian too. 2001-05-14 DJ Delorie <dj@redhat.com> * configure.host: Add mep's machine_dir. * libc/include/setjmp.h: Add mep support. * libc/machine/mep: New. * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp. 2001-05-04 DJ Delorie <dj@redhat.com> * configure.host: Add mep. * libc/include/machine/ieeefp.h: Ditto.
* * libc/signal/signal.c (_raise_r): Don't attempt to initialize theDJ Delorie2007-10-311-4/+5
| | | | | signal table, just use a default, in case initialization cause recursion.
* 2007-10-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-10-231-13/+22
| | | | | * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating size if output buffer is NULL.
* Fix typo.Jeff Johnston2007-10-171-1/+1
|
* 2007-10-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-10-171-0/+84
| | | | * libc/machine/i386/machine/fastmath.h: New file.
* * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:Eric Blake2007-10-131-2/+4
| | | | | Correctly nest else within conditionals. Reported by Artur Lipowski.
* * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with the STT_COMMON type.Nick Clifton2007-10-091-3/+4
|
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-211-0/+26
| | | | * libc/machine/spu/sys/uio.h: New file for readv and writev use.
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-213-0/+43
| | | | | | | | * libc/include/sched.h: New file, just include sys/sched.h. * libc/machine/spu/sys/sched.h: New file, has just sched_yield prototype. * libc/machine/spu/sys/utime.h: New file, has utime prototype and struct utimbuf definition.
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-211-0/+57
| | | | | * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU specific struct and typedef.
* 2007-09-18 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-183-23/+38
| | | | | | | | | | | * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to typedef dev_t, gid_t, and uid_t. * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead. Change to lower case for all __foo_t_defined names. * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t, __uid_t, and __gid_t making them all four bytes. Change to lower case for all __foo_t_defined names.
* 2007-09-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-184-40/+91
| | | | | | | | * libc/reent/renamer.c: New file. * libc/reent/Makefile.am: Add new file. * libc/reent/Makefile.in: Regenerated. * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c and add check for rename syscall.
* Obey POSIX on printf("%.s", (char*)NULL).Eric Blake2007-09-171-2/+9
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account for %s on NULL. Skip NULL check when optimizing for size.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-0/+13
| | | | | * libc/include/sys/_types.h: Protect all types with flag checks to allow definition in machine/_types.h.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-0/+3
| | | | | * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t definitions in light of the previous change.
* 2007-09-07 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-075-126/+190
| | | | | | | | | | | | * libc/include/machine/_default_types.h: New file, contains what was previously in libc/include/machine/_types.h. * libc/include/machine/_types.h: Now only includes machine/_default_types.h. * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t. * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here, with conditional declarations. * libc/machine/spu/machine/_types.h: New file, add SPU specific typedefs for _fpos_t and _fpos64_t.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-7/+6
| | | | | | * libc/include/math.h (_M_LOG2E): Replace with.. (_M_LOG2_E): New macro. (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
* * libc/reent/getreent.c: Allow for case where __getreent isBrian Dessent2007-09-071-0/+4
| | | | defined as a macro.
* Fix typo in ChangeLog and math.h.Jeff Johnston2007-09-061-2/+2
|
* 2007-09-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-061-3/+7
| | | | | | | * libc/include/math.h (_M_LOG2E): New log2 of e macro. (log2): Use _M_LOG2E instead of M_LOG2E. (log2f): Ditto. (M_LOG2E): Define to be _M_LOG2E.
* 2007-08-31 Antony King <antony.king@st.com>Jeff Johnston2007-08-313-13/+17
| | | | | | | | * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith bits and redefine associated dword0 macro (rvalue issue). * libc/stdio/vfieeefp.h: Ditto. * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS to prevent setting dword1 which is an rvalue only.
* 2007-08-28 Hans Kester <hans.kester@ellips.nl>Jeff Johnston2007-08-2813-37/+5822
| | | | | | | | | | | | | | | | * configure.host: Added support for x86_64. * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64. * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64. * libc/machine/x86_64/aclocal.m4: Generated. * libc/machine/x86_64/configure.in: New. * libc/machine/x86_64/configure: Generated. * libc/machine/x86_64/Makefile.am: New. * libc/machine/x86_64/Makefile.in: Generated. * libc/machine/x86_64/setjmp.S: New. * libc/machine/x86_64/memcpy.S: New. * libc/machine/x86_64/memset.S: New. * libc/machine/configure.in: Added support for x86_64. * libc/machine/configure: Regenerated.
* * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)Hans-Peter Nilsson2007-08-231-0/+11
| | | | | (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP): Define.
* 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>Jeff Johnston2007-08-2335-712/+1045
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce the memory consumption of variable argument functions for SPU (cell): * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources to assembler sources. * libc/machine/spu/Makefile.in: Regenerated. * libc/machine/spu/stdio.c: Add __check_init function wrapping CHECK_INIT macro to use from assembler routines. * libc/machine/spu/c99ppe.h: Add definitions for assembler code. * libc/machine/spu/fiprintf.S: New file. * libc/machine/spu/fiscanf.S: Ditto. * libc/machine/spu/fprintf.S: Ditto. * libc/machine/spu/fscanf.S: Ditto. * libc/machine/spu/iprintf.S: Ditto. * libc/machine/spu/iscanf.S: Ditto. * libc/machine/spu/printf.S: Ditto. * libc/machine/spu/scanf.S: Ditto. * libc/machine/spu/siprintf.S: Ditto. * libc/machine/spu/siscanf.S: Ditto. * libc/machine/spu/sniprintf.S: Ditto. * libc/machine/spu/snprintf.S: Ditto. * libc/machine/spu/sprintf.S: Ditto. * libc/machine/spu/sscanf.S: Ditto. * libc/machine/spu/stack_reg_va.S: Ditto. * libc/machine/spu/syscall.def: Ditto. (for maintenance) * libc/machine/spu/mk_syscalls: Ditto. (for maintenance) * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S) * libc/machine/spu/fiscanf.c: Ditto. * libc/machine/spu/fprintf.c: Ditto. * libc/machine/spu/fscanf.c: Ditto. * libc/machine/spu/iprintf.c: Ditto. * libc/machine/spu/iscanf.c: Ditto. * libc/machine/spu/printf.c: Ditto. * libc/machine/spu/scanf.c: Ditto. * libc/machine/spu/siprintf.c: Ditto. * libc/machine/spu/siscanf.c: Ditto. * libc/machine/spu/sniprintf.c: Ditto. * libc/machine/spu/snprintf.c: Ditto. * libc/machine/spu/sprintf.c: Ditto. * libc/machine/spu/sscanf.c: Ditto.
* 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2007-08-031-0/+39
| | | | * libc/include/tar.h: New.
* 2007-08-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-08-033-17/+17
| | | | | | | | * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string. * libc/sys/linux/intl/Makefile.in: Regenerated. * libc/sys/linux/intl/stpcpy.c: Renamed to... * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
* Implement fmemopen and open_memstream.Eric Blake2007-08-027-10/+765
| | | | | | | | | | | | | | * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file. * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream): New file. * libc/stdio/fopencookie.c (fcwriter): Minor optimization. * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x functions together. (fmemopen, open_memstream): Declare new functions. * libc/stdio/stdio.tex: Document them. * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add fmemopen and open_memstream. * libc/stdio/Makefile.in: Regenerate.
* More POSIX stream corner cases.Eric Blake2007-07-313-23/+22
| | | | | | | * libc/stdio/findfp.c (__sinit): Open stderr read/write. * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when requested. * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
* Fix 'make info'.Eric Blake2007-07-198-20/+26
| | | | | | | | | | | | * libc/stdio/stdio.tex: Add missing include. * libc/stdio/vfprintf.c: Use expected node name. * libc/stdio/vfscanf.c: Likewise. * libc/stdio/sscanf.c: Likewise. * libc/stdio/sprintf.c: Likewise. * libc/stdio/siscanf.c: Likewise. * libc/stdio/siprintf.c: Likewise. * libc/stdio/fopencookie.c: Quote raw {}. Reported by DJ Delorie.
* Fix fflush issues.Eric Blake2007-07-1316-67/+132
| | | | | | | | | | | | | | | | | | | | | * libc/stdio/fflush.c (_fflush_r): New function. (fflush): Fix reentrancy and large offset behavior. * libc/include/stdio.h (_fflush_r): Add prototype. * libc/stdio/fclose.c (_fclose_r): All fflush callers changed. * libc/stdio/freopen.c (_freopen_r): Likewise. * libc/stdio/fseek.c (_fseek_r): Likewise. * libc/stdio/ftell.c (_ftell_r): Likewise. * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise. * libc/stdio/refill.c (__srefill_r): Likewise. * libc/stdio/setvbuf.c (setvbuf): Likewise. * libc/stdio/ungetc.c (_ungetc_r): Likewise. * libc/stdio/vfprintf.c (__sbprintf): Likewise. * libc/stdio/wbuf.c (__swbuf_r): Likewise. * libc/stdio64/freopen64.c (_freopen64_r): Likewise. * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to 32-bit version if not large file. * libc/stdio64/ftello64.c (_ftello64_r): Likewise. * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
* Documentation updates.Eric Blake2007-07-134-49/+102
| | | | | | | | * libc/stdio/ungetc.c: Document ungetc. * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list of files with documentation. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/stdio.tex: Sort and update stdio documentation index.
* 2007-07-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-111-45/+45
| | | | | * libc/include/math.h: Fix so C99 functions/macros are accessible when -std=c99 is used when compiling and not when using C89.
* * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,Corinna Vinschen2007-07-0612-5/+1061
| | | | | | | | | | | | | | | | | | wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c. (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and wcstoull_r.c. (CHEWOUT_FILES): Add .def files accordingly. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/stdlib.tex: Add documentation links for above functions. * libc/stdlib/strtoll.c: Fix portability note. * libc/stdlib/strtoull.c: Ditto. * libc/stdlib/wcstol.c: New file. * libc/stdlib/wcstoll.c: New file. * libc/stdlib/wcstoll_r.c: New file. * libc/stdlib/wcstoul.c: New file. * libc/stdlib/wcstoull.c: New file. * libc/stdlib/wcstoull_r.c: New file.
* 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-067-11/+11
| | | | | | | | | | | | | * libc/include/sys/time.h (gettimeofday): Change to proper prototype where second parameter is void *. * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype accordingly. * libc/include/reent.h: Fix prototype for _gettimeofday_r. * libc/sys/arm/syscalls.c: Fix gettimeofday function signature. * libc/sys/rdos/gettod.c: Ditto. * libc/sys/sh/syscalls.c: Ditto. * libc/time/time.c (time): Change call to _gettimeofday_r to pass NULL as 2nd argument.
* 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-062-0/+4
| | | | | * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY. * libc/sys/linux/intl/l10nflist.c: Ditto.
* * libc/include/wchar.h: Add prototype for wcsxfrm.Corinna Vinschen2007-07-045-7/+73
| | | | | | | | * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c. (CHEWOUT_FILES): Add wcsxfrm.def. * libc/string/Makefile.in: Regenerate. * libc/string/wcsxfrm.c: New file. * libc/string/wcstrings.tex: Add wcsxfrm.
* * libc/include/string.h: Add prototypes for stpcpy and stpncpy.Corinna Vinschen2007-06-286-14/+248
| | | | | | | | | | * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and stpncpy.c. (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def. * libc/string/Makefile.in: Regenerate. * libc/string/stpcpy.c: New file. * libc/string/stpncpy.c: New file. * libc/string/strings.tex: Add stpcpy and stpncpy.
* Support __func__ in assert, as required by C99.Eric Blake2007-06-272-21/+46
| | | | | | | * libc/stdlib/assert.c (__assert_func): New function. (__assert): Use __assert_func. * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when possible.
* 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-06-201-1/+14
| | | | | * libc/machine/spu/perror.c: Pass errno as the second argument to the assist call.