geom_gate userland utility improvements

libssh2_sftp_last_error.3 753 B

123456789101112131415161718192021222324
  1. .TH libssh2_sftp_last_error 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_sftp_last_error - return the last SFTP-specific error code
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. #include <libssh2_sftp.h>
  7. unsigned long
  8. libssh2_sftp_last_error(LIBSSH2_SFTP *sftp);
  9. .SH DESCRIPTION
  10. \fIsftp\fP - SFTP instance as returned by
  11. .BR libssh2_sftp_init(3)
  12. Returns the last error code produced by the SFTP layer. Note that this only
  13. returns a sensible error code if libssh2 returned LIBSSH2_ERROR_SFTP_PROTOCOL
  14. in a previous call. Using \fBlibssh2_sftp_last_error(3)\fP without a
  15. preceding SFTP protocol error, it will return an unspecified value.
  16. .SH RETURN VALUE
  17. Current error code state of the SFTP instance.
  18. .SH SEE ALSO
  19. .BR libssh2_sftp_init(3)