[PATCH 1/7] New path defines for <paths.h>
Corinna Vinschen
vinschen@redhat.com
Tue Oct 15 09:37:00 GMT 2013
On Oct 15 08:44, Sebastian Huber wrote:
> Hello Corinna,
>
> thanks for your review.
>
> On 2013-10-14 17:35, Corinna Vinschen wrote:
> >On Oct 8 14:45, Sebastian Huber wrote:
> >>newlib/ChangeLog
> >>2013-10-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
> >>
> >> * libc/include/paths.h (_PATH_DEVNULL): Define.
> >> (_PATH_DEVZERO): Likewise.
> >>---
> >> newlib/libc/include/paths.h | 2 ++
> >> 1 files changed, 2 insertions(+), 0 deletions(-)
> >>
> >>diff --git a/newlib/libc/include/paths.h b/newlib/libc/include/paths.h
> >>index 36cf78a..b1c70f5 100644
> >>--- a/newlib/libc/include/paths.h
> >>+++ b/newlib/libc/include/paths.h
> >>@@ -2,6 +2,8 @@
> >> #define _PATHS_H_
> >>
> >> #define _PATH_DEV "/dev/"
> >>+#define _PATH_DEVNULL "/dev/null"
> >>+#define _PATH_DEVZERO "/dev/zero"
> >
> >Why these two?
>
> I work currently on a port of the FreeBSD network stack to RTEMS.
> The stack is configured with FreeBSD command line tools, e.g.
> ifconfig, route, dhclient, etc. Some of them require one of the new
> path defines.
>
> >Why for all targets? _PATH_DEV and _PATH_BSHELL are
> >used in newlib(*), but the additional definition of only _PATH_DEVNULL
> >and _PATH_DEVZERO looks a bit arbitrary. What's the reason?
>
> I thought that adding some underscore names to a path already
> existing (_PATH_DEV) cannot harm.
>
> >
> >And, wouldn't it make sense to either keep paths.h as is and require
> >target-specific overrides, or, alternatively, add everything and the
> >kitchen sink to paths.h by providing the full BSD version of the file?
>
> The full FreeBSD version contains a lot of stuff
>
> http://svnweb.freebsd.org/base/head/include/paths.h?revision=255629&view=markup
Yeah, never mind. Please go ahead.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131015/d84cd222/attachment.sig>
More information about the Newlib
mailing list