Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-09-19 | fix assembler error. libc_hidden_data_def cannot work on COMMONs, | Denis Vlasenko | |
thus need to initialize stuff with 0 to force it into bss. All hell can again break loose if future gcc will be smart enough to ignore it. | |||
2007-09-15 | add libc_hidden_xxxx for __uc_malloc | Denis Vlasenko | |
2007-07-30 | introduce __uc_malloc, so that users can intercept libc internal OOM. | Denis Vlasenko | |
2007-05-04 | - commentary typo fix | Bernhard Reutner-Fischer | |
2007-04-24 | fix from Bernd Schmidt for realloc shrinkage bug | Mike Frysinger | |
2007-04-13 | fix up malloc debug building | Mike Frysinger | |
2007-04-11 | POSIX says you can use realloc() to shrink buffers ... make sure we dont ↵ | Mike Frysinger | |
trigger a buffer overflow in that case | |||
2007-04-02 | POSIX requires that errno be set whenever 0 is returned by malloc() | Mike Frysinger | |
2007-02-08 | revert 17821, wait for better test cases | Eric Andersen | |
2007-02-08 | Miguel Angel Alvarez writes: | Eric Andersen | |
Hi. I have found a bug in realpath that did not allow me to use it with symlinks. Although I am using 0.9.28.1, the bug is present in 0.9.28 and also in the trunk. I attach a suggested patch. Please let me know if the solution is correct. | |||
2007-02-08 | handle file_name==NULL and file_name=="" as required by POSIX | Mike Frysinger | |
2007-01-29 | Richard Sandiford writes: | Mike Frysinger | |
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. | |||
2007-01-24 | fix from Bryan Wu: return NULL upon error, not the NULL string | Mike Frysinger | |
2006-12-17 | rename local "brk" var so it doesnt namespace collide with the brk() function | Mike Frysinger | |
2006-12-11 | mostly revert the locking changes for 'malloc', as the implementation | Eric Andersen | |
does not easily lend itself to becoming complete pthread cancelation safe without first investing in some deep and serious thought... The other malloc implementations are pthread cancelation safe, and this one is mostly used for uClinux, where the lack is at least less likely to be a common problem. | |||
2006-12-07 | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric Andersen | |
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. | |||
2006-12-07 | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric Andersen | |
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. | |||
2006-11-29 | - Cleanout the only occurance of the SUSv3 LEGACY function getwd() that was | Bernhard Reutner-Fischer | |
furthermore ifdef'ed out anyway. | |||
2006-11-29 | - gcvt() is marked LEGACY in XSI and mandatory in BSD. | Bernhard Reutner-Fischer | |
Also make compilation conditional on float support. | |||
2006-08-25 | fix from psm: makes use of the malloc debug option in malloc-standard as well | Mike Frysinger | |
2006-08-05 | merge fix from blackfin cvs: | Mike Frysinger | |
bernds writes: Use __alignof__ instead of sizeof to get alignments. Eliminates some warnings about misalignments when malloc debugging is enabled. | |||
2006-07-05 | fixup my copyright notice, trim stale remnants of older notices which | Eric Andersen | |
I had clearly run search/replace on that were cluttering things up. | |||
2006-07-05 | fixup my copyright notice, trim stale remnants of older notices which | Eric Andersen | |
I had clearly run search/replace on that were cluttering things up. | |||
2006-03-23 | Mark some functions as BSD only | Peter S. Mazinger | |
2006-03-22 | Correct build if UCLIBC_HAS_CTYPE_TABLES is not defined | Peter S. Mazinger | |
2006-03-22 | Mark some functions as GNU, provide missing hidden memmem, remove ↵ | Peter S. Mazinger | |
_ISOC99/XOPEN_SOURCE | |||
2006-03-17 | Fix 'realloc' and revert previous changes to tests. malloc tests all pass ↵ | "Steven J. Hill" | |
regardless of the setting of MALLOC_GLIBC_COMPAT. | |||
2006-03-10 | Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵ | Peter S. Mazinger | |
most of global data relocations are back | |||
2006-02-24 | Do not use __XL_NPP macro | Peter S. Mazinger | |
2006-02-24 | guard __ignore_x correctly, move undefs to their proper place, add ↵ | Peter S. Mazinger | |
prototypes. Should I do all the other *max aliases as well | |||
2006-02-22 | exclude 2 files from multi if XLOCALE enabled | Peter S. Mazinger | |
2006-02-22 | check for a 0 size first, then check for a NULL pointer | Mike Frysinger | |
2006-02-20 | sync minor touchups with glibc | Mike Frysinger | |
2006-02-18 | tweak the idea between having a MMU and actually using it | Mike Frysinger | |
2006-02-15 | DOMULTI may be used for libc, the excluded files need work, ↵ | Peter S. Mazinger | |
linuxthreads[_db] as well, don't try on slow box | |||
2006-02-15 | Reorganize a bit for IMA | Peter S. Mazinger | |
2006-02-14 | after much deliberation, may i present Joseph S. Myers patch to add support ↵ | Mike Frysinger | |
for .init and .fini array processing for the gory details, see the mailing list: http://www.uclibc.org/lists/uclibc/2006-January/014079.html http://www.uclibc.org/lists/uclibc/2006-February/014285.html | |||
2006-02-13 | libc-{a,so,multi}-y replaced by libc-y covering common objects both in ↵ | Peter S. Mazinger | |
libc.a/libc.so, the diffs go into libc-static-y/libc-shared-y exclusively, add IMA to libc, don't use any MSRC anymore | |||
2006-02-13 | Update some copyrights | Peter S. Mazinger | |
2006-02-13 | Add files for IMA. Yes, I know it's a hack and no, I won't split the ↵ | Peter S. Mazinger | |
affected files | |||
2006-02-13 | Remove unused files | Peter S. Mazinger | |
2006-02-13 | More renames for IMA | Peter S. Mazinger | |
2006-02-13 | Don't compile arc4random if option not set | Peter S. Mazinger | |
2006-02-09 | just drop all of the debug code | Mike Frysinger | |
2006-02-08 | Bernhard Fischer says: get rid of local ret variable | Mike Frysinger | |
2006-02-08 | janlana writes in Bug 700: use standard uint* types rather than u_int | Mike Frysinger | |
2006-02-01 | Go __malloc_lock, go ... | Peter S. Mazinger | |
2006-02-01 | global data uses libc_hidden_data_def, convert all -I hope- and add some new | Peter S. Mazinger | |
2006-01-31 | rename local var brk to _brk | Mike Frysinger | |
2006-01-30 | Why this? | Peter S. Mazinger | |