Right now I am working towards implementing the system calls at http://sourceware.org/newlib/libc.html#Syscalls so that I can port newlib. I wanted to put a question out to all those who have ported POSIX applications to their OS. After the prerequisites for newlib, what do you consider the next most important set of system calls for porting existing applications?
I ask this because I don't have much experience to know which are the most important commands. Obviously, threading is needed for threaded applications and networking for networking applications, but my question is really targeted at a more basic level than this.
Most basic POSIX commands
Re: Most basic POSIX commands
Start with the time functions. IIRC they only need gettimeofday() to be implemented by your kernel. Kernel side is easy and you get a visible result.
If a trainstation is where trains stop, what is a workstation ?
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Re: Most basic POSIX commands
My recommendation would be to build yourself a nice OS Specific Toolchain (on the wiki) to test out compiling programs with your library (if you haven't done so yet). Then try to port binutils. Binutils is easy to cross compile, it doesn't seem to require much past the basic newlib stuff (I don't remember exactly what it requires). And then start writing all the functions that it wants.
-JL
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io