ABI stabilization
ABI stabilization (WIP)
A large part of growing the adoption of a kernel is to stabilize the ABI used. I would like to work on a stable ABI in the next few months, and a 1.0 version of the kernel
and syscall
crate. I am proposing the following for ABI stabilization:
Move most file operations to the fd
- Change
chmod(path, mode)
tofchmod(fd, mode)
-
Addalready addedfchown(fd, owner, group)
dup
less magical
Make - Change
dup(fd, buf)
todup(fd)
- Change
dup2(fd, newfd, buf)
todup2(fd, newfd, buf)
- Add
openat(fd, path, flags)
Use standard methods for memory management
- Use
fmap
to implementphysmap
- Use
funmap
to implementphysunmap
- Use
open
to implementphysalloc
- Use
close
to implementphysfree
- Remove
virttophys
-
Consider using(SYS_BRK has already been removed from the kernel)fmap
to implementbrk
Cleanup other syscalls
- Use
open
andopenat
to implementpipe2
- Implement or remove
link(old, new)