diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
| commit | 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch) | |
| tree | ae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/ctype | |
| parent | fc00c656c96528112d05cf0edf8631bd5eaea446 (diff) | |
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands.
- Updated Kbuild files to include new binaries.
- Removed unused libraries and headers.
- Cleaned up makefile and unused code.
Diffstat (limited to 'lib/libc/ctype')
| -rw-r--r-- | lib/libc/ctype/Kbuild | 14 | ||||
| -rw-r--r-- | lib/libc/ctype/isalnum.c | 2 | ||||
| -rw-r--r-- | lib/libc/ctype/ispunct.c | 2 | ||||
| -rw-r--r-- | lib/libc/ctype/tolower.c | 2 | ||||
| -rw-r--r-- | lib/libc/ctype/toupper.c | 2 |
5 files changed, 18 insertions, 4 deletions
diff --git a/lib/libc/ctype/Kbuild b/lib/libc/ctype/Kbuild new file mode 100644 index 00000000..6022400b --- /dev/null +++ b/lib/libc/ctype/Kbuild @@ -0,0 +1,14 @@ +obj-y += isalnum.o +obj-y += isalpha.o +obj-y += isblank.o +obj-y += iscntrl.o +obj-y += isdigit.o +obj-y += isgraph.o +obj-y += islower.o +obj-y += isprint.o +obj-y += ispunct.o +obj-y += isspace.o +obj-y += isupper.o +obj-y += isxdigit.o +obj-y += tolower.o +obj-y += toupper.o diff --git a/lib/libc/ctype/isalnum.c b/lib/libc/ctype/isalnum.c index 04e94fc6..3384aa56 100644 --- a/lib/libc/ctype/isalnum.c +++ b/lib/libc/ctype/isalnum.c @@ -6,7 +6,7 @@ int isalnum(int c) return isalpha(c) || isdigit(c); } -weak int isalnum_l(int c, locale_t unused locale) +__weak int isalnum_l(int c, locale_t __unused locale) { return isalnum(c); } diff --git a/lib/libc/ctype/ispunct.c b/lib/libc/ctype/ispunct.c index 2bd08c38..24627809 100644 --- a/lib/libc/ctype/ispunct.c +++ b/lib/libc/ctype/ispunct.c @@ -6,7 +6,7 @@ int ispunct(int c) return isgraph(c) && !isalnum(c); } -weak int ispunct_l(int c, locale_t locale) +__weak int ispunct_l(int c, locale_t __unused locale) { return ispunct(c); } diff --git a/lib/libc/ctype/tolower.c b/lib/libc/ctype/tolower.c index abeab42a..aeb462d8 100644 --- a/lib/libc/ctype/tolower.c +++ b/lib/libc/ctype/tolower.c @@ -8,7 +8,7 @@ int tolower(int c) return c; } -weak int tolower_l(int c, locale_t unused locale) +__weak int tolower_l(int c, locale_t __unused locale) { return tolower(c); } diff --git a/lib/libc/ctype/toupper.c b/lib/libc/ctype/toupper.c index e952acd9..934841fa 100644 --- a/lib/libc/ctype/toupper.c +++ b/lib/libc/ctype/toupper.c @@ -8,7 +8,7 @@ int toupper(int c) return c; } -int toupper_l(int c, locale_t unused locale) +int toupper_l(int c, locale_t __unused locale) { return toupper(c); } |
