1 /* 2 BAREOS® - Backup Archiving REcovery Open Sourced 3 4 Copyright (C) 2008-2008 Free Software Foundation Europe e.V. 5 6 This program is Free Software; you can redistribute it and/or 7 modify it under the terms of version three of the GNU Affero General Public 8 License as published by the Free Software Foundation, which is 9 listed in the file LICENSE. 10 11 This program is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 02110-1301, USA. 20 */ 21 /* 22 * Written by Kern Sibbald, February 2008 23 */ 24 25 #ifndef __DLFCN_H_ 26 #define __DLFCN_H_ 27 28 #define RTLD_LAZY 0x00001 /* Deferred function binding */ 29 #define RTLD_NOW 0x00002 /* Immediate function binding */ 30 #define RTLD_NOLOAD 0x00004 /* Don't load object */ 31 32 #define RTLD_GLOBAL 0x00100 /* Export symbols to others */ 33 #define RTLD_LOCAL 0x00000 /* Symbols are only available to group members */ 34 35 void *dlopen(const char *file, int mode); 36 void *dlsym(void *handle, const char *name); 37 int dlclose(void *handle); 38 char *dlerror(void); 39 40 #endif /* __DLFCN_H_ */ 41