svn commit: trunk/uClibc: include include/sys libc/sysdeps/linux/c etc...
Peter S. Mazinger
ps.m at gmx.net
Wed Oct 5 05:52:31 UTC 2005
On Tue, 4 Oct 2005 andersen at uclibc.org wrote:
> Author: andersen
> Date: 2005-10-04 15:26:07 -0700 (Tue, 04 Oct 2005)
> New Revision: 11757
>
> Log:
> Do not stub out functions for mmu-less systems. Hide all
> prototypes for functions disabled on mmu-less systems.
>
> ===================================================================
> --- trunk/uClibc/include/unistd.h 2005-10-04 17:09:50 UTC (rev 11756)
> +++ trunk/uClibc/include/unistd.h 2005-10-04 22:26:07 UTC (rev 11757)
> @@ -752,10 +754,12 @@
> extern void setusershell (void) __THROW; /* Rewind and re-read the file. */
>
>
> +#if defined __ARCH_HAS_MMU__
> /* Put the program in the background, and dissociate from the controlling
> terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero,
> redirects stdin, stdout, and stderr to /dev/null. */
> extern int daemon (int __nochdir, int __noclose) __THROW;
> +#endif
> #endif /* Use BSD || X/Open. */
above daemon exists only for MMU
below daemon.c is not added for any case, so we loose it for MMU
>
>
> Modified: trunk/uClibc/libc/unistd/Makefile
> ===================================================================
> --- trunk/uClibc/libc/unistd/Makefile 2005-10-04 17:09:50 UTC (rev 11756)
> +++ trunk/uClibc/libc/unistd/Makefile 2005-10-04 22:26:07 UTC (rev 11757)
> @@ -27,9 +27,7 @@
> fpathconf.c confstr.c pathconf.c swab.c usershell.c \
> getsubopt.c
>
> -ifeq ($(strip $(ARCH_HAS_MMU)),y)
> - CSRC += daemon.c
> -else
> +ifneq ($(strip $(ARCH_HAS_MMU)),y)
> MOBJ1 += __exec_alloc.o
> endif
>
>
> Modified: trunk/uClibc/libc/unistd/daemon.c
> ===================================================================
> --- trunk/uClibc/libc/unistd/daemon.c 2005-10-04 17:09:50 UTC (rev 11756)
> +++ trunk/uClibc/libc/unistd/daemon.c 2005-10-04 22:26:07 UTC (rev 11757)
> @@ -29,8 +29,7 @@
> #include <paths.h>
> #include <unistd.h>
>
> -/* Note that this file should not be compiled in
> - * unless __ARCH_HAS_MMU__ is defined */
> +#if defined __ARCH_HAS_MMU__
>
> int daemon( int nochdir, int noclose )
> {
> @@ -66,8 +65,8 @@
> return(0);
> }
>
> +#endif
>
> -
> /*-
> * Copyright (c) 1990, 1993
> * The Regents of the University of California. All rights reserved.
>
> _______________________________________________
> uClibc-cvs mailing list
> uClibc-cvs at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc-cvs
>
>
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list