This manual page is part of Xcode Tools version 3.2.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



Tcl_SetErrno(3)                            Tcl Library Procedures                            Tcl_SetErrno(3)



____________________________________________________________________________________________________________

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



Tcl                                                  8.3                                     Tcl_SetErrno(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Tcl project.
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Tcl project through their bug reporting page.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...