diff options
Diffstat (limited to 'upstream/debian-unstable/man3/sd_bus_call_method.3')
-rw-r--r-- | upstream/debian-unstable/man3/sd_bus_call_method.3 | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/upstream/debian-unstable/man3/sd_bus_call_method.3 b/upstream/debian-unstable/man3/sd_bus_call_method.3 index 6690ecbf..70527f91 100644 --- a/upstream/debian-unstable/man3/sd_bus_call_method.3 +++ b/upstream/debian-unstable/man3/sd_bus_call_method.3 @@ -1,5 +1,5 @@ '\" t -.TH "SD_BUS_CALL_METHOD" "3" "" "systemd 255" "sd_bus_call_method" +.TH "SD_BUS_CALL_METHOD" "3" "" "systemd 256~rc3" "sd_bus_call_method" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -110,8 +110,7 @@ from an early phase of the program when no other threads have been started\&. #define MEMBER "GetUnitByPID" static int log_error(int error, const char *message) { - errno = \-error; - fprintf(stderr, "%s: %m\en", message); + fprintf(stderr, "%s: %s\en", message, strerror(\-error)); return error; } @@ -146,17 +145,13 @@ int main(int argc, char **argv) { This defines a minimally useful program that will open a connection to the bus, call a method, wait for the reply, and finally extract and print the answer\&. It does error handling and proper memory management\&. .SH "HISTORY" .PP -\fBsd_bus_call_method()\fR, +\fBsd_bus_call_method()\fR, and +\fBsd_bus_call_method_async()\fR +were added in version 221\&. +.PP \fBsd_bus_call_methodv()\fR, -\fBsd_bus_call_method_async()\fR, and \fBsd_bus_call_method_asyncv()\fR were added in version 246\&. .SH "SEE ALSO" .PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_call\fR(3), -\fBsd_bus_set_property\fR(3), -\fBsd_bus_emit_signal\fR(3) +\fBsystemd\fR(1), \fBsd-bus\fR(3), \fBsd_bus_message_new_method_call\fR(3), \fBsd_bus_message_append\fR(3), \fBsd_bus_call\fR(3), \fBsd_bus_set_property\fR(3), \fBsd_bus_emit_signal\fR(3) |