This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RTEMS Targets Issue #1 - daemon()
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>, Yaakov Selkowitz <yselkowi at redhat dot com>, "Sebastian dot Huber at embedded-brains dot de" <Sebastian dot Huber at embedded-brains dot de>, Chris Johns <chrisj at rtems dot org>
- Date: Sat, 19 Mar 2016 12:01:18 -0500
- Subject: RTEMS Targets Issue #1 - daemon()
- Authentication-results: sourceware.org; auth=none
Hi
I built tools using the master of binutils-gdb, newlib, and gcc.
All fifteen toolsets built ok. I am building all ~150 RTEMS BSPs.
It is still building but I am seeing some warnings and build failures
which were not present with the last newlib snapshot. I have not
dug in to see what the default feature flags are for RTEMS. I am
just going to report issues one at a time as I dig through them.
I am open to suggestions on how to fix each issue. These are just
changes to me at this point.
First is that the RTEMS ftpd has a static method named daemon().
A short test program is:
#include <unistd.h>
static void daemon(int arg)
{
}
In the last newlib snapshot, daemon() was protected like this:
#if defined(__CYGWIN__)
int _EXFUN(daemon, (int nochdir, int noclose));
#endif
Now it is like this:
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
int _EXFUN(daemon, (int nochdir, int noclose));
#endif
The ftpd is an RTEMS specific implementation and I don't see an
issue with changing the name in RTEMS. Does everyone agree this
change in what newlib's unistd.h was presenting is correct now
and that RTEMS needs to change?
--joel