Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > contrib > by-pkgid > 4f37b923758ceff94a2c0ccca62b4b43 > files > 102

libapr1-devel-1.1.1-1mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache Portable Runtime: apr_signal.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">home</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">oden</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">RPM</a>&nbsp;/&nbsp;<a class="el" href="dir_000003.html">BUILD</a>&nbsp;/&nbsp;<a class="el" href="dir_000004.html">apr-1.1.1</a>&nbsp;/&nbsp;<a class="el" href="dir_000005.html">include</a></div>
<h1>apr_signal.h</h1><a href="apr__signal_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* Copyright 2000-2004 The Apache Software Foundation</span>
00002 <span class="comment"> *</span>
00003 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
00004 <span class="comment"> * you may not use this file except in compliance with the License.</span>
00005 <span class="comment"> * You may obtain a copy of the License at</span>
00006 <span class="comment"> *</span>
00007 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
00010 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
00011 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00012 <span class="comment"> * See the License for the specific language governing permissions and</span>
00013 <span class="comment"> * limitations under the License.</span>
00014 <span class="comment"> */</span>
00015 
00016 <span class="preprocessor">#ifndef APR_SIGNAL_H</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#define APR_SIGNAL_H</span>
00018 <span class="preprocessor"></span><span class="comment"></span>
00019 <span class="comment">/**</span>
00020 <span class="comment"> * @file apr_signal.h </span>
00021 <span class="comment"> * @brief APR Signal Handling</span>
00022 <span class="comment"> */</span>
00023 
00024 <span class="preprocessor">#include "<a class="code" href="apr_8h.html">apr.h</a>"</span>
00025 <span class="preprocessor">#include "<a class="code" href="apr__pools_8h.html">apr_pools.h</a>"</span>
00026 
00027 <span class="preprocessor">#if APR_HAVE_SIGNAL_H</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#include &lt;signal.h&gt;</span>
00029 <span class="preprocessor">#endif</span>
00030 <span class="preprocessor"></span>
00031 <span class="preprocessor">#ifdef __cplusplus</span>
00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00033 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
00034 <span class="comment"></span>
00035 <span class="comment">/**</span>
00036 <span class="comment"> * @defgroup apr_signal Handling</span>
00037 <span class="comment"> * @ingroup APR </span>
00038 <span class="comment"> * @{</span>
00039 <span class="comment"> */</span>
00040 
00041 <span class="preprocessor">#if APR_HAVE_SIGACTION || defined(DOXYGEN)</span>
00042 <span class="preprocessor"></span>
00043 <span class="preprocessor">#if defined(DARWIN) &amp;&amp; !defined(__cplusplus) &amp;&amp; !defined(_ANSI_SOURCE)</span>
00044 <span class="preprocessor"></span><span class="comment">/* work around Darwin header file bugs</span>
00045 <span class="comment"> *   http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2657228.html</span>
00046 <span class="comment"> */</span>
00047 <span class="preprocessor">#undef SIG_DFL</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#undef SIG_IGN</span>
00049 <span class="preprocessor"></span><span class="preprocessor">#undef SIG_ERR</span>
00050 <span class="preprocessor"></span><span class="preprocessor">#define SIG_DFL (void (*)(int))0</span>
00051 <span class="preprocessor"></span><span class="preprocessor">#define SIG_IGN (void (*)(int))1</span>
00052 <span class="preprocessor"></span><span class="preprocessor">#define SIG_ERR (void (*)(int))-1</span>
00053 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00054 <span class="preprocessor"></span><span class="comment"></span>
00055 <span class="comment">/** Function prototype for signal handlers */</span>
<a name="l00056"></a><a class="code" href="group__apr__signal.html#ga0">00056</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="group__apr__signal.html#ga0">apr_sigfunc_t</a>(<span class="keywordtype">int</span>);
00057 <span class="comment"></span>
00058 <span class="comment">/**</span>
00059 <span class="comment"> * Set the signal handler function for a given signal</span>
00060 <span class="comment"> * @param signo The signal (eg... SIGWINCH)</span>
00061 <span class="comment"> * @param func the function to get called</span>
00062 <span class="comment"> */</span>
00063 <a class="code" href="group__apr__platform.html#ga123">APR_DECLARE</a>(apr_sigfunc_t *) apr_signal(<span class="keywordtype">int</span> signo, apr_sigfunc_t * func);
00064 
00065 #if defined(SIG_IGN) &amp;&amp; !defined(SIG_ERR)
00066 #define SIG_ERR ((apr_sigfunc_t *) -1)
00067 #endif
00068 
00069 #else <span class="comment">/* !APR_HAVE_SIGACTION */</span>
00070 #define apr_signal(a, b) signal(a, b)
00071 #endif
00072 
00073 <span class="comment"></span>
00074 <span class="comment">/**</span>
00075 <span class="comment"> * Get the description for a specific signal number</span>
00076 <span class="comment"> * @param signum The signal number</span>
00077 <span class="comment"> * @return The description of the signal</span>
00078 <span class="comment"> */</span>
00079 APR_DECLARE(const <span class="keywordtype">char</span> *) apr_signal_description_get(<span class="keywordtype">int</span> signum);
00080 <span class="comment"></span>
00081 <span class="comment">/**</span>
00082 <span class="comment"> * APR-private function for initializing the signal package</span>
00083 <span class="comment"> * @internal</span>
00084 <span class="comment"> * @param pglobal The internal, global pool</span>
00085 <span class="comment"> */</span>
00086 <span class="keywordtype">void</span> apr_signal_init(apr_pool_t *pglobal);
00087 <span class="comment"></span>
00088 <span class="comment">/**</span>
00089 <span class="comment"> * Block the delivery of a particular signal</span>
00090 <span class="comment"> * @param signum The signal number</span>
00091 <span class="comment"> * @return status</span>
00092 <span class="comment"> */</span>
00093 APR_DECLARE(apr_status_t) apr_signal_block(<span class="keywordtype">int</span> signum);
00094 <span class="comment"></span>
00095 <span class="comment">/**</span>
00096 <span class="comment"> * Enable the delivery of a particular signal</span>
00097 <span class="comment"> * @param signum The signal number</span>
00098 <span class="comment"> * @return status</span>
00099 <span class="comment"> */</span>
00100 APR_DECLARE(apr_status_t) apr_signal_unblock(<span class="keywordtype">int</span> signum);
00101 <span class="comment"></span>
00102 <span class="comment">/** @} */</span>
00103 
00104 #ifdef __cplusplus
00105 }
00106 #endif <span class="comment">/* __cplusplus */</span>
00107 
00108 #endif <span class="comment">/* APR_SIGNAL_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Mar 20 19:52:26 2005 for Apache Portable Runtime by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>