aboutsummaryrefslogtreecommitdiff
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
parent41a4d8b6c9cea5bd8c2d60f0dfc99501ab4733b2 (diff)
shinano-common: shim: Add getdtablesize for iddd
* iddd is missing getdtablesize. This function return 1024 Change-Id: I402c8671366a250d4b6982c27e681bbce552b4f6
-rw-r--r--libshims/Android.mk7
-rw-r--r--libshims/idd.c22
-rw-r--r--rootdir/init.camera.rc2
-rw-r--r--shinano.mk3
4 files changed, 32 insertions, 2 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;
+}
diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc
index c5ea0e4..a2cafe1 100644
--- a/rootdir/init.camera.rc
+++ b/rootdir/init.camera.rc
@@ -17,7 +17,7 @@
on init
- export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so
+ export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so:/system/bin/iddd|libshims_idd.so
mkdir /idd 0751 idd idd
mkdir /rca 0750 idd idd
diff --git a/shinano.mk b/shinano.mk
index 1ed3ecc..47001bd 100644
--- a/shinano.mk
+++ b/shinano.mk
@@ -52,7 +52,8 @@ PRODUCT_PACKAGES += \
tad_static \
wait4tad_static \
libshims_wvm \
- libshims_signal
+ libshims_signal \
+ libshims_idd
# ANT+
PRODUCT_PACKAGES += \