Skip to content

Commit 913e008

Browse files
committed
Add useconds type
1 parent c5f8852 commit 913e008

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/ystdlib/wrapped_facade_headers/sys/types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <sys/_types/_ssize_t.h>
2424
#include <sys/_types/_caddr_t.h>
2525
#include <sys/_types/_key_t.h>
26+
#include <sys/_types/_useconds_t.h>
27+
#include <sys/_types/_suseconds_t.h>
2628

2729
// For off64_t
2830
#include <sys/dtrace.h>

src/ystdlib/wrapped_facade_headers/test/test_sys_types.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,14 @@ TEST_CASE("test_sys_types_key_t", "[wrapped_facade_headers][sys_types][key_t]")
126126
key_t const i{0};
127127
REQUIRE(0 == i);
128128
}
129+
130+
TEST_CASE("test_sys_types_useconds_t", "[wrapped_facade_headers][sys_types][useconds_t]") {
131+
useconds_t const i{0};
132+
REQUIRE(0 == i);
133+
}
134+
135+
TEST_CASE("test_sys_types_suseconds_t", "[wrapped_facade_headers][sys_types][suseconds_t]") {
136+
suseconds_t const i{0};
137+
REQUIRE(0 == i);
138+
}
129139
} // namespace ystdlib::wrapped_facade_headers::test

0 commit comments

Comments
 (0)