diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-04-07 12:52:27 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-04-07 12:52:27 +0000 |
| commit | e1bd49a1e1823eab71c293efd1bd0c9b83c350c9 (patch) | |
| tree | a9424cde16004cb9e591045225bc61beed339dd5 /os/port/lib.h | |
| parent | 15345f9c75c069d3e2e362af5d6f931eef7772ef (diff) | |
20070407-1350 more updates from plan 9 pc kernel, and a few unreachable fixes(!)
Diffstat (limited to 'os/port/lib.h')
| -rw-r--r-- | os/port/lib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os/port/lib.h b/os/port/lib.h index c9414b5a..e50fd8cb 100644 --- a/os/port/lib.h +++ b/os/port/lib.h @@ -2,9 +2,9 @@ /* * functions (possibly) linked in, complete, from libc. */ -#define nelem(n) (sizeof(n)/sizeof(n[0])) +#define nelem(x) (sizeof(x)/sizeof((x)[0])) #define offsetof(s, m) (ulong)(&(((s*)0)->m)) -#define assert(x) if(x){}else _assert("x") +#define assert(x) if(x){}else _assert("x") /* * mem routines @@ -123,6 +123,7 @@ extern char end[]; extern int getfields(char*, char**, int, int, char*); extern int tokenize(char*, char**, int); extern int dec64(uchar*, int, char*, int); +extern void qsort(void*, long, long, int (*)(void*, void*)); extern int toupper(int); extern char* netmkaddr(char*, char*, char*); |
