Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/ssh2/ssh2.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


enum {
	Maxpayload =	32*1024,
	Maxrpcbuf =	8192,		/* devmnt's MAXRPC - IOHDRSZ */
	Copybufsz = 	4096,
	Blobsz =	512,
	Numbsz =	24,		/* enough digits for 2^64 */

	Defstk =	80*1024,	/* was 8K, which seems small */
	Maxtoks =	32,

	Arbpathlen =	128,
	Arbbufsz =	256,
	Bigbufsz =	1024,
	Maxfactotum =	256*1024,	/* max bytes in /mnt/factotum/ctl */
};

typedef struct Conn Conn;
#pragma incomplete Conn

#pragma	varargck argpos	esmprint 1
#pragma	varargck argpos	ssdebug	2
#pragma	varargck argpos	sshlog	2

char *esmprint(char *format, ...);
void sshdebug(Conn *, char *format, ...);
void sshlog(Conn *, char *format, ...);

void freeptr(void **);
int readfile(char *file, char *buf, int size);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].