source: clfs-embedded/patches/uClibc-0.9.30-branch_update-1.patch@ 1172570

Last change on this file since 1172570 was 3139927, checked in by Jim Gifford <clfs@…>, 16 years ago

Update uClibc

  • Property mode set to 100644
File size: 87.4 KB
  • extra/locale/gen_wc8bit.c

    Submitted By: Jim Gifford (jim at cross-lfs dot org)
    Date: 01-24-2009
    Initial Package Version: 0.9.30
    Origin: Upstream
    Upstream Status: Applied
    Description: This is a branch update for uClibc-0.9.30, and should be
                 rechecked periodically.
    
    diff -Naur uClibc-0.9.30.orig/extra/locale/gen_wc8bit.c uClibc-0.9.30/extra/locale/gen_wc8bit.c
    old new  
    219219                        fprintf(out, "\t{ /* %.*s */", n, s0);
    220220                }
    221221
    222                 memset(&csd[numsets],sizeof(charset_data),0);
    223                 memset(xi, sizeof(xi), 0);
     222                memset(&csd[numsets], 0, sizeof(charset_data));
     223                memset(xi, 0, sizeof(xi));
    224224                {
    225225                        unsigned long c, wc;
    226226                        int lines;
  • extra/scripts/conf-header.sh

    diff -Naur uClibc-0.9.30.orig/extra/scripts/conf-header.sh uClibc-0.9.30/extra/scripts/conf-header.sh
    old new  
    88fi
    99
    1010cat <<EOF
    11 #if !defined __FEATURES_H && !defined __need_uClibc_config_h
     11#if !defined _FEATURES_H && !defined __need_uClibc_config_h
    1212# error Never include <bits/uClibc_config.h> directly; use <features.h> instead
    1313#endif
    1414
  • include/math.h

    diff -Naur uClibc-0.9.30.orig/include/math.h uClibc-0.9.30/include/math.h
    old new  
    4646/* Get general and ISO C99 specific information.  */
    4747#include <bits/mathdef.h>
    4848
     49#if !(defined _LIBC && (defined NOT_IN_libc && defined IS_IN_libm))
     50# define libm_hidden_proto(name, attrs...)
     51#endif
     52
    4953/* The file <bits/mathcalls.h> contains the prototypes for all the
    5054   actual math functions.  These macros are used for those prototypes,
    5155   so we can easily declare each function as both `name' and `__name',
     
    5458#define __MATHCALL(function,suffix, args)       \
    5559  __MATHDECL (_Mdouble_,function,suffix, args)
    5660#define __MATHDECL(type, function,suffix, args) \
    57   __MATHDECL_1(type, function,suffix, args); \
    58   __MATHDECL_1(type, __CONCAT(__,function),suffix, args)
     61  __MATHDECL_1(type, function,suffix, args);
    5962#define __MATHCALLX(function,suffix, args, attrib)      \
    6063  __MATHDECLX (_Mdouble_,function,suffix, args, attrib)
    6164#define __MATHDECLX(type, function,suffix, args, attrib) \
    6265  __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \
    63   __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib)
     66  __MATHDECLI_MAINVARIANT(function)
    6467#define __MATHDECL_1(type, function,suffix, args) \
    6568  extern type __MATH_PRECNAME(function,suffix) args __THROW
     69/* Decls which are also used internally in libm.
     70   Only the main variant is used internally, no need to try to avoid relocs
     71   for the {l,f} variants.  */
     72#define __MATHCALLI(function,suffix, args)      \
     73  __MATHDECLI (_Mdouble_,function,suffix, args)
     74#define __MATHDECLI(type, function,suffix, args) \
     75  __MATHDECL_1(type, function,suffix, args); \
     76  __MATHDECLI_MAINVARIANT(function)
     77/* Private helpers for purely macro impls below.
     78   Only make __foo{,f,l} visible but not (the macro-only) foo.  */
     79#define __MATHDECL_PRIV(type, function,suffix, args, attrib) \
     80  __MATHDECL_1(type, __CONCAT(__,function),suffix, args) \
     81                                                __attribute__ (attrib); \
     82  libm_hidden_proto(__MATH_PRECNAME(__##function,suffix))
    6683
     84#define __MATHDECLI_MAINVARIANT libm_hidden_proto
    6785#define _Mdouble_               double
    6886#define __MATH_PRECNAME(name,r) __CONCAT(name,r)
    6987# define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_STD
     
    7290#undef  _Mdouble_
    7391#undef _Mdouble_BEGIN_NAMESPACE
    7492#undef _Mdouble_END_NAMESPACE
    75 #undef  __MATH_PRECNAME
     93#undef __MATH_PRECNAME
     94#undef __MATHDECLI_MAINVARIANT
     95#define __MATHDECLI_MAINVARIANT(x)
    7696
    7797#if defined __USE_MISC || defined __USE_ISOC99
    7898
  • include/sched.h

    diff -Naur uClibc-0.9.30.orig/include/sched.h uClibc-0.9.30/include/sched.h
    old new  
    6363extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
    6464
    6565
    66 #ifdef __USE_GNU
     66#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    6767/* Access macros for `cpu_set'.  */
    6868#define CPU_SETSIZE __CPU_SETSIZE
    6969#define CPU_SET(cpu, cpusetp)   __CPU_SET (cpu, cpusetp)
  • include/sys/mman.h

    diff -Naur uClibc-0.9.30.orig/include/sys/mman.h uClibc-0.9.30/include/sys/mman.h
    old new  
    157157extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
    158158                     int __flags, ...) __THROW;
    159159
     160#ifdef __UCLIBC_LINUX_SPECIFIC__
    160161/* Remap arbitrary pages of a shared backing store within an existing
    161162   VMA.  */
    162163extern int remap_file_pages (void *__start, size_t __size, int __prot,
    163164                             size_t __pgoff, int __flags) __THROW;
    164165#endif
     166#endif
    165167
    166168
    167169/* Open shared memory segment.  */
  • include/sys/sysinfo.h

    diff -Naur uClibc-0.9.30.orig/include/sys/sysinfo.h uClibc-0.9.30/include/sys/sysinfo.h
    old new  
    4848/* Returns information on overall system statistics.  */
    4949extern int sysinfo (struct sysinfo *__info) __THROW;
    5050
    51 
     51#if 0
    5252/* Return number of configured processors.  */
    5353extern int get_nprocs_conf (void) __THROW;
    5454
     
    6161
    6262/* Return number of available physical pages of memory in the system.  */
    6363extern long int get_avphys_pages (void) __THROW;
     64#endif
    6465
    6566__END_DECLS
    6667
  • include/unistd.h

    diff -Naur uClibc-0.9.30.orig/include/unistd.h uClibc-0.9.30/include/unistd.h
    old new  
    869869     __THROW __nonnull ((1)) __wur;
    870870#endif
    871871
     872#if defined __UCLIBC_LINUX_SPECIFIC__
    872873/* Revoke access permissions to all processes currently communicating
    873874   with the control terminal, and then send a SIGHUP signal to the process
    874875   group of the control terminal.  */
    875876extern int vhangup (void) __THROW;
     877#endif
    876878
    877879#if 0
    878880/* Revoke the access of all descriptors currently open on FILE.  */
  • ldso/ldso/dl-elf.c

    diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-elf.c uClibc-0.9.30/ldso/ldso/dl-elf.c
    old new  
    928928{
    929929        __dl_parse_dynamic_info(dpnt, dynamic_info, debug_addr, load_off);
    930930}
    931 
    932 /* we want this in ldso.so and libdl.a but nowhere else */
    933 #ifdef __USE_GNU
    934 #if defined IS_IN_rtld || (defined IS_IN_libdl && ! defined SHARED)
    935 extern __typeof(dl_iterate_phdr) __dl_iterate_phdr;
    936 int
    937 __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data)
    938 {
    939         struct elf_resolve *l;
    940         struct dl_phdr_info info;
    941         int ret = 0;
    942 
    943         for (l = _dl_loaded_modules; l != NULL; l = l->next) {
    944                 info.dlpi_addr = l->loadaddr;
    945                 info.dlpi_name = l->libname;
    946                 info.dlpi_phdr = l->ppnt;
    947                 info.dlpi_phnum = l->n_phent;
    948                 ret = callback (&info, sizeof (struct dl_phdr_info), data);
    949                 if (ret)
    950                         break;
    951         }
    952         return ret;
    953 }
    954 strong_alias(__dl_iterate_phdr, dl_iterate_phdr)
    955 #endif
    956 #endif
  • ldso/ldso/dl-hash.c

    diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-hash.c uClibc-0.9.30/ldso/ldso/dl-hash.c
    old new  
    3232
    3333
    3434/* Various symbol table handling functions, including symbol lookup */
    35 
    36 /*
    37  * This is the start of the linked list that describes all of the files present
    38  * in the system with pointers to all of the symbol, string, and hash tables,
    39  * as well as all of the other good stuff in the binary.
    40  */
    41 struct elf_resolve *_dl_loaded_modules = NULL;
    42 
    4335/*
    4436 * This is the list of modules that are loaded when the image is first
    4537 * started.  As we add more via dlopen, they get added into other
  • ldso/ldso/dl-symbols.c

    diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-symbols.c uClibc-0.9.30/ldso/ldso/dl-symbols.c
    old new  
     1/*
     2 * This contains all symbols shared between
     3 * dynamic linker ld.so and into static libc
     4 *
     5 * Copyright (c) 2008  STMicroelectronics Ltd
     6 * Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     7 *
     8 *
     9 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     10 *
     11 */
     12
     13/*
     14 * This is the start of the linked list that describes all of the files present
     15 * in the system with pointers to all of the symbol, string, and hash tables,
     16 * as well as all of the other good stuff in the binary.
     17 */
     18#include <ldso.h>
     19
     20struct elf_resolve *_dl_loaded_modules = NULL;
     21
  • ldso/ldso/ldso.c

    diff -Naur uClibc-0.9.30.orig/ldso/ldso/ldso.c uClibc-0.9.30/ldso/ldso/ldso.c
    old new  
    6767unsigned long attribute_hidden _dl_skip_args = 0;
    6868const char *_dl_progname = UCLIBC_LDSO;      /* The name of the executable being run */
    6969#include "dl-startup.c"
     70#include "dl-symbols.c"
    7071#include "dl-array.c"
    7172/* Forward function declarations */
    7273static int _dl_suid_ok(void);
  • libc/inet/getaddrinfo.c

    diff -Naur uClibc-0.9.30.orig/libc/inet/getaddrinfo.c uClibc-0.9.30/libc/inet/getaddrinfo.c
    old new  
    186186                        return seen;
    187187                }
    188188
    189                 for (runp = ifa; runp != NULL; runp = runp->ifa_next)
     189                for (runp = ifa; runp != NULL; runp = runp->ifa_next) {
    190190#if defined __UCLIBC_HAS_IPV4__
    191191                        if (runp->ifa_addr->sa_family == PF_INET)
    192192                                seen |= SEEN_IPV4;
     
    195195                        if (runp->ifa_addr->sa_family == PF_INET6)
    196196                                seen |= SEEN_IPV6;
    197197#endif /* __UCLIBC_HAS_IPV6__ */
    198 
     198                }
    199199                freeifaddrs(ifa);
    200200        }
    201201#else
  • libc/inet/ifaddrs.c

    diff -Naur uClibc-0.9.30.orig/libc/inet/ifaddrs.c uClibc-0.9.30/libc/inet/ifaddrs.c
    old new  
    330330   that a RTM_NEWADDR index is not known to this map.  */
    331331static int
    332332internal_function
    333 map_newlink (int index, struct ifaddrs_storage *ifas, int *map, int max)
     333map_newlink (int idx, struct ifaddrs_storage *ifas, int *map, int max)
    334334{
    335335  int i;
    336336
     
    338338    {
    339339      if (map[i] == -1)
    340340        {
    341           map[i] = index;
     341          map[i] = idx;
    342342          if (i > 0)
    343343            ifas[i - 1].ifa.ifa_next = &ifas[i].ifa;
    344344          return i;
    345345        }
    346       else if (map[i] == index)
     346      else if (map[i] == idx)
    347347        return i;
    348348    }
    349349  /* This should never be reached. If this will be reached, we have
  • libc/misc/elf/dl-core.c

    diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-core.c uClibc-0.9.30/libc/misc/elf/dl-core.c
    old new  
     1/*
     2 * This contains all symbols and functions to support
     3 * dynamic linking into static libc.
     4
     5 * Copyright (c) 2008  STMicroelectronics Ltd
     6 * Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     7 *
     8 * Based on draft work by Peter S. Mazinger <ps.m@gmx.net>
     9 *
     10 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     11 *
     12 */
     13
     14#ifdef SHARED
     15#error "This file is not suitable for linking into dynamic libc"
     16#else
     17/* Include ldso symbols and functions used into static libc */
     18#include "../../../ldso/ldso/dl-symbols.c"
     19#endif
     20
  • libc/misc/elf/dl-iterate-phdr.c

    diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-iterate-phdr.c uClibc-0.9.30/libc/misc/elf/dl-iterate-phdr.c
    old new  
     1/* Get loaded objects program headers.
     2
     3  Based on GNU C library (file: libc/elf/dl-iteratephdr.c)
     4
     5  Copyright (C) 2001,2002,2003,2004,2006,2007 Free Software Foundation, Inc.
     6  Contributed by Jakub Jelinek <jakub@redhat.com>, 2001.
     7
     8  Copyright (C) 2008 STMicroelectronics Ltd.
     9  Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     10
     11  Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     12*/
     13
     14
     15#include <link.h>
     16#include <ldso.h>
     17
     18/* we want this in libc but nowhere else */
     19#ifdef __USE_GNU
     20
     21extern __typeof(dl_iterate_phdr) __dl_iterate_phdr;
     22
     23hidden_proto(__dl_iterate_phdr)
     24int
     25__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data)
     26{
     27        struct elf_resolve *l;
     28        struct dl_phdr_info info;
     29        int ret = 0;
     30
     31        for (l = _dl_loaded_modules; l != NULL; l = l->next) {
     32                info.dlpi_addr = l->loadaddr;
     33                info.dlpi_name = l->libname;
     34                info.dlpi_phdr = l->ppnt;
     35                info.dlpi_phnum = l->n_phent;
     36                ret = callback (&info, sizeof (struct dl_phdr_info), data);
     37                if (ret)
     38                        break;
     39        }
     40        return ret;
     41}
     42hidden_def (__dl_iterate_phdr)
     43
     44# ifdef SHARED
     45
     46weak_alias(__dl_iterate_phdr, dl_iterate_phdr)
     47
     48# else
     49
     50/* dl-support.c defines these and initializes them early on.  */
     51extern ElfW(Phdr) *_dl_phdr;
     52extern size_t _dl_phnum;
     53
     54int
     55dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
     56                                  size_t size, void *data), void *data)
     57{
     58  if (_dl_phnum != 0)
     59    {
     60      /* This entry describes this statically-linked program itself.  */
     61      struct dl_phdr_info info;
     62      int ret;
     63      info.dlpi_addr = 0;
     64      info.dlpi_name = "";
     65      info.dlpi_phdr = _dl_phdr;
     66      info.dlpi_phnum = _dl_phnum;
     67      ret = (*callback) (&info, sizeof (struct dl_phdr_info), data);
     68      if (ret)
     69        return ret;
     70    }
     71   /* Then invoke callback on loaded modules, if any */
     72  return __dl_iterate_phdr (callback, data);
     73}
     74
     75# endif
     76#endif
  • libc/misc/elf/dl-support.c

    diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-support.c uClibc-0.9.30/libc/misc/elf/dl-support.c
    old new  
     1/*
     2 * Support for dynamic linking code in static libc.
     3 * Copyright (C) 1996-2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     4 *
     5 * Partially based on GNU C Library (file: libc/elf/dl-support.c)
     6 *
     7 * Copyright (C) 2008 STMicroelectronics Ltd.
     8 * Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     9 *
     10 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     11 *
     12 */
     13
     14#include <link.h>
     15#include <elf.h>
     16
     17ElfW(Phdr) *_dl_phdr;
     18size_t _dl_phnum;
     19
     20void
     21internal_function
     22_dl_aux_init (ElfW(auxv_t) *av)
     23{
     24   /* Get the program headers base address from the aux vect */
     25   _dl_phdr = (ElfW(Phdr) *) av[AT_PHDR].a_un.a_val;
     26
     27   /* Get the number of program headers from the aux vect */
     28   _dl_phnum = (size_t) av[AT_PHNUM].a_un.a_val;
     29}
  • libc/misc/elf/Makefile

    diff -Naur uClibc-0.9.30.orig/libc/misc/elf/Makefile uClibc-0.9.30/libc/misc/elf/Makefile
    old new  
     1# Copyright (C) 2008 STMicroelectronics Ltd.
     2# Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     3
     4# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     5#
     6
     7top_srcdir=../../../
     8top_builddir=../../../
     9all: objs
     10include $(top_builddir)Rules.mak
     11include Makefile.in
     12include $(top_srcdir)Makerules
  • libc/misc/elf/Makefile.in

    diff -Naur uClibc-0.9.30.orig/libc/misc/elf/Makefile.in uClibc-0.9.30/libc/misc/elf/Makefile.in
    old new  
     1# Copyright (C) 2008 STMicroelectronics Ltd.
     2# Author: Carmelo Amoroso <carmelo.amoroso@st.com>
     3
     4# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
     5#
     6
     7libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c
     8CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
     9CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
     10
     11MISC_ELF_OUT:=$(top_builddir)libc/misc/elf
     12MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC))
     13
     14libc-static-y += $(MISC_ELF_OBJ)
     15libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS
     16
     17objclean-y+= misc_elf_objclean
     18
     19misc_elf_objclean:
     20        $(RM) $(MISC_ELF_OUT)/*.{o,os,oS}
  • libc/misc/internals/__uClibc_main.c

    diff -Naur uClibc-0.9.30.orig/libc/misc/internals/__uClibc_main.c uClibc-0.9.30/libc/misc/internals/__uClibc_main.c
    old new  
    7272#  endif
    7373# endif
    7474
     75/*
     76 * Needed to initialize _dl_phdr when statically linked
     77 */
     78
     79void internal_function _dl_aux_init (ElfW(auxv_t) *av);
    7580#endif /* !SHARED */
    7681
    7782/*
     
    114119#endif
    115120
    116121/*
    117  * Declare the __environ global variable and create a strong alias environ.
    118  * Note: Apparently we must initialize __environ to ensure that the strong
    119  * environ symbol is also included.
     122 * Declare the __environ global variable and create a weak alias environ.
     123 * This must be initialized; we cannot have a weak alias into bss.
    120124 */
    121125char **__environ = 0;
    122126weak_alias(__environ, environ)
     
    310314        }
    311315        aux_dat += 2;
    312316    }
     317#ifndef SHARED
     318    /* Get the program headers (_dl_phdr) from the aux vector
     319       It will be used into __libc_setup_tls. */
     320
     321    _dl_aux_init (auxvt);
     322#endif
    313323#endif
    314324
    315325    /* We need to initialize uClibc.  If we are dynamically linked this
  • libc/misc/Makefile.in

    diff -Naur uClibc-0.9.30.orig/libc/misc/Makefile.in uClibc-0.9.30/libc/misc/Makefile.in
    old new  
    1212include $(top_srcdir)libc/misc/ctype/Makefile.in
    1313include $(top_srcdir)libc/misc/dirent/Makefile.in
    1414include $(top_srcdir)libc/misc/error/Makefile.in
     15include $(top_srcdir)libc/misc/elf/Makefile.in
    1516include $(top_srcdir)libc/misc/file/Makefile.in
    1617include $(top_srcdir)libc/misc/fnmatch/Makefile.in
    1718include $(top_srcdir)libc/misc/ftw/Makefile.in
  • libc/misc/wchar/wchar.c

    diff -Naur uClibc-0.9.30.orig/libc/misc/wchar/wchar.c uClibc-0.9.30/libc/misc/wchar/wchar.c
    old new  
    11431143{
    11441144        int count;
    11451145        wchar_t wc;
     1146        size_t i;
     1147
     1148        for (i = 0 ; (i < n) && pwcs[i] ; i++) {
     1149                if (pwcs[i] != (pwcs[i] & 0x7f)) {
     1150                        return -1;
     1151                }
     1152        }
    11461153
    11471154    for (count = 0 ; n && (wc = *pwcs++) ; n--) {
    11481155                if (wc <= 0xff) {
     
    12461253        "\x08\xec""UCS-4\x00"           /* always BE */
    12471254        "\x0a\xec""UCS-4BE\x00"
    12481255        "\x0a\xed""UCS-4LE\x00"
    1249         "\x09\fe4""UTF-32\x00"          /* platform endian with BOM */
     1256        "\x09\xe4""UTF-32\x00"          /* platform endian with BOM */
    12501257        "\x0b\xe4""UTF-32BE\x00"
    12511258        "\x0b\xe5""UTF-32LE\x00"
    12521259        "\x08\xe2""UCS-2\x00"           /* always BE */
  • libc/sysdeps/linux/alpha/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/alpha/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/alpha/bits/fcntl.h
    old new  
    159159  };
    160160#endif
    161161
    162 
    163162/* Define some more compatibility macros to be backward compatible with
    164163   BSD systems which did not managed to hide these kernel macros.  */
    165164#ifdef  __USE_BSD
     
    181180#endif
    182181
    183182
    184 #ifdef __USE_GNU
     183#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    185184/* Flags for SYNC_FILE_RANGE.  */
    186185# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    187186                                             in the range before performing the
     
    204203
    205204__BEGIN_DECLS
    206205
    207 #ifdef __USE_GNU
     206#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    208207
    209208/* Provide kernel hint to read ahead.  */
    210209extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/arm/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/arm/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/arm/bits/fcntl.h
    old new  
    189189#endif
    190190
    191191
    192 #ifdef __USE_GNU
     192#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    193193/* Flags for SYNC_FILE_RANGE.  */
    194194# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    195195                                             in the range before performing the
     
    212212
    213213__BEGIN_DECLS
    214214
    215 #ifdef __USE_GNU
     215#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    216216
    217217/* Provide kernel hint to read ahead.  */
    218218extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/arm/crt1.S

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/arm/crt1.S uClibc-0.9.30/libc/sysdeps/linux/arm/crt1.S
    old new  
    238238
    239239#ifdef __PIC__
    240240.L_GOT:
     241#ifdef __thumb__
     242        .word   _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+4)
     243#else /* __thumb2__ */
    241244        .word   _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+8)
     245#endif
    242246        .word _fini(GOT)
    243247        .word _init(GOT)
    244248        .word main(GOT)
  • libc/sysdeps/linux/avr32/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/avr32/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/avr32/bits/fcntl.h
    old new  
    167167# define POSIX_FADV_NOREUSE     5 /* Data will be accessed once.  */
    168168#endif
    169169
    170 #ifdef __USE_GNU
    171170
     171#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    172172/* Flags for SYNC_FILE_RANGE.  */
    173173# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    174174                                             in the range before performing
  • libc/sysdeps/linux/bfin/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/bfin/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/bfin/bits/fcntl.h
    old new  
    185185#endif
    186186
    187187
    188 #ifdef __USE_GNU
     188#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    189189/* Flags for SYNC_FILE_RANGE.  */
    190190# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    191191                                             in the range before performing the
     
    208208
    209209__BEGIN_DECLS
    210210
    211 #ifdef __USE_GNU
     211#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    212212
    213213/* Provide kernel hint to read ahead.  */
    214214extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/common/bits/mathcalls.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/common/bits/mathcalls.h uClibc-0.9.30/libc/sysdeps/linux/common/bits/mathcalls.h
    old new  
    5252
    5353_Mdouble_BEGIN_NAMESPACE
    5454/* Arc cosine of X.  */
    55 __MATHCALL (acos,, (_Mdouble_ __x));
    56 libm_hidden_proto(acos)
     55__MATHCALLI (acos,, (_Mdouble_ __x));
    5756/* Arc sine of X.  */
    58 __MATHCALL (asin,, (_Mdouble_ __x));
    59 libm_hidden_proto(asin)
     57__MATHCALLI (asin,, (_Mdouble_ __x));
    6058/* Arc tangent of X.  */
    61 __MATHCALL (atan,, (_Mdouble_ __x));
    62 libm_hidden_proto(atan)
     59__MATHCALLI (atan,, (_Mdouble_ __x));
    6360/* Arc tangent of Y/X.  */
    64 __MATHCALL (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
    65 libm_hidden_proto(atan2)
     61__MATHCALLI (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
    6662
    6763/* Cosine of X.  */
    68 __MATHCALL (cos,, (_Mdouble_ __x));
    69 libm_hidden_proto(cos)
     64__MATHCALLI (cos,, (_Mdouble_ __x));
    7065/* Sine of X.  */
    71 __MATHCALL (sin,, (_Mdouble_ __x));
    72 libm_hidden_proto(sin)
     66__MATHCALLI (sin,, (_Mdouble_ __x));
    7367/* Tangent of X.  */
    74 __MATHCALL (tan,, (_Mdouble_ __x));
    75 libm_hidden_proto(tan)
     68__MATHCALLI (tan,, (_Mdouble_ __x));
    7669
    7770/* Hyperbolic functions.  */
    7871
    7972/* Hyperbolic cosine of X.  */
    80 __MATHCALL (cosh,, (_Mdouble_ __x));
    81 libm_hidden_proto(cosh)
     73__MATHCALLI (cosh,, (_Mdouble_ __x));
    8274/* Hyperbolic sine of X.  */
    83 __MATHCALL (sinh,, (_Mdouble_ __x));
    84 libm_hidden_proto(sinh)
     75__MATHCALLI (sinh,, (_Mdouble_ __x));
    8576/* Hyperbolic tangent of X.  */
    86 __MATHCALL (tanh,, (_Mdouble_ __x));
    87 libm_hidden_proto(tanh)
     77__MATHCALLI (tanh,, (_Mdouble_ __x));
    8878_Mdouble_END_NAMESPACE
    8979
    9080#if 0 /*def __USE_GNU*/
    9181/* Cosine and sine of X.  */
    9282__MATHDECL (void,sincos,,
    9383            (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
    94 libm_hidden_proto(sincos)
    9584#endif
    9685
    9786#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
    9887__BEGIN_NAMESPACE_C99
    9988/* Hyperbolic arc cosine of X.  */
    100 __MATHCALL (acosh,, (_Mdouble_ __x));
    101 libm_hidden_proto(acosh)
     89__MATHCALLI (acosh,, (_Mdouble_ __x));
    10290/* Hyperbolic arc sine of X.  */
    103 __MATHCALL (asinh,, (_Mdouble_ __x));
    104 libm_hidden_proto(asinh)
     91__MATHCALLI (asinh,, (_Mdouble_ __x));
    10592/* Hyperbolic arc tangent of X.  */
    106 __MATHCALL (atanh,, (_Mdouble_ __x));
    107 libm_hidden_proto(atanh)
     93__MATHCALLI (atanh,, (_Mdouble_ __x));
    10894__END_NAMESPACE_C99
    10995#endif
    11096
     
    11298
    11399_Mdouble_BEGIN_NAMESPACE
    114100/* Exponential function of X.  */
    115 __MATHCALL (exp,, (_Mdouble_ __x));
    116 libm_hidden_proto(exp)
     101__MATHCALLI (exp,, (_Mdouble_ __x));
    117102
    118103/* Break VALUE into a normalized fraction and an integral power of 2.  */
    119 __MATHCALL (frexp,, (_Mdouble_ __x, int *__exponent));
    120 libm_hidden_proto(frexp)
     104__MATHCALLI (frexp,, (_Mdouble_ __x, int *__exponent));
    121105
    122106/* X times (two to the EXP power).  */
    123 __MATHCALL (ldexp,, (_Mdouble_ __x, int __exponent));
    124 libm_hidden_proto(ldexp)
     107__MATHCALLI (ldexp,, (_Mdouble_ __x, int __exponent));
    125108
    126109/* Natural logarithm of X.  */
    127 __MATHCALL (log,, (_Mdouble_ __x));
    128 libm_hidden_proto(log)
     110__MATHCALLI (log,, (_Mdouble_ __x));
    129111
    130112/* Base-ten logarithm of X.  */
    131 __MATHCALL (log10,, (_Mdouble_ __x));
    132 libm_hidden_proto(log10)
     113__MATHCALLI (log10,, (_Mdouble_ __x));
    133114
    134115/* Break VALUE into integral and fractional parts.  */
    135 __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr));
    136 libm_hidden_proto(modf)
     116__MATHCALLI (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr));
    137117_Mdouble_END_NAMESPACE
    138118
    139119#if 0 /*def __USE_GNU*/
    140120/* A function missing in all standards: compute exponent to base ten.  */
    141121__MATHCALL (exp10,, (_Mdouble_ __x));
    142 libm_hidden_proto(exp10)
    143122/* Another name occasionally used.  */
    144123__MATHCALL (pow10,, (_Mdouble_ __x));
    145 libm_hidden_proto(pow10)
    146124#endif
    147125
    148126#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
    149127__BEGIN_NAMESPACE_C99
    150128/* Return exp(X) - 1.  */
    151 __MATHCALL (expm1,, (_Mdouble_ __x));
    152 libm_hidden_proto(expm1)
     129__MATHCALLI (expm1,, (_Mdouble_ __x));
    153130
    154131/* Return log(1 + X).  */
    155 __MATHCALL (log1p,, (_Mdouble_ __x));
    156 libm_hidden_proto(log1p)
     132__MATHCALLI (log1p,, (_Mdouble_ __x));
    157133
    158134/* Return the base 2 signed integral exponent of X.  */
    159 __MATHCALL (logb,, (_Mdouble_ __x));
    160 libm_hidden_proto(logb)
     135__MATHCALLI (logb,, (_Mdouble_ __x));
    161136__END_NAMESPACE_C99
    162137#endif
    163138
    164139#ifdef __USE_ISOC99
    165140__BEGIN_NAMESPACE_C99
    166141/* Compute base-2 exponential of X.  */
    167 __MATHCALL (exp2,, (_Mdouble_ __x));
    168 libm_hidden_proto(exp2)
     142__MATHCALLI (exp2,, (_Mdouble_ __x));
    169143
    170144/* Compute base-2 logarithm of X.  */
    171145__MATHCALL (log2,, (_Mdouble_ __x));
    172 libm_hidden_proto(log2)
    173146__END_NAMESPACE_C99
    174147#endif
    175148
     
    178151
    179152_Mdouble_BEGIN_NAMESPACE
    180153/* Return X to the Y power.  */
    181 __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
    182 libm_hidden_proto(pow)
     154__MATHCALLI (pow,, (_Mdouble_ __x, _Mdouble_ __y));
    183155
    184156/* Return the square root of X.  */
    185 __MATHCALL (sqrt,, (_Mdouble_ __x));
    186 libm_hidden_proto(sqrt)
     157__MATHCALLI (sqrt,, (_Mdouble_ __x));
    187158_Mdouble_END_NAMESPACE
    188159
    189160#if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99
    190161__BEGIN_NAMESPACE_C99
    191162/* Return `sqrt(X*X + Y*Y)'.  */
    192 __MATHCALL (hypot,, (_Mdouble_ __x, _Mdouble_ __y));
    193 libm_hidden_proto(hypot)
     163__MATHCALLI (hypot,, (_Mdouble_ __x, _Mdouble_ __y));
    194164__END_NAMESPACE_C99
    195165#endif
    196166
    197167#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
    198168__BEGIN_NAMESPACE_C99
    199169/* Return the cube root of X.  */
    200 __MATHCALL (cbrt,, (_Mdouble_ __x));
    201 libm_hidden_proto(cbrt)
     170__MATHCALLI (cbrt,, (_Mdouble_ __x));
    202171__END_NAMESPACE_C99
    203172#endif
    204173
     
    208177_Mdouble_BEGIN_NAMESPACE
    209178/* Smallest integral value not less than X.  */
    210179__MATHCALLX (ceil,, (_Mdouble_ __x), (__const__));
    211 libm_hidden_proto(ceil)
    212180
    213181/* Absolute value of X.  */
    214182__MATHCALLX (fabs,, (_Mdouble_ __x), (__const__));
    215 libm_hidden_proto(fabs)
    216183
    217184/* Largest integer not greater than X.  */
    218185__MATHCALLX (floor,, (_Mdouble_ __x), (__const__));
    219 libm_hidden_proto(floor)
    220186
    221187/* Floating-point modulo remainder of X/Y.  */
    222 __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
    223 libm_hidden_proto(fmod)
     188__MATHCALLI (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
    224189
    225190
    226191/* Return 0 if VALUE is finite or NaN, +1 if it
    227192   is +Infinity, -1 if it is -Infinity.  */
    228 __MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
    229 libm_hidden_proto(__isinf)
     193__MATHDECL_PRIV (int,isinf,, (_Mdouble_ __value), (__const__));
    230194
    231195/* Return nonzero if VALUE is finite and not NaN.  */
    232 __MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
    233 libm_hidden_proto(__finite)
     196__MATHDECL_PRIV (int,finite,, (_Mdouble_ __value), (__const__));
    234197_Mdouble_END_NAMESPACE
    235198
    236199#ifdef __USE_MISC
     200#if 0
    237201/* Return 0 if VALUE is finite or NaN, +1 if it
    238202   is +Infinity, -1 if it is -Infinity.  */
    239 __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
    240 libm_hidden_proto(isinf)
     203__MATHDECL_PRIV (int,isinf,, (_Mdouble_ __value), (__const__));
    241204
    242205/* Return nonzero if VALUE is finite and not NaN.  */
    243 __MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
    244 libm_hidden_proto(finite)
    245 
     206__MATHDECL_PRIV (int,finite,, (_Mdouble_ __value), (__const__));
     207#endif
    246208/* Return the remainder of X/Y.  */
    247209__MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y));
    248 libm_hidden_proto(drem)
    249210
    250211
    251212/* Return the fractional part of X after dividing out `ilogb (X)'.  */
    252213__MATHCALL (significand,, (_Mdouble_ __x));
    253 libm_hidden_proto(significand)
    254214#endif /* Use misc.  */
    255215
    256216#if defined __USE_MISC || defined __USE_ISOC99
    257217__BEGIN_NAMESPACE_C99
    258218/* Return X with its signed changed to Y's.  */
    259219__MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
    260 libm_hidden_proto(copysign)
    261220__END_NAMESPACE_C99
    262221#endif
    263222
     
    265224__BEGIN_NAMESPACE_C99
    266225/* Return representation of NaN for double type.  */
    267226__MATHCALLX (nan,, (__const char *__tagb), (__const__));
    268 libm_hidden_proto(nan)
    269227__END_NAMESPACE_C99
    270228#endif
    271229
    272230
    273231/* Return nonzero if VALUE is not a number.  */
    274 __MATHDECL_1 (int,__isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
    275 libm_hidden_proto(__isnan)
     232__MATHDECL_PRIV (int,__isnan,, (_Mdouble_ __value), (__const__));
    276233
    277234#if defined __USE_MISC || defined __USE_XOPEN
    278235/* Return nonzero if VALUE is not a number.  */
    279 __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
    280 libm_hidden_proto(isnan)
     236__MATHDECL_PRIV (int,isnan,, (_Mdouble_ __value), (__const__));
    281237
    282238/* Bessel functions.  */
    283239__MATHCALL (j0,, (_Mdouble_));
    284 libm_hidden_proto(j0)
    285240__MATHCALL (j1,, (_Mdouble_));
    286 libm_hidden_proto(j1)
    287241__MATHCALL (jn,, (int, _Mdouble_));
    288 libm_hidden_proto(jn)
    289242__MATHCALL (y0,, (_Mdouble_));
    290 libm_hidden_proto(y0)
    291243__MATHCALL (y1,, (_Mdouble_));
    292 libm_hidden_proto(y1)
    293244__MATHCALL (yn,, (int, _Mdouble_));
    294 libm_hidden_proto(yn)
    295245#endif
    296246
    297247
    298248#if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99
    299249__BEGIN_NAMESPACE_C99
    300250/* Error and gamma functions.  */
    301 __MATHCALL (erf,, (_Mdouble_));
    302 libm_hidden_proto(erf)
    303 __MATHCALL (erfc,, (_Mdouble_));
    304 libm_hidden_proto(erfc)
    305 __MATHCALL (lgamma,, (_Mdouble_));
    306 libm_hidden_proto(lgamma)
     251__MATHCALLI (erf,, (_Mdouble_));
     252__MATHCALLI (erfc,, (_Mdouble_));
     253__MATHCALLI (lgamma,, (_Mdouble_));
    307254__END_NAMESPACE_C99
    308255#endif
    309256
    310257#ifdef __USE_ISOC99
    311258__BEGIN_NAMESPACE_C99
    312259/* True gamma function.  */
    313 __MATHCALL (tgamma,, (_Mdouble_));
    314 libm_hidden_proto(tgamma)
     260__MATHCALLI (tgamma,, (_Mdouble_));
    315261__END_NAMESPACE_C99
    316262#endif
    317263
    318264#if defined __USE_MISC || defined __USE_XOPEN
    319265/* Obsolete alias for `lgamma'.  */
    320266__MATHCALL (gamma,, (_Mdouble_));
    321 libm_hidden_proto(gamma)
    322267#endif
    323268
    324269#ifdef __USE_MISC
     
    326271   `signgam'.  The reentrant version instead takes a pointer and stores
    327272   the value through it.  */
    328273__MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp));
    329 libm_hidden_proto(lgamma_r)
    330274#endif
    331275
    332276
     
    334278__BEGIN_NAMESPACE_C99
    335279/* Return the integer nearest X in the direction of the
    336280   prevailing rounding mode.  */
    337 __MATHCALL (rint,, (_Mdouble_ __x));
    338 libm_hidden_proto(rint)
     281__MATHCALLI (rint,, (_Mdouble_ __x));
    339282
    340283/* Return X + epsilon if X < Y, X - epsilon if X > Y.  */
    341284__MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
    342 libm_hidden_proto(nextafter)
    343285# if defined __USE_ISOC99 && !defined __LDBL_COMPAT
    344286__MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__));
    345 libm_hidden_proto(nexttoward)
    346287# endif
    347288
    348289/* Return the remainder of integer divison X / Y with infinite precision.  */
    349 __MATHCALL (remainder,, (_Mdouble_ __x, _Mdouble_ __y));
    350 libm_hidden_proto(remainder)
     290__MATHCALLI (remainder,, (_Mdouble_ __x, _Mdouble_ __y));
    351291
    352292# if defined __USE_MISC || defined __USE_ISOC99
    353293/* Return X times (2 to the Nth power).  */
    354 __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
    355 libm_hidden_proto(scalbn)
     294__MATHCALLI (scalbn,, (_Mdouble_ __x, int __n));
    356295# endif
    357296
    358297/* Return the binary exponent of X, which must be nonzero.  */
    359 __MATHDECL (int,ilogb,, (_Mdouble_ __x));
    360 libm_hidden_proto(ilogb)
     298__MATHDECLI (int,ilogb,, (_Mdouble_ __x));
    361299#endif
    362300
    363301#ifdef __USE_ISOC99
    364302/* Return X times (2 to the Nth power).  */
    365 __MATHCALL (scalbln,, (_Mdouble_ __x, long int __n));
    366 libm_hidden_proto(scalbln)
     303__MATHCALLI (scalbln,, (_Mdouble_ __x, long int __n));
    367304
    368305/* Round X to integral value in floating-point format using current
    369306   rounding direction, but do not raise inexact exception.  */
    370 __MATHCALL (nearbyint,, (_Mdouble_ __x));
    371 libm_hidden_proto(nearbyint)
     307__MATHCALLI (nearbyint,, (_Mdouble_ __x));
    372308
    373309/* Round X to nearest integral value, rounding halfway cases away from
    374310   zero.  */
    375311__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
    376 libm_hidden_proto(round)
    377312
    378313/* Round X to the integral value in floating-point format nearest but
    379314   not larger in magnitude.  */
    380315__MATHCALLX (trunc,, (_Mdouble_ __x), (__const__));
    381 libm_hidden_proto(trunc)
    382316
    383317/* Compute remainder of X and Y and put in *QUO a value with sign of x/y
    384318   and magnitude congruent `mod 2^n' to the magnitude of the integral
    385319   quotient x/y, with n >= 3.  */
    386 __MATHCALL (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo));
    387 libm_hidden_proto(remquo)
     320__MATHCALLI (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo));
    388321
    389322
    390323/* Conversion functions.  */
    391324
    392325/* Round X to nearest integral value according to current rounding
    393326   direction.  */
    394 __MATHDECL (long int,lrint,, (_Mdouble_ __x));
    395 libm_hidden_proto(lrint)
    396 __MATHDECL (long long int,llrint,, (_Mdouble_ __x));
    397 libm_hidden_proto(llrint)
     327__MATHDECLI (long int,lrint,, (_Mdouble_ __x));
     328__MATHDECLI (long long int,llrint,, (_Mdouble_ __x));
    398329
    399330/* Round X to nearest integral value, rounding halfway cases away from
    400331   zero.  */
    401 __MATHDECL (long int,lround,, (_Mdouble_ __x));
    402 libm_hidden_proto(lround)
    403 __MATHDECL (long long int,llround,, (_Mdouble_ __x));
    404 libm_hidden_proto(llround)
     332__MATHDECLI (long int,lround,, (_Mdouble_ __x));
     333__MATHDECLI (long long int,llround,, (_Mdouble_ __x));
    405334
    406335
    407336/* Return positive difference between X and Y.  */
    408 __MATHCALL (fdim,, (_Mdouble_ __x, _Mdouble_ __y));
    409 libm_hidden_proto(fdim)
     337__MATHCALLI (fdim,, (_Mdouble_ __x, _Mdouble_ __y));
    410338
    411339/* Return maximum numeric value from X and Y.  */
    412 __MATHCALL (fmax,, (_Mdouble_ __x, _Mdouble_ __y));
    413 libm_hidden_proto(fmax)
     340__MATHCALLI (fmax,, (_Mdouble_ __x, _Mdouble_ __y));
    414341
    415342/* Return minimum numeric value from X and Y.  */
    416 __MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y));
    417 libm_hidden_proto(fmin)
     343__MATHCALLI (fmin,, (_Mdouble_ __x, _Mdouble_ __y));
    418344
    419345
    420346/* Classify given number.  */
    421 __MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value))
    422      __attribute__ ((__const__));
    423 libm_hidden_proto(__fpclassify)
     347__MATHDECL_PRIV (int, fpclassify,, (_Mdouble_ __value), (__const__));
    424348
    425349/* Test for negative number.  */
    426 __MATHDECL_1 (int, __signbit,, (_Mdouble_ __value))
    427      __attribute__ ((__const__));
    428 libm_hidden_proto(__signbit)
     350__MATHDECL_PRIV (int, signbit,, (_Mdouble_ __value), (__const__));
    429351
    430352
    431353/* Multiply-add function computed as a ternary operation.  */
    432 __MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
    433 libm_hidden_proto(fma)
     354__MATHCALLI (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
    434355#endif /* Use ISO C99.  */
    435356
    436357#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
     
    440361#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
    441362/* Return X times (2 to the Nth power).  */
    442363__MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n));
    443 libm_hidden_proto(scalb)
    444364#endif
  • libc/sysdeps/linux/cris/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/cris/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/cris/bits/fcntl.h
    old new  
    186186#endif
    187187
    188188
    189 #ifdef __USE_GNU
     189#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    190190/* Flags for SYNC_FILE_RANGE.  */
    191191# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    192192                                             in the range before performing the
     
    209209
    210210__BEGIN_DECLS
    211211
    212 #ifdef __USE_GNU
     212#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    213213
    214214/* Provide kernel hint to read ahead.  */
    215215extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/e1/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/e1/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/e1/bits/fcntl.h
    old new  
    182182#endif
    183183
    184184
    185 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    186186/* Flags for SYNC_FILE_RANGE.  */
    187187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    188188                                             in the range before performing the
     
    205205
    206206__BEGIN_DECLS
    207207
    208 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    209209
    210210/* Provide kernel hint to read ahead.  */
    211211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     
    231231
    232232#endif
    233233__END_DECLS
    234 
     234#endif /* LINUX_SPECIFIC */
  • libc/sysdeps/linux/frv/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/frv/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/frv/bits/fcntl.h
    old new  
    164164#endif
    165165
    166166
    167 #ifdef __USE_GNU
     167#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    168168/* Flags for SYNC_FILE_RANGE.  */
    169169# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    170170                                             in the range before performing the
     
    187187
    188188__BEGIN_DECLS
    189189
    190 #ifdef __USE_GNU
     190#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    191191
    192192/* Provide kernel hint to read ahead.  */
    193193extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/h8300/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/h8300/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/h8300/bits/fcntl.h
    old new  
    182182#endif
    183183
    184184
    185 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    186186/* Flags for SYNC_FILE_RANGE.  */
    187187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    188188                                             in the range before performing the
     
    205205
    206206__BEGIN_DECLS
    207207
    208 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    209209
    210210/* Provide kernel hint to read ahead.  */
    211211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/hppa/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/hppa/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/hppa/bits/fcntl.h
    old new  
    176176#endif
    177177
    178178
    179 #ifdef __USE_GNU
     179#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    180180/* Flags for SYNC_FILE_RANGE.  */
    181181# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    182182                                             in the range before performing the
     
    199199
    200200__BEGIN_DECLS
    201201
    202 #ifdef __USE_GNU
     202#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    203203
    204204/* Provide kernel hint to read ahead.  */
    205205extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/i386/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/i386/bits/fcntl.h
    old new  
    189189#endif
    190190
    191191
    192 #ifdef __USE_GNU
     192#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    193193/* Flags for SYNC_FILE_RANGE.  */
    194194# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    195195                                             in the range before performing the
     
    212212
    213213__BEGIN_DECLS
    214214
    215 #ifdef __USE_GNU
     215#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    216216
    217217/* Provide kernel hint to read ahead.  */
    218218extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/i386/bits/kernel_types.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/kernel_types.h uClibc-0.9.30/libc/sysdeps/linux/i386/bits/kernel_types.h
    old new  
    77
    88/* a hack for compiling a 32 bit user space with 64 bit
    99 * kernel on x86_64  */
    10 #if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H)
     10#if !defined(__ARCH_I386_POSIX_TYPES_H) && \
     11    !defined(_ASM_X86_64_POSIX_TYPES_H) && \
     12    !defined(_ASM_X86_POSIX_TYPES_32_H) && \
     13    !defined(_ASM_X86_POSIX_TYPES_64_H)
    1114#define _ASM_X86_64_POSIX_TYPES_H
    1215#define __ARCH_I386_POSIX_TYPES_H
     16#define _ASM_X86_POSIX_TYPES_32_H
     17#define _ASM_X86_POSIX_TYPES_64_H
    1318
    1419typedef unsigned short  __kernel_dev_t;
    1520typedef unsigned long   __kernel_ino_t;
  • libc/sysdeps/linux/i960/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i960/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/i960/bits/fcntl.h
    old new  
    182182#endif
    183183
    184184
    185 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    186186/* Flags for SYNC_FILE_RANGE.  */
    187187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    188188                                             in the range before performing the
     
    205205
    206206__BEGIN_DECLS
    207207
    208 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    209209
    210210/* Provide kernel hint to read ahead.  */
    211211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/ia64/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/ia64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/ia64/bits/fcntl.h
    old new  
    161161  };
    162162#endif
    163163
    164 
    165164/* Define some more compatibility macros to be backward compatible with
    166165   BSD systems which did not managed to hide these kernel macros.  */
    167166#ifdef  __USE_BSD
     
    183182#endif
    184183
    185184
    186 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    187186/* Flags for SYNC_FILE_RANGE.  */
    188187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    189188                                             in the range before performing the
     
    206205
    207206__BEGIN_DECLS
    208207
    209 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    210209
    211210/* Provide kernel hint to read ahead.  */
    212211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/m68k/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/m68k/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/m68k/bits/fcntl.h
    old new  
    185185#endif
    186186
    187187
    188 #ifdef __USE_GNU
     188#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    189189/* Flags for SYNC_FILE_RANGE.  */
    190190# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    191191                                             in the range before performing the
     
    208208
    209209__BEGIN_DECLS
    210210
    211 #ifdef __USE_GNU
     211#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    212212
    213213/* Provide kernel hint to read ahead.  */
    214214extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/microblaze/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/microblaze/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/microblaze/bits/fcntl.h
    old new  
    182182#endif
    183183
    184184
    185 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    186186/* Flags for SYNC_FILE_RANGE.  */
    187187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    188188                                             in the range before performing the
     
    205205
    206206__BEGIN_DECLS
    207207
    208 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    209209
    210210/* Provide kernel hint to read ahead.  */
    211211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/mips/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/mips/bits/fcntl.h
    old new  
    209209#endif
    210210
    211211
    212 #ifdef __USE_GNU
     212#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    213213/* Flags for SYNC_FILE_RANGE.  */
    214214# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    215215                                             in the range before performing the
     
    232232
    233233__BEGIN_DECLS
    234234
    235 #ifdef __USE_GNU
     235#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    236236
    237237/* Provide kernel hint to read ahead.  */
    238238extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/mips/bits/socket.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/socket.h uClibc-0.9.30/libc/sysdeps/linux/mips/bits/socket.h
    old new  
    268268                         + CMSG_ALIGN (sizeof (struct cmsghdr)))
    269269#define CMSG_LEN(len)   (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
    270270
    271 extern struct cmsghdr * __NTH (__cmsg_nxthdr (struct msghdr *__mhdr,
    272                                       struct cmsghdr *__cmsg)) __THROW;
     271extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
     272                                      struct cmsghdr *__cmsg) __THROW;
    273273#ifdef __USE_EXTERN_INLINES
    274274# ifndef _EXTERN_INLINE
    275275#  define _EXTERN_INLINE extern __inline
  • libc/sysdeps/linux/nios/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/nios/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/nios/bits/fcntl.h
    old new  
    185185#endif
    186186
    187187
    188 #ifdef __USE_GNU
     188#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    189189/* Flags for SYNC_FILE_RANGE.  */
    190190# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    191191                                             in the range before performing the
     
    208208
    209209__BEGIN_DECLS
    210210
    211 #ifdef __USE_GNU
     211#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    212212
    213213/* Provide kernel hint to read ahead.  */
    214214extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/nios2/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/nios2/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/nios2/bits/fcntl.h
    old new  
    185185#endif
    186186
    187187
    188 #ifdef __USE_GNU
     188#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    189189/* Flags for SYNC_FILE_RANGE.  */
    190190# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    191191                                             in the range before performing the
     
    208208
    209209__BEGIN_DECLS
    210210
    211 #ifdef __USE_GNU
     211#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    212212
    213213/* Provide kernel hint to read ahead.  */
    214214extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/powerpc/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/powerpc/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/powerpc/bits/fcntl.h
    old new  
    189189#endif
    190190
    191191
    192 #ifdef __USE_GNU
     192#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    193193/* Flags for SYNC_FILE_RANGE.  */
    194194# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    195195                                             in the range before performing the
     
    212212
    213213__BEGIN_DECLS
    214214
    215 #ifdef __USE_GNU
     215#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    216216
    217217/* Provide kernel hint to read ahead.  */
    218218extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/sh/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sh/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sh/bits/fcntl.h
    old new  
    189189#endif
    190190
    191191
    192 #ifdef __USE_GNU
     192#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    193193/* Flags for SYNC_FILE_RANGE.  */
    194194# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    195195                                             in the range before performing the
     
    212212
    213213__BEGIN_DECLS
    214214
    215 #ifdef __USE_GNU
     215#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    216216
    217217/* Provide kernel hint to read ahead.  */
    218218extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/sh64/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sh64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sh64/bits/fcntl.h
    old new  
    164164#endif
    165165
    166166
    167 #ifdef __USE_GNU
     167#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    168168/* Flags for SYNC_FILE_RANGE.  */
    169169# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    170170                                             in the range before performing the
     
    187187
    188188__BEGIN_DECLS
    189189
    190 #ifdef __USE_GNU
     190#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    191191
    192192/* Provide kernel hint to read ahead.  */
    193193extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/sparc/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sparc/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sparc/bits/fcntl.h
    old new  
    208208#endif
    209209
    210210
    211 #ifdef __USE_GNU
     211#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    212212/* Flags for SYNC_FILE_RANGE.  */
    213213# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    214214                                             in the range before performing the
     
    231231
    232232__BEGIN_DECLS
    233233
    234 #ifdef __USE_GNU
     234#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    235235
    236236/* Provide kernel hint to read ahead.  */
    237237extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/v850/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/v850/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/v850/bits/fcntl.h
    old new  
    182182#endif
    183183
    184184
    185 #ifdef __USE_GNU
     185#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    186186/* Flags for SYNC_FILE_RANGE.  */
    187187# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    188188                                             in the range before performing the
     
    205205
    206206__BEGIN_DECLS
    207207
    208 #ifdef __USE_GNU
     208#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    209209
    210210/* Provide kernel hint to read ahead.  */
    211211extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/vax/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/vax/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/vax/bits/fcntl.h
    old new  
    162162#endif
    163163
    164164
    165 #ifdef __USE_GNU
     165#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    166166/* Flags for SYNC_FILE_RANGE.  */
    167167# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    168168                                             in the range before performing the
     
    185185
    186186__BEGIN_DECLS
    187187
    188 #ifdef __USE_GNU
     188#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    189189
    190190/* Provide kernel hint to read ahead.  */
    191191extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/x86_64/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/fcntl.h
    old new  
    203203#endif
    204204
    205205
    206 #ifdef __USE_GNU
     206#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    207207/* Flags for SYNC_FILE_RANGE.  */
    208208# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    209209                                             in the range before performing the
     
    226226
    227227__BEGIN_DECLS
    228228
    229 #ifdef __USE_GNU
     229#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    230230
    231231/* Provide kernel hint to read ahead.  */
    232232extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libc/sysdeps/linux/x86_64/bits/kernel_types.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/kernel_types.h uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/kernel_types.h
    old new  
    44 * our private content, and not the kernel header, will win.
    55 *  -Erik
    66 */
    7 #ifndef _ASM_X86_64_POSIX_TYPES_H
     7
     8/* a hack for compiling a 32 bit user space with 64 bit
     9 * kernel on x86_64  */
     10#if !defined(__ARCH_I386_POSIX_TYPES_H) && \
     11    !defined(_ASM_X86_64_POSIX_TYPES_H) && \
     12    !defined(_ASM_X86_POSIX_TYPES_32_H) && \
     13    !defined(_ASM_X86_POSIX_TYPES_64_H)
    814#define _ASM_X86_64_POSIX_TYPES_H
     15#define __ARCH_I386_POSIX_TYPES_H
     16#define _ASM_X86_POSIX_TYPES_32_H
     17#define _ASM_X86_POSIX_TYPES_64_H
    918
    1019typedef unsigned long   __kernel_dev_t;
    1120typedef unsigned long   __kernel_ino_t;
  • libc/sysdeps/linux/xtensa/bits/fcntl.h

    diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/xtensa/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/xtensa/bits/fcntl.h
    old new  
    186186#endif
    187187
    188188
    189 #ifdef __USE_GNU
     189#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    190190/* Flags for SYNC_FILE_RANGE.  */
    191191# define SYNC_FILE_RANGE_WAIT_BEFORE    1 /* Wait upon writeout of all pages
    192192                                             in the range before performing the
     
    209209
    210210__BEGIN_DECLS
    211211
    212 #ifdef __USE_GNU
     212#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
    213213
    214214/* Provide kernel hint to read ahead.  */
    215215extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
  • libm/e_scalb.c

    diff -Naur uClibc-0.9.30.orig/libm/e_scalb.c uClibc-0.9.30/libm/e_scalb.c
    old new  
    4444        return scalbn(x,fn);
    4545#else
    4646        if (isnan(x)||isnan(fn)) return x*fn;
    47         if (!finite(fn)) {
     47        if (!isfinite(fn)) {
    4848            if(fn>0.0) return x*fn;
    4949            else       return x/(-fn);
    5050        }
  • libm/float_wrappers.c

    diff -Naur uClibc-0.9.30.orig/libm/float_wrappers.c uClibc-0.9.30/libm/float_wrappers.c
    old new  
    3636float       atan2f(float, float);
    3737float       atanf(float);
    3838float       atanhf(float);
     39float       cargf(float complex);
    3940float       cbrtf(float);
    4041float       ceilf(float);
    4142float       copysignf(float, float);
     
    133134#ifdef L_cargf
    134135float cargf (float complex x)
    135136{
    136         return (float) carg( (double)x );
     137        return (float) carg( (double complex)x );
    137138}
    138139#endif
    139140
     
    532533        return (float) trunc( (double)x );
    533534}
    534535#endif
     536
     537#ifdef L_fmaf
     538float fmaf (float x, float y, float z)
     539{
     540        return (float) fma( (double)x, (double)y, (double)z );
     541}
     542#endif
  • libm/ldouble_wrappers.c

    diff -Naur uClibc-0.9.30.orig/libm/ldouble_wrappers.c uClibc-0.9.30/libm/ldouble_wrappers.c
    old new  
    1111 */
    1212
    1313#include "math.h"
     14#include <complex.h>
     15
    1416
    1517/* Implement the following, as defined by SuSv3 */
    1618#if 0
     
    2123long double atan2l(long double, long double);
    2224long double atanhl(long double);
    2325long double atanl(long double);
     26long double cargl(long double complex);
    2427long double cbrtl(long double);
    2528long double ceill(long double);
    2629long double copysignl(long double, long double);
     
    128131#endif
    129132
    130133
     134#ifdef L_cargl
     135long double cargl (long double complex x)
     136{
     137        return (long double) carg( (double complex)x );
     138}
     139#endif
     140
     141
    131142#ifdef L_cbrtl
    132143long double cbrtl (long double x)
    133144{
     
    521532        return (long double) trunc( (double)x );
    522533}
    523534#endif
     535
     536
     537#ifdef __DO_C99_MATH__
     538
     539#ifdef L_fpclassifyl
     540int __fpclassifyl (long double x)
     541{
     542        return __fpclassify ( (double) x );
     543}
     544#endif
     545
     546#ifdef L_finitel
     547int __finitel (long double x)
     548{
     549        return __finite ( (double)x );
     550}
     551#endif
     552
     553#ifdef L_signbitl
     554int __signbitl (long double x)
     555{
     556        return __signbitl ( (double)x );
     557}
     558#endif
     559
     560#ifdef L_isnanl
     561int __isnanl (long double x)
     562{
     563        return __isnan ( (double)x );
     564}
     565#endif
     566
     567#ifdef L_isinfl
     568int __isinfl (long double x)
     569{
     570        return __isinf ( (double)x );
     571}
     572#endif
     573
     574#endif
  • libm/Makefile.in

    diff -Naur uClibc-0.9.30.orig/libm/Makefile.in uClibc-0.9.30/libm/Makefile.in
    old new  
    8686        scalblnf.o scalbnf.o sinf.o sinhf.o sqrtf.o tanf.o tanhf.o \
    8787        tgammaf.o truncf.o cargf.o llrintf.o
    8888
    89 LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cbrtl.o \
     89LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cargl.o cbrtl.o \
    9090        ceill.o copysignl.o coshl.o cosl.o erfcl.o erfl.o exp2l.o expl.o \
    91         expm1l.o fabsl.o fdiml.o floorl.o fmal.o fmaxl.o fminl.o fmodl.o \
    92         frexpl.o gammal.o hypotl.o ilogbl.o ldexpl.o lgammal.o llrintl.o \
     91        expm1l.o fabsl.o finitel.o fdiml.o floorl.o fmal.o fmaxl.o fminl.o fmodl.o fpclassifyl.o \
     92        frexpl.o gammal.o hypotl.o ilogbl.o isinfl.o isnanl.o ldexpl.o lgammal.o llrintl.o \
    9393        llroundl.o log10l.o log1pl.o XXXlog2l.o logbl.o logl.o lrintl.o lroundl.o \
    9494        modfl.o nearbyintl.o nextafterl.o XXXnexttowardl.o powl.o remainderl.o \
    95         remquol.o rintl.o roundl.o scalblnl.o scalbnl.o sinhl.o sinl.o sqrtl.o \
     95        remquol.o rintl.o roundl.o scalblnl.o scalbnl.o signbitl.o sinhl.o sinl.o sqrtl.o \
    9696        tanhl.o tanl.o tgammal.o truncl.o
    9797else
    9898# This list of math functions was taken from POSIX/IEEE 1003.1b-1993
     
    139139libm_OBJ := $(patsubst $(libm_DIR)/%.c,$(libm_OUT)/%.o,$(libm_SRC))
    140140
    141141ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y)
    142 libm_MSRC2 := $(libm_DIR)/$(LD_MSRC)
    143 libm_MOBJ2 := $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ))
     142libm_MSRC_LD := $(libm_DIR)/$(LD_MSRC)
     143libm_MOBJ_LD := $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ))
    144144endif
    145 libm_MSRC := $(libm_DIR)/$(FL_MSRC)
    146 libm_MOBJ := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ))
     145libm_MSRC_FL := $(libm_DIR)/$(FL_MSRC)
     146libm_MOBJ_FL := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ))
    147147
    148148
    149149ifneq ($(DOMULTI),n)
    150 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ))))
     150CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_FL))))
    151151ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y)
    152 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ2))))
     152CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_LD))))
    153153endif
    154154endif
    155155
    156 libm_OBJS := $(libm_OBJ) $(libm_MOBJ) $(libm_MOBJ2)
     156libm_OBJS := $(libm_OBJ) $(libm_MOBJ_FL) $(libm_MOBJ_LD)
    157157
    158158ifeq ($(DOPIC),y)
    159159libm-a-y += $(libm_OBJS:.o=.os)
     
    182182        $(Q)$(RM) $@
    183183        $(do_ar)
    184184
    185 $(libm_OUT)/libm.oS: $(libm_SRC) $(libm_MSRC) $(libm_MSRC2) $(libm_ARCH_SRC)
     185$(libm_OUT)/libm.oS: $(libm_SRC) $(libm_MSRC_FL) $(libm_MSRC_LD) $(libm_ARCH_SRC)
    186186        $(Q)$(RM) $@
    187187        $(compile-m)
    188188
     
    191191        $(Q)$(RM) $@
    192192        $(do_ar)
    193193
    194 $(libm_MOBJ): $(libm_MSRC)
     194$(libm_MOBJ_FL): $(libm_MSRC_FL)
    195195        $(compile.m)
    196196
    197 $(libm_MOBJ2): $(libm_MSRC2)
     197$(libm_MOBJ_LD): $(libm_MSRC_LD)
    198198        $(compile.m)
    199199
    200 $(libm_MOBJ:.o=.os): $(libm_MSRC)
     200$(libm_MOBJ_FL:.o=.os): $(libm_MSRC_FL)
    201201        $(compile.m)
    202202
    203 $(libm_MOBJ2:.o=.os): $(libm_MSRC2)
     203$(libm_MOBJ_LD:.o=.os): $(libm_MSRC_LD)
    204204        $(compile.m)
    205205
     206# spare us from adding a gazillion dummy two-liner files
     207$(libm_MOBJ_FL:.o=.i): $(libm_MSRC_FL)
     208        $(compile.mi)
     209
     210$(libm_MOBJ_LD:.o=.i): $(libm_MSRC_LD)
     211        $(compile.mi)
     212
    206213libm_clean:
    207214        $(do_rm) $(addprefix $(libm_OUT)/,$(foreach e, o os oS a,$(foreach d, *. */*. */*/*.,$(d)$(e))))
  • libm/s_finite.c

    diff -Naur uClibc-0.9.30.orig/libm/s_finite.c uClibc-0.9.30/libm/s_finite.c
    old new  
    2525        return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
    2626}
    2727libm_hidden_def(__finite)
    28 weak_alias(__finite,finite)
    29 libm_hidden_weak(finite)
  • libm/s_finitef.c

    diff -Naur uClibc-0.9.30.orig/libm/s_finitef.c uClibc-0.9.30/libm/s_finitef.c
    old new  
    2121#include "math.h"
    2222#include "math_private.h"
    2323
    24 libm_hidden_proto(__finitef)
    2524int __finitef(float x)
    2625{
    2726        int32_t ix;
     
    2928        return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31);
    3029}
    3130libm_hidden_def(__finitef)
    32 strong_alias(__finitef,finitef)
  • libm/s_fma.c

    diff -Naur uClibc-0.9.30.orig/libm/s_fma.c uClibc-0.9.30/libm/s_fma.c
    old new  
    2020
    2121#include <math.h>
    2222
    23 libm_hidden_proto(__fma)
    2423double
    25 __fma (double x, double y, double z)
     24fma (double x, double y, double z)
    2625{
    2726  return (x * y) + z;
    2827}
    29 libm_hidden_def(__fma)
    30 strong_alias (__fma, fma)
     28libm_hidden_def(fma)
  • libm/s_fpclassify.c

    diff -Naur uClibc-0.9.30.orig/libm/s_fpclassify.c uClibc-0.9.30/libm/s_fpclassify.c
    old new  
    4040
    4141  return retval;
    4242}
    43 libm_hidden_def (__fpclassify)
     43libm_hidden_def(__fpclassify)
  • libm/s_fpclassifyf.c

    diff -Naur uClibc-0.9.30.orig/libm/s_fpclassifyf.c uClibc-0.9.30/libm/s_fpclassifyf.c
    old new  
    2121#include <math.h>
    2222#include "math_private.h"
    2323
    24 libm_hidden_proto (__fpclassifyf)
    25 int
    26 __fpclassifyf (float x)
     24int __fpclassifyf (float x)
    2725{
    2826  u_int32_t wx;
    2927  int retval = FP_NORMAL;
     
    3937
    4038  return retval;
    4139}
    42 libm_hidden_def (__fpclassifyf)
     40libm_hidden_def(__fpclassifyf)
  • libm/s_isinf.c

    diff -Naur uClibc-0.9.30.orig/libm/s_isinf.c uClibc-0.9.30/libm/s_isinf.c
    old new  
    2222        return ~(lx >> 31) & (hx >> 30);
    2323}
    2424libm_hidden_def(__isinf)
    25 weak_alias (__isinf, isinf)
    26 libm_hidden_weak(isinf)
  • libm/s_isinff.c

    diff -Naur uClibc-0.9.30.orig/libm/s_isinff.c uClibc-0.9.30/libm/s_isinff.c
    old new  
    1111#include "math.h"
    1212#include "math_private.h"
    1313
    14 libm_hidden_proto(__isinff)
    1514int
    1615__isinff (float x)
    1716{
     
    2322        return ~(t >> 31) & (ix >> 30);
    2423}
    2524libm_hidden_def(__isinff)
    26 strong_alias (__isinff, isinff)
  • libm/s_isnan.c

    diff -Naur uClibc-0.9.30.orig/libm/s_isnan.c uClibc-0.9.30/libm/s_isnan.c
    old new  
    1818#include "math.h"
    1919#include "math_private.h"
    2020
    21 #ifdef __STDC__
    22         int __isnan(double x)
    23 #else
    24         int __isnan(x)
    25         double x;
    26 #endif
     21int __isnan(double x)
    2722{
    2823        int32_t hx,lx;
    2924        EXTRACT_WORDS(hx,lx,x);
     
    3328        return (int)(((u_int32_t)hx)>>31);
    3429}
    3530libm_hidden_def(__isnan)
    36 weak_alias(__isnan,isnan)
    37 libm_hidden_weak(isnan)
  • libm/s_isnanf.c

    diff -Naur uClibc-0.9.30.orig/libm/s_isnanf.c uClibc-0.9.30/libm/s_isnanf.c
    old new  
    2121#include "math.h"
    2222#include "math_private.h"
    2323
    24 libm_hidden_proto (__isnanf)
    2524int __isnanf(float x)
    2625{
    2726        int32_t ix;
     
    3029        ix = 0x7f800000 - ix;
    3130        return (int)(((u_int32_t)(ix))>>31);
    3231}
    33 libm_hidden_def (__isnanf)
    34 weak_alias (__isnanf, isnanf)
     32libm_hidden_def(__isnanf)
  • libm/s_ldexp.c

    diff -Naur uClibc-0.9.30.orig/libm/s_ldexp.c uClibc-0.9.30/libm/s_ldexp.c
    old new  
    2626        double value; int exp;
    2727#endif
    2828{
    29         if(!finite(value)||value==0.0) return value;
     29        if(!isfinite(value)||value==0.0) return value;
    3030        value = scalbn(value,exp);
    31         if(!finite(value)||value==0.0) errno = ERANGE;
     31        if(!isfinite(value)||value==0.0) errno = ERANGE;
    3232        return value;
    3333}
    3434libm_hidden_def(ldexp)
  • libm/s_signbitf.c

    diff -Naur uClibc-0.9.30.orig/libm/s_signbitf.c uClibc-0.9.30/libm/s_signbitf.c
    old new  
    2222
    2323#include "math_private.h"
    2424
    25 libm_hidden_proto(__signbitf)
    2625int
    2726__signbitf (float x)
    2827{
  • libm/s_significand.c

    diff -Naur uClibc-0.9.30.orig/libm/s_significand.c uClibc-0.9.30/libm/s_significand.c
    old new  
    3333{
    3434        return __ieee754_scalb(x,(double) -ilogb(x));
    3535}
    36 libm_hidden_def(significand)
  • libm/w_drem.c

    diff -Naur uClibc-0.9.30.orig/libm/w_drem.c uClibc-0.9.30/libm/w_drem.c
    old new  
    1212{
    1313        return remainder(x, y);
    1414}
    15 libm_hidden_def(drem)
  • libm/w_exp.c

    diff -Naur uClibc-0.9.30.orig/libm/w_exp.c uClibc-0.9.30/libm/w_exp.c
    old new  
    4242        double z;
    4343        z = __ieee754_exp(x);
    4444        if(_LIB_VERSION == _IEEE_) return z;
    45         if(finite(x)) {
     45        if(isfinite(x)) {
    4646            if(x>o_threshold)
    4747                return __kernel_standard(x,x,6); /* exp overflow */
    4848            else if(x<u_threshold)
  • libm/w_gamma.c

    diff -Naur uClibc-0.9.30.orig/libm/w_gamma.c uClibc-0.9.30/libm/w_gamma.c
    old new  
    3737        double y;
    3838        y = __ieee754_lgamma_r(x,&signgam);
    3939        if(_LIB_VERSION == _IEEE_) return y;
    40         if(!finite(y)&&finite(x)) {
     40        if(!isfinite(y)&&isfinite(x)) {
    4141            if(floor(x)==x&&x<=0.0)
    4242                return __kernel_standard(x,x,41); /* gamma pole */
    4343            else
     
    4646            return y;
    4747#endif
    4848}
    49 libm_hidden_def(gamma)
  • libm/w_gamma_r.c

    diff -Naur uClibc-0.9.30.orig/libm/w_gamma_r.c uClibc-0.9.30/libm/w_gamma_r.c
    old new  
    3737        double y;
    3838        y = __ieee754_lgamma_r(x,signgamp);
    3939        if(_LIB_VERSION == _IEEE_) return y;
    40         if(!finite(y)&&finite(x)) {
     40        if(!isfinite(y)&&isfinite(x)) {
    4141            if(floor(x)==x&&x<=0.0)
    4242                return __kernel_standard(x,x,41); /* gamma pole */
    4343            else
  • libm/w_hypot.c

    diff -Naur uClibc-0.9.30.orig/libm/w_hypot.c uClibc-0.9.30/libm/w_hypot.c
    old new  
    3434        double z;
    3535        z = __ieee754_hypot(x,y);
    3636        if(_LIB_VERSION == _IEEE_) return z;
    37         if((!finite(z))&&finite(x)&&finite(y))
     37        if((!isfinite(z))&&isfinite(x)&&isfinite(y))
    3838            return __kernel_standard(x,y,4); /* hypot overflow */
    3939        else
    4040            return z;
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/libm/w_j0.c uClibc-0.9.30/libm/w_j0.c
    old new  
    3939            return z;
    4040#endif
    4141}
    42 libm_hidden_def(j0)
    4342
    4443#ifdef __STDC__
    4544        double y0(double x)             /* wrapper y0 */
     
    6867            return z;
    6968#endif
    7069}
    71 libm_hidden_def(y0)
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/libm/w_j1.c uClibc-0.9.30/libm/w_j1.c
    old new  
    4040            return z;
    4141#endif
    4242}
    43 libm_hidden_def(j1)
    4443
    4544#ifdef __STDC__
    4645        double y1(double x)             /* wrapper y1 */
     
    6968            return z;
    7069#endif
    7170}
    72 libm_hidden_def(y1)
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/libm/w_jn.c uClibc-0.9.30/libm/w_jn.c
    old new  
    6262            return z;
    6363#endif
    6464}
    65 libm_hidden_def(jn)
    6665
    6766#ifdef __STDC__
    6867        double yn(int n, double x)      /* wrapper yn */
     
    9190            return z;
    9291#endif
    9392}
    94 libm_hidden_def(yn)
  • libm/w_lgamma.c

    diff -Naur uClibc-0.9.30.orig/libm/w_lgamma.c uClibc-0.9.30/libm/w_lgamma.c
    old new  
    3737        double y;
    3838        y = __ieee754_lgamma_r(x,&signgam);
    3939        if(_LIB_VERSION == _IEEE_) return y;
    40         if(!finite(y)&&finite(x)) {
     40        if(!isfinite(y)&&isfinite(x)) {
    4141            if(floor(x)==x&&x<=0.0)
    4242                return __kernel_standard(x,x,15); /* lgamma pole */
    4343            else
  • libm/w_lgamma_r.c

    diff -Naur uClibc-0.9.30.orig/libm/w_lgamma_r.c uClibc-0.9.30/libm/w_lgamma_r.c
    old new  
    3434        double y;
    3535        y = __ieee754_lgamma_r(x,signgamp);
    3636        if(_LIB_VERSION == _IEEE_) return y;
    37         if(!finite(y)&&finite(x)) {
     37        if(!isfinite(y)&&isfinite(x)) {
    3838            if(floor(x)==x&&x<=0.0)
    3939                return __kernel_standard(x,x,15); /* lgamma pole */
    4040            else
     
    4343            return y;
    4444#endif
    4545}
    46 libm_hidden_def(lgamma_r)
  • libm/w_log2.c

    diff -Naur uClibc-0.9.30.orig/libm/w_log2.c uClibc-0.9.30/libm/w_log2.c
    old new  
    1111{
    1212        return __ieee754_log2 (d);
    1313}
    14 libm_hidden_def(log2)
  • libm/w_pow.c

    diff -Naur uClibc-0.9.30.orig/libm/w_pow.c uClibc-0.9.30/libm/w_pow.c
    old new  
    4141        if(x==0.0){
    4242            if(y==0.0)
    4343                return __kernel_standard(x,y,20); /* pow(0.0,0.0) */
    44             if(finite(y)&&y<0.0)
     44            if(isfinite(y)&&y<0.0)
    4545                return __kernel_standard(x,y,23); /* pow(0.0,negative) */
    4646            return z;
    4747        }
    48         if(!finite(z)) {
    49             if(finite(x)&&finite(y)) {
     48        if(!isfinite(z)) {
     49            if(isfinite(x)&&isfinite(y)) {
    5050                if(isnan(z))
    5151                    return __kernel_standard(x,y,24); /* pow neg**non-int */
    5252                else
    5353                    return __kernel_standard(x,y,21); /* pow overflow */
    5454            }
    5555        }
    56         if(z==0.0&&finite(x)&&finite(y))
     56        if(z==0.0&&isfinite(x)&&isfinite(y))
    5757            return __kernel_standard(x,y,22); /* pow underflow */
    5858        return z;
    5959#endif
  • libm/w_scalb.c

    diff -Naur uClibc-0.9.30.orig/libm/w_scalb.c uClibc-0.9.30/libm/w_scalb.c
    old new  
    4646        double z;
    4747        z = __ieee754_scalb(x,fn);
    4848        if(_LIB_VERSION == _IEEE_) return z;
    49         if(!(finite(z)||isnan(z))&&finite(x)) {
     49        if(!(isfinite(z)||isnan(z))&&isfinite(x)) {
    5050            return __kernel_standard(x,(double)fn,32); /* scalb overflow */
    5151        }
    5252        if(z==0.0&&z!=x) {
    5353            return __kernel_standard(x,(double)fn,33); /* scalb underflow */
    5454        }
    5555#ifndef _SCALB_INT
    56         if(!finite(fn)) errno = ERANGE;
     56        if(!isfinite(fn)) errno = ERANGE;
    5757#endif
    5858        return z;
    5959#endif
    6060}
    61 libm_hidden_def(scalb)
  • libm/w_sinh.c

    diff -Naur uClibc-0.9.30.orig/libm/w_sinh.c uClibc-0.9.30/libm/w_sinh.c
    old new  
    3434        double z;
    3535        z = __ieee754_sinh(x);
    3636        if(_LIB_VERSION == _IEEE_) return z;
    37         if(!finite(z)&&finite(x)) {
     37        if(!isfinite(z)&&isfinite(x)) {
    3838            return __kernel_standard(x,x,25); /* sinh overflow */
    3939        } else
    4040            return z;
  • libm/w_tgamma.c

    diff -Naur uClibc-0.9.30.orig/libm/w_tgamma.c uClibc-0.9.30/libm/w_tgamma.c
    old new  
    3535#else
    3636        if(_LIB_VERSION == _IEEE_) return y;
    3737
    38         if(!finite(y)&&finite(x)) {
     38        if(!isfinite(y)&&isfinite(x)) {
    3939          if(floor(x)==x&&x<=0.0)
    4040            return __kernel_standard(x,x,41); /* tgamma pole */
    4141          else
  • libnsl/Makefile.in

    diff -Naur uClibc-0.9.30.orig/libnsl/Makefile.in uClibc-0.9.30/libnsl/Makefile.in
    old new  
    77
    88CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
    99
    10 LDFLAGS-libnsl.so := $(LDFLAGS)
     10LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc)
    1111
    1212LIBS-libnsl.so := $(LIBS)
    1313
  • libpthread/linuxthreads/sysdeps/pthread/pthread.h

    diff -Naur uClibc-0.9.30.orig/libpthread/linuxthreads/sysdeps/pthread/pthread.h uClibc-0.9.30/libpthread/linuxthreads/sysdeps/pthread/pthread.h
    old new  
    290290
    291291#ifdef __USE_GNU
    292292/* Initialize thread attribute *ATTR with attributes corresponding to the
    293    already running thread TH.  It shall be called on unitialized ATTR
     293   already running thread TH.  It shall be called on uninitialized ATTR
    294294   and destroyed with pthread_attr_destroy when no longer needed.  */
    295295extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW;
    296296#endif
  • libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h

    diff -Naur uClibc-0.9.30.orig/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h uClibc-0.9.30/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h
    old new  
    2525#define _PT_MACHINE_H   1
    2626
    2727#include <features.h>
     28#include <sgidefs.h>
     29#include <sys/tas.h>
    2830
    2931#ifndef PT_EI
    3032# define PT_EI __extern_always_inline
    3133#endif
    3234
    33 /* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    34    This file is part of the GNU C Library.
    35    Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.  */
    36 static __inline__ int
    37 __NTH (_test_and_set (int *p, int v))
    38 {
    39   int r, t;
    40 
    41   __asm__ __volatile__
    42     ("/* Inline test and set */\n"
    43      "1:\n\t"
    44      ".set      push\n\t"
    45      ".set      mips2\n\t"
    46      "ll        %0,%3\n\t"
    47      "move      %1,%4\n\t"
    48      "beq       %0,%4,2f\n\t"
    49      "sc        %1,%2\n\t"
    50      ".set      pop\n\t"
    51      "beqz      %1,1b\n"
    52      "2:\n\t"
    53      "/* End test and set */"
    54      : "=&r" (r), "=&r" (t), "=m" (*p)
    55      : "m" (*p), "r" (v)
    56      : "memory");
    57 
    58   return r;
    59 }
    60 
    61 
    6235/* Spinlock implementation; required.  */
    6336
    6437PT_EI long int
     
    8659    ("/* Inline compare & swap */\n"
    8760     "1:\n\t"
    8861     ".set      push\n\t"
     62#if _MIPS_SIM == _ABIO32
    8963     ".set      mips2\n\t"
     64#endif
     65#if _MIPS_SIM == _ABI64
     66     "lld       %1,%5\n\t"
     67#else
    9068     "ll        %1,%5\n\t"
     69#endif
    9170     "move      %0,$0\n\t"
    9271     "bne       %1,%3,2f\n\t"
    9372     "move      %0,%4\n\t"
     73#if _MIPS_SIM == _ABI64
     74     "scd       %0,%2\n\t"
     75#else
    9476     "sc        %0,%2\n\t"
     77#endif
    9578     ".set      pop\n\t"
    9679     "beqz      %0,1b\n"
    9780     "2:\n\t"
  • libpthread/linuxthreads.old/sysdeps/pthread/pthread.h

    diff -Naur uClibc-0.9.30.orig/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h uClibc-0.9.30/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h
    old new  
    293293
    294294#ifdef __USE_GNU
    295295/* Initialize thread attribute *ATTR with attributes corresponding to the
    296    already running thread TH.  It shall be called on unitialized ATTR
     296   already running thread TH.  It shall be called on uninitialized ATTR
    297297   and destroyed with pthread_attr_destroy when no longer needed.  */
    298298extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW;
    299299#endif
  • libresolv/Makefile.in

    diff -Naur uClibc-0.9.30.orig/libresolv/Makefile.in uClibc-0.9.30/libresolv/Makefile.in
    old new  
    77
    88CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS)
    99
    10 LDFLAGS-libresolv.so := $(LDFLAGS)
     10LDFLAGS-libresolv.so := $(LDFLAGS) $(call link.asneeded,-lc)
    1111
    1212LIBS-libresolv.so := $(LIBS)
    1313
  • librt/Makefile.in

    diff -Naur uClibc-0.9.30.orig/librt/Makefile.in uClibc-0.9.30/librt/Makefile.in
    old new  
    77
    88CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
    99
    10 LDFLAGS-librt.so := $(LDFLAGS)
     10LDFLAGS-librt.so := $(LDFLAGS) $(call link.asneeded,-lc)
    1111
    1212LIBS-librt.so := $(LIBS)
    1313
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/Makefile.in uClibc-0.9.30/Makefile.in
    old new  
    159159        @$(disp_gen)
    160160        $(Q)set -e; \
    161161        cd $(top_builddir); \
    162         tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
     162        tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null || true`; \
    163163        [ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \
    164164        KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
    165165        if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
     
    167167        else \
    168168                mv -f $$tmp include/bits/sysnum.h; \
    169169        fi
     170        @# Ugly linux specific hack..
     171        $(Q)if grep -q __NR_ $@; then true; else \
     172                rm -f $@; \
     173                echo "ERROR: Could not generate syscalls."; \
     174                echo "Make sure that you have proper kernel headers."; \
     175                echo "Your .config in KERNEL_HEADERS=\"\" was set to:"; \
     176                echo "${KERNEL_HEADERS}"; \
     177                exit 1; \
     178        fi
    170179
    171180$(LOCAL_INSTALL_PATH):
    172181        $(Q)$(MAKE) PREFIX=$(shell pwd)/ RUNTIME_PREFIX=./ \
     
    315324        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/inotify.h
    316325        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/perm.h
    317326        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/personality.h
     327        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/prctl.h
     328        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/reboot.h
     329        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sendfile.h
     330        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/fsuid.h
    318331        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/signalfd.h
     332        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/swap.h
     333        $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sysctl.h
    319334endif
    320335ifneq ($(UCLIBC_SV4_DEPRECATED),y)
    321336        # Remove ustat.h since deprecated SV4 support was disabled upon request
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/Makerules uClibc-0.9.30/Makerules
    old new  
    8080pur_disp_compile.u = echo "  "CC $(show_objs)
    8181pur_disp_compile.S = echo "  "AS $(show_objs)
    8282pur_disp_compile.m = $(pur_disp_compile.c)
     83pur_disp_compile.mi= echo "  "CPP-m $(show_objs)
    8384pur_disp_compile-m = echo "  "CC-m $(show_objs)
    8485pur_disp_hcompile.u= echo "  "HOSTCC $(show_objs)
    8586pur_disp_hcompile.o= echo "  "HOSTCC-o $(show_objs)
     
    99100sil_disp_compile.u = true
    100101sil_disp_compile.S = true
    101102sil_disp_compile.m = true
     103sil_disp_compile.mi= true
    102104sil_disp_compile-m = true
    103105sil_disp_hcompile.u= true
    104106sil_disp_hcompile.o= true
     
    118120ver_disp_compile.u = echo $(cmd_compile.u)
    119121ver_disp_compile.S = echo $(cmd_compile.S)
    120122ver_disp_compile.m = echo $(cmd_compile.m)
     123ver_disp_compile.mi= echo $(cmd_compile.mi)
    121124ver_disp_compile-m = echo $(cmd_compile-m)
    122125ver_disp_hcompile.u= echo $(cmd_hcompile.u)
    123126ver_disp_hcompile.o= echo $(cmd_hcompile.o)
     
    137140disp_compile.u = $($(DISP)_disp_compile.u)
    138141disp_compile.S = $($(DISP)_disp_compile.S)
    139142disp_compile.m = $($(DISP)_disp_compile.m)
     143disp_compile.mi= $($(DISP)_disp_compile.mi)
    140144disp_compile-m = $($(DISP)_disp_compile-m)
    141145disp_hcompile.u= $($(DISP)_disp_hcompile.u)
    142146disp_hcompile.o= $($(DISP)_disp_hcompile.o)
     
    189193cmd_compile.u = $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(CFLAGS_gen.dep)
    190194cmd_compile.S = $(filter-out -std=gnu99, $(cmd_compile.c)) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@))
    191195cmd_compile.m = $(cmd_compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))
     196cmd_compile.mi= $(cmd_compile.m:-c=-E -dD $(EXTRA_CPPFLAGS))
    192197
    193198cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@))
    194199cmd_strip     = $(STRIPTOOL) $(STRIP_FLAGS) $^
     
    211216compile.s =  $(call maybe_exec,compile.s)
    212217compile.S = @$(call maybe_exec,compile.S)
    213218compile.m = @$(call maybe_exec,compile.m)
    214 compile-m = @$(disp_compile-m) ; $(cmd_compile-m) ; $(cmd_t_strip)
     219compile.mi=  $(call maybe_exec,compile.mi)
     220compile-m = @$(disp_compile-m) ; $(cmd_compile-m) && $(cmd_t_strip)
    215221do_strip  = @$(disp_strip)     ; $(cmd_strip)
    216222do_t_strip= @$(disp_t_strip)   ; $(cmd_t_strip)
    217223do_unifdef= @$(disp_unifdef)   ; $(cmd_unifdef)
     
    302308        $(Q)$(INSTALL) -d $(dir $@)
    303309        $(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
    304310        $(Q)echo "#include <features.h>" >> $@
    305         $(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
     311        $(Q)echo "const char __dl_ldso__[] attribute_hidden __attribute__ ((weak)) __attribute__ ((section " \
    306312                "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
    307313
    308314$(interp): $(top_builddir)lib/interp.c
  • uClibc-0.9.30

    diff -Naur uClibc-0.9.30.orig/Rules.mak uClibc-0.9.30/Rules.mak
    old new  
    417417
    418418# Keep the check_gcc from being needlessly executed
    419419ifndef PIEFLAG
    420 ifneq ($(UCLIBC_BUILD_PIE),y)
    421 export PIEFLAG:=
    422 else
    423420export PIEFLAG:=$(call check_gcc,$(PIEFLAG_NAME),$(PICFLAG))
    424421endif
    425 endif
    426422# We need to keep track of both the CC PIE flag (above) as
    427423# well as the LD PIE flag (below) because we can't rely on
    428 # gcc passing -pie if we used -fPIE
     424# gcc passing -pie if we used -fPIE. We need to directly use -pie
     425# instead of -Wl,-pie as gcc picks up the wrong startfile/endfile
    429426ifndef LDPIEFLAG
    430 ifneq ($(UCLIBC_BUILD_PIE),y)
    431 export LDPIEFLAG:=
    432 else
    433 export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-Wl,-pie")
     427export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-pie")
     428endif
     429
     430# Check for --as-needed support in linker
     431ifndef LD_FLAG_ASNEEDED
     432_LD_FLAG_ASNEEDED:=$(shell $(LD) --help 2>/dev/null | grep -- --as-needed)
     433ifneq ($(_LD_FLAG_ASNEEDED),)
     434export LD_FLAG_ASNEEDED:=--as-needed
     435endif
     436endif
     437ifndef LD_FLAG_NO_ASNEEDED
     438ifdef LD_FLAG_ASNEEDED
     439export LD_FLAG_NO_ASNEEDED:=--no-as-needed
     440endif
     441endif
     442ifndef CC_FLAG_ASNEEDED
     443ifdef LD_FLAG_ASNEEDED
     444export CC_FLAG_ASNEEDED:=-Wl,$(LD_FLAG_ASNEEDED)
     445endif
     446endif
     447ifndef CC_FLAG_NO_ASNEEDED
     448ifdef LD_FLAG_NO_ASNEEDED
     449export CC_FLAG_NO_ASNEEDED:=-Wl,$(LD_FLAG_NO_ASNEEDED)
    434450endif
    435451endif
     452link.asneeded = $(if $(and $(CC_FLAG_ASNEEDED),$(CC_FLAG_NO_ASNEEDED)),$(CC_FLAG_ASNEEDED) $(1) $(CC_FLAG_NO_ASNEEDED))
    436453
    437454# Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it)
    438455ifndef ASNEEDED
  • test/locale-mbwc/dat_iswctype.c

    diff -Naur uClibc-0.9.30.orig/test/locale-mbwc/dat_iswctype.c uClibc-0.9.30/test/locale-mbwc/dat_iswctype.c
    old new  
    240240      {  { 0x007B, "cntrl"  }, { 0,1,0 }  },
    241241      {  { 0x007E, "cntrl"  }, { 0,1,0 }  },
    242242      {  { 0x007F, "cntrl"  }, { 0,0,0 }  },
    243       {  { 0x0080, "cntrl"  }, { 0,0,0 }  },
     243      {  { 0x0080, "cntrl"  }, { 0,1,0 }  },
    244244      {  { 0x0000, "digit"  }, { 0,1,0 }  },
    245245      {  { 0x001F, "digit"  }, { 0,1,0 }  },
    246246      {  { 0x0020, "digit"  }, { 0,1,0 }  },
  • utils/Makefile.in

    diff -Naur uClibc-0.9.30.orig/utils/Makefile.in uClibc-0.9.30/utils/Makefile.in
    old new  
    88CFLAGS-utils := -DNOT_IN_libc $(SSP_ALL_CFLAGS) -B$(top_builddir)lib -Wl,-rpath-link,$(top_builddir)lib
    99
    1010CFLAGS-utils-common := -I$(top_srcdir)ldso/include -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=$(UCLIBC_LDSO)
     11CFLAGS-utils-shared :=
     12ifeq ($(UCLIBC_BUILD_PIE),y)
    1113CFLAGS-utils-shared := $(PIEFLAG) $(LDPIEFLAG)
     14endif
    1215
    1316CFLAGS-ldconfig := $(CFLAGS-utils-common)
    1417
Note: See TracBrowser for help on using the repository browser.