| Current File : //usr/share/doc/dbus/api/dbus-sysdeps_8h_source.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
<title>D-Bus: dbus-sysdeps.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">D-Bus
 <span id="projectnumber">1.8.20</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<div class="title">dbus-sysdeps.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* dbus-sysdeps.h Wrappers around system/libc features (internal to D-Bus implementation)</span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002, 2003 Red Hat, Inc.</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2003 CodeFactory AB</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Academic Free License version 2.1</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
<a name="l00010"></a>00010 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00011"></a>00011 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00012"></a>00012 <span class="comment"> * (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> * </span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef DBUS_SYSDEPS_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_SYSDEPS_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "config.h"</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#ifdef HAVE_STDINT_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#include <stdint.h></span>
<a name="l00032"></a>00032 <span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#ifdef HAVE_INTTYPES_H</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#include <inttypes.h></span>
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="preprocessor">#include <dbus/dbus-errors.h></span>
<a name="l00039"></a>00039 <span class="preprocessor">#include <dbus/dbus-file.h></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include <dbus/dbus-string.h></span>
<a name="l00041"></a>00041
<a name="l00042"></a>00042 <span class="comment">/* this is perhaps bogus, but strcmp() etc. are faster if we use the</span>
<a name="l00043"></a>00043 <span class="comment"> * stuff straight out of string.h, so have this here for now.</span>
<a name="l00044"></a>00044 <span class="comment"> */</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include <string.h></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include <stdarg.h></span>
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <span class="comment">/* AIX sys/poll.h does #define events reqevents, and other</span>
<a name="l00049"></a>00049 <span class="comment"> * wonderousness, so must include sys/poll before declaring</span>
<a name="l00050"></a>00050 <span class="comment"> * DBusPollFD</span>
<a name="l00051"></a>00051 <span class="comment"> */</span>
<a name="l00052"></a>00052 <span class="preprocessor">#ifdef HAVE_POLL</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#include <sys/poll.h></span>
<a name="l00054"></a>00054 <span class="preprocessor">#endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="preprocessor">#ifdef DBUS_WINCE</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="comment">/* Windows CE lacks some system functions (such as errno and clock).</span>
<a name="l00058"></a>00058 <span class="comment"> We bring them in here. */</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include "dbus-sysdeps-wince-glue.h"</span>
<a name="l00060"></a>00060 <span class="preprocessor">#endif</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <a class="code" href="group__DBusMacros.html#ga875146b01015e9ced22b25d76d549ab2" title="Macro used prior to declaring functions in the D-Bus header files.">DBUS_BEGIN_DECLS</a>
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="preprocessor">#ifdef DBUS_WIN</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_PATH_SEPARATOR ";"</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_PATH_SEPARATOR ":"</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="comment">/* Forward declarations */</span>
<a name="l00071"></a>00071
<a name="l00072"></a>00072
<a name="l00074"></a>00074 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusList.html" title="A node in a linked list.">DBusList</a> <a class="code" href="structDBusList.html" title="A node in a linked list.">DBusList</a>;
<a name="l00075"></a>00075
<a name="l00077"></a>00077 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusCredentials.html">DBusCredentials</a> <a class="code" href="structDBusCredentials.html">DBusCredentials</a>;
<a name="l00078"></a>00078
<a name="l00080"></a>00080 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusPipe.html">DBusPipe</a> <a class="code" href="structDBusPipe.html">DBusPipe</a>;
<a name="l00081"></a>00081
<a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga83c51771d3c4e612522bd5ad72e6ad7a" title="Aborts the program with SIGABRT (dumping core).">_dbus_abort</a> (<span class="keywordtype">void</span>) _DBUS_GNUC_NORETURN;
<a name="l00089"></a>00089
<a name="l00090"></a>00090 const <span class="keywordtype">char</span>* <a class="code" href="group__DBusSysdeps.html#gab846071a4de54cb7e518654f9375313a" title="Wrapper for getenv().">_dbus_getenv</a> (const <span class="keywordtype">char</span> *varname);
<a name="l00091"></a>00091 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga38d9b871ec4fb30371d1187d8c9d3ef9" title="Wrapper for clearenv().">_dbus_clearenv</a> (<span class="keywordtype">void</span>);
<a name="l00092"></a>00092 <span class="keywordtype">char</span> ** <a class="code" href="group__DBusSysdeps.html#gaae48868ce818ad287cdae113aabcc858" title="Gets a NULL-terminated list of key=value pairs from the environment.">_dbus_get_environment</a> (<span class="keywordtype">void</span>);
<a name="l00093"></a>00093
<a name="l00095"></a><a class="code" href="group__DBusSysdeps.html#ga1eff6303266888ec466cddba6c03aa40">00095</a> typedef <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group__DBusSysdeps.html#ga1eff6303266888ec466cddba6c03aa40" title="A process ID.">dbus_pid_t</a>;
<a name="l00097"></a><a class="code" href="group__DBusSysdeps.html#ga186e987b700f9ddc6cea8aa0db82b151">00097</a> typedef <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group__DBusSysdeps.html#ga186e987b700f9ddc6cea8aa0db82b151" title="A user ID.">dbus_uid_t</a>;
<a name="l00099"></a><a class="code" href="group__DBusSysdeps.html#ga2f5c2e418b81ec2a86594f56ec6d7627">00099</a> typedef <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group__DBusSysdeps.html#ga2f5c2e418b81ec2a86594f56ec6d7627" title="A group ID.">dbus_gid_t</a>;
<a name="l00100"></a>00100
<a name="l00102"></a><a class="code" href="group__DBusSysdeps.html#ga4eb5f05dd6ad89caa4b0340e1cf0b8d9">00102</a> <span class="preprocessor">#define DBUS_PID_UNSET ((dbus_pid_t) -1)</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00104"></a><a class="code" href="group__DBusSysdeps.html#ga3d2f3fb32bb759cabe362ca2de383f7d">00104</a> <span class="preprocessor">#define DBUS_UID_UNSET ((dbus_uid_t) -1)</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>
<a name="l00106"></a><a class="code" href="group__DBusSysdeps.html#ga768a080926a119a6131083facc0bd42b">00106</a> <span class="preprocessor">#define DBUS_GID_UNSET ((dbus_gid_t) -1)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
<a name="l00109"></a><a class="code" href="group__DBusSysdeps.html#gaf4553a43e3b8c0e43d9148a00dcc3fa4">00109</a> <span class="preprocessor">#define DBUS_PID_FORMAT "%lu"</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span>
<a name="l00111"></a><a class="code" href="group__DBusSysdeps.html#gab657f0434f01b463891942f373f7b4a1">00111</a> <span class="preprocessor">#define DBUS_UID_FORMAT "%lu"</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00113"></a><a class="code" href="group__DBusSysdeps.html#gaaab5918b2ae57886d9783df09bd61c7e">00113</a> <span class="preprocessor">#define DBUS_GID_FORMAT "%lu"</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a>00115
<a name="l00126"></a>00126 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga701f9b3087c196404f66ff95b4ace0b8" title="Closes a socket.">_dbus_close_socket</a> (<span class="keywordtype">int</span> fd,
<a name="l00127"></a>00127 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00128"></a>00128 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#ga6fe72fa1c0484ac5594b08145ea19530" title="Like _dbus_read(), but only works on sockets so is available on Windows.">_dbus_read_socket</a> (<span class="keywordtype">int</span> fd,
<a name="l00129"></a>00129 <a class="code" href="structDBusString.html">DBusString</a> *buffer,
<a name="l00130"></a>00130 <span class="keywordtype">int</span> count);
<a name="l00131"></a>00131 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#ga346cadd9b0f7d0ae1cd19007b2e4c2de" title="Like _dbus_write(), but only supports sockets and is thus available on Windows.">_dbus_write_socket</a> (<span class="keywordtype">int</span> fd,
<a name="l00132"></a>00132 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer,
<a name="l00133"></a>00133 <span class="keywordtype">int</span> start,
<a name="l00134"></a>00134 <span class="keywordtype">int</span> len);
<a name="l00135"></a>00135 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#ga02da720105c2a2397b7c687c5ca81174" title="Like _dbus_write_two() but only works on sockets and is thus available on Windows.">_dbus_write_socket_two</a> (<span class="keywordtype">int</span> fd,
<a name="l00136"></a>00136 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer1,
<a name="l00137"></a>00137 <span class="keywordtype">int</span> start1,
<a name="l00138"></a>00138 <span class="keywordtype">int</span> len1,
<a name="l00139"></a>00139 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer2,
<a name="l00140"></a>00140 <span class="keywordtype">int</span> start2,
<a name="l00141"></a>00141 <span class="keywordtype">int</span> len2);
<a name="l00142"></a>00142
<a name="l00143"></a>00143 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#ga14aa692ac7e9aab777b9f565c4b8933b" title="Like _dbus_read_socket() but also tries to read unix fds from the socket.">_dbus_read_socket_with_unix_fds</a> (<span class="keywordtype">int</span> fd,
<a name="l00144"></a>00144 <a class="code" href="structDBusString.html">DBusString</a> *buffer,
<a name="l00145"></a>00145 <span class="keywordtype">int</span> count,
<a name="l00146"></a>00146 <span class="keywordtype">int</span> *fds,
<a name="l00147"></a>00147 <span class="keywordtype">int</span> *n_fds);
<a name="l00148"></a>00148 <span class="keywordtype">int</span> _dbus_write_socket_with_unix_fds (<span class="keywordtype">int</span> fd,
<a name="l00149"></a>00149 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer,
<a name="l00150"></a>00150 <span class="keywordtype">int</span> start,
<a name="l00151"></a>00151 <span class="keywordtype">int</span> len,
<a name="l00152"></a>00152 <span class="keyword">const</span> <span class="keywordtype">int</span> *fds,
<a name="l00153"></a>00153 <span class="keywordtype">int</span> n_fds);
<a name="l00154"></a>00154 <span class="keywordtype">int</span> _dbus_write_socket_with_unix_fds_two (<span class="keywordtype">int</span> fd,
<a name="l00155"></a>00155 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer1,
<a name="l00156"></a>00156 <span class="keywordtype">int</span> start1,
<a name="l00157"></a>00157 <span class="keywordtype">int</span> len1,
<a name="l00158"></a>00158 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *buffer2,
<a name="l00159"></a>00159 <span class="keywordtype">int</span> start2,
<a name="l00160"></a>00160 <span class="keywordtype">int</span> len2,
<a name="l00161"></a>00161 <span class="keyword">const</span> <span class="keywordtype">int</span> *fds,
<a name="l00162"></a>00162 <span class="keywordtype">int</span> n_fds);
<a name="l00163"></a>00163
<a name="l00164"></a>00164 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_socket_is_invalid (<span class="keywordtype">int</span> fd);
<a name="l00165"></a>00165
<a name="l00166"></a>00166 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#gaa3adf90f6e47d30eeacf0a27d1a09ee5" title="Creates a socket and connects to a socket at the given host and port.">_dbus_connect_tcp_socket</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *host,
<a name="l00167"></a>00167 <span class="keyword">const</span> <span class="keywordtype">char</span> *port,
<a name="l00168"></a>00168 <span class="keyword">const</span> <span class="keywordtype">char</span> *family,
<a name="l00169"></a>00169 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00170"></a>00170 <span class="keywordtype">int</span> _dbus_connect_tcp_socket_with_nonce (<span class="keyword">const</span> <span class="keywordtype">char</span> *host,
<a name="l00171"></a>00171 <span class="keyword">const</span> <span class="keywordtype">char</span> *port,
<a name="l00172"></a>00172 <span class="keyword">const</span> <span class="keywordtype">char</span> *family,
<a name="l00173"></a>00173 <span class="keyword">const</span> <span class="keywordtype">char</span> *noncefile,
<a name="l00174"></a>00174 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00175"></a>00175 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#gafdae31b3b61299dbaaccfcb1205a6f30" title="Creates a socket and binds it to the given path, then listens on the socket.">_dbus_listen_tcp_socket</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *host,
<a name="l00176"></a>00176 <span class="keyword">const</span> <span class="keywordtype">char</span> *port,
<a name="l00177"></a>00177 <span class="keyword">const</span> <span class="keywordtype">char</span> *family,
<a name="l00178"></a>00178 <a class="code" href="structDBusString.html">DBusString</a> *retport,
<a name="l00179"></a>00179 <span class="keywordtype">int</span> **fds_p,
<a name="l00180"></a>00180 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00181"></a>00181 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#ga687f4393a365474ec16f02e40c418cce" title="Accepts a connection on a listening socket.">_dbus_accept</a> (<span class="keywordtype">int</span> listen_fd);
<a name="l00182"></a>00182
<a name="l00183"></a>00183
<a name="l00184"></a>00184 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga9906c86bebb51358f0d8df6a42af30f6" title="Reads a single byte which must be nul (an error occurs otherwise), and reads unix credentials if avai...">_dbus_read_credentials_socket</a> (<span class="keywordtype">int</span> client_fd,
<a name="l00185"></a>00185 <a class="code" href="structDBusCredentials.html">DBusCredentials</a> *credentials,
<a name="l00186"></a>00186 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00187"></a>00187 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga6cc9916aa1dde4d44072ee85b5691b5b" title="Sends a single nul byte with our UNIX credentials as ancillary data.">_dbus_send_credentials_socket</a> (<span class="keywordtype">int</span> server_fd,
<a name="l00188"></a>00188 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00189"></a>00189
<a name="l00190"></a>00190 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gacecdbb00a3c8b63e821edae537ae3c7b" title="Adds the credentials corresponding to the given username.">_dbus_credentials_add_from_user</a> (<a class="code" href="structDBusCredentials.html">DBusCredentials</a> *credentials,
<a name="l00191"></a>00191 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *username);
<a name="l00192"></a>00192 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga9d5493f8bd1c5577060c8c6dce44d09f" title="Adds the credentials of the current process to the passed-in credentials object.">_dbus_credentials_add_from_current_process</a> (<a class="code" href="structDBusCredentials.html">DBusCredentials</a> *credentials);
<a name="l00193"></a>00193 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga095c54de3974c6d04c29ef86c6e06e35" title="Append to the string the identity we would like to have when we authenticate, on UNIX this is the cur...">_dbus_append_user_from_current_process</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00194"></a>00194
<a name="l00195"></a>00195 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga437470fc327b0169fc14a0b66a6e5278" title="Parse a UNIX user from the bus config file.">_dbus_parse_unix_user_from_config</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *username,
<a name="l00196"></a>00196 dbus_uid_t *uid_p);
<a name="l00197"></a>00197 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga96da816095ec7fec07136a6019745bcb" title="Parse a UNIX group from the bus config file.">_dbus_parse_unix_group_from_config</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *groupname,
<a name="l00198"></a>00198 dbus_gid_t *gid_p);
<a name="l00199"></a>00199 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga79647ec21c7edccd1510808ea0ca3779" title="Gets all groups corresponding to the given UNIX user ID.">_dbus_unix_groups_from_uid</a> (dbus_uid_t uid,
<a name="l00200"></a>00200 dbus_gid_t **group_ids,
<a name="l00201"></a>00201 <span class="keywordtype">int</span> *n_group_ids);
<a name="l00202"></a>00202 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gaed2e025454364fbe31cd9b6538c9a936" title="Checks to see if the UNIX user ID is at the console.">_dbus_unix_user_is_at_console</a> (dbus_uid_t uid,
<a name="l00203"></a>00203 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00204"></a>00204 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga849177164bc5e73435104f57c631ed7e" title="Checks to see if the UNIX user ID matches the UID of the process.">_dbus_unix_user_is_process_owner</a> (dbus_uid_t uid);
<a name="l00205"></a>00205 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga912d34a7e40b3a57864972e6d6ab65ba" title="Checks to see if the Windows user SID matches the owner of the process.">_dbus_windows_user_is_process_owner</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *windows_sid);
<a name="l00206"></a>00206
<a name="l00207"></a>00207 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga3cc5a5734416858fa58f3166ed181a64" title="Appends the directory in which a keyring for the given credentials should be stored.">_dbus_append_keyring_directory_for_credentials</a> (<a class="code" href="structDBusString.html">DBusString</a> *directory,
<a name="l00208"></a>00208 <a class="code" href="structDBusCredentials.html">DBusCredentials</a> *credentials);
<a name="l00209"></a>00209
<a name="l00210"></a>00210 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_daemon_is_session_bus_address_published (<span class="keyword">const</span> <span class="keywordtype">char</span> *scope);
<a name="l00211"></a>00211
<a name="l00212"></a>00212 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_daemon_publish_session_bus_address (<span class="keyword">const</span> <span class="keywordtype">char</span>* address, <span class="keyword">const</span> <span class="keywordtype">char</span>* shm_name);
<a name="l00213"></a>00213
<a name="l00214"></a>00214 <span class="keywordtype">void</span> _dbus_daemon_unpublish_session_bus_address (<span class="keywordtype">void</span>);
<a name="l00215"></a>00215
<a name="l00216"></a>00216 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga06183453a52a6919619e85dc1812c9b7" title="Checks whether file descriptors may be passed via the socket.">_dbus_socket_can_pass_unix_fd</a>(<span class="keywordtype">int</span> fd);
<a name="l00217"></a>00217
<a name="l00221"></a><a class="code" href="group__DBusSysdeps.html#ga208bb797a458b9cc721b317d9c95d233">00221</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a> <a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a>;
<a name="l00222"></a>00222
<a name="l00226"></a><a class="code" href="structDBusAtomic.html">00226</a> <span class="keyword">struct </span><a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a>
<a name="l00227"></a>00227 {
<a name="l00228"></a>00228 <span class="preprocessor">#ifdef DBUS_WIN</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span> <span class="keyword">volatile</span> <span class="keywordtype">long</span> <a class="code" href="structDBusAtomic.html#aef100f17856a635a9d0f3cae7a7f6bf8" title="Value of the atomic integer.">value</a>;
<a name="l00230"></a>00230 <span class="preprocessor">#else</span>
<a name="l00231"></a><a class="code" href="structDBusAtomic.html#aef100f17856a635a9d0f3cae7a7f6bf8">00231</a> <span class="preprocessor"></span> <span class="keyword">volatile</span> <a class="code" href="group__DBusTypes.html#gab18afa60e9b17b6e322735bda3d863d8" title="A 32-bit signed integer on all platforms.">dbus_int32_t</a> <a class="code" href="structDBusAtomic.html#aef100f17856a635a9d0f3cae7a7f6bf8" title="Value of the atomic integer.">value</a>;
<a name="l00232"></a>00232 <span class="preprocessor">#endif</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>};
<a name="l00234"></a>00234
<a name="l00235"></a>00235 <span class="comment">/* The value we get from autofoo is in the form of a cpp expression;</span>
<a name="l00236"></a>00236 <span class="comment"> * convert that to a conventional defined/undef switch. (We can't get</span>
<a name="l00237"></a>00237 <span class="comment"> * the conventional defined/undef because of multiarch builds only running</span>
<a name="l00238"></a>00238 <span class="comment"> * ./configure once, on Darwin.) */</span>
<a name="l00239"></a>00239 <span class="preprocessor">#if DBUS_HAVE_ATOMIC_INT_COND</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span><span class="preprocessor"># define DBUS_HAVE_ATOMIC_INT 1</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span><span class="preprocessor"># undef DBUS_HAVE_ATOMIC_INT</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>
<a name="l00245"></a>00245 <a class="code" href="group__DBusTypes.html#gab18afa60e9b17b6e322735bda3d863d8" title="A 32-bit signed integer on all platforms.">dbus_int32_t</a> <a class="code" href="group__DBusSysdeps.html#gae74c3fcf12acaeccdb152ef907de951c" title="Atomically increments an integer.">_dbus_atomic_inc</a> (<a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a> *atomic);
<a name="l00246"></a>00246 <a class="code" href="group__DBusTypes.html#gab18afa60e9b17b6e322735bda3d863d8" title="A 32-bit signed integer on all platforms.">dbus_int32_t</a> <a class="code" href="group__DBusSysdeps.html#ga3c50a069f795dceeb9172fe2b517bbdc" title="Atomically decrement an integer.">_dbus_atomic_dec</a> (<a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a> *atomic);
<a name="l00247"></a>00247 <a class="code" href="group__DBusTypes.html#gab18afa60e9b17b6e322735bda3d863d8" title="A 32-bit signed integer on all platforms.">dbus_int32_t</a> <a class="code" href="group__DBusSysdeps.html#ga626c810359ba0e362367ce2ec6691aca" title="Atomically get the value of an integer.">_dbus_atomic_get</a> (<a class="code" href="structDBusAtomic.html" title="An atomic integer safe to increment or decrement from multiple threads.">DBusAtomic</a> *atomic);
<a name="l00248"></a>00248
<a name="l00249"></a>00249
<a name="l00250"></a>00250 <span class="comment">/* AIX uses different values for poll */</span>
<a name="l00251"></a>00251
<a name="l00252"></a>00252 <span class="preprocessor">#ifdef _AIX</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span>
<a name="l00254"></a>00254 <span class="preprocessor">#define _DBUS_POLLIN 0x0001</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span>
<a name="l00256"></a>00256 <span class="preprocessor">#define _DBUS_POLLPRI 0x0004</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span>
<a name="l00258"></a>00258 <span class="preprocessor">#define _DBUS_POLLOUT 0x0002</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span>
<a name="l00260"></a>00260 <span class="preprocessor">#define _DBUS_POLLERR 0x4000</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span>
<a name="l00262"></a>00262 <span class="preprocessor">#define _DBUS_POLLHUP 0x2000</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span>
<a name="l00264"></a>00264 <span class="preprocessor">#define _DBUS_POLLNVAL 0x8000</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__HAIKU__)</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span>
<a name="l00267"></a>00267 <span class="preprocessor">#define _DBUS_POLLIN 0x0001</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span>
<a name="l00269"></a>00269 <span class="preprocessor">#define _DBUS_POLLOUT 0x0002</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span>
<a name="l00271"></a>00271 <span class="preprocessor">#define _DBUS_POLLERR 0x0004</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>
<a name="l00273"></a>00273 <span class="preprocessor">#define _DBUS_POLLPRI 0x0020</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>
<a name="l00275"></a>00275 <span class="preprocessor">#define _DBUS_POLLHUP 0x0080</span>
<a name="l00276"></a>00276 <span class="preprocessor"></span>
<a name="l00277"></a>00277 <span class="preprocessor">#define _DBUS_POLLNVAL 0x1000</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__QNX__)</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span>
<a name="l00280"></a>00280 <span class="preprocessor">#define _DBUS_POLLOUT 0x0002</span>
<a name="l00281"></a>00281 <span class="preprocessor"></span>
<a name="l00282"></a>00282 <span class="preprocessor">#define _DBUS_POLLIN 0x0005</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span>
<a name="l00284"></a>00284 <span class="preprocessor">#define _DBUS_POLLPRI 0x0008</span>
<a name="l00285"></a>00285 <span class="preprocessor"></span>
<a name="l00286"></a>00286 <span class="preprocessor">#define _DBUS_POLLERR 0x0020</span>
<a name="l00287"></a>00287 <span class="preprocessor"></span>
<a name="l00288"></a>00288 <span class="preprocessor">#define _DBUS_POLLHUP 0x0040</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span>
<a name="l00290"></a>00290 <span class="preprocessor">#define _DBUS_POLLNVAL 0x1000</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00292"></a>00292 <span class="preprocessor"></span>
<a name="l00293"></a><a class="code" href="group__DBusSysdeps.html#ga96b5ba58b9939d789bfece0d9bb82f41">00293</a> <span class="preprocessor">#define _DBUS_POLLIN 0x0001</span>
<a name="l00294"></a>00294 <span class="preprocessor"></span>
<a name="l00295"></a><a class="code" href="group__DBusSysdeps.html#ga1db7d09a41912c10978c6a4955d9a9d2">00295</a> <span class="preprocessor">#define _DBUS_POLLPRI 0x0002</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>
<a name="l00297"></a><a class="code" href="group__DBusSysdeps.html#ga0cb1ace07be145e0b908687e99b5f161">00297</a> <span class="preprocessor">#define _DBUS_POLLOUT 0x0004</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span>
<a name="l00299"></a><a class="code" href="group__DBusSysdeps.html#ga231164196ff407eccb732452a2d36468">00299</a> <span class="preprocessor">#define _DBUS_POLLERR 0x0008</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span>
<a name="l00301"></a><a class="code" href="group__DBusSysdeps.html#ga6f08232c1f943313e3eefd7de8f3592f">00301</a> <span class="preprocessor">#define _DBUS_POLLHUP 0x0010</span>
<a name="l00302"></a>00302 <span class="preprocessor"></span>
<a name="l00303"></a><a class="code" href="group__DBusSysdeps.html#ga83bf3d24f3a1a853dda794835c39fc6f">00303</a> <span class="preprocessor">#define _DBUS_POLLNVAL 0x0020</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>
<a name="l00309"></a><a class="code" href="structDBusPollFD.html">00309</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00310"></a>00310 {
<a name="l00311"></a><a class="code" href="structDBusPollFD.html#a10b23977d2f696abfd276b9077f8c97e">00311</a> <span class="keywordtype">int</span> <a class="code" href="structDBusPollFD.html#a10b23977d2f696abfd276b9077f8c97e" title="File descriptor.">fd</a>;
<a name="l00312"></a><a class="code" href="structDBusPollFD.html#a10e65e6721451e92361497b2efaa758f">00312</a> <span class="keywordtype">short</span> <a class="code" href="structDBusPollFD.html#a10e65e6721451e92361497b2efaa758f" title="Events to poll for.">events</a>;
<a name="l00313"></a><a class="code" href="structDBusPollFD.html#a24bc29c766b8bbddc5da052e7a46bc9e">00313</a> <span class="keywordtype">short</span> <a class="code" href="structDBusPollFD.html#a24bc29c766b8bbddc5da052e7a46bc9e" title="Events that occurred.">revents</a>;
<a name="l00314"></a>00314 } <a class="code" href="structDBusPollFD.html" title="A portable struct pollfd wrapper.">DBusPollFD</a>;
<a name="l00315"></a>00315
<a name="l00316"></a>00316 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#gac1cdb5995dcef6dd54399ab610ae689a" title="Wrapper for poll().">_dbus_poll</a> (<a class="code" href="structDBusPollFD.html" title="A portable struct pollfd wrapper.">DBusPollFD</a> *fds,
<a name="l00317"></a>00317 <span class="keywordtype">int</span> n_fds,
<a name="l00318"></a>00318 <span class="keywordtype">int</span> timeout_milliseconds);
<a name="l00319"></a>00319
<a name="l00320"></a>00320 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga1153b4669819148af6b3f6f2b7c9183a" title="Sleeps the given number of milliseconds.">_dbus_sleep_milliseconds</a> (<span class="keywordtype">int</span> milliseconds);
<a name="l00321"></a>00321
<a name="l00322"></a>00322 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#gab9951a7fd8c33188bf86314e7fd56300" title="Get current time, as in gettimeofday().">_dbus_get_monotonic_time</a> (<span class="keywordtype">long</span> *tv_sec,
<a name="l00323"></a>00323 <span class="keywordtype">long</span> *tv_usec);
<a name="l00324"></a>00324
<a name="l00325"></a>00325 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#gae10ee21ab353beadbe2493728065f600" title="Get current time, as in gettimeofday().">_dbus_get_real_time</a> (<span class="keywordtype">long</span> *tv_sec,
<a name="l00326"></a>00326 <span class="keywordtype">long</span> *tv_usec);
<a name="l00327"></a>00327
<a name="l00331"></a>00331 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gaa47156dedbe573ee9b213d1fd3f7bb79" title="Creates a directory; succeeds if the directory is created or already existed.">_dbus_create_directory</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00332"></a>00332 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00333"></a>00333 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga3bc1512aef42cea17a2aaacc7d8e7211" title="Removes a directory; Directory must be empty.">_dbus_delete_directory</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00334"></a>00334 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00335"></a>00335
<a name="l00336"></a>00336 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gae3a3fdc0c6001e367584bb016aca495d" title="Appends the given filename to the given directory.">_dbus_concat_dir_and_file</a> (<a class="code" href="structDBusString.html">DBusString</a> *dir,
<a name="l00337"></a>00337 <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *next_component);
<a name="l00338"></a>00338 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gafa79c1113fa75419dcc5ee4290e06608" title="Get the directory name from a complete filename.">_dbus_string_get_dirname</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00339"></a>00339 <a class="code" href="structDBusString.html">DBusString</a> *dirname);
<a name="l00340"></a>00340 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga6d80876bcae54f47cde79d0bce20321d" title="Checks whether the filename is an absolute path.">_dbus_path_is_absolute</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename);
<a name="l00341"></a>00341
<a name="l00342"></a>00342 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga079d34a9d90759e6b3ebebab424c696e" title="Returns the standard directories for a session bus to look for service activation files...">_dbus_get_standard_session_servicedirs</a> (<a class="code" href="structDBusList.html" title="A node in a linked list.">DBusList</a> **dirs);
<a name="l00343"></a>00343 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga5193160c3dc144af34b250cfb5b0a61e" title="Returns the standard directories for a system bus to look for service activation files.">_dbus_get_standard_system_servicedirs</a> (<a class="code" href="structDBusList.html" title="A node in a linked list.">DBusList</a> **dirs);
<a name="l00344"></a>00344
<a name="l00345"></a>00345 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga6a9478a21745b128750df87ac557c7d4" title="Append the absolute path of the system.conf file (there is no system bus on Windows so this can just ...">_dbus_append_system_config_file</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00346"></a>00346 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gacc062b5f20f4a355ea78afccb0abd5f9" title="Append the absolute path of the session.conf file.">_dbus_append_session_config_file</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00347"></a>00347
<a name="l00349"></a><a class="code" href="group__DBusSysdeps.html#ga54409fb809f59d2b497592c49df04c52">00349</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusDirIter.html" title="Internals of directory iterator.">DBusDirIter</a> <a class="code" href="structDBusDirIter.html" title="Internals of directory iterator.">DBusDirIter</a>;
<a name="l00350"></a>00350
<a name="l00351"></a>00351 <a class="code" href="structDBusDirIter.html" title="Internals of directory iterator.">DBusDirIter</a>* <a class="code" href="group__DBusInternalsUtils.html#gaaf6eb8179fb6ea2175ed9742a0c8be68" title="Open a directory to iterate over.">_dbus_directory_open</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00352"></a>00352 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00353"></a>00353 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gab9a2ddb130da035d6186f2d96bf37cb4" title="Get next file in the directory.">_dbus_directory_get_next_file</a> (<a class="code" href="structDBusDirIter.html" title="Internals of directory iterator.">DBusDirIter</a> *iter,
<a name="l00354"></a>00354 <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00355"></a>00355 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00356"></a>00356 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga1821b64302fe8e12278fa227eb11d393" title="Closes a directory iteration.">_dbus_directory_close</a> (<a class="code" href="structDBusDirIter.html" title="Internals of directory iterator.">DBusDirIter</a> *iter);
<a name="l00357"></a>00357
<a name="l00358"></a>00358 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga8e16f75e361d9fed43223f69baf0e2a5" title="Checks to make sure the given directory is private to the user.">_dbus_check_dir_is_private_to_user</a> (<a class="code" href="structDBusString.html">DBusString</a> *dir,
<a name="l00359"></a>00359 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00360"></a>00360
<a name="l00361"></a>00361 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga21ef96952f98f23e590ebbf060fd5ca6" title="Sets the file descriptor to be close on exec.">_dbus_fd_set_close_on_exec</a> (intptr_t fd);
<a name="l00362"></a>00362
<a name="l00363"></a>00363 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusSysdeps.html#ga3ecdae905f2d9e95fd35891b20f06532" title="Gets the temporary files directory by inspecting the environment variables TMPDIR, TMP, and TEMP in that order.">_dbus_get_tmpdir</a> (<span class="keywordtype">void</span>);
<a name="l00364"></a>00364
<a name="l00368"></a>00368 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#gafb4454c18ee8e5bcc20dbccd93e1d9ba" title="Random numbers.">_dbus_generate_pseudorandom_bytes_buffer</a> (<span class="keywordtype">char</span> *buffer,
<a name="l00369"></a>00369 <span class="keywordtype">int</span> n_bytes);
<a name="l00370"></a>00370 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#gaa32f87746e9264b2425736043d02fad4" title="Fills n_bytes of the given buffer with random bytes.">_dbus_generate_random_bytes_buffer</a> (<span class="keywordtype">char</span> *buffer,
<a name="l00371"></a>00371 <span class="keywordtype">int</span> n_bytes);
<a name="l00372"></a>00372 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gac9fd08af5e54c0e9b3db108b48a65778" title="Generates the given number of random bytes, using the best mechanism we can come up with...">_dbus_generate_random_bytes</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00373"></a>00373 <span class="keywordtype">int</span> n_bytes);
<a name="l00374"></a>00374 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga709ce349c6ee05263850444fb4e0177d" title="Generates the given number of random bytes, where the bytes are chosen from the alphanumeric ASCII su...">_dbus_generate_random_ascii</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00375"></a>00375 <span class="keywordtype">int</span> n_bytes);
<a name="l00376"></a>00376
<a name="l00377"></a>00377 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusInternalsUtils.html#ga2212aa0e5732257598a6597748c658e4" title="Converts a UNIX errno, or Windows errno or WinSock error value into a DBusError name.">_dbus_error_from_errno</a> (<span class="keywordtype">int</span> error_number);
<a name="l00378"></a>00378 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusInternalsUtils.html#gaf4f1db48d66dcb310b9771beb955578e" title="Converts the current system errno value into a DBusError name.">_dbus_error_from_system_errno</a> (<span class="keywordtype">void</span>);
<a name="l00379"></a>00379
<a name="l00380"></a>00380 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#gaf0f4cb7f145fe1f48f5302277560407a" title="Assign 0 to the global errno variable.">_dbus_set_errno_to_zero</a> (<span class="keywordtype">void</span>);
<a name="l00381"></a>00381 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gab9ccdfee5c7986ff236a6cde66a9af2f" title="See if errno is set.">_dbus_get_is_errno_nonzero</a> (<span class="keywordtype">void</span>);
<a name="l00382"></a>00382 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gaa03e5d4d95ef46a70d25fe315e674e24" title="See if errno is EAGAIN or EWOULDBLOCK (this has to be done differently for Winsock so is abstracted)...">_dbus_get_is_errno_eagain_or_ewouldblock</a> (<span class="keywordtype">void</span>);
<a name="l00383"></a>00383 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gaec2ce24907adaedd1bf88bb28d82c96d" title="See if errno is ENOMEM.">_dbus_get_is_errno_enomem</a> (<span class="keywordtype">void</span>);
<a name="l00384"></a>00384 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga08e67a10b197995c101c89f248c24105" title="See if errno is EINTR.">_dbus_get_is_errno_eintr</a> (<span class="keywordtype">void</span>);
<a name="l00385"></a>00385 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga1001bb8d98eaee545a4e9b3994d13440" title="See if errno is EPIPE.">_dbus_get_is_errno_epipe</a> (<span class="keywordtype">void</span>);
<a name="l00386"></a>00386 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga69062313641c53627f5afb7be96e4ea4" title="See if errno is ETOOMANYREFS.">_dbus_get_is_errno_etoomanyrefs</a> (<span class="keywordtype">void</span>);
<a name="l00387"></a>00387 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusInternalsUtils.html#ga56de84795d6df4162ad79b3be7af7588" title="Get error message from errno.">_dbus_strerror_from_errno</a> (<span class="keywordtype">void</span>);
<a name="l00388"></a>00388
<a name="l00389"></a>00389 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga6890d4cde3afec0bf274ca2af8c9e204" title="signal (SIGPIPE, SIG_IGN);">_dbus_disable_sigpipe</a> (<span class="keywordtype">void</span>);
<a name="l00390"></a>00390
<a name="l00391"></a>00391
<a name="l00392"></a>00392 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga203e3257b50597a8fe7757c920474a20" title="Exit the process, returning the given value.">_dbus_exit</a> (<span class="keywordtype">int</span> code) _DBUS_GNUC_NORETURN;
<a name="l00393"></a>00393
<a name="l00394"></a>00394 <span class="keywordtype">int</span> <a class="code" href="group__DBusSysdeps.html#gaffaf8b5bb832c20a8ccb10f012920776" title="Measure the length of the given format string and arguments, not including the terminating nul...">_dbus_printf_string_upper_bound</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *format,
<a name="l00395"></a>00395 va_list args);
<a name="l00396"></a>00396
<a name="l00397"></a>00397
<a name="l00401"></a><a class="code" href="structDBusStat.html">00401</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00402"></a>00402 {
<a name="l00403"></a><a class="code" href="structDBusStat.html#a722ec64f90cf29e0b8bafaea55b90d27">00403</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#a722ec64f90cf29e0b8bafaea55b90d27" title="File mode.">mode</a>;
<a name="l00404"></a><a class="code" href="structDBusStat.html#a1b5ef4ce7f46c798d4b222c61f8912f7">00404</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#a1b5ef4ce7f46c798d4b222c61f8912f7" title="Number of hard links.">nlink</a>;
<a name="l00405"></a><a class="code" href="structDBusStat.html#a300fac914534803bcfacdd87b15e1a8d">00405</a> dbus_uid_t <a class="code" href="structDBusStat.html#a300fac914534803bcfacdd87b15e1a8d" title="User owning file.">uid</a>;
<a name="l00406"></a><a class="code" href="structDBusStat.html#a98dd4c45ffc8488b399cb3feb57ef48c">00406</a> dbus_gid_t <a class="code" href="structDBusStat.html#a98dd4c45ffc8488b399cb3feb57ef48c" title="Group owning file.">gid</a>;
<a name="l00407"></a><a class="code" href="structDBusStat.html#a1b8b518248d41601766ae955bdca0de2">00407</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#a1b8b518248d41601766ae955bdca0de2" title="Size of file.">size</a>;
<a name="l00408"></a><a class="code" href="structDBusStat.html#a9c68f29816af750a47d80177a23d6cf1">00408</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#a9c68f29816af750a47d80177a23d6cf1" title="Access time.">atime</a>;
<a name="l00409"></a><a class="code" href="structDBusStat.html#acf4750b66ccb06b49c7eaf2405d8c417">00409</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#acf4750b66ccb06b49c7eaf2405d8c417" title="Modify time.">mtime</a>;
<a name="l00410"></a><a class="code" href="structDBusStat.html#aceb3c4a3230d1a9063baee27c140fbb3">00410</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structDBusStat.html#aceb3c4a3230d1a9063baee27c140fbb3" title="Creation time.">ctime</a>;
<a name="l00411"></a>00411 } <a class="code" href="structDBusStat.html" title="Portable struct with stat() results.">DBusStat</a>;
<a name="l00412"></a>00412
<a name="l00413"></a>00413 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga04e98ad0e3a181f0a5921a4cbc49cf08" title="stat() wrapper.">_dbus_stat</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00414"></a>00414 <a class="code" href="structDBusStat.html" title="Portable struct with stat() results.">DBusStat</a> *statbuf,
<a name="l00415"></a>00415 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00416"></a>00416 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gae96a3f400324b065f78a865a86454d09" title="Creates a full-duplex pipe (as in socketpair()).">_dbus_full_duplex_pipe</a> (<span class="keywordtype">int</span> *fd1,
<a name="l00417"></a>00417 <span class="keywordtype">int</span> *fd2,
<a name="l00418"></a>00418 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> blocking,
<a name="l00419"></a>00419 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00420"></a>00420
<a name="l00421"></a>00421 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga8646ab2ef727fcc862c7904113c88a8d" title="On GNU libc systems, print a crude backtrace to stderr.">_dbus_print_backtrace</a> (<span class="keywordtype">void</span>);
<a name="l00422"></a>00422
<a name="l00423"></a>00423 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gaca61af8681a48862835ea8cfd263f5ab" title="Does the chdir, fork, setsid, etc.">_dbus_become_daemon</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *pidfile,
<a name="l00424"></a>00424 <a class="code" href="structDBusPipe.html">DBusPipe</a> *print_pid_pipe,
<a name="l00425"></a>00425 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error,
<a name="l00426"></a>00426 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> keep_umask);
<a name="l00427"></a>00427
<a name="l00428"></a>00428 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga45f661c5a089ed45233a1acabaf31964" title="Verify that after the fork we can successfully change to this user.">_dbus_verify_daemon_user</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *user);
<a name="l00429"></a>00429 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga82c920a8c3b5958ba1ecf8e5f5d6373b" title="Changes the user and group the bus is running as.">_dbus_change_to_daemon_user</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *user,
<a name="l00430"></a>00430 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00431"></a>00431
<a name="l00432"></a>00432 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga123620ec5ce2b881786588121d6a03fd" title="Writes the given pid_to_write to a pidfile (if non-NULL) and/or to a pipe (if non-NULL).">_dbus_write_pid_to_file_and_pipe</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *pidfile,
<a name="l00433"></a>00433 <a class="code" href="structDBusPipe.html">DBusPipe</a> *print_pid_pipe,
<a name="l00434"></a>00434 dbus_pid_t pid_to_write,
<a name="l00435"></a>00435 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00436"></a>00436
<a name="l00437"></a>00437 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga3551d425aba3d92e652b8809fdfe9339" title="Get a printable string describing the command used to execute the process with pid.">_dbus_command_for_pid</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> pid,
<a name="l00438"></a>00438 <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00439"></a>00439 <span class="keywordtype">int</span> max_len,
<a name="l00440"></a>00440 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00441"></a>00441
<a name="l00443"></a><a class="code" href="group__DBusSysdeps.html#ga5c69cb20ec385aa86a213c898149f8ea">00443</a> <span class="keyword">typedef</span> void (* <a class="code" href="group__DBusSysdeps.html#ga5c69cb20ec385aa86a213c898149f8ea" title="A UNIX signal handler.">DBusSignalHandler</a>) (<span class="keywordtype">int</span> sig);
<a name="l00444"></a>00444
<a name="l00445"></a>00445 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga4aa7500366dad2dd6d3fa97b3aa7165b" title="Installs a UNIX signal handler.">_dbus_set_signal_handler</a> (<span class="keywordtype">int</span> sig,
<a name="l00446"></a>00446 <a class="code" href="group__DBusSysdeps.html#ga5c69cb20ec385aa86a213c898149f8ea" title="A UNIX signal handler.">DBusSignalHandler</a> handler);
<a name="l00447"></a>00447
<a name="l00448"></a>00448 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga31ec42cef2d15ca358e737bb5f19c5cf" title="Checks if user is at the console.">_dbus_user_at_console</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *username,
<a name="l00449"></a>00449 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00450"></a>00450
<a name="l00451"></a>00451 <span class="keywordtype">void</span> _dbus_init_system_log (<a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> is_daemon);
<a name="l00452"></a>00452
<a name="l00453"></a>00453 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00454"></a>00454 DBUS_SYSTEM_LOG_INFO,
<a name="l00455"></a>00455 DBUS_SYSTEM_LOG_SECURITY,
<a name="l00456"></a>00456 DBUS_SYSTEM_LOG_FATAL
<a name="l00457"></a>00457 } DBusSystemLogSeverity;
<a name="l00458"></a>00458
<a name="l00459"></a>00459 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga73a19aaac889c47ba5f6caa5107a47a5" title="Log a message to the system log file (e.g.">_dbus_system_log</a> (DBusSystemLogSeverity severity, <span class="keyword">const</span> <span class="keywordtype">char</span> *msg, ...) _DBUS_GNUC_PRINTF (2, 3);
<a name="l00460"></a>00460 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga82cb5dfe162480ad15faddcf74ea0617" title="Log a message to the system log file (e.g.">_dbus_system_logv</a> (DBusSystemLogSeverity severity, const <span class="keywordtype">char</span> *msg, va_list args);
<a name="l00461"></a>00461
<a name="l00462"></a>00462 <span class="comment">/* Define DBUS_VA_COPY() to do the right thing for copying va_list variables.</span>
<a name="l00463"></a>00463 <span class="comment"> * config.h may have already defined DBUS_VA_COPY as va_copy or __va_copy.</span>
<a name="l00464"></a>00464 <span class="comment"> */</span>
<a name="l00465"></a>00465 <span class="preprocessor">#if !defined (DBUS_VA_COPY)</span>
<a name="l00466"></a>00466 <span class="preprocessor"></span><span class="preprocessor"># if defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32))</span>
<a name="l00467"></a>00467 <span class="preprocessor"></span><span class="preprocessor"># define DBUS_VA_COPY(ap1, ap2) (*(ap1) = *(ap2))</span>
<a name="l00468"></a>00468 <span class="preprocessor"></span><span class="preprocessor"># elif defined (DBUS_VA_COPY_AS_ARRAY)</span>
<a name="l00469"></a>00469 <span class="preprocessor"></span><span class="preprocessor"># define DBUS_VA_COPY(ap1, ap2) memcpy ((ap1), (ap2), sizeof (va_list))</span>
<a name="l00470"></a>00470 <span class="preprocessor"></span><span class="preprocessor"># else </span><span class="comment">/* va_list is a pointer */</span>
<a name="l00471"></a>00471 <span class="preprocessor"># define DBUS_VA_COPY(ap1, ap2) ((ap1) = (ap2))</span>
<a name="l00472"></a>00472 <span class="preprocessor"></span><span class="preprocessor"># endif </span><span class="comment">/* va_list is a pointer */</span>
<a name="l00473"></a>00473 <span class="preprocessor">#endif </span><span class="comment">/* !DBUS_VA_COPY */</span>
<a name="l00474"></a>00474
<a name="l00475"></a>00475
<a name="l00480"></a><a class="code" href="group__DBusSysdeps.html#ga50e1eddfbce31548ca2c50ca7b9ebf35">00480</a> <span class="preprocessor">#define _DBUS_BYTE_OF_PRIMITIVE(p, i) \</span>
<a name="l00481"></a>00481 <span class="preprocessor"> (((const char*)&(p))[(i)])</span>
<a name="l00482"></a>00482 <span class="preprocessor"></span>
<a name="l00487"></a><a class="code" href="group__DBusSysdeps.html#gac8269b795461ee42004b65734ce89e0b">00487</a> <span class="preprocessor">#define _DBUS_DOUBLES_BITWISE_EQUAL(a, b) \</span>
<a name="l00488"></a>00488 <span class="preprocessor"> (_DBUS_BYTE_OF_PRIMITIVE (a, 0) == _DBUS_BYTE_OF_PRIMITIVE (b, 0) && \</span>
<a name="l00489"></a>00489 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 1) == _DBUS_BYTE_OF_PRIMITIVE (b, 1) && \</span>
<a name="l00490"></a>00490 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 2) == _DBUS_BYTE_OF_PRIMITIVE (b, 2) && \</span>
<a name="l00491"></a>00491 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 3) == _DBUS_BYTE_OF_PRIMITIVE (b, 3) && \</span>
<a name="l00492"></a>00492 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 4) == _DBUS_BYTE_OF_PRIMITIVE (b, 4) && \</span>
<a name="l00493"></a>00493 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 5) == _DBUS_BYTE_OF_PRIMITIVE (b, 5) && \</span>
<a name="l00494"></a>00494 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 6) == _DBUS_BYTE_OF_PRIMITIVE (b, 6) && \</span>
<a name="l00495"></a>00495 <span class="preprocessor"> _DBUS_BYTE_OF_PRIMITIVE (a, 7) == _DBUS_BYTE_OF_PRIMITIVE (b, 7))</span>
<a name="l00496"></a>00496 <span class="preprocessor"></span>
<a name="l00497"></a>00497 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gabc4712c0db91f11854cdd933027355af" title="Returns the address of a new session bus.">_dbus_get_autolaunch_address</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *scope,
<a name="l00498"></a>00498 <a class="code" href="structDBusString.html">DBusString</a> *address,
<a name="l00499"></a>00499 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00500"></a>00500
<a name="l00501"></a>00501 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gade479f90c1083346d74bc21af178d856" title="Determines the address of the session bus by querying a platform-specific method.">_dbus_lookup_session_address</a> (<a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> *supported,
<a name="l00502"></a>00502 <a class="code" href="structDBusString.html">DBusString</a> *address,
<a name="l00503"></a>00503 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00504"></a>00504
<a name="l00508"></a><a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869">00508</a> <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a> <a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>;
<a name="l00509"></a>00509
<a name="l00510"></a>00510 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga3f073afc8ef8397471531baf513e1bb5" title="Reads the uuid of the machine we're running on from the dbus configuration.">_dbus_read_local_machine_uuid</a> (<a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a> *machine_id,
<a name="l00511"></a>00511 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> create_if_not_found,
<a name="l00512"></a>00512 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00513"></a>00513
<a name="l00519"></a>00519 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#gae7be34dbffb6458578e86c59a26d4fad" title="Initialize threads as in dbus_threads_init_default(), appropriately for the platform.">_dbus_threads_init_platform_specific</a> (<span class="keywordtype">void</span>);
<a name="l00520"></a>00520
<a name="l00524"></a>00524 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga65d32daf6d876dd39b7410f3fa35b591" title="Lock a static mutex used to protect _dbus_threads_init_platform_specific().">_dbus_threads_lock_platform_specific</a> (<span class="keywordtype">void</span>);
<a name="l00525"></a>00525
<a name="l00529"></a>00529 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga99c22b80d17ef18fa0a11f3a2a415403" title="Undo _dbus_threads_lock_platform_specific().">_dbus_threads_unlock_platform_specific</a> (<span class="keywordtype">void</span>);
<a name="l00530"></a>00530
<a name="l00531"></a>00531 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusSysdeps.html#ga9393ded03e3b9812e4ba99b437ea992d" title="Split paths into a list of char strings.">_dbus_split_paths_and_append</a> (<a class="code" href="structDBusString.html">DBusString</a> *dirs,
<a name="l00532"></a>00532 <span class="keyword">const</span> <span class="keywordtype">char</span> *suffix,
<a name="l00533"></a>00533 <a class="code" href="structDBusList.html" title="A node in a linked list.">DBusList</a> **dir_list);
<a name="l00534"></a>00534
<a name="l00535"></a>00535 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group__DBusSysdeps.html#ga1b30aa55e8758ed6e1b62e0f86866543" title="The only reason this is separate from _dbus_getpid() is to allow it on Windows for logging but not fo...">_dbus_pid_for_log</a> (<span class="keywordtype">void</span>);
<a name="l00536"></a>00536
<a name="l00537"></a>00537 <span class="comment">/* FIXME move back to dbus-sysdeps-unix.h probably -</span>
<a name="l00538"></a>00538 <span class="comment"> * the PID file handling just needs a little more abstraction</span>
<a name="l00539"></a>00539 <span class="comment"> * in the bus daemon first.</span>
<a name="l00540"></a>00540 <span class="comment"> */</span>
<a name="l00541"></a>00541 dbus_pid_t <a class="code" href="group__DBusSysdeps.html#ga870807b07f3b1c1a725eb9408edad147" title="Gets our process ID.">_dbus_getpid</a> (<span class="keywordtype">void</span>);
<a name="l00542"></a>00542
<a name="l00543"></a>00543 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga82c920a8c3b5958ba1ecf8e5f5d6373b" title="Changes the user and group the bus is running as.">_dbus_change_to_daemon_user</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *user,
<a name="l00544"></a>00544 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00545"></a>00545
<a name="l00546"></a>00546 <span class="keywordtype">void</span> <a class="code" href="group__DBusSysdeps.html#ga184b42c4b42b91ef73e9ee50a1fa12c2" title="Called when the bus daemon is signaled to reload its configuration; any caches should be nuked...">_dbus_flush_caches</a> (<span class="keywordtype">void</span>);
<a name="l00547"></a>00547
<a name="l00548"></a>00548 <span class="comment">/*</span>
<a name="l00549"></a>00549 <span class="comment"> * replaces the term DBUS_PREFIX in configure_time_path by the</span>
<a name="l00550"></a>00550 <span class="comment"> * current dbus installation directory. On unix this function is a noop</span>
<a name="l00551"></a>00551 <span class="comment"> *</span>
<a name="l00552"></a>00552 <span class="comment"> * @param configure_time_path</span>
<a name="l00553"></a>00553 <span class="comment"> * @return real path</span>
<a name="l00554"></a>00554 <span class="comment"> */</span>
<a name="l00555"></a>00555 <span class="keyword">const</span> <span class="keywordtype">char</span> *
<a name="l00556"></a>00556 _dbus_replace_install_prefix (<span class="keyword">const</span> <span class="keywordtype">char</span> *configure_time_path);
<a name="l00557"></a>00557
<a name="l00558"></a>00558 <span class="comment">/* Do not set this too high: it is a denial-of-service risk.</span>
<a name="l00559"></a>00559 <span class="comment"> * See <https://bugs.freedesktop.org/show_bug.cgi?id=82820></span>
<a name="l00560"></a>00560 <span class="comment"> *</span>
<a name="l00561"></a>00561 <span class="comment"> * (This needs to be in the non-Unix-specific header so that</span>
<a name="l00562"></a>00562 <span class="comment"> * the config-parser can use it.)</span>
<a name="l00563"></a>00563 <span class="comment"> */</span>
<a name="l00564"></a>00564 <span class="preprocessor">#define DBUS_DEFAULT_MESSAGE_UNIX_FDS 16</span>
<a name="l00565"></a>00565 <span class="preprocessor"></span>
<a name="l00566"></a>00566 <span class="keyword">typedef</span> <span class="keyword">struct </span>DBusRLimit DBusRLimit;
<a name="l00567"></a>00567
<a name="l00568"></a>00568 DBusRLimit *_dbus_rlimit_save_fd_limit (<a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00569"></a>00569 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_rlimit_raise_fd_limit_if_privileged (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> desired,
<a name="l00570"></a>00570 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00571"></a>00571 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_rlimit_restore_fd_limit (DBusRLimit *saved,
<a name="l00572"></a>00572 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error);
<a name="l00573"></a>00573 <span class="keywordtype">void</span> _dbus_rlimit_free (DBusRLimit *lim);
<a name="l00574"></a>00574
<a name="l00577"></a>00577 <a class="code" href="group__DBusMacros.html#gae4a9263a43f8220f6e1c0fd07cf6e59a" title="Macro used after declaring functions in the D-Bus header files.">DBUS_END_DECLS</a>
<a name="l00578"></a>00578
<a name="l00579"></a>00579
<a name="l00580"></a>00580 <span class="preprocessor">#ifdef DBUS_WIN</span>
<a name="l00581"></a>00581 <span class="preprocessor"></span><span class="preprocessor">#include "dbus-sysdeps-win.h"</span>
<a name="l00582"></a>00582 <span class="preprocessor">#endif</span>
<a name="l00583"></a>00583 <span class="preprocessor"></span>
<a name="l00584"></a>00584 <span class="preprocessor">#endif </span><span class="comment">/* DBUS_SYSDEPS_H */</span>
</pre></div></div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:32 for D-Bus by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>