Re: [PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-17 Thread Michael Kerrisk (man-pages)
On 1/17/21 9:43 PM, Alejandro Colomar (man-pages) wrote: > Hi Michael, > > On 1/17/21 9:34 PM, Michael Kerrisk (man-pages) wrote: >> Hi Alex, >> >> On 1/16/21 3:56 PM, Alejandro Colomar wrote: >>> Glibc uses 'void *' instead of 'char *'. >>> And the prototype is declared in . > > D'oh! > >>> >>>

Re: [PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-17 Thread Alejandro Colomar (man-pages)
Hi Michael, On 1/17/21 9:34 PM, Michael Kerrisk (man-pages) wrote: > Hi Alex, > > On 1/16/21 3:56 PM, Alejandro Colomar wrote: >> Glibc uses 'void *' instead of 'char *'. >> And the prototype is declared in . D'oh! >> >> .. >> >> $ syscall='cacheflush'; >> $ ret='int'; >> $ find glibc/ -typ

Re: [PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-17 Thread Michael Kerrisk (man-pages)
Hi Alex, On 1/16/21 3:56 PM, Alejandro Colomar wrote: > Glibc uses 'void *' instead of 'char *'. > And the prototype is declared in . > > .. > > $ syscall='cacheflush'; > $ ret='int'; > $ find glibc/ -type f -name '*.h' \ > |xargs pcregrep -Mn "(?s)^[\w\s]*${ret}\s*${syscall}\s*\(.*?;"; >

[PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-16 Thread Alejandro Colomar
Glibc uses 'void *' instead of 'char *'. And the prototype is declared in . .. $ 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 cacheflus