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.
 
 
 
 

44 lines
1.4 KiB

  1. .TH libssh2_sftp_close_handle 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_sftp_close_handle - close filehandle
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. #include <libssh2_sftp.h>
  7. int
  8. libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);
  9. int
  10. libssh2_sftp_close(LIBSSH2_SFTP_HANDLE *handle);
  11. int
  12. libssh2_sftp_closedir(LIBSSH2_SFTP_HANDLE *handle);
  13. .SH DESCRIPTION
  14. \fIhandle\fP - SFTP File Handle as returned by \fBlibssh2_sftp_open_ex(3)\fP
  15. or \fBlibssh2_sftp_opendir(3)\fP (which is a macro).
  16. Close an active LIBSSH2_SFTP_HANDLE. Because files and directories share the
  17. same underlying storage mechanism these methods may be used
  18. interchangeably. \fBlibssh2_sftp_close(3)\fP and \fBlibssh2_sftp_closedir(3)\fP
  19. are macros for \fBlibssh2_sftp_close_handle(3)\fP.
  20. .SH RETURN VALUE
  21. Return 0 on success or negative on failure. It returns
  22. LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
  23. LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
  24. .SH ERRORS
  25. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  26. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  27. \fILIBSSH2_ERROR_SOCKET_TIMEOUT\fP -
  28. \fILIBSSH2_ERROR_SFTP_PROTOCOL\fP - An invalid SFTP protocol response was
  29. received on the socket, or an SFTP operation caused an errorcode to
  30. be returned by the server.
  31. .SH SEE ALSO
  32. .BR libssh2_sftp_open_ex(3)