Up to [local] / src / lib / libc / string
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.19 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:25 2019 UTC (6 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_8_BASE,
OPENBSD_7_8,
OPENBSD_7_7_BASE,
OPENBSD_7_7,
OPENBSD_7_6_BASE,
OPENBSD_7_6,
OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
HEAD
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
I am retiring my old email address; replace it with my OpenBSD one.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 16 17:37:39 2016 UTC (9 years, 2 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.17: +2 -8 lines
Diff to previous 1.17 (colored)
Roll back uintptr_t cast changes after discussions with tedu, otto and others. C11 6.5.6.9 says: When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object; the result is the difference of the subscripts of the two array elements. In these cases the objects are arrays of char so the result is defined, and we believe that the report is based on a compiler incorrectly trapping on defined behaviour.
Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 14 18:19:04 2016 UTC (9 years, 2 months ago) by dtucker
Branch: MAIN
Changes since 1.16: +9 -3 lines
Diff to previous 1.16 (colored)
Cast pointers to uintptr_t to avoid potential signedness errors. Based on patch from yuanjie.huang at windriver.com via OpenSSH bz#2608, with & ok millert, ok deraadt.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Aug 31 02:53:57 2015 UTC (10 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 2 21:41:08 2015 UTC (10 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
Update comment to match code; Caspar Schutijser
Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 15 03:54:12 2015 UTC (10 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.13: +24 -24 lines
Diff to previous 1.13 (colored)
Make strlcpy/strlcat slightly easier to read.
Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 8 08:05:37 2005 UTC (20 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.12: +1 -5 lines
Diff to previous 1.12 (colored)
zap remaining rcsid. Kill old files that are no longer compiled. okay theo
Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 30 20:13:52 2005 UTC (20 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)
ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 17 21:56:24 2003 UTC (22 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.10: +9 -9 lines
Diff to previous 1.10 (colored)
Sync with share/misc/license.template and add missing DARPA credit where applicable.
Revision 1.10 / (download) - annotate - [select for diffs], Sat Apr 12 21:56:39 2003 UTC (22 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.9: +12 -23 lines
Diff to previous 1.9 (colored)
Change copyright to a less restrictive ISC-style license to encourage people to bundle this code.
Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 14 14:35:29 2003 UTC (22 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.8: +3 -6 lines
Diff to previous 1.8 (colored)
ANSI function headers
Revision 1.8 / (download) - annotate - [select for diffs], Sun May 13 15:40:15 2001 UTC (24 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)
type of function on seperate line
Revision 1.7 / (download) - annotate - [select for diffs], Mon May 7 15:42:46 2001 UTC (24 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)
Back out last change, it is intended behavior and update the block comment to reflect this fact. Too early in the morning for me I guess.
Revision 1.6 / (download) - annotate - [select for diffs], Mon May 7 15:18:30 2001 UTC (24 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)
strlcat() should return strlen(dst) + strlen(src) when size parameter
<= strlen(dst). Bug report by [email protected] via the
GNOME folks.
Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 13 16:17:24 2001 UTC (24 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
Sync function comment with man page; [email protected]
Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 12 22:55:23 2001 UTC (24 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)
Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'
not get a SEGV; Richard Kettlewell <[email protected]>
Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 24 11:10:02 2000 UTC (25 years ago) by itojun
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)
comment fix; strlcat returns strlen(initial dst) + strlen(src).
Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 17 16:28:58 1999 UTC (26 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)
When finding the end of dst, never traverse more than siz bytes. This
keeps us from misbehaving if the user gives us a src string that is not
NUL-terminated. This is one of those "should not happen" cases but it
is good to play it safe. Pointed out by Casper Dik <[email protected]>
Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 1 01:29:45 1998 UTC (27 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4
add strlcpy/strlcat, safe and sensible string copy/append