This is the mail archive of the newlib@sources.redhat.com 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]

Re: missing functions in newlib


Nicholas Wourms wrote:

Joel Sherrill wrote:

J. Johnston wrote:

chris wrote:

Hello!

I was suprised to not find in the FAQ "XXX is missing from newlib", so I
shall have to ask it here.



There are lots of things that are "not" in newlib. Adding all of them would
be a thankless exercise and make for a very large FAQ. The
library is essentially ANSI C90 plus a large variety of extensions.



Also when not in a bare embedded system, newlib is usually used with an OS environment like Cygwin or RTEMS that has additional libraries and capabilities. For example, RTEMS has all of the pthread, message queue, semaphore, and basic systems calls in its own libraries.


The RTEMS implimentation is nice. I'm sure we'd always welcome a port of the parts of your wonderful advanced timers/threads implimentation we are missing in Cygwin ;-).

We have pushed code where possible from RTEMS back to newlib. We would be happy to push it further and further. RTEMS supplements the header files in newlib with some in our own tree.

Seriously, I would be happy to work on this if time permitted.  I love
seeing anything I have worked on used by more people.

Actually, back to the original subject, I have ported the error-related functions (found in err.h) from FreeBSD. I also did getprogname/setprogname, which is also frequently found in BSD software (though it doesn't use crt0 to "set the progname", so you will always have to do it with setprogname()). I did so mainly because it was getting annoying having to convert all the error checking code in the other, more complex, functions I've been working on. I'll post it later on once things have settled a bit WRT the impending Cygwin release.

Great. This matches the RTEMS philosophy that it is easier to provide compatible routines in a library than to port existing software.

Cheers,
Nicholas




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


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