comparison dynload/dynload.3 @ 216:28bf0b231bce

- dynload man page clarification about resolving own symbols
author Tassilo Philipp
date Thu, 06 Apr 2017 11:40:15 +0200
parents dfde5035d410
children 7076f551faf5
comparison
equal deleted inserted replaced
215:2beca1d11c96 216:28bf0b231bce
1 .\" Copyright (c) 2007-2014 Daniel Adler <dadler AT uni-goettingen DOT de>, 1 .\" Copyright (c) 2007-2017 Daniel Adler <dadler AT uni-goettingen DOT de>,
2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com> 2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com>
3 .\" 3 .\"
4 .\" Permission to use, copy, modify, and distribute this software for any 4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above 5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies. 6 .\" copyright notice and this permission notice appear in all copies.
24 .Ft DLLib * 24 .Ft DLLib *
25 .Fn dlLoadLibrary "const char * libpath" 25 .Fn dlLoadLibrary "const char * libpath"
26 .Ft void 26 .Ft void
27 .Fn dlFreeLibrary "DLLib * pLib" 27 .Fn dlFreeLibrary "DLLib * pLib"
28 .Ft void * 28 .Ft void *
29 .Fn dlFindSymbol "DLLib pLibode" "const char * pSymbolName" 29 .Fn dlFindSymbol "DLLib * pLib" "const char * pSymbolName"
30 .Sh DESCRIPTION 30 .Sh DESCRIPTION
31 The 31 The
32 .Nm 32 .Nm
33 library provides an interface to load foreign dynamic libraries and access 33 library provides an interface to load foreign dynamic libraries and access
34 to their symbols. 34 to their symbols.
38 .Ar libpath 38 .Ar libpath
39 and returns a handle to it for use in 39 and returns a handle to it for use in
40 .Fn dlFreeLibrary 40 .Fn dlFreeLibrary
41 and 41 and
42 .Fn dlFindSymbol 42 .Fn dlFindSymbol
43 calls. 43 calls. Passing a null pointer for the
44 .Ar libpath
45 argument is valid, and returns a handle to the main executable of the calling code. Returns a null pointer on error.
44 .Pp 46 .Pp
45 .Fn dlFreeLibrary 47 .Fn dlFreeLibrary
46 frees the loaded library with handle 48 frees the loaded library with handle
47 .Ar pLib . 49 .Ar pLib .
48 .Pp 50 .Pp