No prototype for readdir_r

Joel Sherrill joel.sherrill@oarcorp.com
Fri Nov 15 18:49:00 GMT 2013


Hi

I noticed that readdir_r() does not have a prototype.
It should be in dirent.h. I am happy to add it to
the RTEMS dirent.h but there are other versions of
this file and

./libc/include/sys/dirent.h
./libc/include/dirent.h
./libc/machine/spu/sys/dirent.h
./libc/sys/rtems/sys/dirent.h
./libc/sys/decstation/sys/dirent.h
./libc/sys/sun4/sys/dirent.h
./libc/sys/linux/bits/dirent.h
./libc/sys/linux/sys/dirent.h
./libc/sys/sparc64/sys/dirent.h
./libc/sys/sysvi386/sys/dirent.h

I can drop the prototype in those at the same time.

And ... Linux man page shows these guards. What should
they be on newlib?

    _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
    _SVID_SOURCE || _POSIX_SOURCE



-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the Newlib mailing list