syscall's manpage says size of buf is 1k, and its usage message says that it's 8k, but according to the source the size of buf is 1M. syscall(1) /sys/src/cmd/syscall/syscall.c:/Usage syscall.c:6 Reference: /n/sources/patch/applied/syscall-manpage Date: Sat Jun 19 06:22:27 CES 2010 --- /sys/src/cmd/syscall/syscall.c Sat Jun 19 05:49:04 2010 +++ /sys/src/cmd/syscall/syscall.c Sat Jun 19 05:49:02 2010 @@ -102,7 +102,7 @@ }ARGEND if(argc<1 || argc>1+NARG){ Usage: - fprint(2, "usage: syscall [-ox] entry [args; buf==8192 byte buffer]\n"); + fprint(2, "usage: syscall [-ox] entry [args; buf==1 Mbyte buffer]\n"); fprint(2, "\tsyscall write 1 hello 5\n"); fprint(2, "\tsyscall -o errstr buf 1024\n"); fprint(2, "\tsyscall -[xs] stat file buf 1024\n"); --- /sys/man/1/syscall Sat Jun 19 05:49:08 2010 +++ /sys/man/1/syscall Sat Jun 19 05:49:06 2010 @@ -26,11 +26,11 @@ a string (its address is passed), or the literal .B buf -(a pointer to a 1 Kbyte buffer is passed). +(a pointer to a 1 Mbyte buffer is passed). .PP If .B -o -is given, the contents of the 1 Kbyte buffer are printed as a zero-terminated string +is given, the contents of the 1 Mbyte buffer are printed as a zero-terminated string after the system call is done. The .B -x