1 #include <u.h> 2 #define NOPLAN9DEFINES 3 #include <libc.h> 4 5 void* 6 p9malloc(ulong n) 7 { 8 if(n == 0) 9 n++; 10 return malloc(n); 11 }