Skip to content

Commit 97adb0e

Browse files
devnexentgross35
authored andcommitted
adding pid_type enum values for Linux.
[ref](https://github.com/torvalds/linux/blob/7cdabafc001202de9984f22c973305f424e0a8b7/include/linux/pid_types.h#L5) (cherry picked from commit e79c8d9) (backport <#4403>)
1 parent 1059240 commit 97adb0e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 6 additions & 0 deletions
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
@@ -4038,6 +4043,7 @@ packet_mreq
40384043
pause
40394044
personality
40404045
pgn_t
4046+
pid_type
40414047
pipe2
40424048
popen
40434049
posix_fadvise

src/unix/linux_like/linux/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ e! {
9393
}
9494
}
9595

96+
c_enum! {
97+
pid_type {
98+
PIDTYPE_PID,
99+
PIDTYPE_TGID,
100+
PIDTYPE_PGID,
101+
PIDTYPE_SID,
102+
PIDTYPE_MAX,
103+
}
104+
}
105+
96106
s! {
97107
pub struct glob_t {
98108
pub gl_pathc: size_t,

0 commit comments

Comments
 (0)