BSD 4_4 release
[unix-history] / usr / src / contrib / sun.sharedlib / usr.lib / libdl / dlfcn.h
CommitLineData
ad787160
C
1/*
2 * This source code is a product of Sun Microsystems, Inc. and is provided
3 * for unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify this source code without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *
9 * THIS PROGRAM CONTAINS SOURCE CODE COPYRIGHTED BY SUN MICROSYSTEMS, INC.
10 * SUN MICROSYSTEMS, INC., MAKES NO REPRESENTATIONS ABOUT THE SUITABLITY
11 * OF SUCH SOURCE CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT
12 * EXPRESS OR IMPLIED WARRANTY OF ANY KIND. SUN MICROSYSTEMS, INC. DISCLAIMS
13 * ALL WARRANTIES WITH REGARD TO SUCH SOURCE CODE, INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN
15 * NO EVENT SHALL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT,
16 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
17 * FROM USE OF SUCH SOURCE CODE, REGARDLESS OF THE THEORY OF LIABILITY.
18 *
19 * This source code is provided with no support and without any obligation on
20 * the part of Sun Microsystems, Inc. to assist in its use, correction,
21 * modification or enhancement.
22 *
23 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
24 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS
25 * SOURCE CODE OR ANY PART THEREOF.
26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California 94043
30 */
31
32/* @(#)dlfcn.h 1.1 89/09/04 SMI */
33
34#ifndef _dlfcn_h
35#define _dlfcn_h
36
37/*
38 * Copyright (c) 1989, 1991 Sun Microsystems, Inc.
39 */
40
41/*
42 * Interface description for the contents of libdl -- simple programmer's
43 * interfaces to the dynamic linker.
44 */
45
46/*
47 * Manifest constants
48 */
49#define RTLD_LAZY 1 /* deferred binding of procedures */
50
51/*
52 * Function declarations
53 */
54extern void *dlopen(); /* open and map a shared object */
55extern void *dlsym(); /* obtain address of symbol */
56extern int dlclose(); /* remove a shared object */
57extern char *dlerror(); /* string representing last error */
58
59#endif /* !_dlfcn_h */