diff options
author | rsc <rsc> | 2007-08-08 09:41:21 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-08 09:41:21 +0000 |
commit | 453c6a65a20a70260e0b86a16192a65660efcbe1 (patch) | |
tree | 8416a9e208a65680a33c090d47bd7a58c300adfc /defs.h | |
parent | c664dd5d23d50a6baee02d0ab8e921db51178f61 (diff) | |
download | xv6-labs-453c6a65a20a70260e0b86a16192a65660efcbe1.tar.gz xv6-labs-453c6a65a20a70260e0b86a16192a65660efcbe1.tar.bz2 xv6-labs-453c6a65a20a70260e0b86a16192a65660efcbe1.zip |
convert syscall dispatch to table
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -139,3 +139,6 @@ struct inode* mknod1(struct inode*, char*, short, short, short); int unlink(char*); void iupdate(struct inode*); int link(char*, char*); + +// number of elements in fixed-size array +#define NELEM(x) (sizeof(x)/sizeof((x)[0])) |