diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-04-08 23:55:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-04-30 21:28:12 +0200 |
commit | 552d13168671333e3a93604ead10c79014af73f7 (patch) | |
tree | f8b5e404580ae9433ef06acb99442b9c37526575 /src/unix/linux_like/linux | |
parent | 53f78cdcd4dd306d5d51044ace8031b3f3e00756 (diff) | |
download | rust-libc-552d13168671333e3a93604ead10c79014af73f7.tar.gz |
linux: add GRND_INSECURE constant
This is available on kernels ≥5.6 and was added to glibc in 2.32.
Diffstat (limited to 'src/unix/linux_like/linux')
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 64d293e2c8..aa30bb2bc5 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1781,6 +1781,7 @@ pub const PR_SET_VMA_ANON_NAME: ::c_int = 0; pub const GRND_NONBLOCK: ::c_uint = 0x0001; pub const GRND_RANDOM: ::c_uint = 0x0002; +pub const GRND_INSECURE: ::c_uint = 0x0004; pub const SECCOMP_MODE_DISABLED: ::c_uint = 0; pub const SECCOMP_MODE_STRICT: ::c_uint = 1; |