Merge branch 'utmp-wctype-cleanup' into 'master'

utmp and wctype header cleanup

See merge request redox-os/relibc!866
This commit is contained in:
Jeremy Soller
2026-01-06 06:24:37 -07:00
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
use crate::{
header::{sys_ioctl, unistd},
platform::types::*,
platform::types::{c_int, c_void},
};
/// See <https://www.man7.org/linux/man-pages/man3/openpty.3.html>.
+1 -1
View File
@@ -2,7 +2,7 @@
// Licensed under the MIT license
// Copyright 2005-2020 Rich Felker, et al.
use crate::platform::types::*;
use crate::platform::types::c_uchar;
pub fn is(wc: usize) -> c_uchar {
if wc < 0x20000 {
+1 -1
View File
@@ -2,7 +2,7 @@
// Licensed under the MIT license
// Copyright 2005-2020 Rich Felker, et al.
use crate::platform::types::*;
use crate::platform::types::{c_int, c_uchar, c_uint, wint_t};
const tab: [c_uchar; 2666] = [
7, 8, 9, 10, 11, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 13, 6, 6, 14, 6, 6, 6, 6, 6, 6, 6, 6, 15,
+5 -1
View File
@@ -8,7 +8,11 @@
// TODO: *_l functions
use self::casecmp::casemap;
use crate::{c_str::CStr, header::ctype, platform::types::*};
use crate::{
c_str::CStr,
header::ctype,
platform::types::{c_char, c_int, wint_t},
};
mod alpha;
mod casecmp;
+1 -1
View File
@@ -2,7 +2,7 @@
// Licensed under the MIT license
// Copyright 2005-2020 Rich Felker, et al.
use crate::platform::types::*;
use crate::platform::types::c_uchar;
pub fn is(wc: usize) -> c_uchar {
if wc < 0x20000 {