diff 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
line wrap: on
line diff
--- a/dynload/dynload.3	Thu Apr 06 02:17:35 2017 +0200
+++ b/dynload/dynload.3	Thu Apr 06 11:40:15 2017 +0200
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2007-2014 Daniel Adler <dadler AT uni-goettingen DOT de>, 
+.\" Copyright (c) 2007-2017 Daniel Adler <dadler AT uni-goettingen DOT de>, 
 .\"                         Tassilo Philipp <tphilipp AT potion-studios DOT com>
 .\" 
 .\" Permission to use, copy, modify, and distribute this software for any
@@ -26,7 +26,7 @@
 .Ft void
 .Fn dlFreeLibrary "DLLib * pLib"
 .Ft void *
-.Fn dlFindSymbol "DLLib pLibode" "const char * pSymbolName"
+.Fn dlFindSymbol "DLLib * pLib" "const char * pSymbolName"
 .Sh DESCRIPTION
 The
 .Nm
@@ -40,7 +40,9 @@
 .Fn dlFreeLibrary 
 and
 .Fn dlFindSymbol
-calls.
+calls. Passing a null pointer for the
+.Ar libpath
+argument is valid, and returns a handle to the main executable of the calling code. Returns a null pointer on error.
 .Pp
 .Fn dlFreeLibrary 
 frees the loaded library with handle