os

Toy OS
git clone git://git.margiolis.net/os.git
Log | Files | Refs | README | LICENSE

libc.h (242B)


      1 #ifndef _LIBC_H_
      2 #define _LIBC_H_
      3 
      4 #define NULL			((void *)0)
      5 #define UNUSED(x)		((void)(x))
      6 #define ARRLEN(x)		(sizeof(x) / sizeof(*(x)))
      7 #define CONCAT(x, y)		x ## y
      8 #define offsetof(s, t)		((u_long)(&(((s *)0->t))))
      9 
     10 #endif /* _LIBC_H_ */