{"id":7269,"date":"2022-12-20T19:37:33","date_gmt":"2022-12-20T22:37:33","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_seterrno-man3-3\/"},"modified":"2022-12-20T19:37:33","modified_gmt":"2022-12-20T22:37:33","slug":"tcl_seterrno-man3-3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_seterrno-man3-3\/","title":{"rendered":"Tcl_SetErrno (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_SetErrno<\/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=\"#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_SetErrno, Tcl_GetErrno, Tcl_ErrnoId, Tcl_ErrnoMsg \u2212 manipulate errno to store and retrieve error codes<\/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\">void <b><br \/> Tcl_SetErrno<\/b>(<i>errorCode<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_GetErrno<\/b>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">const char bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_ErrnoId<\/b>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">const char bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_ErrnoMsg<\/b>(<i>errorCode<\/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=\"27%\">\n<p style=\"margin-top: 1em\">int <i>errorCode<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"46%\">\n<p style=\"margin-top: 1em\">A POSIX error code such as <b>ENOENT<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:54%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_SetErrno<\/b> and <b>Tcl_GetErrno<\/b> provide portable access to the <b>errno<\/b> variable, which is used to record a POSIX error code after system calls and other operations such as <b>Tcl_Gets<\/b>. These procedures are necessary because global variable accesses cannot be made across module boundaries on some platforms.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_SetErrno<\/b> sets the <b>errno<\/b> variable to the value of the <i>errorCode<\/i> argument C procedures that wish to return error information to their callers via <b>errno<\/b> should call <b>Tcl_SetErrno<\/b> rather than setting <b>errno<\/b> directly.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_GetErrno<\/b> returns the current value of <b>errno<\/b>. Procedures wishing to access <b>errno<\/b> should call this procedure instead of accessing <b>errno<\/b> directly.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_ErrnoId<\/b> and <b>Tcl_ErrnoMsg<\/b> return string representations of <b>errno<\/b> values. <b>Tcl_ErrnoId<\/b> returns a machine-readable textual identifier such as \u201cEACCES\u201d that corresponds to the current value of <b>errno<\/b>. <b>Tcl_ErrnoMsg<\/b> returns a human-readable string such as \u201cpermission denied\u201d that corresponds to the value of its <i>errorCode<\/i> argument. The <i>errorCode<\/i> argument is typically the value returned by <b>Tcl_GetErrno<\/b>. The strings returned by these functions are statically allocated and the caller must not free or modify them.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">errno, error code, global variables<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_SetErrno, Tcl_GetErrno, Tcl_ErrnoId, Tcl_ErrnoMsg \u2212 manipulate errno to store and retrieve error codes <\/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,3594],"class_list":["post-7269","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_errnoid"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7269","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=7269"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7269\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}