1libssh2_channel_get_exit_signal(3)  libssh2 libssh2_channel_get_exit_signal(3)
2
3
4

NAME

6       libssh2_channel_get_exit_signal - get the remote exit signal
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int
12       libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL *channel,
13                                       char **exitsignal, size_t *exitsignal_len,
14                                       char **errmsg, size_t *errmsg_len,
15                                       char **langtag, size_t *langtag_len);
16

DESCRIPTION

18       channel - Closed channel stream to retrieve exit signal from.
19
20       exitsignal  - If not NULL, is populated by reference with the exit sig‐
21       nal (without leading "SIG"). Note that the string is stored in a  newly
22       allocated  buffer. If the remote program exited cleanly, the referenced
23       string pointer will be set to NULL.
24
25       exitsignal_len - If not NULL, is populated by reference with the length
26       of exitsignal.
27
28       errmsg  - If not NULL, is populated by reference with the error message
29       (if provided by remote server, if not it will be  set  to  NULL).  Note
30       that the string is stored in a newly allocated buffer.
31
32       errmsg_len  - If not NULL, is populated by reference with the length of
33       errmsg.
34
35       langtag - If not NULL, is populated by reference with the language  tag
36       (if  provided  by  remote  server, if not it will be set to NULL). Note
37       that the string is stored in a newly allocated buffer.
38
39       langtag_len - If not NULL, is populated by reference with the length of
40       langtag.
41

RETURN VALUE

43       Numeric error code corresponding to the the Error Code constants.
44
45
46
47libssh2 1.2.8                     4 Oct 2010libssh2_channel_get_exit_signal(3)
Impressum