pfg
4574c7f3fb
Make strlcpy/strlcat slightly easier to read.
...
Bring small upstream updates.
Obtained from: OpenBSD
2015-04-06 03:21:22 +00:00
das
28465baaf0
Add restrict qualifiers to the parameters to strlcpy() and strlcat().
...
The annotation mainly just serves as a hint that they're not intended
for use with overlapping strings.
2009-02-28 05:15:02 +00:00
delphij
4360de0fd4
- License change to a less restrictive one;
...
- ANSIfy;
- Convert do {} while loop -> while {} for clarity;
- Sync RCS ID with OpenBSD;
Obtained from: OpenBSD
2008-10-19 10:11:35 +00:00
maxim
3e4e0ea538
o Make grep ^strlcpy work: put a return value type on separate line.
2006-06-15 15:56:55 +00:00
stefanf
bcc253c058
Remove extra closing parenthesis added in revision 1.4.
...
Noticed by: Andrea Campi
2004-10-14 21:31:42 +00:00
nectar
0b64e1476b
Back out the `hiding' of strlcpy and strlcat. Several people
...
vocally objected to this safety belt.
2003-05-01 19:03:14 +00:00
nectar
e69967f534
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
...
technique) so that we don't wind up calling into an application's
version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
2003-04-29 21:13:50 +00:00
obrien
1196344bb3
Remove 'register' keyword.
2002-03-21 18:49:23 +00:00
obrien
d1bf0c4841
rcsid[]->__FBSDID
2001-11-07 19:55:16 +00:00
obrien
8d900018e7
Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.
...
Do the same for the non-wcs*/wmem* files while I'm here.
2001-05-24 08:47:42 +00:00
imp
bedbde67f9
Use the latest version of these files from OpenBSD.
...
1) Safty change from casper dik was added to OpenBSD's sources since I
grabbed them. milltert@openbsd.org
2) Split up strlcpy to improve efficiency of the common case.
milltert@openbsd.org
3) Cleanup of cross references for man page. {alex,aaron}@openbsd.org
Pointed out by: deraadt@openbsd.org
1999-08-10 05:58:58 +00:00
imp
d27613c67e
Import strl{cat,cpy} from OpenBSD.
...
Obtained from: OpenBSD
1999-08-10 05:21:31 +00:00