diff options
| author | schwarze <> | 2017-09-05 03:16:14 +0000 |
|---|---|---|
| committer | schwarze <> | 2017-09-05 03:16:14 +0000 |
| commit | ee3d993af12eabdf8fd0c5434438a911a4285f8b (patch) | |
| tree | d7f851bfa426cf869a3a3aec05ffba386b6f2ce5 /src/lib/libc/string/strxfrm_l.c | |
| parent | 03cdb5baba30326ba37cf707fc3767747ee4173e (diff) | |
| download | openbsd-ee3d993af12eabdf8fd0c5434438a911a4285f8b.tar.gz openbsd-ee3d993af12eabdf8fd0c5434438a911a4285f8b.tar.bz2 openbsd-ee3d993af12eabdf8fd0c5434438a911a4285f8b.zip | |
New POSIX xlocale implementation written from scratch.libressl-v2.6.1
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.
Diffstat (limited to 'src/lib/libc/string/strxfrm_l.c')
| -rw-r--r-- | src/lib/libc/string/strxfrm_l.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/libc/string/strxfrm_l.c b/src/lib/libc/string/strxfrm_l.c new file mode 100644 index 0000000000..ff77947953 --- /dev/null +++ b/src/lib/libc/string/strxfrm_l.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | /* $OpenBSD: strxfrm_l.c,v 1.1 2017/09/05 03:16:14 schwarze Exp $ */ | ||
| 2 | /* | ||
| 3 | * Written in 2017 by Ingo Schwarze <schwarze@openbsd.org>. | ||
| 4 | * Released into the public domain. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <string.h> | ||
| 8 | |||
| 9 | size_t | ||
| 10 | strxfrm_l(char *dst, const char *src, size_t n, | ||
| 11 | locale_t locale __attribute__((__unused__))) | ||
| 12 | { | ||
| 13 | return strxfrm(dst, src, n); | ||
| 14 | } | ||
