1 .\" $Id: libssh2_sftp_open_ex.3,v 1.8 2007/06/13 16:41:33 jehousley Exp $
3 .TH libssh2_sftp_open_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
8 #include <libssh2_sftp.h>
11 libssh2_sftp_open_ex(LIBSSH2_SFTP *sftp, const char *filename, unsigned int filename_len, unsigned long flags, long mode, int open_type);
14 libssh2_sftp_open(LIBSSH2_SFTP *sftp, const char *filename, unsigned long flags, long mode);
17 libssh2_sftp_opendir(LIBSSH2_SFTP *sftp, const char *path);
20 \fIsftp\fP - SFTP instance as returned by
21 .BR libssh2_sftp_init(3)
23 \fIfilename\fP - Remote file/directory resource to open
25 \fIfilename_len\fP - Length of filename
27 \fIflags\fP - Any (reasonable) combination of the LIBSSH2_FXF_* constants
28 corresponding fopen modes.
30 \fImode\fP - POSIX file permissions to assign if the file is being newly
33 \fIopen_type\fP - Either of LIBSSH2_SFTP_OPENFILE (to open a file) or
34 LIBSSH2_SFTP_OPENDIR (to open a directory).
36 A pointer to the newly created LIBSSH2_SFTP_HANDLE instance or NULL on
39 \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
41 \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
43 \fILIBSSH2_ERROR_SOCKET_TIMEOUT\fP -
45 \fILIBSSH2_ERROR_SFTP_PROTOCOL\fP - An invalid SFTP protocol response was
46 received on the socket, or an SFTP operation caused an errorcode to be
47 returned by the server.
49 \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would block.
52 .BR libssh_sftp_close(3)