OpenBSD CVS

CVS log for src/include/string.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 5 03:16:13 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: 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, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.31: +12 -1 lines
Diff to previous 1.31 (colored)

New POSIX xlocale implementation written from scratch.
Complete in the sense that all POSIX *locale(3) and *_l(3) functions
are included, but in OpenBSD, we of course only really care about
LC_CTYPE and we only support ASCII and UTF-8.

With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 9 18:12:37 2016 UTC (7 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.30: +2 -11 lines
Diff to previous 1.30 (colored)

Move the 10 (!) defintions of NULL to their own mini header file and
update the NULL definition for C++11.  OK deraadt@ guenther@ kettenis@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Nov 20 23:40:32 2015 UTC (8 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.29: +9 -15 lines
Diff to previous 1.29 (colored)

POSIX says that ffs(), strcasecmp(), strncasecmp(), r?index() and
the b* byte functions belong in strings.h, not string.h so break
them out of string.h into a new strings.h.  As long as there is no
POSIX or X/OPEN define in use string.h will pull in strings.h.
OK naddy@ deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Aug 10 02:49:24 2014 UTC (9 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.28: +1 -4 lines
Diff to previous 1.28 (colored)

Delete duplicate conditional

diff from frantisek holop (minusf (at) obiit.org)

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jun 13 02:12:17 2014 UTC (9 years, 11 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Add timingsafe_memcmp().

ok deraadt, jmc, tedu

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 22 21:06:45 2014 UTC (10 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

add explicit_bzero to libc. implementation subject to change, but start
the ball rolling. ok deraadt.

Revision 1.26 / (download) - annotate - [select for diffs], Mon May 13 10:37:02 2013 UTC (11 years ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Add an implementation of memmem() -- from FreeBSD with some tweaks.
Requires a libc minor bump, committing now so that we have up-to-date
snapshots for the upcoming hackathon.

joint work with millert@
man page bits ok jmc@
input and ok millert@, guenther@, deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 11 03:08:47 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.24: +21 -18 lines
Diff to previous 1.24 (colored)

Add 'restrict' per POSIX, per prodding by tedu@.  (Might permit more warnings?)
Tweak standards exposure of memchr (never) and strdup (POSIX-2008)
Remove unnecessary tests of __BSD_VISIBLE

ok millert@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 25 20:04:18 2012 UTC (12 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.23: +6 -3 lines
Diff to previous 1.23 (colored)

strsignal() was added to POSIX-2008; strerror_r() was in the base
of POSIX-2001, without the XSI qualifier.  Adjust conditionals to match.

ok millert@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 17 02:48:01 2012 UTC (12 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.
Includes friendly linker warning to wake up those dumb enough to use it.

Committing for kettenis@, who ran away to the hills after writing it

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 3 18:51:01 2011 UTC (12 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

As pointed out by Richard Guenther our definition
of NULL was incorrect for c++ compilers that aren't
gcc (or pretend to be gcc like clang).

ok miod@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 6 11:39:42 2011 UTC (13 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses
in the code are fixed.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 24 13:33:00 2010 UTC (13 years, 7 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Add timingsafe_bcmp(3) to libc, mention that it's already in the
kernel in kern(9), and remove it from OpenSSH.

ok deraadt@, djm@

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 18 22:24:55 2010 UTC (14 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.18: +6 -1 lines
Diff to previous 1.18 (colored)

add posix_madvise, posix_memalign, strndup, and strnlen.  mostly from
brad and millert, with hints from guenther, jmc, and otto I think.
ok previous.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:40 2007 UTC (16 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: 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
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

add memrchr(3)

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 6 18:53:04 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: 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
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.15: +18 -10 lines
Diff to previous 1.15 (colored)

First step in include files overhaul.  Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE.  Also fix several namespace
pollution issues, including the byte order defines.  OK deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 30 03:04:16 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

strcasestr(3), a case-insensitive version of strstr(3).  already in netbsd
and freebsd, apparently written by torek, the man we never see anymore;
submitted by jcs, but he is not around right now for the libc major crank
so i sneak it in for him

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jun 20 17:47:07 2004 UTC (19 years, 11 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

add bounds check for src pointer in bcopy(3) as well as dest pointer,
noticed by millert@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 1 17:38:33 2003 UTC (20 years, 9 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.12: +27 -13 lines
Diff to previous 1.12 (colored)

add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 26 19:34:17 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.11: +12 -26 lines
Diff to previous 1.11 (colored)

backout the __bounded__ attributes for a while; requested by deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 26 18:35:13 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.10: +27 -13 lines
Diff to previous 1.10 (colored)

Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 2 19:34:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.9: +2 -6 lines
Diff to previous 1.9 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 21 20:42:39 2002 UTC (21 years, 6 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

add prototype for strerror_r

Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 25 21:55:28 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.6: +39 -39 lines
Diff to previous 1.6 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 17 13:13:46 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored)

Be thorough about NULL as __null for C++.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Nov 20 11:18:26 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
  (more md stuff is needed for other libc/arch/*)
  (setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO

Revision 1.4 / (download) - annotate - [select for diffs], Wed Nov 4 19:35:48 1998 UTC (25 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

protos for strlcat, strlcpy

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 10 02:19:46 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

move proto to unistd.h

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 21 10:45:54 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now.  Added openBSD tags.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:41:14 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.