[PATCH] Fix memory leak in dlopen()/dlclose().

2011-02-07 Thread Philip Craig
The linked list of library dependencies created by dlopen() was not being freed by dlclose(). Signed-off-by: Philip Craig --- Tested with uClibc 0.9.29 only. Code inspection shows the error is still present in latest git, I compile tested there. ldso/libdl/libdl.c |4 1 files changed

Re: [PATCH] Fix memory leak in dlopen()/dlclose().

2011-02-09 Thread Philip Craig
On 10/02/2011 5:02 PM, Joakim Tjernlund wrote: >> From: Philip Craig >> + for (rpnt1 = handle->next; rpnt1; rpnt1 = rpnt1_tmp) { >> + rpnt1_tmp = rpnt1->next; >> + free(rpnt1); >> + } >> free(handle->init_fini.init_fini); >&g

Re: [uClinux-dev] usleep in uClibc/uClinux

2011-03-08 Thread Philip Craig
On Wed, Mar 9, 2011 at 8:59 AM, Drasko DRASKOVIC wrote: > I still do not get who is to define __USE_XOPEN_EXTENDED macro ? > My compiler does not do it, neider my uClinux Makefile. It is defined in uClibc's features.h. You should never be manually defining this macro. Instead, your application so

Re: usleep in uClibc/uClinux

2011-03-08 Thread Philip Craig
On Wed, Mar 9, 2011 at 1:05 PM, William Pitcock wrote: > __USE_BSD means that it's just an API that was present in the BSD4.3 > UNIX distribution, but is not formally part of POSIX.  You don't > *really* need __USE_BSD defined, but if you want to define it, you can > do it like this: > >    #defin

Re: [PATCH 1/2] libcrypt: make crypt() more modular

2011-11-17 Thread Philip Craig
From: William Pitcock Sent: Wed 16 Nov 2011 21:27:48 EST > char *crypt(const char *key, const char *salt) > { > - /* First, check if we are supposed to be using the MD5 replacement > - * instead of DES... */ > - if (salt[0]=='$' && salt[1]=='1' && salt[2]=='$') > - ret

Re: abort() missing return-address => useless core file

2011-11-27 Thread Philip Craig
On Thu, Nov 24, 2011 at 3:51 PM, Grant Edwards wrote: > We asked that the "noreturn" attribute be removed from abort() so that > core files contain sufficient info for getting a bactrace... Why does uclibc need it removed, but glibc doesn't? http://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib