3 syscall \- test a system call
15 invokes the system call
17 with the given arguments.
18 The return value is printed.
19 If an error occured, the error string is also printed.
27 even though they are not strictly syscalls.
30 arguments are integer constants, strings, or the literal
34 refers to a writable 1 megabyte buffer.
37 are passed as pointers.
38 Integers are passed as values.
42 option prints contents of the 1MB buffer.
47 the buffer is treated as a 0-terminated string.
48 For other calls, the number of bytes printed is
49 determined by the system call's return value.
53 option is similar, but interprets the data as a
55 message and formats it to standard output.
57 Write a string to standard output:
60 syscall write 1 hello 5
63 Print information about the file connected to standard input:
66 syscall -s fstat 0 buf 1024
69 .B /sys/src/cmd/syscall
71 Section 2 of this manual.
79 If the system call succeeds, the exit status is null;
80 otherwise the exit status is the string that