diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-04-14 20:59:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-04-14 20:59:11 +0000 |
commit | 8961b6d2bcfa838422b67f6facb27a1375abcd2f (patch) | |
tree | a44e4a49529af82e0aee3e4d2bab71f6eab9f8aa /lib | |
parent | db99574f1c4b47d92725407923b9f2447a166f03 (diff) |
introduce some wchar functions (from citrus and an itojun@ diff)
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libc/locale/runetype.h | 11 | ||||
-rw-r--r-- | lib/libc/shlib_version | 2 | ||||
-rw-r--r-- | lib/libc/string/Makefile.inc | 29 |
4 files changed, 41 insertions, 5 deletions
diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc index 0784dda22f3..d5b0ae30a2c 100644 --- a/lib/libc/locale/Makefile.inc +++ b/lib/libc/locale/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.4 1998/11/20 11:18:42 d Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2005/04/14 20:59:10 espie Exp $ # locale sources .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/locale ${LIBCSRCDIR}/locale @@ -8,3 +8,5 @@ SRCS+= _def_messages.c _def_monetary.c _def_numeric.c _def_time.c \ MAN+= nl_langinfo.3 setlocale.3 MLINKS+=setlocale.3 localeconv.3 + +CFLAGS+=-I${.CURDIR} diff --git a/lib/libc/locale/runetype.h b/lib/libc/locale/runetype.h new file mode 100644 index 00000000000..f47d6a03129 --- /dev/null +++ b/lib/libc/locale/runetype.h @@ -0,0 +1,11 @@ +/* $OpenBSD: runetype.h,v 1.1 2005/04/14 20:59:10 espie Exp $ */ + +#ifndef _NB_RUNETYPE_H_ +#define _NB_RUNETYPE_H_ + +#include <sys/cdefs.h> +#include <sys/types.h> + +typedef uint32_t __nbrune_t; + +#endif diff --git a/lib/libc/shlib_version b/lib/libc/shlib_version index 02fa089d23f..413ae7a8418 100644 --- a/lib/libc/shlib_version +++ b/lib/libc/shlib_version @@ -1,4 +1,4 @@ major=35 -minor=0 +minor=1 # note: If changes were made to include/thread_private.h or if system # calls were added/changed then libpthread must also be updated. diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc index 81be9cea0ad..40bc016a867 100644 --- a/lib/libc/string/Makefile.inc +++ b/lib/libc/string/Makefile.inc @@ -1,11 +1,15 @@ -# $OpenBSD: Makefile.inc,v 1.14 2005/03/30 03:04:19 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.15 2005/04/14 20:59:10 espie Exp $ # string sources .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string SRCS+= bm.c memccpy.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ strerror.c strerror_r.c strlcat.c strmode.c strsignal.c strtok.c \ - strxfrm.c __strsignal.c + strxfrm.c __strsignal.c \ + wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c \ + wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c \ + wcsstr.c wcstok.c wcswcs.c wmemchr.c wmemcmp.c wmemcpy.c \ + wmemmove.c wmemset.c # machine-dependent net sources # m-d Makefile.inc must include sources for: @@ -138,7 +142,8 @@ MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 memccpy.3 memchr.3 \ memcmp.3 memcpy.3 memmove.3 memset.3 strcasecmp.3 strcat.3 \ strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 \ string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \ - strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3 + strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3 \ + wcstok.3 wmemchr.3 MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3 MLINKS+=strchr.3 index.3 @@ -151,3 +156,21 @@ MLINKS+=strlcpy.3 strlcat.3 MLINKS+=strstr.3 strcasestr.3 MLINKS+=strtok.3 strtok_r.3 MLINKS+=strerror.3 strerror_r.3 +MLINKS+=wmemchr.3 wmemcmp.3 +MLINKS+=wmemchr.3 wmemcpy.3 +MLINKS+=wmemchr.3 wmemmove.3 +MLINKS+=wmemchr.3 wmemset.3 +MLINKS+=wmemchr.3 wcscat.3 +MLINKS+=wmemchr.3 wcschr.3 +MLINKS+=wmemchr.3 wcscmp.3 +MLINKS+=wmemchr.3 wcscpy.3 +MLINKS+=wmemchr.3 wcscspn.3 +MLINKS+=wmemchr.3 wcslcat.3 +MLINKS+=wmemchr.3 wcslcpy.3 +MLINKS+=wmemchr.3 wcsncat.3 +MLINKS+=wmemchr.3 wcsncmp.3 +MLINKS+=wmemchr.3 wcsncpy.3 +MLINKS+=wmemchr.3 wcspbrk.3 +MLINKS+=wmemchr.3 wcspbrk.3 +MLINKS+=wmemchr.3 wcsspn.3 +MLINKS+=wmemchr.3 wcsstr.3 |