⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 seterrno.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: SetErrno.3,v 1.5 2002/01/15 21:47:27 dgp Exp $.so man.macros.TH Tcl_SetErrno 3 8.3 Tcl "Tcl Library Procedures".BS.SH NAMETcl_SetErrno, Tcl_GetErrno, Tcl_ErrnoId, Tcl_ErrnoMsg \- manipulate errno to store and retrieve error codes.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spvoid\fBTcl_SetErrno\fR(\fIerrorCode\fR).spint\fBTcl_GetErrno\fR().spCONST char *\fBTcl_ErrnoId\fR().spCONST char *\fBTcl_ErrnoMsg\fR(\fIerrorCode\fR).sp.SH ARGUMENTS.AS int errorCode in.AP int errorCode inA POSIX error code such as \fBENOENT\fR..BE.SH DESCRIPTION.PP\fBTcl_SetErrno\fR and \fBTcl_GetErrno\fR provide portable accessto the \fBerrno\fR variable, which is used to record a POSIX errorcode after system calls and other operations such as \fBTcl_Gets\fR.These procedures are necessary because global variable accesses cannotbe made across module boundaries on some platforms..PP\fBTcl_SetErrno\fR sets the \fBerrno\fR variable to the value of the\fIerrorCode\fR argumentC procedures that wish to return error information to their callersvia \fBerrno\fR should call \fBTcl_SetErrno\fR rather than setting\fBerrno\fR directly..PP\fBTcl_GetErrno\fR returns the current value of \fBerrno\fR.Procedures wishing to access \fBerrno\fR should call this procedureinstead of accessing \fBerrno\fR directly..PP\fBTcl_ErrnoId\fR and \fBTcl_ErrnoMsg\fR return stringrepresentations of \fBerrno\fR values.  \fBTcl_ErrnoId\fRreturns a machine-readable textual identifier such as"EACCES" that corresponds to the current value of \fBerrno\fR.\fBTcl_ErrnoMsg\fR returns a human-readable string such as"permission denied" that corresponds to the value of its\fIerrorCode\fR argument.  The \fIerrorCode\fR argument istypically the value returned by \fBTcl_GetErrno\fR.The strings returned by these functions arestatically allocated and the caller must not free or modify them..SH KEYWORDSerrno, error code, global variables

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -