summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2008-07-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-2112-24/+26
| | | | | | | | | | | | | | | | | | * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one less than the old __ctype_ptr. * libc/ctype/isalnum.c: Use __ctype_ptr__. * libc/ctype/isalpha.c: Ditto. * libc/ctype/iscntrl.c: Ditto. * libc/ctype/isdigit.c: Ditto. * libc/ctype/islower.c: Ditto. * libc/ctype/isprint.c: Ditto. * libc/ctype/ispunct.c: Ditto. * libc/ctype/isspace.c: Ditto. * libc/ctype/isupper.c: Ditto. * libc/ctype/isxdigit.c: Ditto. * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__ and add declaration of __ctype_ptr__. Remove older ctype table pointers from here even though they can still work.
* 2008-07-18 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-07-181-2/+2
| | | | * libc/machine/spu/strcpy.h: Fix error in previous patch.
* 2008-07-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-171-2/+6
| | | | | * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
* 2008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-07-171-0/+4
| | | | * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
* 2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>Jeff Johnston2008-07-081-1/+1
| | | | | * libc/machine/mn10300/memset.S: Fix bug where return value is incorrectly set if number of bytes set is a multiple of 4.
* 2008-07-07 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2008-07-071-1/+2
| | | | | * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t. (strncpy): Cast src to uintptr_t before checking alignment with "&".
* 2008-07-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-026-0/+10
| | | | | | | | | * libc/argz/argz_count.c: Include stddef.h to get size_t. * libc/argz/argz_extract.c: Ditto. * libc/argz/argz_stringify.c: Ditto. * libc/search/hash.h: Ditto. * libc/sys/linux/include/sched.h: Ditto. * libc/sys/linux/sys/types.h: Ditto.
* 2008-07-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-021-0/+20
| | | | | * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned source data is taken care of before loop unrolling.
* Fix strict-aliasing issues with _strtod_r and Storeinc.Hans-Peter Nilsson2008-06-252-58/+32
| | | | | | | | | | | | | | * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj, rv, rv0 from double to type U. Use accessor macros dval, dword0 and dword1 for all accesses except for the ULtod call, where rv.i replaces the pointer cast. * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use of access macros. Tweak comment. Remove #ifdef'd YES_ALIAS code. (dword0, dword1, dval): Define in terms of uncast union member access. Ditto for _DOUBLE_IS_32BITS variants. (Storeinc): Replace aliasing-flawed microoptimized definition with alternative suggested in comment. Remove now stale comment.
* * libc/include/machine/setjmp.h (_longjmp): Define as function onCorinna Vinschen2008-06-211-1/+6
| | | | | Cygwin. (_setjmp): Ditto.
* Per Posix, strsignal returns non-const char*.Eric Blake2008-06-181-1/+1
| | | | * libc/include/string.h (strsignal): Fix return type.
* 2008-06-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-171-0/+294
| | | | | * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall support.
* 2008-06-16 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-163-0/+18
| | | | | | * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++. * libc/machine/spu/sys/sched.h: Likewise. * libc/machine/spu/sys/syscall.h: Likewise.
* 2008-06-16 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-1610-0/+25
| | | | | | | | | | | | | | | | * libc/machine/spu/mk_syscalls: Provide .type and .size directives in generated assembler files. * libc/machine/spu/fprintf.S: Regenerate. * libc/machine/spu/fscanf.S: Regenerate. * libc/machine/spu/printf.S: Regenerate. * libc/machine/spu/scanf.S: Regenerate. * libc/machine/spu/snprintf.S: Regenerate. * libc/machine/spu/sprintf.S: Regenerate. * libc/machine/spu/sscanf.S: Regenerate. * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type and .size directives. * libc/machine/spu/setjmp.S (setjmp): Likewise. (longjmp): Likewise.
* 2008-06-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-06-111-2/+2
| | | | | * libc/include/machine/_default_types.h: Fix GNUC check to handle 4.0 and greater.
* 2008-06-09 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-1012-11/+1201
| | | | | | | | | | | | | | | | * libc/machine/spu/Makefile.am: Add new files. * libc/machine/spu/Makefile.in: Likewise. * libc/machine/spu/include/spu_timer.h: New file to add timer support using interrupts. * libc/machine/spu/spu_clock_stop.c: Likewise. * libc/machine/spu/spu_clock_svcs.c: Likewise. * libc/machine/spu/spu_timer_flih.S: Likewise. * libc/machine/spu/spu_timer_free.c: Likewise. * libc/machine/spu/spu_timer_internal.h: Likewise. * libc/machine/spu/spu_timer_slih.c: Likewise. * libc/machine/spu/spu_timer_slih_reg.c: Likewise. * libc/machine/spu/spu_timer_stop.c: Likewise. * libc/machine/spu/spu_timer_svcs.c: Likewise.
* 2008-06-09 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-092-2/+4
| | | | | * libc/machine/spu/strcat.c: Return value fixed. * libc/machine/spu/strncat.c: Likewise.
* Fix bug in previous patch.Eric Blake2008-05-281-2/+1
| | | | * libc/machine/i386/memset.S (memset): Mask second arg correctly.
* 2008-05-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-05-271-1/+1
| | | | | * libc/string/memset.c: Fix documented prototype to remove erroneous const attribute on first parameter.
* 2008-05-26 Eric Blake <ebb9@byu.net>Jeff Johnston2008-05-262-53/+116
| | | | | | | | Optimize the generic and x86 memchr. * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]: Pre-align pointer so unaligned searches aren't penalized. * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word operations are faster than repnz byte searches.
* 2008-05-26 Eric Blake <ebb9@byu.net>Jeff Johnston2008-05-262-43/+76
| | | | | | | | | Optimize the generic and x86 memset. * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]: Pre-align pointer so unaligned stores aren't penalized. * libc/machine/i386/memset.S (memset): [!__OPTIMIZE_SIZE__]: Pre-align pointer so unaligned stores aren't penalized. Prefer 8-byte over 4-byte alignment. Reduce register pressure.
* 2008-05-26 Eric Blake <ebb9@byu.net>Jeff Johnston2008-05-262-22/+85
| | | | | | | | Optimize the generic and x86 strlen. * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align data so unaligned searches aren't penalized. * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]: Word operations are faster than repnz byte searches.
* * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.Corinna Vinschen2008-05-231-0/+1
|
* 2008-05-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-05-22209-25484/+14859
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h: Add _h_errno field. * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros now used in net directory. * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO. * libc/sys/linux/include/hesiod.h: Add needed macros for new code in net directory. * libc/sys/linux/include/netdb.h: Ditto. * libc/sys/linux/include/resolv.h: Ditto. * libc/sys/linux/include/stdint.h: Ditto. * libc/sys/linux/include/arpa/nameser.h: Ditto. * libc/sys/linux/include/net/ethernet.h: Ditto. * libc/sys/linux/include/net/if_ppp.h: Ditto. * libc/sys/linux/include/netinet/if_ether.h: Ditto. * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem. * libc/sys/linux/machine/i386/include/endian.h: Protect macros with flags to avoid duplicate definition. * libc/sys/linux/machine/i386/include/param.h: Ditto. * libc/sys/linux/net/Makefile.am: Modified to account for removed and added files. * libc/sys/linux/net/Makefile.in: Regenerated. * libc/sys/linux/net/base64.c: Replaced with glibc version of code. * libc/sys/linux/net/getaddrinfo.c: Ditto. * libc/sys/linux/net/getnameinfo.c: Ditto. * libc/sys/linux/net/getproto.c: Ditto. * libc/sys/linux/net/getservent.c: Ditto. * libc/sys/linux/net/inet_netof.c: Ditto. * libc/sys/linux/net/inet_lnaof.c: Ditto. * libc/sys/linux/net/ns_name.c: Ditto. * libc/sys/linux/net/ns_netint.c: Ditto. * libc/sys/linux/net/inet_ntoa.c: Ditto. * libc/sys/linux/net/ns_parse.c: Ditto. * libc/sys/linux/net/ns_print.c: Ditto. * libc/sys/linux/net/ns_ttl.c: Ditto. * libc/sys/linux/net/nsap_addr.c: Ditto. * libc/sys/linux/net/rcmd.c: Ditto. * libc/sys/linux/net/res_comp.c: Ditto. * libc/sys/linux/net/res_data.c: Ditto. * libc/sys/linux/net/res_debug.c: Ditto. * libc/sys/linux/net/res_init.c: Ditto. * libc/sys/linux/net/res_mkquery.c: Ditto. * libc/sys/linux/net/res_query.c: Ditto. * libc/sys/linux/net/res_send.c: Ditto. * libc/sys/linux/net/send.c: Ditto. * libc/sys/linux/stdlib/collate.c: Ditto. * libc/sys/linux/sys/ioctl.h: Ditto. * libc/sys/linux/sys/socket.h: Ditto. * libc/sys/linux/sys/unistd.h: Ditto. * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer used or because licensing includes advertising clause that cannot be ignored. * libc/sys/linux/iconv/strtab.c: Ditto. * libc/sys/linux/include/libc_private.h: Ditto. * libc/sys/linux/include/nsswitch.h: Ditto. * libc/sys/linux/include/net/if_atm.h: Ditto. * libc/sys/linux/include/net/if_media.h: Ditto. * libc/sys/linux/include/net/if_pppvar.h: Ditto. * libc/sys/linux/include/netinet/if_atm.h: Ditto. * libc/sys/linux/include/netinet/ip_flow.h: Ditto. * libc/sys/linux/intl/locale.alias: Ditto. * libc/sys/linux/net/addr2ascii.3: Ditto. * libc/sys/linux/net/bindresvport.c: Ditto. * libc/sys/linux/net/byteorder.3: Ditto. * libc/sys/linux/net/res_config.h: Ditto. * libc/sys/linux/net/ether_addr.c: Ditto. * libc/sys/linux/net/ethers.3: Ditto. * libc/sys/linux/net/getaddrinfo.3: Ditto. * libc/sys/linux/net/gethostbydns.c: Ditto. * libc/sys/linux/net/gethostbyht.c: Ditto. * libc/sys/linux/net/gethostbyname.3: Ditto. * libc/sys/linux/net/gethostbynis.c: Ditto. * libc/sys/linux/net/gethostnamadr.c: Ditto. * libc/sys/linux/net/getifaddrs.3: Ditto. * libc/sys/linux/net/getifaddrs.c: Ditto. * libc/sys/linux/net/getipnodebyname.3: Ditto. * libc/sys/linux/net/getnameinfo.3: Ditto. * libc/sys/linux/net/getnetbydns.c: Ditto. * libc/sys/linux/net/getnetbyht.c: Ditto. * libc/sys/linux/net/getnetbynis.c: Ditto. * libc/sys/linux/net/getnetent.3: Ditto. * libc/sys/linux/net/getnetnamadr.c: Ditto. * libc/sys/linux/net/getprotoent.3: Ditto. * libc/sys/linux/net/getprotoent.c: Ditto. * libc/sys/linux/net/getprotoname.c: Ditto. * libc/sys/linux/net/getservbyname.c: Ditto. * libc/sys/linux/net/getservbyport.c: Ditto. * libc/sys/linux/net/getservent.3: Ditto. * libc/sys/linux/net/herror.c: Ditto. * libc/sys/linux/net/hesiod.3: Ditto. * libc/sys/linux/net/hesiod.c: Ditto. * libc/sys/linux/net/if_indextoname.3: Ditto. * libc/sys/linux/net/inet.3: Ditto. * libc/sys/linux/net/inet6_option_space.3: Ditto. * libc/sys/linux/net/inet6_rthdr_space.3: Ditto. * libc/sys/linux/net/inet_makeaddr.c: Ditto. * libc/sys/linux/net/inet_net.3: Ditto. * libc/sys/linux/net/inet_network.c: Ditto. * libc/sys/linux/net/innetgr-stub.c: Ditto. * libc/sys/linux/net/ip6opt.c: Ditto. * libc/sys/linux/net/iso_addr.3: Ditto. * libc/sys/linux/net/iso_addr.c: Ditto. * libc/sys/linux/net/linkaddr.3: Ditto. * libc/sys/linux/net/linkaddr.c: Ditto. * libc/sys/linux/net/map_v4v6.c: Ditto. * libc/sys/linux/net/name6.c: Ditto. * libc/sys/linux/net/namespace.h: Ditto. * libc/sys/linux/net/ns.3: Ditto. * libc/sys/linux/net/ns_addr.c: Ditto. * libc/sys/linux/net/ns_ntoa.c: Ditto. * libc/sys/linux/net/nsdispatch.3: Ditto. * libc/sys/linux/net/nsdispatch.c: Ditto. * libc/sys/linux/net/nslexer.c: Ditto. * libc/sys/linux/net/nslexer.l: Ditto. * libc/sys/linux/net/nsparser.c: Ditto. * libc/sys/linux/net/nsparser.h: Ditto. * libc/sys/linux/net/nsparser.y: Ditto. * libc/sys/linux/net/rcmd.3: Ditto. * libc/sys/linux/net/rcmdsh.3: Ditto. * libc/sys/linux/net/res_mkupdate.c: Ditto. * libc/sys/linux/net/res_update.c: Ditto. * libc/sys/linux/net/resolver.3: Ditto. * libc/sys/linux/net/rthdr.c: Ditto. * libc/sys/linux/net/vars.c: Ditto. * libc/sys/linux/shlib-compat.h: New file. * libc/sys/linux/machine/i386/atomic.h: Ditto. * libc/sys/linux/net/XXX-lookup.c: Ditto. * libc/sys/linux/net/alias-lookup.c: Ditto. * libc/sys/linux/net/res_libc.c: Ditto. * libc/sys/linux/net/aliases.h: Ditto. * libc/sys/linux/net/check_pf.c: Ditto. * libc/sys/linux/net/databases.def: Ditto. * libc/sys/linux/net/digits_dots.c: Ditto. * libc/sys/linux/net/ether_aton.c: Ditto. * libc/sys/linux/net/ether_aton_r.c: Ditto. * libc/sys/linux/net/ether_hton.c: Ditto. * libc/sys/linux/net/ether_line.c: Ditto. * libc/sys/linux/net/ether_ntoa.c: Ditto. * libc/sys/linux/net/ether_ntoa_r.c: Ditto. * libc/sys/linux/net/ether_ntoh.c: Ditto. * libc/sys/linux/net/etherent.h: Ditto. * libc/sys/linux/net/ethers-lookup.c: Ditto. * libc/sys/linux/net/function.def: Ditto. * libc/sys/linux/net/getXXbyYY.c: Ditto. * libc/sys/linux/net/getXXbyYY_r.c: Ditto. * libc/sys/linux/net/getXXent.c: Ditto. * libc/sys/linux/net/getXXent_r.c: Ditto. * libc/sys/linux/net/getaliasent.c: Ditto. * libc/sys/linux/net/getaliasent_r.c: Ditto. * libc/sys/linux/net/getaliasname.c: Ditto. * libc/sys/linux/net/getaliasname_r.c: Ditto. * libc/sys/linux/net/gethstbyad.c: Ditto. * libc/sys/linux/net/gethstbyad_r.c: Ditto. * libc/sys/linux/net/gethstbynm.c: Ditto. * libc/sys/linux/net/gethstbynm2.c: Ditto. * libc/sys/linux/net/gethstbynm2_r.c: Ditto. * libc/sys/linux/net/gethstbynm_r.c: Ditto. * libc/sys/linux/net/gethstent.c: Ditto. * libc/sys/linux/net/gethstent_r.c: Ditto. * libc/sys/linux/net/getnetbyad.c: Ditto. * libc/sys/linux/net/getnetbyad_r.c: Ditto. * libc/sys/linux/net/getnetbynm.c: Ditto. * libc/sys/linux/net/getnetbynm_r.c: Ditto. * libc/sys/linux/net/getnetent.c: Ditto. * libc/sys/linux/net/getnetent_r.c: Ditto. * libc/sys/linux/net/getnetgrent.c: Ditto. * libc/sys/linux/net/getnetgrent_r.c: Ditto. * libc/sys/linux/net/getnssent.c: Ditto. * libc/sys/linux/net/getnssent_r.c: Ditto. * libc/sys/linux/net/getproto_r.c: Ditto. * libc/sys/linux/net/getprtent.c: Ditto. * libc/sys/linux/net/getprtent_r.c: Ditto. * libc/sys/linux/net/getprtname.c: Ditto. * libc/sys/linux/net/getprtname_r.c: Ditto. * libc/sys/linux/net/getrpcbyname.c: Ditto. * libc/sys/linux/net/getrpcbyname_r.c: Ditto. * libc/sys/linux/net/getrpcbynumber.c: Ditto. * libc/sys/linux/net/getrpcbynumber_r.c: Ditto. * libc/sys/linux/net/getrpcent.c: Ditto. * libc/sys/linux/net/getrpcent_r.c: Ditto. * libc/sys/linux/net/getservent_r.c: Ditto. * libc/sys/linux/net/getsrvbynm.c: Ditto. * libc/sys/linux/net/getsrvbynm_r.c: Ditto. * libc/sys/linux/net/getsrvbypt.c: Ditto. * libc/sys/linux/net/getsrvbypt_r.c: Ditto. * libc/sys/linux/net/grp-lookup.c: Ditto. * libc/sys/linux/net/herrno.c: Ditto. * libc/sys/linux/net/hosts-lookup.c: Ditto. * libc/sys/linux/net/ifaddrs.h: Ditto. * libc/sys/linux/net/ifreq.c: Ditto. * libc/sys/linux/net/ifreq.h: Ditto. * libc/sys/linux/net/in6_addr.c: Ditto. * libc/sys/linux/net/inet6_option.c: Ditto. * libc/sys/linux/net/inet_mkadr.c: Ditto. * libc/sys/linux/net/inet_net.c: Ditto. * libc/sys/linux/net/key-lookup.c: Ditto. * libc/sys/linux/net/local.h: Ditto. * libc/sys/linux/net/netgroup.h: Ditto. * libc/sys/linux/net/netgrp-lookup.c: Ditto. * libc/sys/linux/net/network-lookup.c: Ditto. * libc/sys/linux/net/not-cancel.h: Ditto. * libc/sys/linux/net/ns_samedomain.c: Ditto. * libc/sys/linux/net/nscd-types.h: Ditto. * libc/sys/linux/net/nss.h: Ditto. * libc/sys/linux/net/nsswitch.c: Ditto. * libc/sys/linux/net/nsswitch.h: Ditto. * libc/sys/linux/net/opensock.c: Ditto. * libc/sys/linux/net/proto-lookup.c: Ditto. * libc/sys/linux/net/pwd-lookup.c: Ditto. * libc/sys/linux/net/res_debug.h: Ditto. * libc/sys/linux/net/res_hconf.c: Ditto. * libc/sys/linux/net/res_hconf.h: Ditto. * libc/sys/linux/net/rexec.c: Ditto. * libc/sys/linux/net/rpc-lookup.c: Ditto. * libc/sys/linux/net/ruserpass.c: Ditto. * libc/sys/linux/net/service-lookup.c: Ditto. * libc/sys/linux/net/spwd-lookup.c: Ditto. * libc/sys/linux/net/nscd/nscd-client.h: Ditto. * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
* Optimize the generic strchr.Eric Blake2008-05-221-27/+42
| | | | | | * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align data so unaligned searches aren't penalized. Special-case searching for 0.
* Optimize strchr for x86.Eric Blake2008-05-211-13/+100
| | | | | * libc/machine/i386/strchr.S (strchr): Pre-align data so unaligned searches aren't penalized. Special-case searching for 0.
* * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).Nick Clifton2008-05-211-1/+6
| | | | | | * iq2000/crt0.S (__dso_handle): Define (weak). * frv/crt0.S (__dso_handle): Define (weak). * mn10300/crt0.S (___dso_handle): Define (weak).
* 2008-05-20 DJ Delorie <dj@redhat.com>Jeff Johnston2008-05-201-1/+1
| | | | * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
* 2008-05-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-05-141-91/+91
| | | | | * libc/include/sys/reent.h: Change _REENT_INIT... macros to access macro parameter with parentheses around it.
* * libc/include/stdint.h (SIZE_MIN): Remove.Mark Mitchell2008-05-021-2/+1
| | | | | | (SIZE_MAX): Define. * testsuite/newlib.stdlib/stdlib.exp: New. * testsuite/newlib.stdlib/size_max.c: Likewise.
* Fix 2008-04-14 regression in asprintf(ptr,"").Eric Blake2008-04-306-34/+46
| | | | | | | | | | | * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio baggage. * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise. * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise. * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise. * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise. * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc an initial buffer for asprintf.
* * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.Corinna Vinschen2008-04-261-2/+2
| | | | (fstatat): Fix type of third parameter.
* * libc/machine/arm/setjmp.S: Fix thumb2 support.Nick Clifton2008-04-251-0/+10
| | | | | * arm/crt0.S: Allow assembly under ARMv7 ISA. Support for initializing stack pointers for interrupt modes is still pending.
* * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITSNick Clifton2008-04-241-1/+1
| | | | should be _DOUBLE_IS_32BITS.
* * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.Corinna Vinschen2008-04-241-0/+7
| | | | | | (UTIME_OMIT): Ditto. (utimensat): Declare for Cygwin. (futimens): Ditto.
* 2008-04-23 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-04-232-6/+6
| | | | | * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE. * libc/include/math.h: Likewise.
* * libc/include/stdio.h (renameat): Declare for Cygwin.Corinna Vinschen2008-04-234-2/+41
| | | | | | | | | | | | | | | | | | | | | | (symlinkat): Ditto. * libc/include/sys/unistd.h (readlink): Align declaration to POSIX. (faccessat): Declare for Cygwin. (fchownat): Ditto. (linkat): Ditto. (readlinkat): Ditto. * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin. (AT_EACCESS): Ditto. (AT_SYMLINK_NOFOLLOW): Ditto. (AT_SYMLINK_FOLLOW): Ditto. (AT_REMOVEDIR): Ditto. (futimesat): Declare for Cygwin. (openat): Ditto. (unlinkat): Ditto. * libc/include/sys/stat.h (fchmodat): Ditto. (fstatat): Ditto. (mkdirat): Ditto. (mkfifoat): Ditto. (mknodat): Ditto.
* 2008-04-16 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-04-161-2/+2
| | | | * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
* 2008-04-16 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-04-161-1/+1
| | | | * libc/machine/spu/impure.c: Add missing underscore to impure_data.
* 2008-04-14 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-04-154-46/+60
| | | | | | | * libc/machine/spu/impure.c: New file, supply a non-static _impure_data. * libc/machine/spu/Makefile.am: Add new file impure.c. * libc/machine/spu/Makefile.in: Regenerate. * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
* 2008-04-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-04-1420-29/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined to build special versions for sprintf/sscanf family functions. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R): Redefine to be _svfiprintf_r which is optimized to work with siprintf family of functions (i.e. no I/O) and does not support floating-point. [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be _svfprintf_r which is optimized to work with sprintf family of functions and not use I/O. [STRING_ONLY](__sprint_r): New string only version of static function. designed to work with sprintf family of functions. * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R): Redefine to be _ssvfiscanf_r which is optimized to work with siscanf family of functions (i.e. no I/O) and no float-point support. [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be __ssvfscanf_r which is optimized to work with sscanf family of functions and does not require I/O functions. * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r. * libc/stdio/snprintf.c: Ditto. * libc/stdio/sprintf.c: Ditto. * libc/stdio/vasnprintf.c: Ditto. * libc/stdio/vasprintf.c: Ditto. * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r. * libc/stdio/sniprintf.c: Ditto. * libc/stdio/vasiprintf.c: Ditto. * libc/stdio/vsiprintf.c: Ditto. * libc/stdio/vsniprintf.c: Ditto. * libc/stdio/vsprintf.c: Ditto. * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r, _ssvfscanf_r, and _ssvfiscanf_r. * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r. * libc/stdio/vsscanf.c: Ditto. * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r. * libc/stdio/vsiscanf.c: Ditto.
* [newlib]DJ Delorie2008-04-042-5592/+7495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libm/machine/spu/configure: Regenerate with autoconf 2.61. * libc/sys/configure: Regenerate with autoconf 2.61. * libc/machine/configure: Regenerate with autoconf 2.61. [libgloss] * hp74x/configure: Regenerate with autoconf 2.61. * fr30/configure: Regenerate with autoconf 2.61. * mips/configure: Regenerate with autoconf 2.61. * xstormy16/configure: Regenerate with autoconf 2.61. * rs6000/configure: Regenerate with autoconf 2.61. * d30v/configure: Regenerate with autoconf 2.61. * i386/configure: Regenerate with autoconf 2.61. * configure: Regenerate with autoconf 2.61. * wince/configure: Regenerate with autoconf 2.61. * pa/configure: Regenerate with autoconf 2.61. * m32r/configure: Regenerate with autoconf 2.61. * mn10200/configure: Regenerate with autoconf 2.61. * iq2000/configure: Regenerate with autoconf 2.61. * cris/configure: Regenerate with autoconf 2.61. * m68k/configure: Regenerate with autoconf 2.61. * spu/configure: Regenerate with autoconf 2.61. * m32c/configure: Regenerate with autoconf 2.61. * mn10300/configure: Regenerate with autoconf 2.61. * i960/configure: Regenerate with autoconf 2.61. * arm/configure: Regenerate with autoconf 2.61. * libnosys/configure: Regenerate with autoconf 2.61. * m68hc11/configure: Regenerate with autoconf 2.61. * bfin/configure: Regenerate with autoconf 2.61. * crx/configure: Regenerate with autoconf 2.61. * mt/configure: Regenerate with autoconf 2.61. * sparc/configure: Regenerate with autoconf 2.61. * sparc/libsys/configure: Regenerate with autoconf 2.61. * mcore/configure: Regenerate with autoconf 2.61. * mep/configure: Regenerate with autoconf 2.61. * frv/configure: Regenerate with autoconf 2.61. * doc/configure: Regenerate with autoconf 2.61.
* 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-04-015-128/+249
| | | | | | | | * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp. * libc/machine/spu/strncmp.h: New file supply _strncmp_internal. * libc/machine/spu/Makefile.am: Add memcmp.c. * libc/machine/spu/Makefile.in: Rebuild. * libc/machine/spu/strncmp.c: Use _strncmp_internal.
* 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-04-013-69/+118
| | | | | | * libc/machine/spu/Makefile.am: Add assert.c. * libc/machine/spu/Makefile.in: Regenerate. * libc/machine/spu/assert.c: New file.
* 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-03-271-5/+81
| | | | | | * libc/include/reent.h: Define _func_r functions in this file to func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are defined.
* * libc/include/sys/unistd.h: Declare lockf(2) and define lockfCorinna Vinschen2008-03-271-1/+1
| | | | constants when building for Cygwin.
* 2008-03-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-03-111-1/+1
| | | | | * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure stdin gets resolved properly before refilling.
* 2008-03-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-03-111-0/+4
| | | | | * libc/stdio/rgetc.c (__srget): Invoke CHECK_INIT to ensure stdin gets resolved properly before refilling.
* 2008-03-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-03-072-17/+29
| | | | | | | | | * libc/include/getopt.h: Hide newlib extensions under the __need_getopt_newlib flag. * libc/stdlib/getopt.c: #define __need_getopt_newlib before including getopt.h. Put entire code under !HAVE_GETOPT to support platforms with their own getopt implementation. * configure.host: Specify HAVE_GETOPT for x86-linux.
* 2008-03-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-03-074-2/+16
| | | | | | | | | * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify this macro completely instead of referring to CHECK_STD_INIT which is only found in libc/stdio/local.h. * libc/stdio/dprintf.c: Add include of local.h. * libc/stdio/vdprintf.c: Ditto. * libc/stdio/vdiprintf.c: Ditto.