File tree 2 files changed +7
-0
lines changed
src/unix/linux_like/linux
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1926,6 +1926,7 @@ PTHREAD_PRIO_PROTECT
1926
1926
PTHREAD_PROCESS_PRIVATE
1927
1927
PTHREAD_PROCESS_SHARED
1928
1928
PTHREAD_STACK_MIN
1929
+ PTHREAD_ONCE_INIT
1929
1930
PTRACE_ATTACH
1930
1931
PTRACE_CONT
1931
1932
PTRACE_DETACH
@@ -3373,6 +3374,8 @@ pthread_barrier_wait
3373
3374
pthread_barrier_destroy
3374
3375
pthread_barrierattr_t
3375
3376
pthread_barrier_t
3377
+ pthread_once
3378
+ pthread_once_t
3376
3379
ptrace
3377
3380
ptsname_r
3378
3381
pwrite64
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub type nl_item = ::c_int;
14
14
pub type idtype_t = :: c_uint ;
15
15
pub type loff_t = :: c_longlong ;
16
16
pub type pthread_key_t = :: c_uint ;
17
+ pub type pthread_once_t = :: c_int ;
17
18
pub type pthread_spinlock_t = :: c_int ;
18
19
19
20
pub type __u8 = :: c_uchar ;
@@ -1903,6 +1904,7 @@ align_const! {
1903
1904
size: [ 0 ; __SIZEOF_PTHREAD_RWLOCK_T] ,
1904
1905
} ;
1905
1906
}
1907
+ pub const PTHREAD_ONCE_INIT : pthread_once_t = 0 ;
1906
1908
pub const PTHREAD_MUTEX_NORMAL : :: c_int = 0 ;
1907
1909
pub const PTHREAD_MUTEX_RECURSIVE : :: c_int = 1 ;
1908
1910
pub const PTHREAD_MUTEX_ERRORCHECK : :: c_int = 2 ;
@@ -4849,6 +4851,8 @@ extern "C" {
4849
4851
longindex : * mut :: c_int ,
4850
4852
) -> :: c_int ;
4851
4853
4854
+ pub fn pthread_once ( control : * mut pthread_once_t , routine : extern "C" fn ( ) ) -> :: c_int ;
4855
+
4852
4856
pub fn copy_file_range (
4853
4857
fd_in : :: c_int ,
4854
4858
off_in : * mut :: off64_t ,
You can’t perform that action at this time.
0 commit comments