summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits
AgeCommit message (Collapse)Author
2009-07-26enable nanosecond stat support for everyoneMike Frysinger
Fill out the stat structure so that the nanosecond resolution support is always available. There is a small code size increase for a few ports (three additional assignments in xstatconv), but otherwise everything should remain the same. While we're here, punt __old_kernel_stat from the few headers that still define it as it is unused in uClibc and causes compile errors after these nanosecond changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-26add missing UTIME_* defines for *at funcsMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-21byteswap: unify common definitionsMike Frysinger
The majority of the byteswap functions are the same across all arches, so setup a common header to provide definitions if they don't exist. This allows arches to override only the ones they actually want to implement with inline assembly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-21s/UCLIBC_INTERNAL/_LIBC/gDenys Vlasenko
Undo my old mistake. I added UCLIBC_INTERNAL define, but later I realized _LIBC is doing exactly the same thing. This change converts all usages of UCLIBC_INTERNAL to _LIBC, removing all instances of UCLIBC_INTERNAL. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-20some ports define ENOTSUPMike Frysinger
A port or two (like hppa) does define ENOTSUP, so don't assume that everyone needs this fallback define. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-20INLINE_SYSCALL_NCS: scope out local vars to avoid conflictsMike Frysinger
The INLINE_SYSCALL_NCS() macro was using "res" and "err" as local variable names, but this caused conflicts with some code (like clock_getres) whose arguments were named the same. libc/sysdeps/linux/common/clock_getres.c: In function 'clock_getres': libc/sysdeps/linux/common/clock_getres.c:15: warning: 'res' is used uninitialized in this function Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-09syscall: unify part 2: NCS varietyMike Frysinger
Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-08syscall: unify common syscall definesMike Frysinger
Unify all the common syscall defines in syscalls-common.h and scrub all the duplicated code from relevant ports. This should also make converting existing ports to INLINE_SYSCALL() much easier as they don't have to get lost in all the unrelated noise, as well as creating new ports. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-03uClibc_arch_features: sync defines between portsMike Frysinger
Make sure each arch has the same complete list to make comparing between them easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-18mathcalls.h: remove tons of redundant semicolons; better comment about macrosDenis Vlasenko
math.h: make macro machinery a bit more understandable No code changes (verified with objdump)
2009-02-17test/math/compile_test.c: "are long double functions even compile/link?" testDenis Vlasenko
*: fix everything which prevents above from building
2009-02-13- fix compilation of !UCLIBC_HAS_CTYPE_TABLES by merging duplicate bitsBernhard Reutner-Fischer
into ctype.h
2009-01-22- make sure __user is defined when including kernel's sigcontext.hBernhard Reutner-Fischer
2009-01-21- remove unavailable functionality upon request (Peter Mazinger)Bernhard Reutner-Fischer
2009-01-21*: remove __UCLIBC_CURLOCALE_DATA, __UCLIBC_CURLOCALE_DATA.xDenis Vlasenko
is always equivalent to __UCLIBC_CURLOCALE->x. remove typedef __uclibc_locale_t, it used only in a few places, it is lees confusing to use struct __uclibc_locale_struct everywhere. xlocale.h: hide __global_locale back under _LIBC, bug 53 is wrong in claiming it should be exported. Also hide under _LIBC: extern __locale_t __curlocale_var; extern __locale_t __curlocale(void); extern __locale_t __curlocale_set(__locale_t newloc); # define __UCLIBC_CURLOCALE # define __XL_NPP(N) # define __LOCALE_PARAM # define __LOCALE_ARG # define __LOCALE_PTR
2009-01-18__global_locale must be visible to users, move it outside of #ifdef _LIBCDenis Vlasenko
2008-12-29- whitespace cleanup; no obj-code changesBernhard Reutner-Fischer
2008-12-29- expand SUSv3_LEGACYBernhard Reutner-Fischer
- SUSv4_LEGACY part #1 (non-networking)
2008-12-27Help unifdef to remove private parts of headersDenis Vlasenko
2008-12-27ctype: remove some trivial macros from ctype.h;Denis Vlasenko
remove __tolower and __toupper (they existed only in SOME configs!); remove usages of _tolower (some of them clearly buggy) from uclibc code; add a few more -U<define> options to unifdef pass over installed headers; document it on docs/wchar_and_locale.txt text data bss dec hex filename - 514963 2727 15396 533086 8225e lib/libuClibc-0.9.30-svn.so + 514888 2727 15396 533011 82213 lib/libuClibc-0.9.30-svn.so
2008-12-22UCLIBC_CTYPE_HEADER define is removed, as it alwaysDenis Vlasenko
equal to "include/bits/uClibc_ctype.h" __CTYPE_unclassified and other similar __CTYPE_xxxx constants are moved to separate include file, bits/uClibc_charclass.h Duplicate declaration of these constants is removed from libc/misc/wctype/_wctype.c Ugly re-inclusion trick in extra/locale/gen_wctype.c deleted Large ifdefed-out chunk in extra/locale/gen_wctype.c removed Move __CTYPE_isalnum() etc macros from uClibc_ctype.h to their single user, extra/locale/gen_wctype.c (can be simplified further) Overall, no code changes (verified with objdump)
2008-12-22- fix fpclassify, signbit, isfinite, isnan, isinf macros for long double ↵Bernhard Reutner-Fischer
math support - add rule to create preprocessor output for float- and long double math wrapper
2008-12-22remove stray comment (the identical one is just a few lines down)Denis Vlasenko
2008-12-22Remove unused macrosDenis Vlasenko
2008-12-21more of warning fixes, mostly pointer signedness mismatchesDenis Vlasenko
2008-12-15remove some duplicates in bits/signum.h. No code changes.Denis Vlasenko
include/signal.h | 42 +++++++++++++++++++------------- libc/sysdeps/linux/alpha/bits/signum.h | 19 -------------- libc/sysdeps/linux/common/bits/signum.h | 22 ---------------- libc/sysdeps/linux/hppa/bits/signum.h | 17 ------------ libc/sysdeps/linux/mips/bits/signum.h | 23 +---------------- libc/sysdeps/linux/sparc/bits/signum.h | 20 --------------- 6 files changed, 27 insertions(+), 116 deletions(-)
2008-12-15sigaction overhaul as described in docs/sigaction.txtDenis Vlasenko
Run tested on i386.
2008-12-13Remove the rest of "bounded pointers" scaffolding. gcc website says"Denis Vlasenko
"Bounds Checking Projects... This project has been abandoned" for four years at least.
2008-12-11Move kernel-features.h header from the linuxthread directoryCarmelo Amoroso
to a common one (libc/sysdeps/linux/common/bits) so that any function can access to supported kernel feature (i.e. getdents). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-12-03A missing change when we recently released a lot of fixCarmelo Amoroso
on localae support
2008-12-03Two other absolutely safe change that will be used by NPTL, aimedCarmelo Amoroso
to simplify merge.
2008-12-01fix sigset_t size for mips (it's the only arch with 128 signals).Denis Vlasenko
fix _NSIG for it. better document what's going on in sigaction(). seems to not induce any actual code changes (sans mips).
2008-12-01optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko
text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
2008-11-29reduce sigset_t size for 128 bytes to 64 bits:Denis Vlasenko
text data bss dec hex filename - 38457 18352 8636 65445 ffa5 lib/libpthread-0.9.30-svn.so + 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so - 8205 280 12 8497 2131 lib/libthread_db-0.9.30-svn.so + 8193 280 12 8485 2125 lib/libthread_db-0.9.30-svn.so - 275208 1823 19132 296163 484e3 lib/libuClibc-0.9.30-svn.so + 274787 1823 19012 295622 482c6 lib/libuClibc-0.9.30-svn.so
2008-11-26- revert 24148:24151Bernhard Reutner-Fischer
2008-11-25- hide locksBernhard Reutner-Fischer
2008-11-22signal ops: avoid calls through PLT for __sigXXX opsDenis Vlasenko
linuxthreads.old/manager: pointless style fixes, no code changes
2008-11-20Last portion of libc_hidden_proto removal.Denis Vlasenko
Appears to build fine (several .configs tried)
2008-10-06- tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-03- add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer
2008-10-03- use c89-style commentsBernhard Reutner-Fischer
Closes issue #5194
2008-09-26- move libm_hidden_proto to the corresponding headers. Remove from callsites.Bernhard Reutner-Fischer
Note that gamma_r is not provided by glibc, perhaps add a SUN specific knob later
2008-09-09Hush compiler for extern inline warnings by using Carmelo Amoroso
__extern_inline macro, this also makes gcc 4.3 happy. (Taken from NPTL branch) Signed-off-by: Khem Raj <raj.khem@gmail.com>
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-07-02Include errno.h from kernel headers instead of using internal errno_values.hCarmelo Amoroso
otherwie some errno will be missed (i.e. ENOKEY used in libusb) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-05-29Fix typo in macro for tls access modelCarmelo Amoroso
2008-01-17A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt
a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
2008-01-08change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger
doing double negatives
2008-01-05add BOTHER define from termios2Mike Frysinger
2007-07-18Enable all of the remaining baud rates. All of the other architectures have ↵"Steven J. Hill"
them enabled, so let's go all the way. There was a quick discussion on IRC about making the max baud rate configurable. That requires a bunch of #ifdef salting throughout all of the 'termios.h' files for the pre-processor to chew on. I'm going to pass on that for now.