This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RTEMS Targets Issue #1 - daemon()


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]