diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-05-10 19:55:46 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-05-11 17:28:45 +1200 |
| commit | 8f33ee075a8fba021449ee4cbdfa7ced1bb21cc1 (patch) | |
| tree | e5acfd9d886728cd8a4e7b09ec53ad7c6b6d9639 /man2 | |
| parent | 05214ec7bab04737608067c4267448782b6e71db (diff) | |
| download | man-pages-8f33ee075a8fba021449ee4cbdfa7ced1bb21cc1.tar.gz | |
readdir.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>
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/readdir.2 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/man2/readdir.2 b/man2/readdir.2 index f4bd5bdf79..fde142413f 100644 --- a/man2/readdir.2 +++ b/man2/readdir.2 @@ -32,13 +32,17 @@ readdir \- read directory entry .SH SYNOPSIS .nf +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> .PP -.BI "int readdir(unsigned int " fd ", struct old_linux_dirent *" dirp "," -.BI " unsigned int " count ); +.BI "int syscall(SYS_readdir, unsigned int " fd , +.BI " struct old_linux_dirent *" dirp ", unsigned int " count ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +There is no definition of +.BR "struct old_linux_dirent" ; +see NOTES. .SH DESCRIPTION This is not the function you are interested in. Look at @@ -116,8 +120,6 @@ File descriptor does not refer to a directory. .SH CONFORMING TO This system call is Linux-specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). You will need to define the .I old_linux_dirent structure yourself. |
