rename bits_time to bits_timespec for consistency

This commit is contained in:
auronandace
2026-04-09 10:50:04 +01:00
parent 6530de76b9
commit 49f96a96e6
36 changed files with 40 additions and 38 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/aio.h.html>.
use crate::{
header::{bits_time::timespec, signal::sigevent},
header::{bits_timespec::timespec, signal::sigevent},
platform::types::{c_int, c_void},
};
+1 -1
View File
@@ -11,7 +11,7 @@ pub mod bits_locale_t;
pub mod bits_pthread;
#[path = "bits_socklen-t/mod.rs"]
pub mod bits_socklen_t;
pub mod bits_time;
pub mod bits_timespec;
// complex.h implemented in C
// cpio.h implemented in C
pub mod crypt;
+1 -1
View File
@@ -12,7 +12,7 @@ use crate::{
use crate::header::{
bits_arpainet::htons,
bits_socklen_t::socklen_t,
bits_time::timespec,
bits_timespec::timespec,
errno::*,
netinet_in::{IPPROTO_UDP, in_addr, sockaddr_in},
sys_socket::{
+1 -1
View File
@@ -1,7 +1,7 @@
sys_includes = ["signal.h"]
include_guard = "_RELIBC_POLL_H"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
"""
language = "C"
style = "Tag"
+1 -1
View File
@@ -7,7 +7,7 @@ use core::{mem, ptr, slice};
use crate::{
fs::File,
header::{
bits_time::timespec,
bits_timespec::timespec,
errno::EBADF,
signal::sigset_t,
sys_epoll::{
+1 -1
View File
@@ -7,7 +7,7 @@ use core::{cell::Cell, ptr::NonNull};
use crate::{
error::Errno,
header::{bits_time::timespec, sched::*},
header::{bits_timespec::timespec, sched::*},
platform::{
Pal, Sys,
types::{
+1 -1
View File
@@ -8,7 +8,7 @@
sys_includes = ["sys/types.h"]
include_guard = "_RELIBC_SCHED_H"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
"""
language = "C"
style = "Tag"
+1 -1
View File
@@ -4,7 +4,7 @@
use crate::{
error::ResultExt,
header::bits_time::timespec,
header::bits_timespec::timespec,
platform::{
Pal, Sys,
types::{c_int, pid_t},
+1 -1
View File
@@ -1,7 +1,7 @@
sys_includes = []
include_guard = "_RELIBC_SEMAPHORE_H"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
"""
language = "C"
style = "Type"
+1 -1
View File
@@ -4,7 +4,7 @@
use crate::{
header::{
bits_time::timespec,
bits_timespec::timespec,
time::{CLOCK_MONOTONIC, CLOCK_REALTIME},
},
platform::types::{c_char, c_int, c_long, c_uint, clockid_t},
+1 -1
View File
@@ -1,7 +1,7 @@
sys_includes = ["bits/signal.h", "stdint.h", "sys/types.h", "bits/pthread.h", "features.h"]
include_guard = "_RELIBC_SIGNAL_H"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
#include <bits/signal.h>
"""
language = "C"
+1 -1
View File
@@ -8,7 +8,7 @@ use cbitset::BitSet;
use crate::{
error::{Errno, ResultExt},
header::{bits_time::timespec, errno, setjmp},
header::{bits_timespec::timespec, errno, setjmp},
platform::{
self, ERRNO, Pal, PalSignal, Sys,
types::{
+1 -1
View File
@@ -7,7 +7,7 @@
sys_includes = ["sys/types.h"]
include_guard = "_SYS_STAT_H"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
+1 -1
View File
@@ -6,7 +6,7 @@ use crate::{
c_str::CStr,
error::ResultExt,
header::{
bits_time::timespec,
bits_timespec::timespec,
fcntl::{O_NOFOLLOW, O_PATH},
},
out::Out,
+1 -1
View File
@@ -3,7 +3,7 @@ sys_includes = ["sys/types.h", "sys/select.h"]
include_guard = "_SYS_TIME_H"
language = "C"
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
#define timeradd(x,y,res) (void) (\
(res)->tv_sec = (x)->tv_sec + (y)->tv_sec + (((x)->tv_usec + (y)->tv_usec) / 1000000), \
+1 -1
View File
@@ -9,7 +9,7 @@
use crate::{
c_str::CStr,
error::ResultExt,
header::{bits_time::timespec, sys_select::timeval},
header::{bits_timespec::timespec, sys_select::timeval},
out::Out,
platform::{
Pal, PalSignal, Sys,
+1 -1
View File
@@ -5,7 +5,7 @@ style = "Tag"
no_includes = true
cpp_compat = true
after_includes = """
#include <bits/time.h> // for timespec
#include <bits/timespec.h> // for timespec
struct sigevent;
"""
+1 -1
View File
@@ -6,7 +6,7 @@ use crate::{
c_str::{CStr, CString},
error::{Errno, ResultExt},
header::{
bits_time::timespec,
bits_timespec::timespec,
errno::{EFAULT, ENOMEM, EOVERFLOW, ETIMEDOUT},
signal::sigevent,
stdlib::getenv,
+1 -1
View File
@@ -13,7 +13,7 @@ use crate::{
c_str::CStr,
error::{Errno, ResultExt},
header::{
bits_time::timespec,
bits_timespec::timespec,
crypt::{crypt_data, crypt_r},
errno::{self, ENAMETOOLONG},
fcntl, limits,
+1 -1
View File
@@ -8,7 +8,7 @@
use crate::{
c_str::CStr,
error::ResultExt,
header::bits_time::timespec,
header::bits_timespec::timespec,
platform::{
Pal, Sys,
types::{c_char, c_int, time_t},