ssh2.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. enum {
  10. Maxpayload = 32*1024,
  11. Maxrpcbuf = 8192, /* devmnt's MAXRPC - IOHDRSZ */
  12. Copybufsz = 4096,
  13. Blobsz = 512,
  14. Numbsz = 24, /* enough digits for 2^64 */
  15. Defstk = 80*1024, /* was 8K, which seems small */
  16. Maxtoks = 32,
  17. Arbpathlen = 128,
  18. Arbbufsz = 256,
  19. Bigbufsz = 1024,
  20. Maxfactotum = 256*1024, /* max bytes in /mnt/factotum/ctl */
  21. };
  22. typedef struct Conn Conn;
  23. #pragma incomplete Conn
  24. #pragma varargck argpos esmprint 1
  25. #pragma varargck argpos ssdebug 2
  26. #pragma varargck argpos sshlog 2
  27. char *esmprint(char *format, ...);
  28. void sshdebug(Conn *, char *format, ...);
  29. void sshlog(Conn *, char *format, ...);
  30. void freeptr(void **);
  31. int readfile(char *file, char *buf, int size);