Skip to content

Commit 6e5e3ab

Browse files
committed
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.
1 parent e317fad commit 6e5e3ab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased] - ReleaseDate
77
### Added
8+
- Add `CLK_TCK` to `SysconfVar`
9+
(#[1177](https://github.com/nix-rust/nix/pull/1177))
810
### Changed
911
### Fixed
1012
### Removed

src/unistd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,8 @@ pub enum SysconfVar {
19941994
BC_STRING_MAX = libc::_SC_BC_STRING_MAX,
19951995
/// Maximum number of simultaneous processes per real user ID.
19961996
CHILD_MAX = libc::_SC_CHILD_MAX,
1997-
// _SC_CLK_TCK is obsolete
1997+
// The number of clock ticks per second.
1998+
CLK_TCK = libc::_SC_CLK_TCK,
19981999
/// Maximum number of weights that can be assigned to an entry of the
19992000
/// LC_COLLATE order keyword in the locale definition file
20002001
COLL_WEIGHTS_MAX = libc::_SC_COLL_WEIGHTS_MAX,

0 commit comments

Comments
 (0)