Deleted Added
full compact
dlfcn.c (185369) dlfcn.c (190673)
1/*-
2 * Copyright (c) 1998 John D. Polstra
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 John D. Polstra
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/gen/dlfcn.c 185369 2008-11-27 11:27:59Z kib $");
28__FBSDID("$FreeBSD: head/lib/libc/gen/dlfcn.c 190673 2009-04-03 19:17:23Z kib $");
29
30/*
31 * Linkage to services provided by the dynamic linker.
32 */
33#include <dlfcn.h>
34#include <link.h>
35#include <stddef.h>
36

--- 63 unchanged lines hidden (view full) ---

100#pragma weak dlsym
101void *
102dlsym(void * __restrict handle, const char * __restrict name)
103{
104 _rtld_error(sorry);
105 return NULL;
106}
107
29
30/*
31 * Linkage to services provided by the dynamic linker.
32 */
33#include <dlfcn.h>
34#include <link.h>
35#include <stddef.h>
36

--- 63 unchanged lines hidden (view full) ---

100#pragma weak dlsym
101void *
102dlsym(void * __restrict handle, const char * __restrict name)
103{
104 _rtld_error(sorry);
105 return NULL;
106}
107
108#pragma weak dlfunc
109dlfunc_t
110dlfunc(void * __restrict handle, const char * __restrict name)
111{
112 _rtld_error(sorry);
113 return NULL;
114}
115
108#pragma weak dlvsym
109void *
110dlvsym(void * __restrict handle, const char * __restrict name,
111 const char * __restrict version)
112{
113 _rtld_error(sorry);
114 return NULL;
115}

--- 36 unchanged lines hidden ---
116#pragma weak dlvsym
117void *
118dlvsym(void * __restrict handle, const char * __restrict name,
119 const char * __restrict version)
120{
121 _rtld_error(sorry);
122 return NULL;
123}

--- 36 unchanged lines hidden ---