Skip to content

Commit 72f9d58

Browse files
authored
Merge pull request #4403 from devnexen/prctl_pid_type
adding pid_type enum for Linux.
2 parents e50722e + e79c8d9 commit 72f9d58

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/linux.txt

+6
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,6 +4042,7 @@ packet_mreq
40374042
pause
40384043
personality
40394044
pgn_t
4045+
pid_type
40404046
pipe2
40414047
popen
40424048
posix_fadvise

src/unix/linux_like/linux/mod.rs

+10
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ e! {
9292
}
9393
}
9494

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

0 commit comments

Comments
 (0)