File tree 2 files changed +10
-0
lines changed 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2823,6 +2823,14 @@ extern "C" {
2823
2823
pub fn regfree ( preg : * mut :: regex_t ) ;
2824
2824
2825
2825
pub fn android_set_abort_message ( msg : * const :: c_char ) ;
2826
+
2827
+ // bionic started exposing memfd_create in Android 11 (API level 30)
2828
+ // once the CI is updated to work with Android 11, the implementation
2829
+ // can be removed.
2830
+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int {
2831
+ syscall ( SYS_memfd_create , name, flags) as :: c_int
2832
+ }
2833
+
2826
2834
}
2827
2835
2828
2836
cfg_if ! {
Original file line number Diff line number Diff line change @@ -3594,6 +3594,8 @@ extern "C" {
3594
3594
outbytesleft : * mut :: size_t ,
3595
3595
) -> :: size_t ;
3596
3596
pub fn iconv_close ( cd : iconv_t ) -> :: c_int ;
3597
+
3598
+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
3597
3599
}
3598
3600
3599
3601
cfg_if ! {
You can’t perform that action at this time.
0 commit comments