Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 8 Sep 2012 17:02:35 +0100
From: Justin Cormack <justin@...cialbusservice.com>
To: musl@...ts.openwall.com
Subject: Re: capset() capget() syscalls

On Fri, Sep 7, 2012 at 5:56 AM, Rich Felker <dalias@...ifal.cx> wrote:
> On Thu, Sep 06, 2012 at 09:22:58AM +0100, Justin Cormack wrote:
>> For reference (this list is not complete), Musl is missing the
>
> Would you be willing to complete this list and submit a patch to add
> all the missing syscalls?
>

OK stage 1, I have gone through all the syscalls (on x64) to work out
what is missing. As people have been going and adding them there are
now not that many that should definitely be in.

missing and should definitely be in:
accept4
acct
dup3
ppoll
preadv
pwritev
recvmmsg
setdomainname
setns
syncfs

missing but fairly specialist (or not useful), not sure if some should
be exposed, not all in glibc (some are very new):
create_module
exit_group
futex
get_kernel_syms
clock_adjtime
get_thread_area
io_cancel, io_destroy, io_getevents, io_setup, io_submit (ie native
Linux aio not posix aio)
kexec_load
lookup_dcookie
migrate_pages
mincore
modify_ldt
mqgetsetattr (used internally to provide mq interfaces)
name_to_handle_at
nfsservctl
open_by_handle_at
perf_event_open
getcpu
personality
process_vm_readv
process_vm_writev
query_module
quotactl
remap_file_pages
sched_setaffinity, sched_getaffinity (note glibc uses different
interface to syscalls)
sendmmsg (probably should be in but no man page on my box)
set_robust_list
set_thread_area
set_tid_address
sigaltstack
restart_syscall
tgkill

obsolete or unimplemented in Linux
_sysctl
epoll_ctl_old
epoll_wait_old
eventfd2 (I think this is just the normal call)
fanotify_init
fanotify_mark
futimesat
getpmsg
getrlimit
putpmsg
security
setrlimit
sysfs
tkill
tuxcall
uselib
ustat
vserver

unknown (eg no man page on my box, probably obsolete or should not be
exported, but check)
afs_syscall
arch_prctl
get_robust_list

syscall differs in prototype etc (probably missing some of these):
clone

only exposed as weak alias:
getdents
vfork

These are in libkeyutils even though they are syscalls:
add_key
request_key
keyctl

These are in libnuma, even though they are syscalls
move_pages
mbind
get_mempolicy
set_mempolicy

naming differences (including 64), ignore this list:
fadvise64 is posix_fadvise
fstat
fstatat, newfstatat
lstat
signalfd4
syslog is klogctl

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.