Re: memcpy.2: missing restrict keyword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Heinrich,

I agree.  That's on my todo list.

I'm first fixing the prototypes for syscalls, which have significant
deviations, then I'll have a look at glibc wrappers, and then I'll fix
glibc library calls.

Thanks,

Alex

On 12/27/20 9:01 PM, Heinrich Schuchardt wrote:
> Hello Michael,
> 
> Since C99 the memcpy is defined as
> 
> void *memcpy(void* restrict dst, const void* restrict src, size_t n);
> 
> Shouldn't the restrict keyword be shown in the prototype on the man-page?
> 
> Other concerned functions include:
> 
> memccpy(), strcat(), strncat, strcpy(), strncpy(), strxfrm(), strtok(),
> strtok_r(), printf()-family, fcvt_r(), strtoimax()-family,
> getmntent_r(), ...
> 
> Just grep for restrict in the standard includes.
> 
> Best regards
> 
> Heinrich

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux