{"id":7328,"date":"2022-12-20T19:37:43","date_gmt":"2022-12-20T22:37:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/load-man3\/"},"modified":"2022-12-20T19:37:43","modified_gmt":"2022-12-20T22:37:43","slug":"load-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/load-man3\/","title":{"rendered":"Load (man3)"},"content":{"rendered":"<h1 align=\"center\">Load<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_LoadFile, Tcl_FindSymbol \u2212 platform-independent dynamic library loading<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_LoadFile<\/b>(<i>interp, pathPtr, symbols, flags, procPtrs, loadHandlePtr<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">void bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_FindSymbol<\/b>(<i>interp, loadHandle, symbol<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p style=\"margin-top: 1em\">Tcl_Interp <i>*interp<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p style=\"margin-top: 1em\">Interpreter to use for reporting error messages.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>Tcl_Obj <i>*pathPtr<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>The name of the file to load. If it is a single name, the library search path of the current environment will be used to resolve it.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>const char *const <i>symbols[]<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>Array of names of symbols to be resolved during the load of the library, or NULL if no symbols are to be resolved. If an array is given, the last entry in the array must be NULL.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>int <i>flags<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>The value should normally be 0, but <i>TCL_LOAD_GLOBAL<\/i> or <i>TCL_LOAD_LAZY<\/i> or a combination of those two is allowed as well.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>void <i>*procPtrs<\/i> (out)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>Points to an array that will hold the addresses of the functions described in the <i>symbols<\/i> argument. Should be NULL if no symbols are to be resolved.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>Tcl_LoadHandle <i>*loadHandlePtr<\/i> (out)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>Points to a variable that will hold the handle to the abstract token describing the library that has been loaded.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>Tcl_LoadHandle <i>loadHandle<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>Abstract token describing the library to look up a symbol in.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"54%\">\n<p>const char <i>*symbol<\/i> (in)<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"28%\">\n<p>The name of the symbol to look up.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:72%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_LoadFile<\/b> loads a file from the filesystem (including potentially any virtual filesystem that has been installed) and provides a handle to it that may be used in further operations. The <i>symbols<\/i> array, if non-NULL, supplies a set of names of symbols (typically functions) that must be resolved from the library and which will be stored in the array indicated by <i>procPtrs<\/i>. If any of the symbols is not resolved, the loading of the file will fail with an error message left in the interpreter (if that is non-NULL). The result of <b>Tcl_LoadFile<\/b> is a standard Tcl error code. The library may be unloaded with <b>Tcl_FSUnloadFile<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_FindSymbol<\/b> locates a symbol in a loaded library and returns it. If the symbol cannot be found, it returns NULL and sets an error message in the given <i>interp<\/i> (if that is non-NULL). Note that it is unsafe to use this operation on a handle that has been passed to <b>Tcl_FSUnloadFile<\/b>.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_FSLoadFile(3), Tcl_FSUnloadFile(3), load(n), unload(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">binary code, loading, shared library<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_LoadFile, Tcl_FindSymbol \u2212 platform-independent dynamic library loading <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3646],"class_list":["post-7328","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_findsymbol"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7328"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7328\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}