Re: svn commit: r325765 - head/lib/libc/string

2017-11-16 Thread Mark Millard
On 2017-Nov-15, at 11:15 PM, Bruce Evans wrote: > On Wed, 15 Nov 2017, Mark Millard wrote: > >> Bruce Evans brde at optusnet.com.au wrote on >> Tue Nov 14 12:41:50 UTC 2017 : >> >>> . . . > >> head/sys/arm/arm/support.S ( -r283366 ) has >> >> 394 ENTRY(bcopy) >> 395 /* switch the s

Re: svn commit: r325765 - head/lib/libc/string

2017-11-15 Thread Bruce Evans
On Wed, 15 Nov 2017, Mark Millard wrote: Bruce Evans brde at optusnet.com.au wrote on Tue Nov 14 12:41:50 UTC 2017 : - memcpy.3. It was already documented in the BUGS section that memcpy() is implemented as bcopy() and therefore the "strings" "may overlap" [then portability consideratio

Re: svn commit: r325765 - head/lib/libc/string

2017-11-15 Thread Mark Millard
Bruce Evans brde at optusnet.com.au wrote on Tue Nov 14 12:41:50 UTC 2017 : > - memcpy.3. It was already documented in the BUGS section that memcpy() is >implemented as bcopy() and therefore the "strings" "may overlap" [then >portability considerations due to this]. This is buggier than

Re: svn commit: r325765 - head/lib/libc/string

2017-11-14 Thread Bruce Evans
On Mon, 13 Nov 2017, Warner Losh wrote: Add notes about overlapping copies. Add notes to each of these that specifically state that results are undefined if the strings overlap. In the case of memcpy, we document the overlapping behavior on FreeBSD (pre-existing). For str*, it is left unsp

svn commit: r325765 - head/lib/libc/string

2017-11-13 Thread Warner Losh
Author: imp Date: Mon Nov 13 17:04:44 2017 New Revision: 325765 URL: https://svnweb.freebsd.org/changeset/base/325765 Log: Add notes about overlapping copies. Add notes to each of these that specifically state that results are undefined if the strings overlap. In the case of memcpy, we do