mirror of https://github.com/mkerrisk/man-pages
llseek.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
f1d0eaf52b
commit
aecad91d0b
|
@ -31,15 +31,19 @@
|
||||||
_llseek \- reposition read/write file offset
|
_llseek \- reposition read/write file offset
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
|
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int _llseek(unsigned int " fd ", unsigned long " offset_high ,
|
.BI "int syscall(SYS__llseek, unsigned int " fd ", unsigned long " offset_high ,
|
||||||
.BI " unsigned long " offset_low ", loff_t *" result ,
|
.BI " unsigned long " offset_low ", loff_t *" result ,
|
||||||
.BI " unsigned int " whence );
|
.BI " unsigned int " whence );
|
||||||
.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 _llseek (),
|
||||||
|
necessitating the use of
|
||||||
|
.BR syscall (2).
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Note: for information about the
|
Note: for information about the
|
||||||
.BR llseek (3)
|
.BR llseek (3)
|
||||||
|
@ -97,10 +101,7 @@ is invalid.
|
||||||
This function is Linux-specific, and should not be used in programs
|
This function is Linux-specific, and should not be used in programs
|
||||||
intended to be portable.
|
intended to be portable.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Glibc does not provide a wrapper for this system call.
|
You probably want to use the
|
||||||
To invoke it directly, use
|
|
||||||
.BR syscall (2).
|
|
||||||
However, you probably want to use the
|
|
||||||
.BR lseek (2)
|
.BR lseek (2)
|
||||||
wrapper function instead.
|
wrapper function instead.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
|
Loading…
Reference in New Issue