File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 11EOTHER
2+ memccpy
23stricmp
34strnicmp
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ creat
178178dev_t
179179dup
180180dup2
181+ errno_t
181182execl
182183execle
183184execlp
@@ -239,6 +240,7 @@ isupper
239240isxdigit
240241labs
241242listen
243+ localtime_s
242244lseek
243245lseek64
244246malloc
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ pub type wchar_t = u16;
2727
2828pub type clock_t = i32 ;
2929
30+ pub type errno_t = :: c_int ;
31+
3032cfg_if ! {
3133 if #[ cfg( all( target_arch = "x86" , target_env = "gnu" ) ) ] {
3234 pub type time_t = i32 ;
@@ -372,6 +374,8 @@ extern "C" {
372374
373375 #[ link_name = "_gmtime64_s" ]
374376 pub fn gmtime_s ( destTime : * mut tm , srcTime : * const time_t ) -> :: c_int ;
377+ #[ link_name = "_localtime64_s" ]
378+ pub fn localtime_s ( tmDest : * mut tm , sourceTime : * const time_t ) -> :: errno_t ;
375379 #[ link_name = "_time64" ]
376380 pub fn time ( destTime : * mut time_t ) -> time_t ;
377381 #[ link_name = "_chmod" ]
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ extern "C" {
1010 pub fn stricmp ( s1 : * const :: c_char , s2 : * const :: c_char ) -> :: c_int ;
1111 #[ link_name = "_strnicmp" ]
1212 pub fn strnicmp ( s1 : * const :: c_char , s2 : * const :: c_char , n : :: size_t ) -> :: c_int ;
13+ #[ link_name = "_memccpy" ]
14+ pub fn memccpy (
15+ dest : * mut :: c_void ,
16+ src : * const :: c_void ,
17+ c : :: c_int ,
18+ count : :: size_t ,
19+ ) -> * mut :: c_void ;
1320}
1421
1522cfg_if ! {
You can’t perform that action at this time.
0 commit comments