From 3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 11 Jul 2026 22:48:30 +0800 Subject: lib: establish Zircon libc++ and KTL foundation --- lib/libc/include-after/ctype.h | 33 +++++++++++++++++++++++++++++++++ lib/libc/include-after/limits.h | 7 +++++++ 2 files changed, 40 insertions(+) create mode 100644 lib/libc/include-after/ctype.h create mode 100644 lib/libc/include-after/limits.h (limited to 'lib/libc/include-after') diff --git a/lib/libc/include-after/ctype.h b/lib/libc/include-after/ctype.h new file mode 100644 index 0000000..ff2fcfe --- /dev/null +++ b/lib/libc/include-after/ctype.h @@ -0,0 +1,33 @@ +// Copyright 2016 The Fuchsia Authors +// Copyright (c) 2008 Travis Geiselbrecht +// +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT + +#ifndef ZIRCON_KERNEL_LIB_LIBC_INCLUDE_CTYPE_H_ +#define ZIRCON_KERNEL_LIB_LIBC_INCLUDE_CTYPE_H_ + +#include + +__BEGIN_CDECLS + +int isalnum(int c); +int isalpha(int c); +int isblank(int c); +int iscntrl(int c); +int isdigit(int c); +int isgraph(int c); +int islower(int c); +int isprint(int c); +int ispunct(int c); +int isspace(int c); +int isupper(int c); +int isxdigit(int c); + +int tolower(int c); +int toupper(int c); + +__END_CDECLS + +#endif // ZIRCON_KERNEL_LIB_LIBC_INCLUDE_CTYPE_H_ diff --git a/lib/libc/include-after/limits.h b/lib/libc/include-after/limits.h new file mode 100644 index 0000000..f946def --- /dev/null +++ b/lib/libc/include-after/limits.h @@ -0,0 +1,7 @@ +// Copyright 2020 The Fuchsia Authors +// +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT + +// Empty file for toolchain's #include_next to find. -- cgit v1.2.3