geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
1.1 KiB

  1. .TH libssh2_session_last_error 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_last_error - get the most recent error
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_last_error(LIBSSH2_SESSION *session, char **errmsg, int *errmsg_len, int want_buf);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fIerrmsg\fP - If not NULL, is populated by reference with the human
  12. readable form of the most recent error message.
  13. \fIerrmsg_len\fP - If not NULL, is populated by reference with the length
  14. of errmsg. (The string is NUL-terminated, so the length is only useful as
  15. an optimization, to avoid calling strlen.)
  16. \fIwant_buf\fP - If set to a non-zero value, "ownership" of the errmsg
  17. buffer will be given to the calling scope. If necessary, the errmsg buffer
  18. will be duplicated.
  19. Determine the most recent error condition and its cause.
  20. .SH RETURN VALUE
  21. Numeric error code corresponding to the the Error Code constants.
  22. .SH SEE ALSO
  23. .BR libssh2_session_last_errno(3)
  24. .BR libssh2_session_set_last_error(3)