File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,8 @@ extern {
640
640
641
641
pub fn posix_fadvise ( fd : :: c_int , offset : :: off_t , len : :: off_t ,
642
642
advise : :: c_int ) -> :: c_int ;
643
-
643
+ pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
644
+ pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
644
645
}
645
646
646
647
cfg_if ! {
Original file line number Diff line number Diff line change @@ -389,6 +389,8 @@ extern {
389
389
pub fn pthread_stackseg_np ( thread : :: pthread_t ,
390
390
sinfo : * mut :: stack_t ) -> :: c_int ;
391
391
pub fn memrchr ( cx : * const :: c_void , c : :: c_int , n : :: size_t ) -> * mut :: c_void ;
392
+ pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
393
+ pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
392
394
}
393
395
394
396
cfg_if ! {
Original file line number Diff line number Diff line change @@ -678,6 +678,9 @@ extern {
678
678
pub fn tcflow ( fd : :: c_int , action : :: c_int ) -> :: c_int ;
679
679
pub fn tcflush ( fd : :: c_int , action : :: c_int ) -> :: c_int ;
680
680
pub fn tcsendbreak ( fd : :: c_int , duration : :: c_int ) -> :: c_int ;
681
+ pub fn mkstemp ( template : * mut :: c_char ) -> :: c_int ;
682
+ pub fn mkstemps ( template : * mut :: c_char , suffixlen : :: c_int ) -> :: c_int ;
683
+ pub fn mkdtemp ( template : * mut :: c_char ) -> * mut :: c_char ;
681
684
}
682
685
683
686
cfg_if ! {
Original file line number Diff line number Diff line change @@ -540,6 +540,8 @@ extern {
540
540
pub fn unshare ( flags : :: c_int ) -> :: c_int ;
541
541
pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
542
542
pub fn setns ( fd : :: c_int , nstype : :: c_int ) -> :: c_int ;
543
+ pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
544
+ pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
543
545
}
544
546
545
547
cfg_if ! {
You can’t perform that action at this time.
0 commit comments