libc/newlib: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.
Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
[yann.morin.1998@free.fr: fix indentation]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <d02252752d4dc5e68ae3.1349931202@localhost.localdomain>
PatchWork-Id: 190795
1 only fork one to assist in stop-start-daemon assumptions about daemon behavior
3 http://bugs.gentoo.org/190785
5 diff -durN glibc-2.13.orig/nscd/nscd.c glibc-2.13/nscd/nscd.c
6 --- glibc-2.13.orig/nscd/nscd.c 2009-02-06 21:10:27.000000000 +0100
7 +++ glibc-2.13/nscd/nscd.c 2009-11-13 00:50:24.000000000 +0100
12 + if (write_pid (_PATH_NSCDPID) < 0)
13 + dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
15 int nullfd = open (_PATH_DEVNULL, O_RDWR);
19 for (i = min_close_fd; i < getdtablesize (); i++)
24 - error (EXIT_FAILURE, errno, _("cannot fork"));
33 openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
35 - if (write_pid (_PATH_NSCDPID) < 0)
36 - dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
39 dbg_log (_("Could not create log file"));