mirror of https://github.com/mkerrisk/man-pages
spu_create.2: Use syscall(SYS_...), for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
bf3ed1d4f6
commit
7b7831c24f
|
@ -27,15 +27,20 @@
|
||||||
spu_create \- create a new spu context
|
spu_create \- create a new spu context
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.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
|
.PP
|
||||||
.BI "int spu_create(const char *" pathname ", unsigned int " flags \
|
.BI "int syscall(SYS_spu_create, const char *" pathname \
|
||||||
", mode_t " mode ,
|
", unsigned int " flags ,
|
||||||
.BI " int " neighbor_fd ");"
|
.BI " mode_t " mode ", int " neighbor_fd );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.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
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.BR spu_create ()
|
.BR spu_create ()
|
||||||
|
@ -259,9 +264,6 @@ This call is Linux-specific and implemented only on the PowerPC
|
||||||
architecture.
|
architecture.
|
||||||
Programs using this system call are not portable.
|
Programs using this system call are not portable.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2).
|
|
||||||
Note however, that
|
|
||||||
.BR spu_create ()
|
.BR spu_create ()
|
||||||
is meant to be used from libraries that implement a more abstract
|
is meant to be used from libraries that implement a more abstract
|
||||||
interface to SPUs, not to be used from regular applications.
|
interface to SPUs, not to be used from regular applications.
|
||||||
|
|
Loading…
Reference in New Issue