source:
clfs-embedded/patches/uClibc-0.9.30-branch_update-2.patch@
16fdb8a
Last change on this file since 16fdb8a was 0ef4c20, checked in by , 16 years ago | |
---|---|
|
|
File size: 87.7 KB |
-
extra/locale/gen_wc8bit.c
Submitted By: Jim Gifford (jim at cross-lfs dot org) Date: 02-03-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 219 219 fprintf(out, "\t{ /* %.*s */", n, s0); 220 220 } 221 221 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)); 224 224 { 225 225 unsigned long c, wc; 226 226 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 8 8 fi 9 9 10 10 cat <<EOF 11 #if !defined _ _FEATURES_H && !defined __need_uClibc_config_h11 #if !defined _FEATURES_H && !defined __need_uClibc_config_h 12 12 # error Never include <bits/uClibc_config.h> directly; use <features.h> instead 13 13 #endif 14 14 -
include/math.h
diff -Naur uClibc-0.9.30.orig/include/math.h uClibc-0.9.30/include/math.h
old new 46 46 /* Get general and ISO C99 specific information. */ 47 47 #include <bits/mathdef.h> 48 48 49 #if !(defined _LIBC && (defined NOT_IN_libc && defined IS_IN_libm)) 50 # define libm_hidden_proto(name, attrs...) 51 #endif 52 49 53 /* The file <bits/mathcalls.h> contains the prototypes for all the 50 54 actual math functions. These macros are used for those prototypes, 51 55 so we can easily declare each function as both `name' and `__name', … … 54 58 #define __MATHCALL(function,suffix, args) \ 55 59 __MATHDECL (_Mdouble_,function,suffix, args) 56 60 #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); 59 62 #define __MATHCALLX(function,suffix, args, attrib) \ 60 63 __MATHDECLX (_Mdouble_,function,suffix, args, attrib) 61 64 #define __MATHDECLX(type, function,suffix, args, attrib) \ 62 65 __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ 63 __MATHDECL _1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib)66 __MATHDECLI_MAINVARIANT(function) 64 67 #define __MATHDECL_1(type, function,suffix, args) \ 65 68 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)) 66 83 84 #define __MATHDECLI_MAINVARIANT libm_hidden_proto 67 85 #define _Mdouble_ double 68 86 #define __MATH_PRECNAME(name,r) __CONCAT(name,r) 69 87 # define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_STD … … 72 90 #undef _Mdouble_ 73 91 #undef _Mdouble_BEGIN_NAMESPACE 74 92 #undef _Mdouble_END_NAMESPACE 75 #undef __MATH_PRECNAME 93 #undef __MATH_PRECNAME 94 #undef __MATHDECLI_MAINVARIANT 95 #define __MATHDECLI_MAINVARIANT(x) 76 96 77 97 #if defined __USE_MISC || defined __USE_ISOC99 78 98 -
include/sched.h
diff -Naur uClibc-0.9.30.orig/include/sched.h uClibc-0.9.30/include/sched.h
old new 63 63 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; 64 64 65 65 66 #if def __USE_GNU66 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 67 67 /* Access macros for `cpu_set'. */ 68 68 #define CPU_SETSIZE __CPU_SETSIZE 69 69 #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 157 157 extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 158 158 int __flags, ...) __THROW; 159 159 160 #ifdef __UCLIBC_LINUX_SPECIFIC__ 160 161 /* Remap arbitrary pages of a shared backing store within an existing 161 162 VMA. */ 162 163 extern int remap_file_pages (void *__start, size_t __size, int __prot, 163 164 size_t __pgoff, int __flags) __THROW; 164 165 #endif 166 #endif 165 167 166 168 167 169 /* 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 48 48 /* Returns information on overall system statistics. */ 49 49 extern int sysinfo (struct sysinfo *__info) __THROW; 50 50 51 51 #if 0 52 52 /* Return number of configured processors. */ 53 53 extern int get_nprocs_conf (void) __THROW; 54 54 … … 61 61 62 62 /* Return number of available physical pages of memory in the system. */ 63 63 extern long int get_avphys_pages (void) __THROW; 64 #endif 64 65 65 66 __END_DECLS 66 67 -
include/unistd.h
diff -Naur uClibc-0.9.30.orig/include/unistd.h uClibc-0.9.30/include/unistd.h
old new 869 869 __THROW __nonnull ((1)) __wur; 870 870 #endif 871 871 872 #if defined __UCLIBC_LINUX_SPECIFIC__ 872 873 /* Revoke access permissions to all processes currently communicating 873 874 with the control terminal, and then send a SIGHUP signal to the process 874 875 group of the control terminal. */ 875 876 extern int vhangup (void) __THROW; 877 #endif 876 878 877 879 #if 0 878 880 /* 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 928 928 { 929 929 __dl_parse_dynamic_info(dpnt, dynamic_info, debug_addr, load_off); 930 930 } 931 932 /* we want this in ldso.so and libdl.a but nowhere else */933 #ifdef __USE_GNU934 #if defined IS_IN_rtld || (defined IS_IN_libdl && ! defined SHARED)935 extern __typeof(dl_iterate_phdr) __dl_iterate_phdr;936 int937 __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 #endif956 #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 32 32 33 33 34 34 /* 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 present38 * 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 43 35 /* 44 36 * This is the list of modules that are loaded when the image is first 45 37 * 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 20 struct 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 67 67 unsigned long attribute_hidden _dl_skip_args = 0; 68 68 const char *_dl_progname = UCLIBC_LDSO; /* The name of the executable being run */ 69 69 #include "dl-startup.c" 70 #include "dl-symbols.c" 70 71 #include "dl-array.c" 71 72 /* Forward function declarations */ 72 73 static 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 186 186 return seen; 187 187 } 188 188 189 for (runp = ifa; runp != NULL; runp = runp->ifa_next) 189 for (runp = ifa; runp != NULL; runp = runp->ifa_next) { 190 190 #if defined __UCLIBC_HAS_IPV4__ 191 191 if (runp->ifa_addr->sa_family == PF_INET) 192 192 seen |= SEEN_IPV4; … … 195 195 if (runp->ifa_addr->sa_family == PF_INET6) 196 196 seen |= SEEN_IPV6; 197 197 #endif /* __UCLIBC_HAS_IPV6__ */ 198 198 } 199 199 freeifaddrs(ifa); 200 200 } 201 201 #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 330 330 that a RTM_NEWADDR index is not known to this map. */ 331 331 static int 332 332 internal_function 333 map_newlink (int i ndex, struct ifaddrs_storage *ifas, int *map, int max)333 map_newlink (int idx, struct ifaddrs_storage *ifas, int *map, int max) 334 334 { 335 335 int i; 336 336 … … 338 338 { 339 339 if (map[i] == -1) 340 340 { 341 map[i] = i ndex;341 map[i] = idx; 342 342 if (i > 0) 343 343 ifas[i - 1].ifa.ifa_next = &ifas[i].ifa; 344 344 return i; 345 345 } 346 else if (map[i] == i ndex)346 else if (map[i] == idx) 347 347 return i; 348 348 } 349 349 /* 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 21 extern __typeof(dl_iterate_phdr) __dl_iterate_phdr; 22 23 hidden_proto(__dl_iterate_phdr) 24 int 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 } 42 hidden_def (__dl_iterate_phdr) 43 44 # ifdef SHARED 45 46 weak_alias(__dl_iterate_phdr, dl_iterate_phdr) 47 48 # else 49 50 /* dl-support.c defines these and initializes them early on. */ 51 extern ElfW(Phdr) *_dl_phdr; 52 extern size_t _dl_phnum; 53 54 int 55 dl_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 17 ElfW(Phdr) *_dl_phdr; 18 size_t _dl_phnum; 19 20 void 21 internal_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 7 top_srcdir=../../../ 8 top_builddir=../../../ 9 all: objs 10 include $(top_builddir)Rules.mak 11 include Makefile.in 12 include $(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 7 libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c 8 CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include 9 CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include 10 11 MISC_ELF_OUT:=$(top_builddir)libc/misc/elf 12 MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC)) 13 14 libc-static-y += $(MISC_ELF_OBJ) 15 libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS 16 17 objclean-y+= misc_elf_objclean 18 19 misc_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 72 72 # endif 73 73 # endif 74 74 75 /* 76 * Needed to initialize _dl_phdr when statically linked 77 */ 78 79 void internal_function _dl_aux_init (ElfW(auxv_t) *av); 75 80 #endif /* !SHARED */ 76 81 77 82 /* … … 114 119 #endif 115 120 116 121 /* 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. 120 124 */ 121 125 char **__environ = 0; 122 126 weak_alias(__environ, environ) … … 310 314 } 311 315 aux_dat += 2; 312 316 } 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 313 323 #endif 314 324 315 325 /* 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 12 12 include $(top_srcdir)libc/misc/ctype/Makefile.in 13 13 include $(top_srcdir)libc/misc/dirent/Makefile.in 14 14 include $(top_srcdir)libc/misc/error/Makefile.in 15 include $(top_srcdir)libc/misc/elf/Makefile.in 15 16 include $(top_srcdir)libc/misc/file/Makefile.in 16 17 include $(top_srcdir)libc/misc/fnmatch/Makefile.in 17 18 include $(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 1143 1143 { 1144 1144 int count; 1145 1145 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 } 1146 1153 1147 1154 for (count = 0 ; n && (wc = *pwcs++) ; n--) { 1148 1155 if (wc <= 0xff) { … … 1246 1253 "\x08\xec""UCS-4\x00" /* always BE */ 1247 1254 "\x0a\xec""UCS-4BE\x00" 1248 1255 "\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 */ 1250 1257 "\x0b\xe4""UTF-32BE\x00" 1251 1258 "\x0b\xe5""UTF-32LE\x00" 1252 1259 "\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 159 159 }; 160 160 #endif 161 161 162 163 162 /* Define some more compatibility macros to be backward compatible with 164 163 BSD systems which did not managed to hide these kernel macros. */ 165 164 #ifdef __USE_BSD … … 181 180 #endif 182 181 183 182 184 #if def __USE_GNU183 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 185 184 /* Flags for SYNC_FILE_RANGE. */ 186 185 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 187 186 in the range before performing the … … 204 203 205 204 __BEGIN_DECLS 206 205 207 #if def __USE_GNU206 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 208 207 209 208 /* Provide kernel hint to read ahead. */ 210 209 extern 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 189 189 #endif 190 190 191 191 192 #if def __USE_GNU192 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 193 193 /* Flags for SYNC_FILE_RANGE. */ 194 194 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 195 195 in the range before performing the … … 212 212 213 213 __BEGIN_DECLS 214 214 215 #if def __USE_GNU215 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 216 216 217 217 /* Provide kernel hint to read ahead. */ 218 218 extern 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 238 238 239 239 #ifdef __PIC__ 240 240 .L_GOT: 241 #ifdef __thumb__ 242 .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+4) 243 #else /* __thumb2__ */ 241 244 .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+8) 245 #endif 242 246 .word _fini(GOT) 243 247 .word _init(GOT) 244 248 .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 167 167 # define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ 168 168 #endif 169 169 170 #ifdef __USE_GNU171 170 171 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 172 172 /* Flags for SYNC_FILE_RANGE. */ 173 173 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 174 174 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 185 185 #endif 186 186 187 187 188 #if def __USE_GNU188 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 189 189 /* Flags for SYNC_FILE_RANGE. */ 190 190 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 191 191 in the range before performing the … … 208 208 209 209 __BEGIN_DECLS 210 210 211 #if def __USE_GNU211 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 212 212 213 213 /* Provide kernel hint to read ahead. */ 214 214 extern 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 52 52 53 53 _Mdouble_BEGIN_NAMESPACE 54 54 /* Arc cosine of X. */ 55 __MATHCALL (acos,, (_Mdouble_ __x)); 56 libm_hidden_proto(acos) 55 __MATHCALLI (acos,, (_Mdouble_ __x)); 57 56 /* Arc sine of X. */ 58 __MATHCALL (asin,, (_Mdouble_ __x)); 59 libm_hidden_proto(asin) 57 __MATHCALLI (asin,, (_Mdouble_ __x)); 60 58 /* Arc tangent of X. */ 61 __MATHCALL (atan,, (_Mdouble_ __x)); 62 libm_hidden_proto(atan) 59 __MATHCALLI (atan,, (_Mdouble_ __x)); 63 60 /* Arc tangent of Y/X. */ 64 __MATHCALL (atan2,, (_Mdouble_ __y, _Mdouble_ __x)); 65 libm_hidden_proto(atan2) 61 __MATHCALLI (atan2,, (_Mdouble_ __y, _Mdouble_ __x)); 66 62 67 63 /* Cosine of X. */ 68 __MATHCALL (cos,, (_Mdouble_ __x)); 69 libm_hidden_proto(cos) 64 __MATHCALLI (cos,, (_Mdouble_ __x)); 70 65 /* Sine of X. */ 71 __MATHCALL (sin,, (_Mdouble_ __x)); 72 libm_hidden_proto(sin) 66 __MATHCALLI (sin,, (_Mdouble_ __x)); 73 67 /* Tangent of X. */ 74 __MATHCALL (tan,, (_Mdouble_ __x)); 75 libm_hidden_proto(tan) 68 __MATHCALLI (tan,, (_Mdouble_ __x)); 76 69 77 70 /* Hyperbolic functions. */ 78 71 79 72 /* Hyperbolic cosine of X. */ 80 __MATHCALL (cosh,, (_Mdouble_ __x)); 81 libm_hidden_proto(cosh) 73 __MATHCALLI (cosh,, (_Mdouble_ __x)); 82 74 /* Hyperbolic sine of X. */ 83 __MATHCALL (sinh,, (_Mdouble_ __x)); 84 libm_hidden_proto(sinh) 75 __MATHCALLI (sinh,, (_Mdouble_ __x)); 85 76 /* Hyperbolic tangent of X. */ 86 __MATHCALL (tanh,, (_Mdouble_ __x)); 87 libm_hidden_proto(tanh) 77 __MATHCALLI (tanh,, (_Mdouble_ __x)); 88 78 _Mdouble_END_NAMESPACE 89 79 90 80 #if 0 /*def __USE_GNU*/ 91 81 /* Cosine and sine of X. */ 92 82 __MATHDECL (void,sincos,, 93 83 (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); 94 libm_hidden_proto(sincos)95 84 #endif 96 85 97 86 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 98 87 __BEGIN_NAMESPACE_C99 99 88 /* Hyperbolic arc cosine of X. */ 100 __MATHCALL (acosh,, (_Mdouble_ __x)); 101 libm_hidden_proto(acosh) 89 __MATHCALLI (acosh,, (_Mdouble_ __x)); 102 90 /* Hyperbolic arc sine of X. */ 103 __MATHCALL (asinh,, (_Mdouble_ __x)); 104 libm_hidden_proto(asinh) 91 __MATHCALLI (asinh,, (_Mdouble_ __x)); 105 92 /* Hyperbolic arc tangent of X. */ 106 __MATHCALL (atanh,, (_Mdouble_ __x)); 107 libm_hidden_proto(atanh) 93 __MATHCALLI (atanh,, (_Mdouble_ __x)); 108 94 __END_NAMESPACE_C99 109 95 #endif 110 96 … … 112 98 113 99 _Mdouble_BEGIN_NAMESPACE 114 100 /* Exponential function of X. */ 115 __MATHCALL (exp,, (_Mdouble_ __x)); 116 libm_hidden_proto(exp) 101 __MATHCALLI (exp,, (_Mdouble_ __x)); 117 102 118 103 /* 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)); 121 105 122 106 /* 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)); 125 108 126 109 /* Natural logarithm of X. */ 127 __MATHCALL (log,, (_Mdouble_ __x)); 128 libm_hidden_proto(log) 110 __MATHCALLI (log,, (_Mdouble_ __x)); 129 111 130 112 /* Base-ten logarithm of X. */ 131 __MATHCALL (log10,, (_Mdouble_ __x)); 132 libm_hidden_proto(log10) 113 __MATHCALLI (log10,, (_Mdouble_ __x)); 133 114 134 115 /* 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)); 137 117 _Mdouble_END_NAMESPACE 138 118 139 119 #if 0 /*def __USE_GNU*/ 140 120 /* A function missing in all standards: compute exponent to base ten. */ 141 121 __MATHCALL (exp10,, (_Mdouble_ __x)); 142 libm_hidden_proto(exp10)143 122 /* Another name occasionally used. */ 144 123 __MATHCALL (pow10,, (_Mdouble_ __x)); 145 libm_hidden_proto(pow10)146 124 #endif 147 125 148 126 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 149 127 __BEGIN_NAMESPACE_C99 150 128 /* Return exp(X) - 1. */ 151 __MATHCALL (expm1,, (_Mdouble_ __x)); 152 libm_hidden_proto(expm1) 129 __MATHCALLI (expm1,, (_Mdouble_ __x)); 153 130 154 131 /* Return log(1 + X). */ 155 __MATHCALL (log1p,, (_Mdouble_ __x)); 156 libm_hidden_proto(log1p) 132 __MATHCALLI (log1p,, (_Mdouble_ __x)); 157 133 158 134 /* Return the base 2 signed integral exponent of X. */ 159 __MATHCALL (logb,, (_Mdouble_ __x)); 160 libm_hidden_proto(logb) 135 __MATHCALLI (logb,, (_Mdouble_ __x)); 161 136 __END_NAMESPACE_C99 162 137 #endif 163 138 164 139 #ifdef __USE_ISOC99 165 140 __BEGIN_NAMESPACE_C99 166 141 /* Compute base-2 exponential of X. */ 167 __MATHCALL (exp2,, (_Mdouble_ __x)); 168 libm_hidden_proto(exp2) 142 __MATHCALLI (exp2,, (_Mdouble_ __x)); 169 143 170 144 /* Compute base-2 logarithm of X. */ 171 145 __MATHCALL (log2,, (_Mdouble_ __x)); 172 libm_hidden_proto(log2)173 146 __END_NAMESPACE_C99 174 147 #endif 175 148 … … 178 151 179 152 _Mdouble_BEGIN_NAMESPACE 180 153 /* 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)); 183 155 184 156 /* Return the square root of X. */ 185 __MATHCALL (sqrt,, (_Mdouble_ __x)); 186 libm_hidden_proto(sqrt) 157 __MATHCALLI (sqrt,, (_Mdouble_ __x)); 187 158 _Mdouble_END_NAMESPACE 188 159 189 160 #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 190 161 __BEGIN_NAMESPACE_C99 191 162 /* 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)); 194 164 __END_NAMESPACE_C99 195 165 #endif 196 166 197 167 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 198 168 __BEGIN_NAMESPACE_C99 199 169 /* Return the cube root of X. */ 200 __MATHCALL (cbrt,, (_Mdouble_ __x)); 201 libm_hidden_proto(cbrt) 170 __MATHCALLI (cbrt,, (_Mdouble_ __x)); 202 171 __END_NAMESPACE_C99 203 172 #endif 204 173 … … 208 177 _Mdouble_BEGIN_NAMESPACE 209 178 /* Smallest integral value not less than X. */ 210 179 __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__)); 211 libm_hidden_proto(ceil)212 180 213 181 /* Absolute value of X. */ 214 182 __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); 215 libm_hidden_proto(fabs)216 183 217 184 /* Largest integer not greater than X. */ 218 185 __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); 219 libm_hidden_proto(floor)220 186 221 187 /* 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)); 224 189 225 190 226 191 /* Return 0 if VALUE is finite or NaN, +1 if it 227 192 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__)); 230 194 231 195 /* 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__)); 234 197 _Mdouble_END_NAMESPACE 235 198 236 199 #ifdef __USE_MISC 200 #if 0 237 201 /* Return 0 if VALUE is finite or NaN, +1 if it 238 202 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__)); 241 204 242 205 /* 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 246 208 /* Return the remainder of X/Y. */ 247 209 __MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y)); 248 libm_hidden_proto(drem)249 210 250 211 251 212 /* Return the fractional part of X after dividing out `ilogb (X)'. */ 252 213 __MATHCALL (significand,, (_Mdouble_ __x)); 253 libm_hidden_proto(significand)254 214 #endif /* Use misc. */ 255 215 256 216 #if defined __USE_MISC || defined __USE_ISOC99 257 217 __BEGIN_NAMESPACE_C99 258 218 /* Return X with its signed changed to Y's. */ 259 219 __MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); 260 libm_hidden_proto(copysign)261 220 __END_NAMESPACE_C99 262 221 #endif 263 222 … … 265 224 __BEGIN_NAMESPACE_C99 266 225 /* Return representation of NaN for double type. */ 267 226 __MATHCALLX (nan,, (__const char *__tagb), (__const__)); 268 libm_hidden_proto(nan)269 227 __END_NAMESPACE_C99 270 228 #endif 271 229 272 230 273 231 /* 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__)); 276 233 277 234 #if defined __USE_MISC || defined __USE_XOPEN 278 235 /* 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__)); 281 237 282 238 /* Bessel functions. */ 283 239 __MATHCALL (j0,, (_Mdouble_)); 284 libm_hidden_proto(j0)285 240 __MATHCALL (j1,, (_Mdouble_)); 286 libm_hidden_proto(j1)287 241 __MATHCALL (jn,, (int, _Mdouble_)); 288 libm_hidden_proto(jn)289 242 __MATHCALL (y0,, (_Mdouble_)); 290 libm_hidden_proto(y0)291 243 __MATHCALL (y1,, (_Mdouble_)); 292 libm_hidden_proto(y1)293 244 __MATHCALL (yn,, (int, _Mdouble_)); 294 libm_hidden_proto(yn)295 245 #endif 296 246 297 247 298 248 #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 299 249 __BEGIN_NAMESPACE_C99 300 250 /* 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_)); 307 254 __END_NAMESPACE_C99 308 255 #endif 309 256 310 257 #ifdef __USE_ISOC99 311 258 __BEGIN_NAMESPACE_C99 312 259 /* True gamma function. */ 313 __MATHCALL (tgamma,, (_Mdouble_)); 314 libm_hidden_proto(tgamma) 260 __MATHCALLI (tgamma,, (_Mdouble_)); 315 261 __END_NAMESPACE_C99 316 262 #endif 317 263 318 264 #if defined __USE_MISC || defined __USE_XOPEN 319 265 /* Obsolete alias for `lgamma'. */ 320 266 __MATHCALL (gamma,, (_Mdouble_)); 321 libm_hidden_proto(gamma)322 267 #endif 323 268 324 269 #ifdef __USE_MISC … … 326 271 `signgam'. The reentrant version instead takes a pointer and stores 327 272 the value through it. */ 328 273 __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp)); 329 libm_hidden_proto(lgamma_r)330 274 #endif 331 275 332 276 … … 334 278 __BEGIN_NAMESPACE_C99 335 279 /* Return the integer nearest X in the direction of the 336 280 prevailing rounding mode. */ 337 __MATHCALL (rint,, (_Mdouble_ __x)); 338 libm_hidden_proto(rint) 281 __MATHCALLI (rint,, (_Mdouble_ __x)); 339 282 340 283 /* Return X + epsilon if X < Y, X - epsilon if X > Y. */ 341 284 __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); 342 libm_hidden_proto(nextafter)343 285 # if defined __USE_ISOC99 && !defined __LDBL_COMPAT 344 286 __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__)); 345 libm_hidden_proto(nexttoward)346 287 # endif 347 288 348 289 /* 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)); 351 291 352 292 # if defined __USE_MISC || defined __USE_ISOC99 353 293 /* 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)); 356 295 # endif 357 296 358 297 /* 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)); 361 299 #endif 362 300 363 301 #ifdef __USE_ISOC99 364 302 /* 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)); 367 304 368 305 /* Round X to integral value in floating-point format using current 369 306 rounding direction, but do not raise inexact exception. */ 370 __MATHCALL (nearbyint,, (_Mdouble_ __x)); 371 libm_hidden_proto(nearbyint) 307 __MATHCALLI (nearbyint,, (_Mdouble_ __x)); 372 308 373 309 /* Round X to nearest integral value, rounding halfway cases away from 374 310 zero. */ 375 311 __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); 376 libm_hidden_proto(round)377 312 378 313 /* Round X to the integral value in floating-point format nearest but 379 314 not larger in magnitude. */ 380 315 __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__)); 381 libm_hidden_proto(trunc)382 316 383 317 /* Compute remainder of X and Y and put in *QUO a value with sign of x/y 384 318 and magnitude congruent `mod 2^n' to the magnitude of the integral 385 319 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)); 388 321 389 322 390 323 /* Conversion functions. */ 391 324 392 325 /* Round X to nearest integral value according to current rounding 393 326 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)); 398 329 399 330 /* Round X to nearest integral value, rounding halfway cases away from 400 331 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)); 405 334 406 335 407 336 /* 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)); 410 338 411 339 /* 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)); 414 341 415 342 /* 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)); 418 344 419 345 420 346 /* 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__)); 424 348 425 349 /* 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__)); 429 351 430 352 431 353 /* 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)); 434 355 #endif /* Use ISO C99. */ 435 356 436 357 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 … … 440 361 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED 441 362 /* Return X times (2 to the Nth power). */ 442 363 __MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n)); 443 libm_hidden_proto(scalb)444 364 #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 186 186 #endif 187 187 188 188 189 #if def __USE_GNU189 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 190 190 /* Flags for SYNC_FILE_RANGE. */ 191 191 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 192 192 in the range before performing the … … 209 209 210 210 __BEGIN_DECLS 211 211 212 #if def __USE_GNU212 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 213 213 214 214 /* Provide kernel hint to read ahead. */ 215 215 extern 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 182 182 #endif 183 183 184 184 185 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 186 186 /* Flags for SYNC_FILE_RANGE. */ 187 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 188 188 in the range before performing the … … 205 205 206 206 __BEGIN_DECLS 207 207 208 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 209 209 210 210 /* Provide kernel hint to read ahead. */ 211 211 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) … … 231 231 232 232 #endif 233 233 __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 164 164 #endif 165 165 166 166 167 #if def __USE_GNU167 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 168 168 /* Flags for SYNC_FILE_RANGE. */ 169 169 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 170 170 in the range before performing the … … 187 187 188 188 __BEGIN_DECLS 189 189 190 #if def __USE_GNU190 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 191 191 192 192 /* Provide kernel hint to read ahead. */ 193 193 extern 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 182 182 #endif 183 183 184 184 185 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 186 186 /* Flags for SYNC_FILE_RANGE. */ 187 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 188 188 in the range before performing the … … 205 205 206 206 __BEGIN_DECLS 207 207 208 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 209 209 210 210 /* Provide kernel hint to read ahead. */ 211 211 extern 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 176 176 #endif 177 177 178 178 179 #if def __USE_GNU179 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 180 180 /* Flags for SYNC_FILE_RANGE. */ 181 181 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 182 182 in the range before performing the … … 199 199 200 200 __BEGIN_DECLS 201 201 202 #if def __USE_GNU202 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 203 203 204 204 /* Provide kernel hint to read ahead. */ 205 205 extern 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 189 189 #endif 190 190 191 191 192 #if def __USE_GNU192 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 193 193 /* Flags for SYNC_FILE_RANGE. */ 194 194 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 195 195 in the range before performing the … … 212 212 213 213 __BEGIN_DECLS 214 214 215 #if def __USE_GNU215 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 216 216 217 217 /* Provide kernel hint to read ahead. */ 218 218 extern 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 7 7 8 8 /* a hack for compiling a 32 bit user space with 64 bit 9 9 * 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) 11 14 #define _ASM_X86_64_POSIX_TYPES_H 12 15 #define __ARCH_I386_POSIX_TYPES_H 16 #define _ASM_X86_POSIX_TYPES_32_H 17 #define _ASM_X86_POSIX_TYPES_64_H 13 18 14 19 typedef unsigned short __kernel_dev_t; 15 20 typedef 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 182 182 #endif 183 183 184 184 185 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 186 186 /* Flags for SYNC_FILE_RANGE. */ 187 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 188 188 in the range before performing the … … 205 205 206 206 __BEGIN_DECLS 207 207 208 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 209 209 210 210 /* Provide kernel hint to read ahead. */ 211 211 extern 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 161 161 }; 162 162 #endif 163 163 164 165 164 /* Define some more compatibility macros to be backward compatible with 166 165 BSD systems which did not managed to hide these kernel macros. */ 167 166 #ifdef __USE_BSD … … 183 182 #endif 184 183 185 184 186 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 187 186 /* Flags for SYNC_FILE_RANGE. */ 188 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 189 188 in the range before performing the … … 206 205 207 206 __BEGIN_DECLS 208 207 209 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 210 209 211 210 /* Provide kernel hint to read ahead. */ 212 211 extern 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 185 185 #endif 186 186 187 187 188 #if def __USE_GNU188 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 189 189 /* Flags for SYNC_FILE_RANGE. */ 190 190 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 191 191 in the range before performing the … … 208 208 209 209 __BEGIN_DECLS 210 210 211 #if def __USE_GNU211 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 212 212 213 213 /* Provide kernel hint to read ahead. */ 214 214 extern 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 182 182 #endif 183 183 184 184 185 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 186 186 /* Flags for SYNC_FILE_RANGE. */ 187 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 188 188 in the range before performing the … … 205 205 206 206 __BEGIN_DECLS 207 207 208 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 209 209 210 210 /* Provide kernel hint to read ahead. */ 211 211 extern 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 209 209 #endif 210 210 211 211 212 #if def __USE_GNU212 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 213 213 /* Flags for SYNC_FILE_RANGE. */ 214 214 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 215 215 in the range before performing the … … 232 232 233 233 __BEGIN_DECLS 234 234 235 #if def __USE_GNU235 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 236 236 237 237 /* Provide kernel hint to read ahead. */ 238 238 extern 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 268 268 + CMSG_ALIGN (sizeof (struct cmsghdr))) 269 269 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) 270 270 271 extern struct cmsghdr * __NTH (__cmsg_nxthdr (struct msghdr *__mhdr,272 struct cmsghdr *__cmsg) )__THROW;271 extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, 272 struct cmsghdr *__cmsg) __THROW; 273 273 #ifdef __USE_EXTERN_INLINES 274 274 # ifndef _EXTERN_INLINE 275 275 # 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 185 185 #endif 186 186 187 187 188 #if def __USE_GNU188 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 189 189 /* Flags for SYNC_FILE_RANGE. */ 190 190 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 191 191 in the range before performing the … … 208 208 209 209 __BEGIN_DECLS 210 210 211 #if def __USE_GNU211 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 212 212 213 213 /* Provide kernel hint to read ahead. */ 214 214 extern 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 185 185 #endif 186 186 187 187 188 #if def __USE_GNU188 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 189 189 /* Flags for SYNC_FILE_RANGE. */ 190 190 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 191 191 in the range before performing the … … 208 208 209 209 __BEGIN_DECLS 210 210 211 #if def __USE_GNU211 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 212 212 213 213 /* Provide kernel hint to read ahead. */ 214 214 extern 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 189 189 #endif 190 190 191 191 192 #if def __USE_GNU192 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 193 193 /* Flags for SYNC_FILE_RANGE. */ 194 194 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 195 195 in the range before performing the … … 212 212 213 213 __BEGIN_DECLS 214 214 215 #if def __USE_GNU215 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 216 216 217 217 /* Provide kernel hint to read ahead. */ 218 218 extern 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 189 189 #endif 190 190 191 191 192 #if def __USE_GNU192 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 193 193 /* Flags for SYNC_FILE_RANGE. */ 194 194 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 195 195 in the range before performing the … … 212 212 213 213 __BEGIN_DECLS 214 214 215 #if def __USE_GNU215 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 216 216 217 217 /* Provide kernel hint to read ahead. */ 218 218 extern 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 164 164 #endif 165 165 166 166 167 #if def __USE_GNU167 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 168 168 /* Flags for SYNC_FILE_RANGE. */ 169 169 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 170 170 in the range before performing the … … 187 187 188 188 __BEGIN_DECLS 189 189 190 #if def __USE_GNU190 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 191 191 192 192 /* Provide kernel hint to read ahead. */ 193 193 extern 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 208 208 #endif 209 209 210 210 211 #if def __USE_GNU211 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 212 212 /* Flags for SYNC_FILE_RANGE. */ 213 213 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 214 214 in the range before performing the … … 231 231 232 232 __BEGIN_DECLS 233 233 234 #if def __USE_GNU234 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 235 235 236 236 /* Provide kernel hint to read ahead. */ 237 237 extern 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 182 182 #endif 183 183 184 184 185 #if def __USE_GNU185 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 186 186 /* Flags for SYNC_FILE_RANGE. */ 187 187 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 188 188 in the range before performing the … … 205 205 206 206 __BEGIN_DECLS 207 207 208 #if def __USE_GNU208 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 209 209 210 210 /* Provide kernel hint to read ahead. */ 211 211 extern 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 162 162 #endif 163 163 164 164 165 #if def __USE_GNU165 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 166 166 /* Flags for SYNC_FILE_RANGE. */ 167 167 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 168 168 in the range before performing the … … 185 185 186 186 __BEGIN_DECLS 187 187 188 #if def __USE_GNU188 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 189 189 190 190 /* Provide kernel hint to read ahead. */ 191 191 extern 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 203 203 #endif 204 204 205 205 206 #if def __USE_GNU206 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 207 207 /* Flags for SYNC_FILE_RANGE. */ 208 208 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 209 209 in the range before performing the … … 226 226 227 227 __BEGIN_DECLS 228 228 229 #if def __USE_GNU229 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 230 230 231 231 /* Provide kernel hint to read ahead. */ 232 232 extern 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 4 4 * our private content, and not the kernel header, will win. 5 5 * -Erik 6 6 */ 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) 8 14 #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 9 18 10 19 typedef unsigned long __kernel_dev_t; 11 20 typedef 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 186 186 #endif 187 187 188 188 189 #if def __USE_GNU189 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 190 190 /* Flags for SYNC_FILE_RANGE. */ 191 191 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages 192 192 in the range before performing the … … 209 209 210 210 __BEGIN_DECLS 211 211 212 #if def __USE_GNU212 #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ 213 213 214 214 /* Provide kernel hint to read ahead. */ 215 215 extern 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 44 44 return scalbn(x,fn); 45 45 #else 46 46 if (isnan(x)||isnan(fn)) return x*fn; 47 if (! finite(fn)) {47 if (!isfinite(fn)) { 48 48 if(fn>0.0) return x*fn; 49 49 else return x/(-fn); 50 50 } -
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 36 36 float atan2f(float, float); 37 37 float atanf(float); 38 38 float atanhf(float); 39 float cargf(float complex); 39 40 float cbrtf(float); 40 41 float ceilf(float); 41 42 float copysignf(float, float); … … 133 134 #ifdef L_cargf 134 135 float cargf (float complex x) 135 136 { 136 return (float) carg( (double )x );137 return (float) carg( (double complex)x ); 137 138 } 138 139 #endif 139 140 … … 532 533 return (float) trunc( (double)x ); 533 534 } 534 535 #endif 536 537 #ifdef L_fmaf 538 float 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 11 11 */ 12 12 13 13 #include "math.h" 14 #include <complex.h> 15 14 16 15 17 /* Implement the following, as defined by SuSv3 */ 16 18 #if 0 … … 21 23 long double atan2l(long double, long double); 22 24 long double atanhl(long double); 23 25 long double atanl(long double); 26 long double cargl(long double complex); 24 27 long double cbrtl(long double); 25 28 long double ceill(long double); 26 29 long double copysignl(long double, long double); … … 128 131 #endif 129 132 130 133 134 #ifdef L_cargl 135 long double cargl (long double complex x) 136 { 137 return (long double) carg( (double complex)x ); 138 } 139 #endif 140 141 131 142 #ifdef L_cbrtl 132 143 long double cbrtl (long double x) 133 144 { … … 521 532 return (long double) trunc( (double)x ); 522 533 } 523 534 #endif 535 536 537 #ifdef __DO_C99_MATH__ 538 539 #ifdef L_fpclassifyl 540 int __fpclassifyl (long double x) 541 { 542 return __fpclassify ( (double) x ); 543 } 544 #endif 545 546 #ifdef L_finitel 547 int __finitel (long double x) 548 { 549 return __finite ( (double)x ); 550 } 551 #endif 552 553 #ifdef L_signbitl 554 int __signbitl (long double x) 555 { 556 return __signbitl ( (double)x ); 557 } 558 #endif 559 560 #ifdef L_isnanl 561 int __isnanl (long double x) 562 { 563 return __isnan ( (double)x ); 564 } 565 #endif 566 567 #ifdef L_isinfl 568 int __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 86 86 scalblnf.o scalbnf.o sinf.o sinhf.o sqrtf.o tanf.o tanhf.o \ 87 87 tgammaf.o truncf.o cargf.o llrintf.o 88 88 89 LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o c brtl.o \89 LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cargl.o cbrtl.o \ 90 90 ceill.o copysignl.o coshl.o cosl.o erfcl.o erfl.o exp2l.o expl.o \ 91 expm1l.o fabsl.o f diml.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 \ 93 93 llroundl.o log10l.o log1pl.o XXXlog2l.o logbl.o logl.o lrintl.o lroundl.o \ 94 94 modfl.o nearbyintl.o nextafterl.o XXXnexttowardl.o powl.o remainderl.o \ 95 remquol.o rintl.o roundl.o scalblnl.o scalbnl.o si nhl.o sinl.o sqrtl.o \95 remquol.o rintl.o roundl.o scalblnl.o scalbnl.o signbitl.o sinhl.o sinl.o sqrtl.o \ 96 96 tanhl.o tanl.o tgammal.o truncl.o 97 97 else 98 98 # This list of math functions was taken from POSIX/IEEE 1003.1b-1993 … … 139 139 libm_OBJ := $(patsubst $(libm_DIR)/%.c,$(libm_OUT)/%.o,$(libm_SRC)) 140 140 141 141 ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y) 142 libm_MSRC 2:= $(libm_DIR)/$(LD_MSRC)143 libm_MOBJ 2:= $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ))142 libm_MSRC_LD := $(libm_DIR)/$(LD_MSRC) 143 libm_MOBJ_LD := $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ)) 144 144 endif 145 libm_MSRC := $(libm_DIR)/$(FL_MSRC)146 libm_MOBJ := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ))145 libm_MSRC_FL := $(libm_DIR)/$(FL_MSRC) 146 libm_MOBJ_FL := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ)) 147 147 148 148 149 149 ifneq ($(DOMULTI),n) 150 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ ))))150 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_FL)))) 151 151 ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y) 152 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ 2))))152 CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_LD)))) 153 153 endif 154 154 endif 155 155 156 libm_OBJS := $(libm_OBJ) $(libm_MOBJ ) $(libm_MOBJ2)156 libm_OBJS := $(libm_OBJ) $(libm_MOBJ_FL) $(libm_MOBJ_LD) 157 157 158 158 ifeq ($(DOPIC),y) 159 159 libm-a-y += $(libm_OBJS:.o=.os) … … 182 182 $(Q)$(RM) $@ 183 183 $(do_ar) 184 184 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) 186 186 $(Q)$(RM) $@ 187 187 $(compile-m) 188 188 … … 191 191 $(Q)$(RM) $@ 192 192 $(do_ar) 193 193 194 $(libm_MOBJ ): $(libm_MSRC)194 $(libm_MOBJ_FL): $(libm_MSRC_FL) 195 195 $(compile.m) 196 196 197 $(libm_MOBJ 2): $(libm_MSRC2)197 $(libm_MOBJ_LD): $(libm_MSRC_LD) 198 198 $(compile.m) 199 199 200 $(libm_MOBJ :.o=.os): $(libm_MSRC)200 $(libm_MOBJ_FL:.o=.os): $(libm_MSRC_FL) 201 201 $(compile.m) 202 202 203 $(libm_MOBJ 2:.o=.os): $(libm_MSRC2)203 $(libm_MOBJ_LD:.o=.os): $(libm_MSRC_LD) 204 204 $(compile.m) 205 205 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 206 213 libm_clean: 207 214 $(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 25 25 return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31); 26 26 } 27 27 libm_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 21 21 #include "math.h" 22 22 #include "math_private.h" 23 23 24 libm_hidden_proto(__finitef)25 24 int __finitef(float x) 26 25 { 27 26 int32_t ix; … … 29 28 return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31); 30 29 } 31 30 libm_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 20 20 21 21 #include <math.h> 22 22 23 libm_hidden_proto(__fma)24 23 double 25 __fma (double x, double y, double z)24 fma (double x, double y, double z) 26 25 { 27 26 return (x * y) + z; 28 27 } 29 libm_hidden_def(__fma) 30 strong_alias (__fma, fma) 28 libm_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 40 40 41 41 return retval; 42 42 } 43 libm_hidden_def 43 libm_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 21 21 #include <math.h> 22 22 #include "math_private.h" 23 23 24 libm_hidden_proto (__fpclassifyf) 25 int 26 __fpclassifyf (float x) 24 int __fpclassifyf (float x) 27 25 { 28 26 u_int32_t wx; 29 27 int retval = FP_NORMAL; … … 39 37 40 38 return retval; 41 39 } 42 libm_hidden_def 40 libm_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 22 22 return ~(lx >> 31) & (hx >> 30); 23 23 } 24 24 libm_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 11 11 #include "math.h" 12 12 #include "math_private.h" 13 13 14 libm_hidden_proto(__isinff)15 14 int 16 15 __isinff (float x) 17 16 { … … 23 22 return ~(t >> 31) & (ix >> 30); 24 23 } 25 24 libm_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 18 18 #include "math.h" 19 19 #include "math_private.h" 20 20 21 #ifdef __STDC__ 22 int __isnan(double x) 23 #else 24 int __isnan(x) 25 double x; 26 #endif 21 int __isnan(double x) 27 22 { 28 23 int32_t hx,lx; 29 24 EXTRACT_WORDS(hx,lx,x); … … 33 28 return (int)(((u_int32_t)hx)>>31); 34 29 } 35 30 libm_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 21 21 #include "math.h" 22 22 #include "math_private.h" 23 23 24 libm_hidden_proto (__isnanf)25 24 int __isnanf(float x) 26 25 { 27 26 int32_t ix; … … 30 29 ix = 0x7f800000 - ix; 31 30 return (int)(((u_int32_t)(ix))>>31); 32 31 } 33 libm_hidden_def (__isnanf) 34 weak_alias (__isnanf, isnanf) 32 libm_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 26 26 double value; int exp; 27 27 #endif 28 28 { 29 if(! finite(value)||value==0.0) return value;29 if(!isfinite(value)||value==0.0) return value; 30 30 value = scalbn(value,exp); 31 if(! finite(value)||value==0.0) errno = ERANGE;31 if(!isfinite(value)||value==0.0) errno = ERANGE; 32 32 return value; 33 33 } 34 34 libm_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 22 22 23 23 #include "math_private.h" 24 24 25 libm_hidden_proto(__signbitf)26 25 int 27 26 __signbitf (float x) 28 27 { -
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 33 33 { 34 34 return __ieee754_scalb(x,(double) -ilogb(x)); 35 35 } 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 12 12 { 13 13 return remainder(x, y); 14 14 } 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 42 42 double z; 43 43 z = __ieee754_exp(x); 44 44 if(_LIB_VERSION == _IEEE_) return z; 45 if( finite(x)) {45 if(isfinite(x)) { 46 46 if(x>o_threshold) 47 47 return __kernel_standard(x,x,6); /* exp overflow */ 48 48 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 37 37 double y; 38 38 y = __ieee754_lgamma_r(x,&signgam); 39 39 if(_LIB_VERSION == _IEEE_) return y; 40 if(! finite(y)&&finite(x)) {40 if(!isfinite(y)&&isfinite(x)) { 41 41 if(floor(x)==x&&x<=0.0) 42 42 return __kernel_standard(x,x,41); /* gamma pole */ 43 43 else … … 46 46 return y; 47 47 #endif 48 48 } 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 37 37 double y; 38 38 y = __ieee754_lgamma_r(x,signgamp); 39 39 if(_LIB_VERSION == _IEEE_) return y; 40 if(! finite(y)&&finite(x)) {40 if(!isfinite(y)&&isfinite(x)) { 41 41 if(floor(x)==x&&x<=0.0) 42 42 return __kernel_standard(x,x,41); /* gamma pole */ 43 43 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 34 34 double z; 35 35 z = __ieee754_hypot(x,y); 36 36 if(_LIB_VERSION == _IEEE_) return z; 37 if((! finite(z))&&finite(x)&&finite(y))37 if((!isfinite(z))&&isfinite(x)&&isfinite(y)) 38 38 return __kernel_standard(x,y,4); /* hypot overflow */ 39 39 else 40 40 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 39 39 return z; 40 40 #endif 41 41 } 42 libm_hidden_def(j0)43 42 44 43 #ifdef __STDC__ 45 44 double y0(double x) /* wrapper y0 */ … … 68 67 return z; 69 68 #endif 70 69 } 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 40 40 return z; 41 41 #endif 42 42 } 43 libm_hidden_def(j1)44 43 45 44 #ifdef __STDC__ 46 45 double y1(double x) /* wrapper y1 */ … … 69 68 return z; 70 69 #endif 71 70 } 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 62 62 return z; 63 63 #endif 64 64 } 65 libm_hidden_def(jn)66 65 67 66 #ifdef __STDC__ 68 67 double yn(int n, double x) /* wrapper yn */ … … 91 90 return z; 92 91 #endif 93 92 } 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 37 37 double y; 38 38 y = __ieee754_lgamma_r(x,&signgam); 39 39 if(_LIB_VERSION == _IEEE_) return y; 40 if(! finite(y)&&finite(x)) {40 if(!isfinite(y)&&isfinite(x)) { 41 41 if(floor(x)==x&&x<=0.0) 42 42 return __kernel_standard(x,x,15); /* lgamma pole */ 43 43 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 34 34 double y; 35 35 y = __ieee754_lgamma_r(x,signgamp); 36 36 if(_LIB_VERSION == _IEEE_) return y; 37 if(! finite(y)&&finite(x)) {37 if(!isfinite(y)&&isfinite(x)) { 38 38 if(floor(x)==x&&x<=0.0) 39 39 return __kernel_standard(x,x,15); /* lgamma pole */ 40 40 else … … 43 43 return y; 44 44 #endif 45 45 } 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 11 11 { 12 12 return __ieee754_log2 (d); 13 13 } 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 41 41 if(x==0.0){ 42 42 if(y==0.0) 43 43 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) 45 45 return __kernel_standard(x,y,23); /* pow(0.0,negative) */ 46 46 return z; 47 47 } 48 if(! finite(z)) {49 if( finite(x)&&finite(y)) {48 if(!isfinite(z)) { 49 if(isfinite(x)&&isfinite(y)) { 50 50 if(isnan(z)) 51 51 return __kernel_standard(x,y,24); /* pow neg**non-int */ 52 52 else 53 53 return __kernel_standard(x,y,21); /* pow overflow */ 54 54 } 55 55 } 56 if(z==0.0&& finite(x)&&finite(y))56 if(z==0.0&&isfinite(x)&&isfinite(y)) 57 57 return __kernel_standard(x,y,22); /* pow underflow */ 58 58 return z; 59 59 #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 46 46 double z; 47 47 z = __ieee754_scalb(x,fn); 48 48 if(_LIB_VERSION == _IEEE_) return z; 49 if(!( finite(z)||isnan(z))&&finite(x)) {49 if(!(isfinite(z)||isnan(z))&&isfinite(x)) { 50 50 return __kernel_standard(x,(double)fn,32); /* scalb overflow */ 51 51 } 52 52 if(z==0.0&&z!=x) { 53 53 return __kernel_standard(x,(double)fn,33); /* scalb underflow */ 54 54 } 55 55 #ifndef _SCALB_INT 56 if(! finite(fn)) errno = ERANGE;56 if(!isfinite(fn)) errno = ERANGE; 57 57 #endif 58 58 return z; 59 59 #endif 60 60 } 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 34 34 double z; 35 35 z = __ieee754_sinh(x); 36 36 if(_LIB_VERSION == _IEEE_) return z; 37 if(! finite(z)&&finite(x)) {37 if(!isfinite(z)&&isfinite(x)) { 38 38 return __kernel_standard(x,x,25); /* sinh overflow */ 39 39 } else 40 40 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 35 35 #else 36 36 if(_LIB_VERSION == _IEEE_) return y; 37 37 38 if(! finite(y)&&finite(x)) {38 if(!isfinite(y)&&isfinite(x)) { 39 39 if(floor(x)==x&&x<=0.0) 40 40 return __kernel_standard(x,x,41); /* tgamma pole */ 41 41 else -
libnsl/Makefile.in
diff -Naur uClibc-0.9.30.orig/libnsl/Makefile.in uClibc-0.9.30/libnsl/Makefile.in
old new 7 7 8 8 CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS) 9 9 10 LDFLAGS-libnsl.so := $(LDFLAGS) 10 LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc) 11 11 12 12 LIBS-libnsl.so := $(LIBS) 13 13 -
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 290 290 291 291 #ifdef __USE_GNU 292 292 /* Initialize thread attribute *ATTR with attributes corresponding to the 293 already running thread TH. It shall be called on uni tialized ATTR293 already running thread TH. It shall be called on uninitialized ATTR 294 294 and destroyed with pthread_attr_destroy when no longer needed. */ 295 295 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW; 296 296 #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 25 25 #define _PT_MACHINE_H 1 26 26 27 27 #include <features.h> 28 #include <sgidefs.h> 29 #include <sys/tas.h> 28 30 29 31 #ifndef PT_EI 30 32 # define PT_EI __extern_always_inline 31 33 #endif 32 34 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__ int37 __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 62 35 /* Spinlock implementation; required. */ 63 36 64 37 PT_EI long int … … 86 59 ("/* Inline compare & swap */\n" 87 60 "1:\n\t" 88 61 ".set push\n\t" 62 #if _MIPS_SIM == _ABIO32 89 63 ".set mips2\n\t" 64 #endif 65 #if _MIPS_SIM == _ABI64 66 "lld %1,%5\n\t" 67 #else 90 68 "ll %1,%5\n\t" 69 #endif 91 70 "move %0,$0\n\t" 92 71 "bne %1,%3,2f\n\t" 93 72 "move %0,%4\n\t" 73 #if _MIPS_SIM == _ABI64 74 "scd %0,%2\n\t" 75 #else 94 76 "sc %0,%2\n\t" 77 #endif 95 78 ".set pop\n\t" 96 79 "beqz %0,1b\n" 97 80 "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 293 293 294 294 #ifdef __USE_GNU 295 295 /* Initialize thread attribute *ATTR with attributes corresponding to the 296 already running thread TH. It shall be called on uni tialized ATTR296 already running thread TH. It shall be called on uninitialized ATTR 297 297 and destroyed with pthread_attr_destroy when no longer needed. */ 298 298 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW; 299 299 #endif -
libresolv/Makefile.in
diff -Naur uClibc-0.9.30.orig/libresolv/Makefile.in uClibc-0.9.30/libresolv/Makefile.in
old new 7 7 8 8 CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS) 9 9 10 LDFLAGS-libresolv.so := $(LDFLAGS) 10 LDFLAGS-libresolv.so := $(LDFLAGS) $(call link.asneeded,-lc) 11 11 12 12 LIBS-libresolv.so := $(LIBS) 13 13 -
librt/Makefile.in
diff -Naur uClibc-0.9.30.orig/librt/Makefile.in uClibc-0.9.30/librt/Makefile.in
old new 7 7 8 8 CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS) 9 9 10 LDFLAGS-librt.so := $(LDFLAGS) 10 LDFLAGS-librt.so := $(LDFLAGS) $(call link.asneeded,-lc) 11 11 12 12 LIBS-librt.so := $(LIBS) 13 13 -
uClibc-0.9.30
diff -Naur uClibc-0.9.30.orig/Makefile.in uClibc-0.9.30/Makefile.in
old new 159 159 @$(disp_gen) 160 160 $(Q)set -e; \ 161 161 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`; \ 163 163 [ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \ 164 164 KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \ 165 165 if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \ … … 167 167 else \ 168 168 mv -f $$tmp include/bits/sysnum.h; \ 169 169 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 170 179 171 180 $(LOCAL_INSTALL_PATH): 172 181 $(Q)$(MAKE) PREFIX=$(shell pwd)/ RUNTIME_PREFIX=./ \ … … 315 324 $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/inotify.h 316 325 $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/perm.h 317 326 $(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 318 331 $(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 319 334 endif 320 335 ifneq ($(UCLIBC_SV4_DEPRECATED),y) 321 336 # 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 80 80 pur_disp_compile.u = echo " "CC $(show_objs) 81 81 pur_disp_compile.S = echo " "AS $(show_objs) 82 82 pur_disp_compile.m = $(pur_disp_compile.c) 83 pur_disp_compile.mi= echo " "CPP-m $(show_objs) 83 84 pur_disp_compile-m = echo " "CC-m $(show_objs) 84 85 pur_disp_hcompile.u= echo " "HOSTCC $(show_objs) 85 86 pur_disp_hcompile.o= echo " "HOSTCC-o $(show_objs) … … 99 100 sil_disp_compile.u = true 100 101 sil_disp_compile.S = true 101 102 sil_disp_compile.m = true 103 sil_disp_compile.mi= true 102 104 sil_disp_compile-m = true 103 105 sil_disp_hcompile.u= true 104 106 sil_disp_hcompile.o= true … … 118 120 ver_disp_compile.u = echo $(cmd_compile.u) 119 121 ver_disp_compile.S = echo $(cmd_compile.S) 120 122 ver_disp_compile.m = echo $(cmd_compile.m) 123 ver_disp_compile.mi= echo $(cmd_compile.mi) 121 124 ver_disp_compile-m = echo $(cmd_compile-m) 122 125 ver_disp_hcompile.u= echo $(cmd_hcompile.u) 123 126 ver_disp_hcompile.o= echo $(cmd_hcompile.o) … … 137 140 disp_compile.u = $($(DISP)_disp_compile.u) 138 141 disp_compile.S = $($(DISP)_disp_compile.S) 139 142 disp_compile.m = $($(DISP)_disp_compile.m) 143 disp_compile.mi= $($(DISP)_disp_compile.mi) 140 144 disp_compile-m = $($(DISP)_disp_compile-m) 141 145 disp_hcompile.u= $($(DISP)_disp_hcompile.u) 142 146 disp_hcompile.o= $($(DISP)_disp_hcompile.o) … … 189 193 cmd_compile.u = $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(CFLAGS_gen.dep) 190 194 cmd_compile.S = $(filter-out -std=gnu99, $(cmd_compile.c)) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@)) 191 195 cmd_compile.m = $(cmd_compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@)) 196 cmd_compile.mi= $(cmd_compile.m:-c=-E -dD $(EXTRA_CPPFLAGS)) 192 197 193 198 cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@)) 194 199 cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^ … … 211 216 compile.s = $(call maybe_exec,compile.s) 212 217 compile.S = @$(call maybe_exec,compile.S) 213 218 compile.m = @$(call maybe_exec,compile.m) 214 compile-m = @$(disp_compile-m) ; $(cmd_compile-m) ; $(cmd_t_strip) 219 compile.mi= $(call maybe_exec,compile.mi) 220 compile-m = @$(disp_compile-m) ; $(cmd_compile-m) && $(cmd_t_strip) 215 221 do_strip = @$(disp_strip) ; $(cmd_strip) 216 222 do_t_strip= @$(disp_t_strip) ; $(cmd_t_strip) 217 223 do_unifdef= @$(disp_unifdef) ; $(cmd_unifdef) … … 302 308 $(Q)$(INSTALL) -d $(dir $@) 303 309 $(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@ 304 310 $(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 " \ 306 312 "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@ 307 313 308 314 $(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 417 417 418 418 # Keep the check_gcc from being needlessly executed 419 419 ifndef PIEFLAG 420 ifneq ($(UCLIBC_BUILD_PIE),y)421 export PIEFLAG:=422 else423 420 export PIEFLAG:=$(call check_gcc,$(PIEFLAG_NAME),$(PICFLAG)) 424 421 endif 425 endif426 422 # We need to keep track of both the CC PIE flag (above) as 427 423 # 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 429 426 ifndef 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") 427 export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-pie") 428 endif 429 430 # Check for --as-needed support in linker 431 ifndef LD_FLAG_ASNEEDED 432 _LD_FLAG_ASNEEDED:=$(shell $(LD) --help 2>/dev/null | grep -- --as-needed) 433 ifneq ($(_LD_FLAG_ASNEEDED),) 434 export LD_FLAG_ASNEEDED:=--as-needed 435 endif 434 436 endif 437 ifndef LD_FLAG_NO_ASNEEDED 438 ifdef LD_FLAG_ASNEEDED 439 export LD_FLAG_NO_ASNEEDED:=--no-as-needed 435 440 endif 441 endif 442 ifndef CC_FLAG_ASNEEDED 443 ifdef LD_FLAG_ASNEEDED 444 export CC_FLAG_ASNEEDED:=-Wl,$(LD_FLAG_ASNEEDED) 445 endif 446 endif 447 ifndef CC_FLAG_NO_ASNEEDED 448 ifdef LD_FLAG_NO_ASNEEDED 449 export CC_FLAG_NO_ASNEEDED:=-Wl,$(LD_FLAG_NO_ASNEEDED) 450 endif 451 endif 452 link.asneeded = $(if $(and $(CC_FLAG_ASNEEDED),$(CC_FLAG_NO_ASNEEDED)),$(CC_FLAG_ASNEEDED) $(1) $(CC_FLAG_NO_ASNEEDED)) 436 453 437 454 # Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it) 438 455 ifndef ASNEEDED … … 520 537 # Be sure that binutils support it 521 538 LDFLAGS_GNUHASH:=$(call check_ld,--hash-style=gnu) 522 539 ifeq ($(LDFLAGS_GNUHASH),) 540 ifneq ($(filter-out install_headers,$(MAKECMDGOALS)),) 523 541 $(error Your binutils don't support --hash-style option, while you want to use it) 542 endif 524 543 else 525 544 LDFLAGS_NOSTRIP += -Wl,$(LDFLAGS_GNUHASH) 526 545 endif -
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 240 240 { { 0x007B, "cntrl" }, { 0,1,0 } }, 241 241 { { 0x007E, "cntrl" }, { 0,1,0 } }, 242 242 { { 0x007F, "cntrl" }, { 0,0,0 } }, 243 { { 0x0080, "cntrl" }, { 0, 0,0 } },243 { { 0x0080, "cntrl" }, { 0,1,0 } }, 244 244 { { 0x0000, "digit" }, { 0,1,0 } }, 245 245 { { 0x001F, "digit" }, { 0,1,0 } }, 246 246 { { 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 8 8 CFLAGS-utils := -DNOT_IN_libc $(SSP_ALL_CFLAGS) -B$(top_builddir)lib -Wl,-rpath-link,$(top_builddir)lib 9 9 10 10 CFLAGS-utils-common := -I$(top_srcdir)ldso/include -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=$(UCLIBC_LDSO) 11 CFLAGS-utils-shared := 12 ifeq ($(UCLIBC_BUILD_PIE),y) 11 13 CFLAGS-utils-shared := $(PIEFLAG) $(LDPIEFLAG) 14 endif 12 15 13 16 CFLAGS-ldconfig := $(CFLAGS-utils-common) 14 17
Note:
See TracBrowser
for help on using the repository browser.