* Michael Kerrisk via Libc-alpha: > So, I think I'm okay with the syscall() changes in the SYNOPSIS. > It might just take me a moment to get used to them. However, I do > wonder if it is worth retaining a comment in the SYSNOPSIS, > something like: > > SYNOPSIS > #include <asm/prctl.h> /* Definition of ARCH_* constants */ > #include <sys/syscall.h> /* Definition of SYS_* constants */ > #include <unistd.h> > > int syscall(SYS_arch_prctl, int code, unsigned long addr); > int syscall(SYS_arch_prctl, int code, unsigned long *addr); > > Note: glibc provides no wrapper for arch_prctl(), necessitating > the use of syscall(2). > > Without something like this, the reader may be puzzled at the use of > syscall(). > > What do you think? Would it be possible to use real C syntax? int code; unsigned long addr; int result; result = syscall (SYS_arch_prctl, code, addr); result = syscall (SYS_arch_prctl, code, &addr); Or perhaps omit the result variable: int code; unsigned long addr; syscall (SYS_arch_prctl, code, addr); Thanks, Florian