summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2020-01-11 11:16:38 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2020-01-12 10:05:19 -0800
commit6e5e3abab1b86f0b516e39a5a1bf9e852603d311 (patch)
treef31c34f06b9b4ebff5f8fa4d8376f0dc00bba349 /src/unistd.rs
parente317fad7a4aaedbce1d3c16bbea8c04a1f09ff69 (diff)
downloadnix-6e5e3abab1b86f0b516e39a5a1bf9e852603d311.zip
Add CLK_TCK to SysconfVar
http://man7.org/linux/man-pages/man3/sysconf.3.html says that the corresponding variable is obsolete, but I think that just means the constant defined in limits.h is obsolete. Checking the value using sysconf is still valid.
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index b7fe567b..2dd5064b 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -1994,7 +1994,8 @@ pub enum SysconfVar {
BC_STRING_MAX = libc::_SC_BC_STRING_MAX,
/// Maximum number of simultaneous processes per real user ID.
CHILD_MAX = libc::_SC_CHILD_MAX,
- // _SC_CLK_TCK is obsolete
+ // The number of clock ticks per second.
+ CLK_TCK = libc::_SC_CLK_TCK,
/// Maximum number of weights that can be assigned to an entry of the
/// LC_COLLATE order keyword in the locale definition file
COLL_WEIGHTS_MAX = libc::_SC_COLL_WEIGHTS_MAX,