summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Rework smallint machinery so that it will reliably fail to compileDenis Vlasenko2008-06-011-4/+4
| | | | | | even if arch overrides smallint size. Makes it easier to spot bugs on such arches.
* - pull wur settings from upstream. No other changes.Bernhard Reutner-Fischer2008-05-301-44/+48
|
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-201-0/+10
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* - make it compile with !__UCLIBC_HAS_LOCALE__Bernhard Reutner-Fischer2008-05-201-1/+1
|
* Synch extern declaration with definition provided in __uClibc_main.cCarmelo Amoroso2008-05-201-1/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-192-0/+143
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* Added a bounch of locale fixes.Carmelo Amoroso2008-05-191-1/+3
| | | | | | | | | | | | | | | | | * extra/locale/gen_wc8bit.c: use strrchr to parse locale name to handle the case in which it contains a '.' character like ANSI_X3.4-1968 * include/locale.h: use __UCLIBC_HAS_XLOCALE__ to control inclusion of xlocale.h only * libc/misc/ctype/ctype.c: add missing weak_alias for __tolower_l and __toupper_l * libc/misc/locale/locale.c: use strcasecmp (case insensitive) for utf-8 locale name. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Added implementation for 'locale' command.Carmelo Amoroso2008-05-021-1/+1
| | | | Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko2008-04-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
* reinstate external visibility of inet_ntoa_r,Denis Vlasenko2008-04-251-0/+2
| | | | | and add it to arpa/inet.h header.
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-241-1/+1
|
* Functions should be either exported in public .h filesDenis Vlasenko2008-04-122-0/+8
| | | | | | | | | | | | | and marked with libc_hidden_proto/def(), or not be exported in .h files and be hidden (or even static if possible). We have five functions which violate this. Fixing: netdb.h: export ruserpass() rpc/rpc.h: export xdr_accepted_reply() and xdr_rejected_reply() make inet_ntoa_r static function (it is not exported in any .h file) make _time_tzset hidden function (it is not exported in any .h file)
* Enable remap_file_pages prototype controlled by __USE_GNU define as well as ↵Carmelo Amoroso2008-03-261-11/+10
| | | | mremap, instead of __USE_MISC according to glibc. Missing prototype was spotted out by Peter Mazinger
* Added support for ether_line, ether_ntohost and ether_hostton.Carmelo Amoroso2008-02-281-0/+2
| | | | | | | Added related test cases. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - forgot to add include/fenv.hBernhard Reutner-Fischer2008-01-191-0/+136
|
* - fix compilation:Bernhard Reutner-Fischer2008-01-171-2/+0
| | | | | In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49: build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class
* cull useless headers and import a few updates from glibcMike Frysinger2008-01-116-102/+115
|
* fetch queue.h from latest freebsd cvsMike Frysinger2008-01-091-383/+444
|
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-081-7/+1
| | | | doing double negatives
* use the __extern_always_inline define from cdefs.h instead of duplicating ↵Mike Frysinger2008-01-061-2/+4
| | | | gcc version checking in every pt-machine.h header ... while __extern_always_inline should work fine, i think what is intended is __extern_inline ... should double check later
* sync with glibc to get the extern inline directiveMike Frysinger2008-01-051-2/+38
|
* Chris Zankel writes:Mike Frysinger2008-01-051-0/+58
| | | | | | | | | | | | | | | | | | The following patches add support for the Xtensa processor architecture to uClibc. They are based on a recent SVN checkout (12/05/2007). The first patch (attached to this post) adds Xtensa support to various shared configuration and make files. The following patches then include the Xtensa specific files and directories. I welcome any feedback and would appreciate it if you could include the patches into the mainline tree. I am certainly committed to maintain the port. Bob Wilson was kind enough to review the patches. Some notes about the architecture: Xtensa is a configurable and extensible processor architecture developed by Tensilica. For more information, please visit: www.linux-xtensa.org.
* give EM_AVR32 a little commentMike Frysinger2008-01-051-0/+1
|
* implement semtimedop for #927Mike Frysinger2008-01-051-1/+12
|
* Certain configure scripts test for presence of dlfcn.h. Don't install itBernd Schmidt2007-11-221-0/+2
| | | | if !HAVE_SHARED.
* Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso2007-11-161-0/+51
| | | | <hcegtvedt@atmel.com>
* Added support for GNU hash style into dynamic linkerCarmelo Amoroso2007-11-071-0/+2
|
* - commentary typo fixBernhard Reutner-Fischer2007-10-201-1/+1
|
* add libc_hidden_xxxx for __uc_mallocDenis Vlasenko2007-09-151-0/+2
|
* sync with glibcMike Frysinger2007-09-153-29/+100
|
* drop __user hack for crappy kernel headers and document the __linux__ greaseMike Frysinger2007-09-151-4/+4
|
* introduce __uc_malloc, so that users can intercept libc internal OOM.Denis Vlasenko2007-07-301-0/+7
|
* syslog.h: allow prioritynames[]/facilitynames[] to be defined constDenis Vlasenko2007-07-141-0/+6
| | | | | (selectable by #defining SYSLOG_NAMES_CONST)
* - make sure to define _LIBC in libc-symbols.h before including anythingBernhard Reutner-Fischer2007-06-241-10/+10
| | | | | | else. - internal_function is only used inside libc, so do not define it in uClibc_arch_features.h on i386 if we are outside of libc.
* - shrink resolver codeBernhard Reutner-Fischer2007-04-171-0/+2
|
* include stddef.h to get NULL definition.Khem Raj2007-03-011-0/+2
|
* add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger2007-02-281-2/+24
|
* sync with glibcMike Frysinger2007-02-281-4/+106
|
* stub out msync() for no-mmu as wellMike Frysinger2007-02-211-2/+10
|
* Impl. linux syscalls sched_getaffinity/sched_setaffinity butJoakim Tjernlund2007-02-121-1/+1
| | | | | | | | | protect its use by #ifdef INTERNAL_SYSCALL since not all arch's has INTERNAL_SYSCALL. All arch's not having INTERNAL_SYSCALL in libc/sysdeps/linux/<arch>/bits/syscalls.h should get an update from glibc.
* use __FDPIC__ from the compiler rather than setting our ownMike Frysinger2007-02-081-11/+3
|
* revert previous change; reading POSIX spec some more says we need to set ↵Mike Frysinger2007-02-081-1/+1
| | | | errno to EINVAL if filename is NULL
* we crash if the first argument to realpath() is non-null as well so lets ↵Mike Frysinger2007-02-081-1/+1
| | | | mark both arguments as being non-NULL
* no need to duplicate WCHAR checkMike Frysinger2007-02-051-1/+1
|
* - silence warning about using an undefined tokenBernhard Reutner-Fischer2007-02-052-3/+3
|
* Richard Sandiford writes:Mike Frysinger2007-01-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | However, retesting on m68k showed up a problem that had appeared in uClibc since the last time I tried. Specifically, revision 15785 did: -#define HEAP_GRANULARITY (sizeof (HEAP_GRANULARITY_TYPE)) +#define HEAP_GRANULARITY (__alignof__ (HEAP_GRANULARITY_TYPE)) -#define MALLOC_ALIGNMENT (sizeof (double)) +#define MALLOC_ALIGNMENT (__alignof__ (double)) The problem is that (a) MALLOC_HEADER_SIZE == MALLOC_ALIGNMENT (b) the header contains a size value of type size_t (c) sizeof (size_t) is 4 on m68k, but... (d) __alignof__ (double) is only 2 (the largest alignment used on m68k) So we only allocate 2 bytes for the 4-byte header, and the least significant 2 bytes of the size are in the user's area rather than the header. The patch below fixes that problem by redefining MALLOC_HEADER_SIZE to: MAX (MALLOC_ALIGNMENT, sizeof (size_t)) (but without the help of the MAX macro ;)). However, we really would like to have word alignment on Coldfire. It makes a big performance difference, and because we have to allocate a 4-byte header anyway, what wastage there is will be confined to the end of the allocated block. Any wastage will also be limited to 2 bytes per allocation compared to the current alignment. I've therefore used the __aligned__ type attribute to create a double type that has at least sizeof (size_t) bytes of alignment. I've introduced a new __attribute_aligned__ macro for this. It might seem silly protecting against old or non-GNU compilers here, but the extra alignment is only an optimisation, and having the macro is more in the spirit of the other attribute code.
* - see if defined foo before trying to look at the value of foo (that should ↵Bernhard Reutner-Fischer2007-01-291-4/+5
| | | | be 0 in this case. Avoids some warnings).
* - sync with glibc (and provide a check for icc).Bernhard Reutner-Fischer2007-01-291-2/+6
| | | | Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t
* use ifdef rather than if for stack directionMike Frysinger2007-01-291-2/+2
|
* check to see if __USE_FILE_OFFSET64 is defined rather than if it evaluates ↵Mike Frysinger2007-01-291-1/+1
| | | | to true