1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker * Copyright (C) 2007 The Android Open Source Project
3*8d67ca89SAndroid Build Coastguard Worker *
4*8d67ca89SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*8d67ca89SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*8d67ca89SAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*8d67ca89SAndroid Build Coastguard Worker *
8*8d67ca89SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0
9*8d67ca89SAndroid Build Coastguard Worker *
10*8d67ca89SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*8d67ca89SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*8d67ca89SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*8d67ca89SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*8d67ca89SAndroid Build Coastguard Worker * limitations under the License.
15*8d67ca89SAndroid Build Coastguard Worker */
16*8d67ca89SAndroid Build Coastguard Worker
17*8d67ca89SAndroid Build Coastguard Worker #include <dlfcn.h>
18*8d67ca89SAndroid Build Coastguard Worker #include <link.h>
19*8d67ca89SAndroid Build Coastguard Worker #include <stdlib.h>
20*8d67ca89SAndroid Build Coastguard Worker
dlopen(const char *,int)21*8d67ca89SAndroid Build Coastguard Worker void* dlopen(const char* /*filename*/, int /*flag*/) {
22*8d67ca89SAndroid Build Coastguard Worker return nullptr;
23*8d67ca89SAndroid Build Coastguard Worker }
24*8d67ca89SAndroid Build Coastguard Worker
dlerror()25*8d67ca89SAndroid Build Coastguard Worker char* dlerror() {
26*8d67ca89SAndroid Build Coastguard Worker return const_cast<char*>("libdl.a is a stub --- use libdl.so instead");
27*8d67ca89SAndroid Build Coastguard Worker }
28*8d67ca89SAndroid Build Coastguard Worker
dlsym(void *,const char *)29*8d67ca89SAndroid Build Coastguard Worker void* dlsym(void* /*handle*/, const char* /*symbol*/) {
30*8d67ca89SAndroid Build Coastguard Worker return nullptr;
31*8d67ca89SAndroid Build Coastguard Worker }
32*8d67ca89SAndroid Build Coastguard Worker
dlvsym(void *,const char *,const char *)33*8d67ca89SAndroid Build Coastguard Worker void* dlvsym(void* /*handle*/, const char* /*symbol*/, const char* /*version*/) {
34*8d67ca89SAndroid Build Coastguard Worker return nullptr;
35*8d67ca89SAndroid Build Coastguard Worker }
36*8d67ca89SAndroid Build Coastguard Worker
dladdr(const void *,Dl_info *)37*8d67ca89SAndroid Build Coastguard Worker int dladdr(const void* /*addr*/, Dl_info* /*info*/) {
38*8d67ca89SAndroid Build Coastguard Worker return 0;
39*8d67ca89SAndroid Build Coastguard Worker }
40*8d67ca89SAndroid Build Coastguard Worker
dlclose(void *)41*8d67ca89SAndroid Build Coastguard Worker int dlclose(void* /*handle*/) {
42*8d67ca89SAndroid Build Coastguard Worker return -1;
43*8d67ca89SAndroid Build Coastguard Worker }
44