<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rpm: rpmsq.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rpm
 <span id="projectnumber">4.14.3-rc1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_14c931ba4d22b4eaaf008543ee4d9331.html">rpmio</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">rpmsq.h File Reference<div class="ingroups"><a class="el" href="group__io.html">I/O</a> » <a class="el" href="group__rpmio.html">RPM IO API.</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Signal Queue API.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <rpm/rpmsw.h></code><br />
<code>#include <signal.h></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for rpmsq.h:</div>
<div class="dyncontent">
<div class="center"><img src="rpmsq_8h__incl.png" border="0" usemap="#rpmsq_8h" alt=""/></div>
<map name="rpmsq_8h" id="rpmsq_8h">
<area shape="rect" title="Signal Queue API." alt="" coords="79,5,153,32"/>
<area shape="rect" title=" " alt="" coords="5,80,112,107"/>
<area shape="rect" title=" " alt="" coords="137,80,210,107"/>
</map>
</div>
</div>
<p><a href="rpmsq_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga2c587f9155ff973ea09662f6494eaf80"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#ga2c587f9155ff973ea09662f6494eaf80">RPMSQ_DFL</a>   ((<a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>)0)</td></tr>
<tr class="memdesc:ga2c587f9155ff973ea09662f6494eaf80"><td class="mdescLeft"> </td><td class="mdescRight">SIG_DFL, SIG_IGN and SIG_ERR counterparts. <a href="group__rpmsq.html#ga2c587f9155ff973ea09662f6494eaf80">More...</a><br /></td></tr>
<tr class="separator:ga2c587f9155ff973ea09662f6494eaf80"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a326692ac4a909c17c5fa074770e76ea3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="rpmsq_8h.html#a326692ac4a909c17c5fa074770e76ea3">RPMSQ_IGN</a>   ((<a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>)1)</td></tr>
<tr class="separator:a326692ac4a909c17c5fa074770e76ea3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a811f0c74c25c1423016ac022026ea556"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="rpmsq_8h.html#a811f0c74c25c1423016ac022026ea556">RPMSQ_ERR</a>   ((<a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>)-1)</td></tr>
<tr class="separator:a811f0c74c25c1423016ac022026ea556"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gafd54980a788d8e9767f7b31f04604252"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>) (int signum, siginfo_t *info, void *context)</td></tr>
<tr class="memdesc:gafd54980a788d8e9767f7b31f04604252"><td class="mdescLeft"> </td><td class="mdescRight">Default signal handler prototype. <a href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">More...</a><br /></td></tr>
<tr class="separator:gafd54980a788d8e9767f7b31f04604252"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga07972540d07ec41922891e8dbdc8e823"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#ga07972540d07ec41922891e8dbdc8e823">rpmsqIsCaught</a> (int signum)</td></tr>
<tr class="memdesc:ga07972540d07ec41922891e8dbdc8e823"><td class="mdescLeft"> </td><td class="mdescRight">Test if given signal has been caught (while signals blocked). <a href="group__rpmsq.html#ga07972540d07ec41922891e8dbdc8e823">More...</a><br /></td></tr>
<tr class="separator:ga07972540d07ec41922891e8dbdc8e823"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0260fed4e99cd3c1c635ce5366775357"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#ga0260fed4e99cd3c1c635ce5366775357">rpmsqActivate</a> (int state)</td></tr>
<tr class="memdesc:ga0260fed4e99cd3c1c635ce5366775357"><td class="mdescLeft"> </td><td class="mdescRight">Activate (or disable) the signal queue. <a href="group__rpmsq.html#ga0260fed4e99cd3c1c635ce5366775357">More...</a><br /></td></tr>
<tr class="separator:ga0260fed4e99cd3c1c635ce5366775357"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad3fd7ab24150b8862dfa888dd8e08e8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#gad3fd7ab24150b8862dfa888dd8e08e8b">rpmsqSetAction</a> (int signum, <a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a> handler)</td></tr>
<tr class="memdesc:gad3fd7ab24150b8862dfa888dd8e08e8b"><td class="mdescLeft"> </td><td class="mdescRight">Set or delete a signal handler for a signal. <a href="group__rpmsq.html#gad3fd7ab24150b8862dfa888dd8e08e8b">More...</a><br /></td></tr>
<tr class="separator:gad3fd7ab24150b8862dfa888dd8e08e8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa4efc24f5d48092f17db49767b537213"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#gaa4efc24f5d48092f17db49767b537213">rpmsqBlock</a> (int op)</td></tr>
<tr class="memdesc:gaa4efc24f5d48092f17db49767b537213"><td class="mdescLeft"> </td><td class="mdescRight">Block or unblock (almost) all signals. <a href="group__rpmsq.html#gaa4efc24f5d48092f17db49767b537213">More...</a><br /></td></tr>
<tr class="separator:gaa4efc24f5d48092f17db49767b537213"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga90d55dcd7c2ccc15c5ef5b66ba9b286d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmsq.html#ga90d55dcd7c2ccc15c5ef5b66ba9b286d">rpmsqPoll</a> (void)</td></tr>
<tr class="memdesc:ga90d55dcd7c2ccc15c5ef5b66ba9b286d"><td class="mdescLeft"> </td><td class="mdescRight">Poll for caught signals, executing their handlers. <a href="group__rpmsq.html#ga90d55dcd7c2ccc15c5ef5b66ba9b286d">More...</a><br /></td></tr>
<tr class="separator:ga90d55dcd7c2ccc15c5ef5b66ba9b286d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad417c0e3e55d3afd736361e251f20eda"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="rpmsq_8h.html#ad417c0e3e55d3afd736361e251f20eda">rpmsqSetInterruptSafety</a> (int on)</td></tr>
<tr class="separator:ad417c0e3e55d3afd736361e251f20eda"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Signal Queue API. </p>
<p class="definition">Definition in file <a class="el" href="rpmsq_8h_source.html">rpmsq.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a811f0c74c25c1423016ac022026ea556"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a811f0c74c25c1423016ac022026ea556">◆ </a></span>RPMSQ_ERR</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RPMSQ_ERR   ((<a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>)-1)</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="rpmsq_8h_source.html#l00029">29</a> of file <a class="el" href="rpmsq_8h_source.html">rpmsq.h</a>.</p>
</div>
</div>
<a id="a326692ac4a909c17c5fa074770e76ea3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a326692ac4a909c17c5fa074770e76ea3">◆ </a></span>RPMSQ_IGN</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RPMSQ_IGN   ((<a class="el" href="group__rpmsq.html#gafd54980a788d8e9767f7b31f04604252">rpmsqAction_t</a>)1)</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="rpmsq_8h_source.html#l00028">28</a> of file <a class="el" href="rpmsq_8h_source.html">rpmsq.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad417c0e3e55d3afd736361e251f20eda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad417c0e3e55d3afd736361e251f20eda">◆ </a></span>rpmsqSetInterruptSafety()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void rpmsqSetInterruptSafety </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>on</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>