summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* use the correct lock for access to __nameserver[]Eric Andersen2007-02-021-9/+9
|
* fix lock namingEric Andersen2007-02-021-6/+6
|
* Ronald Maeder writes:Eric Andersen2007-02-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi Erik, Thanks for all your great work. I found a set of bugs in resolv.c . Basically, there is code that looks like: BIGLOCK; __nameserversXX=__nameservers; __nameserverXX=__nameserver; BIGUNLOCK; i = __dns_lookup(dname, type, __nameserversXX, __nameserverXX, &packet, &a); which is a problem because the declarations are int __nameservers; char * __nameserver[MAX_SERVERS]; int __searchdomains; char * __searchdomain[MAX_SEARCH]; so you can see that __nameserver is a pointer. Copying the pointer to __nameserverXX doesn't protect the global variable space. I have attached a patch and the new file. I hope you will incorporate these bug fixes. I spent quite a bit of time tracking them down. Many thanks, Ron
* fix obvious bug in ipv4/ipv6 resolving. When not using AF_INET,Eric Andersen2007-02-021-1/+1
| | | | | | gethostbyname2_r tries to resolve an ipv6 address from /etc/hosts using get_hosts_byname_r, but with AF_INET instead of the supplied address family. This returns ipv4 addresses marked as ipv6 ones. Fix from nbd.
* drive home the point people should not be using _syscall#() macrosMike Frysinger2007-02-011-0/+2
|
* document future need for larger time valuesMike Frysinger2007-02-011-0/+2
|
* - should look if LFS is enabled as suggested by pkj in #1131. This generates ↵Bernhard Reutner-Fischer2007-01-301-1/+1
| | | | identical cc1 input for LFS enabled (compared to before r17652) but makes sure that we pickup the non-LFS if LFS is turned off (like r17652 did in this case).
* - fix compilation of GNU glob with !LFSBernhard Reutner-Fischer2007-01-291-1/+1
| | | | Sounds like a typo, really
* Richard Sandiford writes:Mike Frysinger2007-01-293-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* - s/if USE___THREAD/if defined USE___THREAD && USE___THREAD/gBernhard Reutner-Fischer2007-01-291-2/+2
|
* - see if defined foo before trying to look at the value of foo (that should ↵Bernhard Reutner-Fischer2007-01-292-5/+6
| | | | 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
* pull in unistd.h for syscall() prototypeMike Frysinger2007-01-291-0/+1
|
* use ifdef rather than if for stack directionMike Frysinger2007-01-291-2/+2
|
* fix from Atsushi Nemoto for displaying of 64bit typesMike Frysinger2007-01-291-1/+1
|
* fix from Roman Kononov for reading in of 64bit typesMike Frysinger2007-01-291-1/+1
|
* make sure reading 64bit types worksMike Frysinger2007-01-291-0/+4
|
* make sure 64bit output is correctMike Frysinger2007-01-292-0/+14
|
* since these functions get exported, namespace the argumentsMike Frysinger2007-01-291-8/+8
|
* mark local function staticMike Frysinger2007-01-291-1/+1
|
* fixup shadowed warningsMike Frysinger2007-01-296-18/+16
|
* mark some funcs as noreturnMike Frysinger2007-01-296-51/+68
|
* fixup prototype warningsMike Frysinger2007-01-2923-85/+93
|
* check to see if __USE_FILE_OFFSET64 is defined rather than if it evaluates ↵Mike Frysinger2007-01-291-1/+1
| | | | to true
* make error output a little more helpfulMike Frysinger2007-01-291-1/+2
|
* fixup warningsMike Frysinger2007-01-291-2/+2
|
* fix test to work even if CPPFLAGS contains -DNDEBUGMike Frysinger2007-01-291-4/+4
|
* sync some fixes from glibcMike Frysinger2007-01-291-3/+7
|
* missed an underscore in previous commitMike Frysinger2007-01-291-1/+1
|
* Bernhard Fischer writes: add undef/nonnull warnings to EXTRA_WARNINGSMike Frysinger2007-01-281-0/+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-282-10/+11
|
* - commentary typo fixBernhard Reutner-Fischer2007-01-281-1/+2
|
* fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and ↵Mike Frysinger2007-01-281-1/+6
| | | | does not generate relocs
* as pointed out by Jocke, use "2" for actual error messages and ↵Mike Frysinger2007-01-281-6/+6
| | | | _dl_debug_file for debug messages
* initial waitid() implementationMike Frysinger2007-01-281-0/+15
|
* need string.h for memset()Mike Frysinger2007-01-281-0/+1
|
* note 0.9.28.1 releaseMike Frysinger2007-01-281-0/+15
|
* its a new yearMike Frysinger2007-01-282-2/+2
|
* make sure we clear out the buffer so that random garbage on the stack doesnt ↵Mike Frysinger2007-01-281-2/+6
| | | | screw us up
* Paul Brook writes:Mike Frysinger2007-01-281-3/+4
| | | | | The patch below tweaks the ARM nommu startup code so that doubleword stack alignment is preserved. This is required on EABI targets.
* fix typo as pointed out by Tony Wu and cleanup sourceMike Frysinger2007-01-281-18/+23
|
* dont rely on random stack state to trigger this issue; force the default ↵Mike Frysinger2007-01-281-0/+3
| | | | stat structs to alternative bit masks
* new test taken from stat issue with new tarMike Frysinger2007-01-281-0/+104
|
* use .bz2 rather than .gzMike Frysinger2007-01-281-3/+3
|
* fix from blackfin repo: Jie Zhang writes: update __kernel_ipc_pid_t, ↵Mike Frysinger2007-01-271-3/+3
| | | | __kernel_uid_t and __kernel_gid_t types to match actual kernel types
* fix from blackfin repo: Jie Zhang writes: Passing NULL as the second ↵Mike Frysinger2007-01-271-6/+1
| | | | argument to utimes () if the second argument to utime () is NULL as the kernel will take care of getting/setting current time
* - fix format of commentBernhard Reutner-Fischer2007-01-261-1/+1
|
* dont actually have to worry about local changes as svn export takes care of thatMike Frysinger2007-01-261-1/+0
|
* Fix libdl bug reported by Cedric Hombourger inJoakim Tjernlund2007-01-262-30/+32
| | | | http://uclibc.org/lists/uclibc/2007-January/017165.html