aboutsummaryrefslogtreecommitdiff
path: root/libshims
diff options
context:
space:
mode:
authornailyk-fr <nailyk_git@nailyk.fr>2017-02-12 15:48:08 +0100
committernailyk-fr <nailyk_git@nailyk.fr>2017-02-21 20:18:26 +0100
commit91b15b8584a12ebd8e321d32536ed8ced1e321d7 (patch)
treea4a097a7b99b176d60e57c56a54e7d4eeeac2c34 /libshims
parent41a4d8b6c9cea5bd8c2d60f0dfc99501ab4733b2 (diff)
shinano-common: shim: Add getdtablesize for iddd
* iddd is missing getdtablesize. This function return 1024 Change-Id: I402c8671366a250d4b6982c27e681bbce552b4f6
Diffstat (limited to 'libshims')
-rw-r--r--libshims/Android.mk7
-rw-r--r--libshims/idd.c22
2 files changed, 29 insertions, 0 deletions
diff --git a/libshims/Android.mk b/libshims/Android.mk
index cb466ba..88e307f 100644
--- a/libshims/Android.mk
+++ b/libshims/Android.mk
@@ -36,3 +36,10 @@ LOCAL_MODULE_TAGS := optional
LOCAL_32_BIT_ONLY := true
include $(BUILD_SHARED_LIBRARY)
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := idd.c
+LOCAL_MODULE := libshims_idd
+LOCAL_MODULE_TAGS := optional
+LOCAL_32_BIT_ONLY := true
+include $(BUILD_SHARED_LIBRARY)
+
diff --git a/libshims/idd.c b/libshims/idd.c
new file mode 100644
index 0000000..fe6d4f7
--- /dev/null
+++ b/libshims/idd.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2017 The LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#include <unistd.h>
+
+int getdtablesize(void) {
+ return 1024;
+}