Skip to content

Commit 2b93449

Browse files
committed
using new c_enum! macro
1 parent 187fbb4 commit 2b93449

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libc-test/semver/linux.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,11 @@ PF_WANPIPE
21712171
PF_WQ_WORKER
21722172
PF_X
21732173
PF_X25
2174+
PIDTYPE_MAX
2175+
PIDTYPE_PGID
2176+
PIDTYPE_PID
2177+
PIDTYPE_SID
2178+
PIDTYPE_TGID
21742179
PIPE_BUF
21752180
PM_STR
21762181
POLLRDBAND
@@ -4037,7 +4042,6 @@ packet_mreq
40374042
pause
40384043
personality
40394044
pgn_t
4040-
pid_type
40414045
pipe2
40424046
popen
40434047
posix_fadvise

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ e! {
9090
TPACKET_V2,
9191
TPACKET_V3,
9292
}
93+
}
9394

94-
pub enum pid_type {
95+
c_enum! {
96+
e {
9597
PIDTYPE_PID,
9698
PIDTYPE_TGID,
9799
PIDTYPE_PGID,

0 commit comments

Comments
 (0)