• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>psignal - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Signals.html#Signals" title="Signals">
9<link rel="next" href="raise.html#raise" title="raise">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<meta http-equiv="Content-Style-Type" content="text/css">
12<style type="text/css"><!--
13  pre.display { font-family:inherit }
14  pre.format  { font-family:inherit }
15  pre.smalldisplay { font-family:inherit; font-size:smaller }
16  pre.smallformat  { font-family:inherit; font-size:smaller }
17  pre.smallexample { font-size:smaller }
18  pre.smalllisp    { font-size:smaller }
19  span.sc    { font-variant:small-caps }
20  span.roman { font-family:serif; font-weight:normal; } 
21  span.sansserif { font-family:sans-serif; font-weight:normal; } 
22--></style>
23<link rel="stylesheet" type="text/css" href="../cs.css">
24</head>
25<body>
26<div class="node">
27<a name="psignal"></a>
28<p>
29Next:&nbsp;<a rel="next" accesskey="n" href="raise.html#raise">raise</a>,
30Up:&nbsp;<a rel="up" accesskey="u" href="Signals.html#Signals">Signals</a>
31<hr>
32</div>
33
34<h3 class="section">7.1 <code>psignal</code>&mdash;print a signal message on standard error</h3>
35
36<p><a name="index-psignal-423"></a><strong>Synopsis</strong>
37<pre class="example">     #include &lt;stdio.h&gt;
38     void psignal(int <var>signal</var>, const char *<var>prefix</var>);
39     
40</pre>
41   <p><strong>Description</strong><br>
42Use <code>psignal</code> to print (on standard error) a signal message
43corresponding to the value of the signal number <var>signal</var>. 
44Unless you use <code>NULL</code> as the value of the argument <var>prefix</var>, the
45signal message will begin with the string at <var>prefix</var>, followed by a
46colon and a space (<code>: </code>). The remainder of the signal message is one
47of the strings described for <code>strsignal</code>.
48
49   <p><br>
50<strong>Returns</strong><br>
51<code>psignal</code> returns no result.
52
53   <p><br>
54<strong>Portability</strong><br>
55POSIX.1-2008 requires <code>psignal</code>, but the strings issued vary from one
56implementation to another.
57
58   <p>Supporting OS subroutines required: <code>close</code>, <code>fstat</code>, <code>isatty</code>,
59<code>lseek</code>, <code>read</code>, <code>sbrk</code>, <code>write</code>.
60
61   <p><br>
62
63   </body></html>
64
65