File tree 3 files changed +17
-0
lines changed 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ fn main() {
173
173
cfg. header ( "sys/xattr.h" ) ;
174
174
}
175
175
cfg. header ( "sys/ipc.h" ) ;
176
+ cfg. header ( "sys/sem.h" ) ;
176
177
cfg. header ( "sys/msg.h" ) ;
177
178
cfg. header ( "sys/shm.h" ) ;
178
179
cfg. header ( "sys/fsuid.h" ) ;
Original file line number Diff line number Diff line change @@ -124,6 +124,11 @@ s! {
124
124
// Actually a union of an int and a void*
125
125
pub sival_ptr: * mut :: c_void
126
126
}
127
+
128
+ pub struct itimerval {
129
+ pub it_interval: :: timeval,
130
+ pub it_value: :: timeval,
131
+ }
127
132
}
128
133
129
134
pub const SIG_DFL : sighandler_t = 0 as sighandler_t ;
Original file line number Diff line number Diff line change @@ -225,6 +225,12 @@ s! {
225
225
pub msg_hdr: :: msghdr,
226
226
pub msg_len: :: c_uint,
227
227
}
228
+
229
+ pub struct sembuf {
230
+ pub sem_num: :: c_ushort,
231
+ pub sem_op: :: c_short,
232
+ pub sem_flg: :: c_short,
233
+ }
228
234
}
229
235
230
236
pub const ABDAY_1 : :: nl_item = 0x20000 ;
@@ -796,6 +802,11 @@ extern {
796
802
cmd : :: c_int ,
797
803
buf : * mut :: shmid_ds ) -> :: c_int ;
798
804
pub fn ftok ( pathname : * const :: c_char , proj_id : :: c_int ) -> :: key_t ;
805
+ pub fn semget ( key : :: key_t , nsems : :: c_int , semflag : :: c_int ) -> :: c_int ;
806
+ pub fn semop ( semid : :: c_int ,
807
+ sops : * mut :: sembuf , nsops : :: size_t ) -> :: c_int ;
808
+ pub fn semctl ( semid : :: c_int ,
809
+ semnum : :: c_int , cmd : :: c_int , ...) -> :: c_int ;
799
810
pub fn msgctl ( msqid : :: c_int , cmd : :: c_int , buf : * mut msqid_ds ) -> :: c_int ;
800
811
pub fn msgget ( key : :: key_t , msgflg : :: c_int ) -> :: c_int ;
801
812
pub fn msgrcv ( msqid : :: c_int , msgp : * mut :: c_void , msgsz : :: size_t ,
You can’t perform that action at this time.
0 commit comments