@@ -45,7 +45,7 @@ pub use self::setres::*;
45
45
pub use self :: getres:: * ;
46
46
47
47
feature ! {
48
- #![ feature = "users " ]
48
+ #![ feature = "user " ]
49
49
50
50
/// User identifier
51
51
///
@@ -591,7 +591,7 @@ pub fn symlinkat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(
591
591
592
592
// Double the buffer capacity up to limit. In case it already has
593
593
// reached the limit, return Errno::ERANGE.
594
- #[ cfg( any( feature = "fs" , feature = "users " ) ) ]
594
+ #[ cfg( any( feature = "fs" , feature = "user " ) ) ]
595
595
fn reserve_double_buffer_size < T > ( buf : & mut Vec < T > , limit : usize ) -> Result < ( ) > {
596
596
use std:: cmp:: min;
597
597
@@ -654,7 +654,7 @@ pub fn getcwd() -> Result<PathBuf> {
654
654
}
655
655
656
656
feature ! {
657
- #![ all( feature = "users " , feature = "fs" ) ]
657
+ #![ all( feature = "user " , feature = "fs" ) ]
658
658
659
659
/// Computes the raw UID and GID values to pass to a `*chown` call.
660
660
// The cast is not unnecessary on all platforms.
@@ -1348,7 +1348,7 @@ pub fn fdatasync(fd: RawFd) -> Result<()> {
1348
1348
}
1349
1349
1350
1350
feature ! {
1351
- #![ feature = "users " ]
1351
+ #![ feature = "user " ]
1352
1352
1353
1353
/// Get a real user ID
1354
1354
///
@@ -1432,7 +1432,7 @@ pub fn setgid(gid: Gid) -> Result<()> {
1432
1432
}
1433
1433
1434
1434
feature ! {
1435
- #![ all( feature = "fs" , feature = "users " ) ]
1435
+ #![ all( feature = "fs" , feature = "user " ) ]
1436
1436
/// Set the user identity used for filesystem checks per-thread.
1437
1437
/// On both success and failure, this call returns the previous filesystem user
1438
1438
/// ID of the caller.
@@ -1457,7 +1457,7 @@ pub fn setfsgid(gid: Gid) -> Gid {
1457
1457
}
1458
1458
1459
1459
feature ! {
1460
- #![ feature = "users " ]
1460
+ #![ feature = "user " ]
1461
1461
1462
1462
/// Get the list of supplementary group IDs of the calling process.
1463
1463
///
@@ -1868,7 +1868,7 @@ pub fn mkstemp<P: ?Sized + NixPath>(template: &P) -> Result<(RawFd, PathBuf)> {
1868
1868
}
1869
1869
1870
1870
feature ! {
1871
- #![ all( feature = "fs" , feature = "features " ) ]
1871
+ #![ all( feature = "fs" , feature = "feature " ) ]
1872
1872
1873
1873
/// Variable names for `pathconf`
1874
1874
///
@@ -2064,7 +2064,7 @@ pub fn pathconf<P: ?Sized + NixPath>(path: &P, var: PathconfVar) -> Result<Optio
2064
2064
}
2065
2065
2066
2066
feature ! {
2067
- #![ feature = "features " ]
2067
+ #![ feature = "feature " ]
2068
2068
2069
2069
/// Variable names for `sysconf`
2070
2070
///
@@ -2705,7 +2705,7 @@ mod pivot_root {
2705
2705
target_os = "openbsd" ) ) ]
2706
2706
mod setres {
2707
2707
feature ! {
2708
- #![ feature = "users " ]
2708
+ #![ feature = "user " ]
2709
2709
2710
2710
use crate :: Result ;
2711
2711
use crate :: errno:: Errno ;
@@ -2752,7 +2752,7 @@ mod setres {
2752
2752
target_os = "openbsd" ) ) ]
2753
2753
mod getres {
2754
2754
feature ! {
2755
- #![ feature = "users " ]
2755
+ #![ feature = "user " ]
2756
2756
2757
2757
use crate :: Result ;
2758
2758
use crate :: errno:: Errno ;
@@ -2846,7 +2846,7 @@ pub fn access<P: ?Sized + NixPath>(path: &P, amode: AccessFlags) -> Result<()> {
2846
2846
}
2847
2847
2848
2848
feature ! {
2849
- #![ feature = "users " ]
2849
+ #![ feature = "user " ]
2850
2850
2851
2851
/// Representation of a User, based on `libc::passwd`
2852
2852
///
@@ -3212,7 +3212,7 @@ pub fn ttyname(fd: RawFd) -> Result<PathBuf> {
3212
3212
}
3213
3213
3214
3214
feature ! {
3215
- #![ all( feature = "socket" , feature = "users " ) ]
3215
+ #![ all( feature = "socket" , feature = "user " ) ]
3216
3216
3217
3217
/// Get the effective user ID and group ID associated with a Unix domain socket.
3218
3218
///
0 commit comments