svn commit: branches/uClibc-nptl: libc/signal libc/sysdeps/linux/common li etc...

Peter S. Mazinger ps.m at gmx.net
Thu Dec 8 11:57:10 UTC 2005


On Wed, 7 Dec 2005 sjhill at uclibc.org wrote:

> Author: sjhill
> Date: 2005-12-07 21:02:08 -0800 (Wed, 07 Dec 2005)
> New Revision: 12721
> 
> Log:
> NPTL changes for signal handling, getpid, sleep, raise and a few things
> for new librt code. Also cleaned up the makefiles.

If we have these (or some) in linuxthreads.old, we could do the same. For 
raise we have gotten earlier a proposal (done w/ linuxthreads.old) to use 
for it a weak in libc so that if libpthread is used, it can overwrite it.
As you do it, it seems that you won't have any getpid/raise/sleep in libc, 
only in libpthread.

> 
> Modified: branches/uClibc-nptl/libc/sysdeps/linux/common/Makefile.in
> ===================================================================
> --- branches/uClibc-nptl/libc/sysdeps/linux/common/Makefile.in	2005-12-08 04:57:34 UTC (rev 12720)
> +++ branches/uClibc-nptl/libc/sysdeps/linux/common/Makefile.in	2005-12-08 05:02:08 UTC (rev 12721)
> @@ -29,6 +29,10 @@
>  CSRC:=$(filter-out $(COMMON_SSP),$(CSRC))
>  endif
>  
> +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
> +CSRC:=$(filter-out getpid.c raise.c,$(CSRC))
> +endif
> +
>  # fails for some reason
>  ifneq ($(strip $(ARCH_OBJS)),)
>  CSRC:=$(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC))
> 
> Modified: branches/uClibc-nptl/libc/unistd/Makefile.in
> ===================================================================
> --- branches/uClibc-nptl/libc/unistd/Makefile.in	2005-12-08 04:57:34 UTC (rev 12720)
> +++ branches/uClibc-nptl/libc/unistd/Makefile.in	2005-12-08 05:02:08 UTC (rev 12721)
> @@ -22,6 +22,10 @@
>  CSRC+=getopt-susv3.c
>  endif
>  
> +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
> +CSRC:=$(filter-out sleep.c,$(CSRC))
> +endif
> +
>  UNISTD_DIR:=$(top_srcdir)libc/unistd
>  UNISTD_OUT:=$(top_builddir)libc/unistd
>  


> +#CFLAGS:=$(CFLAGS:-O1=-O2)

problematic within new build system, you could only append -O2 (that will 
win)

> Modified: branches/uClibc-nptl/libpthread/nptl/compat/libc-symbols.h
> ===================================================================

[...]

> -#else
> -# ifndef __ASSEMBLER__
>  #  define hidden_proto(name, attrs...)
>  # else
>  #  define HIDDEN_JUMPTARGET(name) JUMPTARGET(name)
>  # endif /* Not  __ASSEMBLER__ */
>  # define hidden_weak(name)
> -# define hidden_def(name)

be aware, that what we have in current svn for hidden_def is not the same 
as meant within glibc.

> Modified: branches/uClibc-nptl/libpthread/nptl/pthread_getattr_np.c
> ===================================================================
> --- branches/uClibc-nptl/libpthread/nptl/pthread_getattr_np.c	2005-12-08 04:57:34 UTC (rev 12720)
> +++ branches/uClibc-nptl/libpthread/nptl/pthread_getattr_np.c	2005-12-08 05:02:08 UTC (rev 12721)
> @@ -100,7 +100,7 @@
>  
>  	  while (! feof_unlocked (fp))
>  	    {
> -	      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
> +	      if (getdelim (&line, &linelen, '\n', fp) <= 0)

correct, __getdelim is only visible within libc

Peter




More information about the uClibc mailing list