Signal.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- '"
- '" Copyright (c) 2001 ActiveState Tool Corp.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: Signal.3,v 1.2 2002/01/15 21:19:06 dgp Exp $
- .so man.macros
- .TH Tcl_SignalId 3 8.3 Tcl "Tcl Library Procedures"
- .BS
- .SH NAME
- Tcl_SignalId, Tcl_SignalMsg - Convert signal codes
- .SH SYNOPSIS
- .nf
- fB#include <tcl.h>fR
- .sp
- CONST char *
- fBTcl_SignalIdfR(fIsigfR)
- .sp
- CONST char *
- fBTcl_SignalMsgfR(fIsigfR)
- .sp
- .SH ARGUMENTS
- .AP int sig in
- A POSIX signal number such as fBSIGPIPEfR.
- .BE
- .SH DESCRIPTION
- .PP
- fBTcl_SignalIdfR and fBTcl_SignalMsgfR return a string
- representation of the provided signal number (fIsigfR).
- fBTcl_SignalIdfR returns a machine-readable textual identifier such
- as "SIGPIPE". fBTcl_SignalMsgfR returns a human-readable string such
- as "bus error". The strings returned by these functions are
- statically allocated and the caller must not free or modify them.
- .SH KEYWORDS
- signals, signal numbers