summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* missed an underscore in previous commitMike Frysinger2007-01-291-1/+1
|
* Bernhard Fischer writes: note how uClibc chooses to handle __resolved==NULLMike Frysinger2007-01-281-1/+2
|
* sync with glibc as pointed out by Bernhard FischerMike Frysinger2007-01-281-7/+9
|
* - fix format of commentBernhard Reutner-Fischer2007-01-261-1/+1
|
* - r16732 forgot to checkin the sync of the __UCLIBC_SUSV3_LEGACY_MACROS__ ↵Bernhard Reutner-Fischer2006-12-231-1/+3
| | | | from string.h
* Patch from Bernhard Fischer:Eric Andersen2006-12-151-0/+7
| | | | fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
* Take Mike Frysinger's comments into account -- make certain that userEric Andersen2006-12-081-5/+13
| | | | | applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
* Sorry psm but contrary to commit 12927, kernel provided syscallsEric Andersen2006-12-081-7/+5
| | | | | | are NOT suitable for user-space. The libc ones are the ones that application code must use. If a problem is found with the libc ones, then the libc syscall macros should be fixed.
* finish the pthread locking cleanups. This should get things compiling againEric Andersen2006-12-081-0/+2
| | | | though I still need to silence the warnings about _pthread_cleanup_push_defer
* Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen2006-12-071-0/+1
| | | | | | | things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
* - introduce UCLIBC_SUSV3_LEGACY_MACROS to be able to do away with all LEGACYBernhard Reutner-Fischer2006-11-291-1/+3
| | | | stuff, even the fallback defines.
* - honor __UCLIBC_HAS_LFS__Bernhard Reutner-Fischer2006-11-291-2/+4
|
* - gcvt() is marked LEGACY in XSI and mandatory in BSD.Bernhard Reutner-Fischer2006-11-291-2/+4
| | | | Also make compilation conditional on float support.
* Bernd Schmidt writes: [blackfin updates] add support for FDPIC and include ↵Mike Frysinger2006-11-171-0/+2
| | | | L1 functions
* use proper #APP lines so that the assembler knows when it needs to handle ↵Mike Frysinger2006-09-211-8/+4
| | | | parsing (see http://sources.redhat.com/ml/binutils/2004-04/msg00665.html)
* add some inline funcs for the mlock funcs on no-mmuMike Frysinger2006-09-081-0/+12
|
* sync with upstream via psmMike Frysinger2006-08-241-75/+68
|
* sync with upstream via psmMike Frysinger2006-08-241-11/+65
|
* sync with psm: update errno handling to be the same on all archesMike Frysinger2006-08-231-7/+9
|
* allow arches to easily override asm-line-sep, move cris over to new style, ↵Mike Frysinger2006-06-211-1/+3
| | | | and have hppa use it now
* merge bfin relocations from blackfin cvsMike Frysinger2006-06-211-0/+40
|
* use internal aliases for static objects as wellMike Frysinger2006-06-191-1/+1
|
* sync with glibcMike Frysinger2006-06-072-9/+51
|
* sync with glibcMike Frysinger2006-06-071-3/+5
|
* sync with glibcMike Frysinger2006-06-071-2/+2
|
* sync with glibcMike Frysinger2006-06-071-2/+11
|
* Remove uses of all QUEUEDEBUG_* macros.Peter Kjellerstedt2006-05-301-21/+0
|
* previous commit ifdef-ed out too much codeMike Frysinger2006-05-171-1/+3
|
* sync with glibcMike Frysinger2006-05-171-8/+78
|
* fold bfin-specific link.h back into common one as suggested by Peter S. MazingerMike Frysinger2006-05-171-3/+11
|
* cut out _FORTIFY_SOURCEMike Frysinger2006-05-121-0/+2
|
* sync with glibcMike Frysinger2006-05-062-55/+392
|
* fix by Bernd Schmidt to support HAVE_ASM_SET_DIRECTIVE in weak_alias() macrosMike Frysinger2006-05-041-5/+18
|
* merge some more minor changes from glibcMike Frysinger2006-05-041-9/+22
|
* sync minor changes with glibcMike Frysinger2006-05-041-10/+34
|
* remove old cruft that doesnt matter for uClibc and breaks anyways when using ↵Mike Frysinger2006-04-071-26/+3
| | | | -std=c99
* Revert change to remove 'error_print_progname' so that gettext will build. ↵"Steven J. Hill"2006-03-271-2/+2
| | | | It can be commented out again when someone figures out how to fix gettext building and do the proper thing.
* Add new option for SuSv3 legacy functions and use it for ↵Peter S. Mazinger2006-03-232-0/+24
| | | | bcopy/bzero/bcmp/index/rindex
* Sync w/ string.h, glibc version is out of datePeter S. Mazinger2006-03-231-13/+29
|
* Comment __USE_UNIX98, not needed, add __glibc_strerror_r prototype for non-GNUPeter S. Mazinger2006-03-221-1/+5
|
* Comment __mbrlenPeter S. Mazinger2006-03-221-3/+3
|
* Guard the reentrant prototypes w/ appropiate config optionPeter S. Mazinger2006-03-191-1/+1
|