Tcl_SetErrno
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS
___________________________
NAME
Tcl_SetErrno, Tcl_GetErrno, Tcl_ErrnoId, Tcl_ErrnoMsg − manipulate errno to store and retrieve error codes
SYNOPSIS
#include <tcl.h>
void
Tcl_SetErrno(errorCode)
int
Tcl_GetErrno()
const char *
Tcl_ErrnoId()
const char *
Tcl_ErrnoMsg(errorCode)
ARGUMENTS
int errorCode (in) |
A POSIX error code such as ENOENT. |
______________
DESCRIPTION
Tcl_SetErrno and Tcl_GetErrno provide portable access to the errno variable, which is used to record a POSIX error code after system calls and other operations such as Tcl_Gets. These procedures are necessary because global variable accesses cannot be made across module boundaries on some platforms.
Tcl_SetErrno sets the errno variable to the value of the errorCode argument C procedures that wish to return error information to their callers via errno should call Tcl_SetErrno rather than setting errno directly.
Tcl_GetErrno returns the current value of errno. Procedures wishing to access errno should call this procedure instead of accessing errno directly.
Tcl_ErrnoId and Tcl_ErrnoMsg return string representations of errno values. Tcl_ErrnoId returns a machine-readable textual identifier such as “EACCES” that corresponds to the current value of errno. Tcl_ErrnoMsg returns a human-readable string such as “permission denied” that corresponds to the value of its errorCode argument. The errorCode argument is typically the value returned by Tcl_GetErrno. The strings returned by these functions are statically allocated and the caller must not free or modify them.
KEYWORDS
errno, error code, global variables
More Linux Commands
manpages/splashy.1.html
splashy(1) - a user-mode, POSIX and LSB compliant, boot spla
Splashy displays an image and a progress bar at boot time. When called as splashy_chvt, it allows the same functionality as the UNIX command chvt. OPTIONS boot
manpages/getnameinfo.3.html
getnameinfo(3) - address-to-name translation in protocol-ind
The getnameinfo() function is the inverse of getaddrinfo(3): it converts a socket address to a corresponding host and service, in a protocol-independent manner.
manpages/glMultiTexCoord4fvARB.3gl.html
glMultiTexCoord4fvARB(3gl) - set the current texture coordin
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1
manpages/kpartx.8.html
kpartx(8) - Create device maps from partition tables........
This tool, derived from util-linux partx, reads partition tables on specified device and create device maps over partitions segments detected. It is called from
manpages/strneqvcmp.3.html
strneqvcmp(3) compare two strings with an equivalence mappin
strneqvcmp.3 - Using a character mapping, two strings are compared for equivalence. Each input character is mapped to a comparison character and the mapped-to c
manpages/Mail::SpamAssassin::Conf.3pm.html
Mail::SpamAssassin::Conf(3pm) - SpamAssassin configuration f
SpamAssassin is configured using traditional UNIX-style configuration files, loaded from the /usr/share/spamassassin and /etc/mail/spamassassin directories. The
manpages/addwstr.3ncurses.html
addwstr(3ncurses) - add a string of wide characters to a cur
These functions write the characters of the (null-terminated) wchar_t character string wstr on the given window. It is similar to constructing a cchar_t for eac
manpages/Tcl_AppendPrintfToObj.3.html
Tcl_AppendPrintfToObj(3) - manipulate Tcl objects as strings
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store
manpages/new_prescr.3ncurses.html
new_prescr(3ncurses) - curses screen-pointer extension......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/dm_zdump.1.html
dm_zdump(1) timezone dumper (Commands - Linux man page).....
This displays the current time in each ZONE named on the command line unless the -v option is given. -h, --help Print online help. -v, --verbose This displays a
manpages/glRotated.3gl.html
glRotated(3gl) - multiply the current matrix by a rotation m
glRotate produces a rotation of angle degrees around the vector $(x, y, z)$. The current matrix (see glMatrixMode) is multiplied by a rotation matrix with the p
manpages/putc.3.html
putc(3) - output of characters and strings - Linux man page
fputc() writes the character c, cast to an unsigned char, to stream. fputs() writes the string s to stream, without its terminating null byte (\0). putc() is eq
