File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -118,15 +118,19 @@ pub const SIGPWR: ::c_int = 30;
118
118
pub const SIGSYS : :: c_int = 31 ;
119
119
120
120
extern {
121
+ pub fn chown ( path : * const c_char , uid : uid_t , gid : gid_t ) -> :: c_int ;
122
+ pub fn close ( fd : :: c_int ) -> :: c_int ;
123
+ pub fn fchown ( fd : :: c_int , uid : :: uid_t , gid : :: gid_t ) -> :: c_int ;
124
+ pub fn fcntl ( fd : :: c_int , cmd : :: c_int , ...) -> :: c_int ;
121
125
pub fn gethostname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
122
126
pub fn getpid ( ) -> pid_t ;
123
127
pub fn memalign ( align : :: size_t , size : :: size_t ) -> * mut :: c_void ;
124
- pub fn read ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t )
125
- -> :: ssize_t ;
128
+ pub fn read ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t ) -> :: ssize_t ;
129
+ pub fn setenv ( name : * const c_char , val : * const c_char , overwrite : :: c_int )
130
+ -> :: c_int ;
131
+ pub fn unsetenv ( name : * const c_char ) -> :: c_int ;
126
132
pub fn write ( fd : :: c_int , buf : * const :: c_void , count : :: size_t )
127
133
-> :: ssize_t ;
128
- pub fn fcntl ( fd : :: c_int , cmd : :: c_int , ...) -> :: c_int ;
129
- pub fn close ( fd : :: c_int ) -> :: c_int ;
130
134
}
131
135
132
136
#[ link( name = "c" ) ]
You can’t perform that action at this time.
0 commit comments