dthain / basekernel

A simple OS kernel for research, teaching, and fun.
GNU General Public License v2.0
806 stars 110 forks source link

Clean Up System Call Interface #151

Closed dthain closed 5 years ago

dthain commented 6 years ago

Rework the system call interface to more elegantly handle the notion of hierarchical containment. The guiding principles should be:

For example, instead of these Unix-like calls:

fd = open(path,mode)
success = mkdir(path)

We should have these parent-relative calls:

fd = opendir( parent, name ) 
fd = mkdir( parent, name )

Before coding, spend some time to carefully design the system call interface, propose the change, and get some feedback from the rest of the team.