/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright (c) 1989 AT&T
* All Rights Reserved
*
*/
#ifndef _DLFCN_H
#define _DLFCN_H
#include <sys/feature_tests.h>
#if !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
#endif /* !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__) */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Information structures for various dlinfo() requests.
*/
#if !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
typedef struct dl_info {
} Dl_info;
typedef struct dl_serpath {
} Dl_serpath;
typedef struct dl_serinfo {
} Dl_serinfo;
typedef struct dl_argsinfo {
} Dl_argsinfo;
typedef struct {
} Dl_mapinfo_t;
typedef struct {
/* by unwind block */
/* by unwind block */
typedef struct {
} Dl_definfo_t;
#endif /* !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__) */
/*
* Declarations used for dynamic linking support routines.
*/
extern void *dlopen(const char *, int);
extern int dlclose(void *);
extern char *dlerror(void);
#if !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
extern int dldump(const char *, const char *, int);
extern int dlinfo(void *, int, void *);
#endif /* !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__) */
#if !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
#endif /* !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__) */
/*
* Valid values for handle argument to dlsym(3x).
*/
/* of current object */
/* of current object, */
/* using currently */
/* loaded objects only. */
/*
* Valid values for mode argument to dlopen.
*/
/* to group members */
/* a group dependencies */
/* members of the group */
/* global objects */
/* available for dlsym */
/* internal use only */
/*
* Valid values for flag argument to dldump.
*/
/* bind to main */
/* bind to dependencies */
/* bind to preload objs */
/* bind to ourself */
/* even if unresolved */
/* only */
/* internal use only */
/*
* Valid values for dladdr1() flags.
*/
/*
* Arguments for dlinfo()
*/
/* internal use only */
/* internal use only */
/* environment and auxv */
/* deferred dependency */
/* deferred dependency */
/* using a symbol name */
#if !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
/*
* Version information for Dl_amd64_unwindinfo.dlui_version
*/
/*
* Valid flags for Dl_amd64_unwindinfo.dlfi_flags
*/
/* matching the pc provided */
#endif /* !defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__) */
#ifdef __cplusplus
}
#endif
#endif /* _DLFCN_H */