Most basic POSIX commands

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
justin
Member
Member
Posts: 43
Joined: Sun Jan 11, 2009 2:09 pm

Most basic POSIX commands

Post by justin »

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.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Most basic POSIX commands

Post by gerryg400 »

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 ?
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Most basic POSIX commands

Post by piranha »

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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Post Reply