diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/Makefile.inc | 6 | ||||
-rw-r--r-- | lib/libc/locale/wcstoimax.c | 19 | ||||
-rw-r--r-- | lib/libc/locale/wcstoumax.c | 18 |
3 files changed, 40 insertions, 3 deletions
diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc index 2df2495699e..7436049c410 100644 --- a/lib/libc/locale/Makefile.inc +++ b/lib/libc/locale/Makefile.inc @@ -1,12 +1,12 @@ -# $OpenBSD: Makefile.inc,v 1.11 2008/12/20 23:08:08 kettenis Exp $ +# $OpenBSD: Makefile.inc,v 1.12 2009/01/13 18:13:51 kettenis Exp $ # locale sources .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/locale ${LIBCSRCDIR}/locale SRCS+= _def_messages.c _def_monetary.c _def_numeric.c _def_time.c \ localeconv.c nl_langinfo.c setlocale.c iswctype.c mbrtowc_sb.c \ - multibyte_sb.c \ - __mb_cur_max.c wcstod.c wcstol.c wcstoul.c wcstoll.c wcstoull.c \ + multibyte_sb.c __mb_cur_max.c wcstod.c \ + wcstol.c wcstoul.c wcstoll.c wcstoull.c wcstoimax.c wcstoumax.c \ setrunelocale.c runeglue.c rune.c runetable.c ___runetype_mb.c \ _wctrans.c diff --git a/lib/libc/locale/wcstoimax.c b/lib/libc/locale/wcstoimax.c new file mode 100644 index 00000000000..d46a7c7c41a --- /dev/null +++ b/lib/libc/locale/wcstoimax.c @@ -0,0 +1,19 @@ +/* $OpenBSD: wcstoimax.c,v 1.1 2009/01/13 18:13:51 kettenis Exp $ */ +/* $NetBSD: wcstol.c,v 1.2 2003/03/11 09:21:23 tshiozak Exp $ */ + +#include <ctype.h> +#include <errno.h> +#include <inttypes.h> +#include <stdint.h> +#include <stdlib.h> +#include <wchar.h> +#include <wctype.h> + +#include "wctoint.h" + +#define FUNCNAME wcstoimax +typedef intmax_t int_type; +#define MIN_VALUE INTMAX_MIN +#define MAX_VALUE INTMAX_MAX + +#include "_wcstol.h" diff --git a/lib/libc/locale/wcstoumax.c b/lib/libc/locale/wcstoumax.c new file mode 100644 index 00000000000..ccd471340ea --- /dev/null +++ b/lib/libc/locale/wcstoumax.c @@ -0,0 +1,18 @@ +/* $OpenBSD: wcstoumax.c,v 1.1 2009/01/13 18:13:51 kettenis Exp $ */ +/* $NetBSD: wcstoul.c,v 1.2 2003/03/11 09:21:24 tshiozak Exp $ */ + +#include <ctype.h> +#include <errno.h> +#include <inttypes.h> +#include <stdint.h> +#include <stdlib.h> +#include <wchar.h> +#include <wctype.h> + +#include "wctoint.h" + +#define FUNCNAME wcstoumax +typedef uintmax_t uint_type; +#define MAX_VALUE UINTMAX_MAX + +#include "_wcstoul.h" |