# HG changeset patch # User Tassilo Philipp # Date 1491471615 -7200 # Node ID 28bf0b231bcec02bb79ead40337a0a03ed208990 # Parent 2beca1d11c96b71bba4902bb03c69268b7e38985 - dynload man page clarification about resolving own symbols diff -r 2beca1d11c96 -r 28bf0b231bce dynload/dynload.3 --- 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 , +.\" Copyright (c) 2007-2017 Daniel Adler , .\" Tassilo Philipp .\" .\" 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