mirror of https://github.com/mkerrisk/man-pages
cacheflush.2: Update SYNOPSIS for glibc wrapper
Glibc uses 'void *' instead of 'char *'. And the prototype is declared in <sys/cachectl.h>. ...... $ syscall='cacheflush'; $ ret='int'; $ find glibc/ -type f -name '*.h' \ |xargs pcregrep -Mn "(?s)^[\w\s]*${ret}\s*${syscall}\s*\(.*?;"; glibc/sysdeps/unix/sysv/linux/nios2/sys/cachectl.h:27: extern int cacheflush (void *__addr, const int __nbytes, const int __op) __THROW; glibc/sysdeps/unix/sysv/linux/mips/sys/cachectl.h:35: extern int cacheflush (void *__addr, const int __nbytes, const int __op) __THROW; glibc/sysdeps/unix/sysv/linux/arc/sys/cachectl.h:30: extern int cacheflush (void *__addr, int __nbytes, int __op) __THROW; glibc/sysdeps/unix/sysv/linux/csky/sys/cachectl.h:30: extern int cacheflush (void *__addr, const int __nbytes, const int __op) __THROW; Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f199762139
commit
d75c2ffe21
|
@ -27,9 +27,9 @@
|
|||
cacheflush \- flush contents of instruction and/or data cache
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <asm/cachectl.h>
|
||||
.B #inlcude <sys/cachectl.h>
|
||||
.PP
|
||||
.BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
|
||||
.BI "int cacheflush(void *" addr ", int "nbytes ", int "cache );
|
||||
.fi
|
||||
.PP
|
||||
.IR Note :
|
||||
|
|
Loading…
Reference in New Issue