4 return access(f, AEXIST);
8 mycreat(char *n, int p)
11 return create(n, 1, p);
20 if((w = wait()) == nil)
57 mygetwd(char *path, int len)
59 return getwd(path, len);
63 myexec(char *path, char *argv[])
65 return exec(path, argv);
81 static char* hunk = end;
92 else if(thunk < 1000*NHUNK)
101 if(brk(hunk+nhunk) < 0)
102 sysfatal("out of memory");
110 while((uintptr)hunk & 7) {
123 allocn(void *p, long on, long n)
128 if(q != hunk || nhunk < n) {
131 memmove(hunk, p, on);
151 calloc(ulong m, ulong n)
157 realloc(void *o, ulong n)
167 m = (char*)a - (char*)o;
179 /* needed when profiling */
181 mallocz(ulong size, int)
187 setmalloctag(void*, uintptr)
192 setrealloctag(void*, uintptr)