Re: [PATCH] replace bcopy,bzero,index and rindex

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

 



On Monday 17 August 2009 06:52:24 Karel Zak wrote:
> On Mon, Aug 17, 2009 at 07:27:39AM +0200, Daniel Mierswa wrote:
> > Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in
> > POSIX.1-2008.
> >
> > Replaced with memmove,memset,strchr and strrchr.
>
>  Applied, but I think that always replace bcopy() with memmove() is
>  overkill and memcpy() should be good enough in many cases.

only difference should be when things are overlapping ...

>  It would be nice to have a semantic patch for this change
>  (for more details see Val's http://lwn.net/Articles/315686/).

nice to have a git commit filter and/or test case to reject usage of these 
functions
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [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