Line | |
---|
1 | '\" |
---|
2 | '\" Copyright (c) 2001 ActiveState Tool Corp. |
---|
3 | '\" |
---|
4 | '\" See the file "license.terms" for information on usage and redistribution |
---|
5 | '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
6 | '\" |
---|
7 | '\" RCS: @(#) $Id: Signal.3,v 1.6 2007/12/13 15:22:32 dgp Exp $ |
---|
8 | .so man.macros |
---|
9 | .TH Tcl_SignalId 3 8.3 Tcl "Tcl Library Procedures" |
---|
10 | .BS |
---|
11 | .SH NAME |
---|
12 | Tcl_SignalId, Tcl_SignalMsg \- Convert signal codes |
---|
13 | .SH SYNOPSIS |
---|
14 | .nf |
---|
15 | \fB#include <tcl.h>\fR |
---|
16 | .sp |
---|
17 | const char * |
---|
18 | \fBTcl_SignalId\fR(\fIsig\fR) |
---|
19 | .sp |
---|
20 | const char * |
---|
21 | \fBTcl_SignalMsg\fR(\fIsig\fR) |
---|
22 | .sp |
---|
23 | .SH ARGUMENTS |
---|
24 | .AS int sig |
---|
25 | .AP int sig in |
---|
26 | A POSIX signal number such as \fBSIGPIPE\fR. |
---|
27 | .BE |
---|
28 | |
---|
29 | .SH DESCRIPTION |
---|
30 | .PP |
---|
31 | \fBTcl_SignalId\fR and \fBTcl_SignalMsg\fR return a string |
---|
32 | representation of the provided signal number (\fIsig\fR). |
---|
33 | \fBTcl_SignalId\fR returns a machine-readable textual identifier such |
---|
34 | as |
---|
35 | .QW SIGPIPE . |
---|
36 | \fBTcl_SignalMsg\fR returns a human-readable string such as |
---|
37 | .QW "bus error" . |
---|
38 | The strings returned by these functions are |
---|
39 | statically allocated and the caller must not free or modify them. |
---|
40 | |
---|
41 | .SH KEYWORDS |
---|
42 | signals, signal numbers |
---|
Note: See
TracBrowser
for help on using the repository browser.