3 #include "/sys/src/libc/9syscall/sys.h"
20 pread(int fd, void *a, long n, vlong)
24 _sysargs[2] = (vlong)a;
30 pwrite(int fd, void *a, long n, vlong)
34 _sysargs[2] = (vlong)a;
48 open(char *name, int mode)
51 _sysargs[1] = (vlong)name;
57 create(char *f, int mode, ulong perm)
60 _sysargs[1] = (vlong)f;
70 _sysargs[1] = s!=nil? strlen(s): 0;
84 errstr(char *buf, uint n)
87 _sysargs[1] = (vlong)buf;
96 _sysargs[1] = (vlong)a;
105 return (void*)_callsys();