Debian Codegraph @

upstream/debian-unstable/man3/sd_bus_pending_method_calls.3

raw
1 '\" t
2 .TH "SD_BUS_PENDING_METHOD_CALLS" "3" "" "systemd 261~rc3" "sd_bus_pending_method_calls"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 sd_bus_pending_method_calls \- Return the number of currently pending, outgoing method calls
24 .SH "SYNOPSIS"
25 .sp
26 .ft B
27 .nf
28 #include <systemd/sd\-bus\&.h>
29 .fi
30 .ft
31 .HP \w'int\ sd_bus_pending_method_calls('u
32 .BI "int sd_bus_pending_method_calls(sd_bus\ *" "bus" ");"
33 .SH "DESCRIPTION"
34 .PP
35 \fBsd_bus_pending_method_calls()\fR
36 returns the number of currently pending outgoing method calls, i\&.e\&. method calls enqueued with
37 \fBsd_bus_call_async\fR(3)
38 for which no reply has been received yet, and which have not reached a timeout yet\&.
39 .PP
40 The
41 \fIbus\fR
42 argument may be
43 \fBNULL\fR, in which case zero is returned\&.
44 .SH "RETURN VALUE"
45 .PP
46 This function returns 0 if there are no pending method calls, or a
47 \fBNULL\fR
48 bus object was specified\&. On failure, a negative errno\-style error code is returned\&.
49 .SS "Errors"
50 .PP
51 Returned errors may indicate the following problems:
52 .PP
53 \fB\-ECHILD\fR
54 .RS 4
55 The bus connection has been created in a different process, library or module instance\&.
56 .RE
57 .SH "NOTES"
58 .PP
59 Functions described here are available as a shared library, which can be compiled against and linked to with the
60 \fBlibsystemd\fR\ \&\fBpkg-config\fR(1)
61 file\&.
62 .PP
63 The code described here uses
64 \fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call
65 \fBsetenv\fR(3)
66 from a parallel thread\&. It is recommended to only do calls to
67 \fBsetenv()\fR
68 from an early phase of the program when no other threads have been started\&.
69 .SH "HISTORY"
70 .PP
71 \fBsd_bus_pending_method_calls()\fR
72 was added in version 257\&.
73 .SH "SEE ALSO"
74 .PP
75 \fBsystemd\fR(1), \fBsd-bus\fR(3), \fBsd_bus_call_async\fR(3)