change directory:chdir
,fchdir
- change permissions:
chmod
,fchmod
,fchmodat
- change ownership:
chown
,fchown
,lchown
,fchownat
duplicate file descriptors:dup
,dup2
,dup3
- create file descriptor for even notifications:
eventfd
,eventfd2
, the latter is used by GHC RTS - FS synchronization:
fdatasync
,fsync
,sync
,syncfs
- could be useful for checking if writes done by a program are durable truncate file:truncate
,ftruncate
create directory:mkdir
,mkdirat
remove directory:rmdir
reposition file offset:lseek
get current working directory:getcwd
- open an epoll file descriptor:
epoll_create
,epoll_create1
, used by GHC RTS, makes sense to implement withepoll_wait
/epoll_ctl
- getting/setting user/group ids:
,getuid
setuid
,,getgid
setgid
getting effective user/group ids:geteuid
,getegid
- directory entries:
getdents
,getdents64
- locking:
futex
, used by GHC RTS
- help Stefan with his
connect
PR so some other syscalls could reuse some data types
- resource usage:
getrusage
, used by GHC RTS
- control interface for an epoll file descriptor:
epoll_ctl
, used by GHC RTS, see alsoepoll_create
andepoll_wait
- wait for an I/O event on an epoll file descriptor:
epoll_wait
/epoll_pwait
, used by GHC RTS, see alsoepoll_create
andepoll_ctl
- execute BPF program:
bpf