]> andersk Git - openssh.git/blobdiff - sftp-common.h
- (tim) [configure.ac] OpenServer 5 needs BROKEN_GETADDRINFO too.
[openssh.git] / sftp-common.h
index 3e4f502b0590f61d735dfcb7c66ae8bbb4c1f618..9ed86c070dd7b9fb760eab8189d8e325797c1d66 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sftp-common.h,v 1.2 2001/06/26 06:33:01 itojun Exp $  */
+/* $OpenBSD: sftp-common.h,v 1.11 2010/01/13 01:40:16 djm Exp $ */
 
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
@@ -25,6 +25,9 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/* Maximum packet that we are willing to send/accept */
+#define SFTP_MAX_MSG_LENGTH    (256 * 1024)
+
 typedef struct Attrib Attrib;
 
 /* File attributes */
@@ -38,18 +41,11 @@ struct Attrib {
        u_int32_t       mtime;
 };
 
-/* Clear contents of attributes structure */
-void attrib_clear(Attrib *);
-
-/* Convert from struct stat to filexfer attribs */
-void stat_to_attrib(struct stat *, Attrib *);
-
-/* Decode attributes in buffer */
-Attrib *decode_attrib(Buffer *);
+void    attrib_clear(Attrib *);
+void    stat_to_attrib(const struct stat *, Attrib *);
+void    attrib_to_stat(const Attrib *, struct stat *);
+Attrib *decode_attrib(Buffer *);
+void    encode_attrib(Buffer *, const Attrib *);
+char   *ls_file(const char *, const struct stat *, int, int);
 
-/* Encode attributes to buffer */
-void encode_attrib(Buffer *, Attrib *);
-
-/* Convert from SSH2_FX_ status to text error message */
 const char *fx2txt(int);
-
This page took 0.19871 seconds and 4 git commands to generate.