From 91b15b8584a12ebd8e321d32536ed8ced1e321d7 Mon Sep 17 00:00:00 2001 From: nailyk-fr Date: Sun, 12 Feb 2017 15:48:08 +0100 Subject: shinano-common: shim: Add getdtablesize for iddd * iddd is missing getdtablesize. This function return 1024 Change-Id: I402c8671366a250d4b6982c27e681bbce552b4f6 --- libshims/Android.mk | 7 +++++++ libshims/idd.c | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 libshims/idd.c (limited to 'libshims') 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 + +int getdtablesize(void) { + return 1024; +} -- cgit v1.2.3