Skip to content

Commit efff8c7

Browse files
pcctgross35
authored andcommitted
Support mkostemp, mkostemps on Android
Bionic supports it since API level 23. See: https://github.com/aosp-mirror/platform_bionic/blob/2215ad406b253f12e270cdd0876e19e9df2aa6d4/libc/include/stdlib.h
1 parent fdfe73a commit efff8c7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/unix/linux_like/emscripten/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,8 +1514,6 @@ extern "C" {
15141514
-> ::ssize_t;
15151515
pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t;
15161516
pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int;
1517-
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
1518-
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
15191517
pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char;
15201518
pub fn accept4(
15211519
fd: ::c_int,

src/unix/linux_like/linux/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6032,8 +6032,6 @@ extern "C" {
60326032
sigmask: *const ::sigset_t,
60336033
) -> ::c_int;
60346034
pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int;
6035-
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
6036-
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
60376035
pub fn sigtimedwait(
60386036
set: *const sigset_t,
60396037
info: *mut siginfo_t,

src/unix/linux_like/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,9 @@ extern "C" {
17911791
locale: ::locale_t,
17921792
) -> ::size_t;
17931793
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
1794+
1795+
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
1796+
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
17941797
}
17951798

17961799
// LFS64 extensions

0 commit comments

Comments
 (0)