File tree Expand file tree Collapse file tree 8 files changed +57
-14
lines changed Expand file tree Collapse file tree 8 files changed +57
-14
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " libc"
4
- version = " 0.2.37 "
4
+ version = " 0.2.38 "
5
5
authors = [" The Rust Project Developers" ]
6
6
license = " MIT/Apache-2.0"
7
7
readme = " README.md"
Original file line number Diff line number Diff line change @@ -664,6 +664,9 @@ fn main() {
664
664
// the symbol.
665
665
"uname" if freebsd => true ,
666
666
667
+ // FIXME: need to upgrade FreeBSD version; see https://github.com/rust-lang/libc/issues/938
668
+ "setgrent" if freebsd => true ,
669
+
667
670
// aio_waitcomplete's return type changed between FreeBSD 10 and 11.
668
671
"aio_waitcomplete" if freebsd => true ,
669
672
Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ extern {
388
388
pub fn getpwent ( ) -> * mut passwd ;
389
389
pub fn setpwent ( ) ;
390
390
pub fn endpwent ( ) ;
391
+ pub fn setgrent ( ) ;
392
+ pub fn endgrent ( ) ;
393
+ pub fn getgrent ( ) -> * mut :: group ;
394
+
391
395
pub fn getprogname ( ) -> * const :: c_char ;
392
396
pub fn setprogname ( name : * const :: c_char ) ;
393
397
pub fn getloadavg ( loadavg : * mut :: c_double , nelem : :: c_int ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -637,6 +637,15 @@ extern {
637
637
groups : * mut :: gid_t ,
638
638
ngroups : * mut :: c_int ) -> :: c_int ;
639
639
pub fn initgroups ( name : * const :: c_char , basegid : :: gid_t ) -> :: c_int ;
640
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent_r50" ) ]
641
+ pub fn getpwent_r ( pwd : * mut :: passwd ,
642
+ buf : * mut :: c_char ,
643
+ buflen : :: size_t ,
644
+ result : * mut * mut :: passwd ) -> :: c_int ;
645
+ pub fn getgrent_r ( grp : * mut :: group ,
646
+ buf : * mut :: c_char ,
647
+ buflen : :: size_t ,
648
+ result : * mut * mut :: group ) -> :: c_int ;
640
649
pub fn fexecve ( fd : :: c_int , argv : * const * const :: c_char ,
641
650
envp : * const * const :: c_char )
642
651
-> :: c_int ;
Original file line number Diff line number Diff line change @@ -1468,9 +1468,13 @@ extern {
1468
1468
pub fn setpwent ( ) ;
1469
1469
pub fn endpwent ( ) ;
1470
1470
pub fn getpwent ( ) -> * mut passwd ;
1471
+ pub fn setgrent ( ) ;
1472
+ pub fn endgrent ( ) ;
1473
+ pub fn getgrent ( ) -> * mut :: group ;
1471
1474
pub fn setspent ( ) ;
1472
1475
pub fn endspent ( ) ;
1473
1476
pub fn getspent ( ) -> * mut spwd ;
1477
+
1474
1478
pub fn getspnam ( __name : * const :: c_char ) -> * mut spwd ;
1475
1479
1476
1480
pub fn shm_open ( name : * const c_char , oflag : :: c_int ,
Original file line number Diff line number Diff line change @@ -867,6 +867,19 @@ extern {
867
867
pub fn mallinfo ( ) -> :: mallinfo ;
868
868
pub fn malloc_usable_size ( ptr : * mut :: c_void ) -> :: size_t ;
869
869
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
870
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent_r50" ) ]
871
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwent_r" ) ]
872
+ pub fn getpwent_r ( pwd : * mut :: unix:: notbsd:: linux:: passwd ,
873
+ buf : * mut :: c_char ,
874
+ buflen : :: size_t ,
875
+ result : * mut * mut :: unix:: notbsd
876
+ :: linux:: passwd ) -> :: c_int ;
877
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getgrent_r50" ) ]
878
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrent_r" ) ]
879
+ pub fn getgrent_r ( grp : * mut :: group ,
880
+ buf : * mut :: c_char ,
881
+ buflen : :: size_t ,
882
+ result : * mut * mut :: group ) -> :: c_int ;
870
883
}
871
884
872
885
cfg_if ! {
Original file line number Diff line number Diff line change @@ -1434,6 +1434,16 @@ extern {
1434
1434
buf : * mut :: c_char ,
1435
1435
buflen : :: size_t ,
1436
1436
result : * mut * mut passwd ) -> :: c_int ;
1437
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwent_r" ) ]
1438
+ pub fn getpwent_r ( pwd : * mut passwd ,
1439
+ buf : * mut :: c_char ,
1440
+ buflen : :: size_t ,
1441
+ result : * mut * mut passwd ) -> :: c_int ;
1442
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrent_r" ) ]
1443
+ pub fn getgrent_r ( grp : * mut :: group ,
1444
+ buf : * mut :: c_char ,
1445
+ buflen : :: size_t ,
1446
+ result : * mut * mut :: group ) -> :: c_int ;
1437
1447
#[ cfg_attr( target_os = "solaris" , link_name = "__posix_sigwait" ) ]
1438
1448
pub fn sigwait ( set : * const sigset_t ,
1439
1449
sig : * mut :: c_int ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments