File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -808,6 +808,8 @@ extern {
808
808
809
809
pub fn posix_fallocate ( fd : :: c_int , offset : :: off_t ,
810
810
len : :: off_t ) -> :: c_int ;
811
+
812
+ pub fn personality ( persona : :: c_uint ) -> :: c_int ;
811
813
}
812
814
813
815
cfg_if ! {
Original file line number Diff line number Diff line change @@ -1116,6 +1116,7 @@ extern {
1116
1116
pub fn getdomainname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1117
1117
pub fn setdomainname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
1118
1118
pub fn vhangup ( ) -> :: c_int ;
1119
+ pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
1119
1120
}
1120
1121
1121
1122
extern {
Original file line number Diff line number Diff line change @@ -1000,10 +1000,6 @@ extern {
1000
1000
suid : * mut :: uid_t ) -> :: c_int ;
1001
1001
pub fn getresgid ( rgid : * mut :: gid_t , egid : * mut :: gid_t ,
1002
1002
sgid : * mut :: gid_t ) -> :: c_int ;
1003
- #[ cfg( target_os="android" ) ]
1004
- pub fn personality ( persona : :: c_uint ) -> :: c_int ;
1005
- #[ cfg( not( target_os="android" ) ) ]
1006
- pub fn personality ( persona : :: c_ulong ) -> :: c_int ;
1007
1003
pub fn swapon ( path : * const :: c_char , swapflags : :: c_int ) -> :: c_int ;
1008
1004
pub fn swapoff ( puath : * const :: c_char ) -> :: c_int ;
1009
1005
pub fn acct ( filename : * const :: c_char ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments