@@ -1986,7 +1986,8 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
1986
1986
target_os = "aix" ,
1987
1987
solarish,
1988
1988
apple_targets,
1989
- target_os = "redox"
1989
+ target_os = "redox" ,
1990
+ target_os = "emscripten" ,
1990
1991
) ) ) ]
1991
1992
pub fn getgrouplist( user: & CStr , group: Gid ) -> Result <Vec <Gid >> {
1992
1993
let ngroups_max = match sysconf( SysconfVar :: NGROUPS_MAX ) {
@@ -2070,7 +2071,8 @@ pub fn getgrouplist(user: &CStr, group: Gid) -> Result<Vec<Gid>> {
2070
2071
#[ cfg( not( any(
2071
2072
apple_targets,
2072
2073
target_os = "redox" ,
2073
- target_os = "haiku"
2074
+ target_os = "haiku" ,
2075
+ target_os = "emscripten" ,
2074
2076
) ) ) ]
2075
2077
pub fn initgroups( user: & CStr , group: Gid ) -> Result <( ) > {
2076
2078
cfg_if! {
@@ -3492,6 +3494,7 @@ pub struct User {
3492
3494
target_os = "fuchsia" ,
3493
3495
target_os = "haiku" ,
3494
3496
target_os = "hurd" ,
3497
+ target_os = "emscripten" ,
3495
3498
) ) ) ]
3496
3499
pub class: CString ,
3497
3500
/// Last password change
@@ -3502,6 +3505,7 @@ pub struct User {
3502
3505
target_os = "fuchsia" ,
3503
3506
target_os = "haiku" ,
3504
3507
target_os = "hurd" ,
3508
+ target_os = "emscripten" ,
3505
3509
) ) ) ]
3506
3510
pub change: libc:: time_t,
3507
3511
/// Expiration time of account
@@ -3512,6 +3516,7 @@ pub struct User {
3512
3516
target_os = "fuchsia" ,
3513
3517
target_os = "haiku" ,
3514
3518
target_os = "hurd" ,
3519
+ target_os = "emscripten" ,
3515
3520
) ) ) ]
3516
3521
pub expire: libc:: time_t,
3517
3522
}
@@ -3565,6 +3570,7 @@ impl From<&libc::passwd> for User {
3565
3570
target_os = "fuchsia" ,
3566
3571
target_os = "haiku" ,
3567
3572
target_os = "hurd" ,
3573
+ target_os = "emscripten" ,
3568
3574
) ) ) ]
3569
3575
class: CString :: new( CStr :: from_ptr( pw. pw_class) . to_bytes( ) )
3570
3576
. unwrap( ) ,
@@ -3575,6 +3581,7 @@ impl From<&libc::passwd> for User {
3575
3581
target_os = "fuchsia" ,
3576
3582
target_os = "haiku" ,
3577
3583
target_os = "hurd" ,
3584
+ target_os = "emscripten" ,
3578
3585
) ) ) ]
3579
3586
change: pw. pw_change,
3580
3587
#[ cfg( not( any(
@@ -3584,6 +3591,7 @@ impl From<&libc::passwd> for User {
3584
3591
target_os = "fuchsia" ,
3585
3592
target_os = "haiku" ,
3586
3593
target_os = "hurd" ,
3594
+ target_os = "emscripten" ,
3587
3595
) ) ) ]
3588
3596
expire: pw. pw_expire,
3589
3597
}
@@ -3625,6 +3633,7 @@ impl From<User> for libc::passwd {
3625
3633
target_os = "fuchsia" ,
3626
3634
target_os = "haiku" ,
3627
3635
target_os = "hurd" ,
3636
+ target_os = "emscripten" ,
3628
3637
) ) ) ]
3629
3638
pw_class: u. class. into_raw( ) ,
3630
3639
#[ cfg( not( any(
@@ -3634,6 +3643,7 @@ impl From<User> for libc::passwd {
3634
3643
target_os = "fuchsia" ,
3635
3644
target_os = "haiku" ,
3636
3645
target_os = "hurd" ,
3646
+ target_os = "emscripten" ,
3637
3647
) ) ) ]
3638
3648
pw_change: u. change,
3639
3649
#[ cfg( not( any(
@@ -3643,6 +3653,7 @@ impl From<User> for libc::passwd {
3643
3653
target_os = "fuchsia" ,
3644
3654
target_os = "haiku" ,
3645
3655
target_os = "hurd" ,
3656
+ target_os = "emscripten" ,
3646
3657
) ) ) ]
3647
3658
pw_expire: u. expire,
3648
3659
#[ cfg( solarish) ]
0 commit comments