Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/spu_create.2 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/man2/spu_create.2 b/man2/spu_create.2 index 6541a6e9a..746a86ed6 100644 --- a/man2/spu_create.2 +++ b/man2/spu_create.2 @@ -27,15 +27,20 @@ spu_create \- create a new spu context .SH SYNOPSIS .nf -.B #include <sys/spu.h> +.BR "#include <sys/spu.h>" " /* Definition of " SPU_* " constants */" +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> .PP -.BI "int spu_create(const char *" pathname ", unsigned int " flags \ -", mode_t " mode , -.BI " int " neighbor_fd ");" +.BI "int syscall(SYS_spu_create, const char *" pathname \ +", unsigned int " flags , +.BI " mode_t " mode ", int " neighbor_fd ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR spu_create (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR spu_create () @@ -259,9 +264,6 @@ This call is Linux-specific and implemented only on the PowerPC architecture. Programs using this system call are not portable. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -Note however, that .BR spu_create () is meant to be used from libraries that implement a more abstract interface to SPUs, not to be used from regular applications. -- 2.32.0