os

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

u.h (819B)


      1 #ifndef _U_H_
      2 #define _U_H_
      3 
      4 #include <stddef.h> /* XXX: keep for now... */
      5 
      6 typedef unsigned char		u_char;
      7 typedef unsigned short		u_short;
      8 typedef unsigned int		u_int;
      9 typedef unsigned long		u_long;
     10 typedef unsigned long long	u_vlong;
     11 typedef long long		vlong;
     12 
     13 /* FIXME: get rid of _t */
     14 typedef signed char		int8_t;
     15 typedef unsigned char		u_int8_t;
     16 typedef unsigned short		u_int16_t;
     17 typedef short			int16_t;
     18 typedef unsigned int		u_int32_t;
     19 typedef int			int32_t;
     20 typedef unsigned long		u_int64_t;
     21 typedef long			int64_t;
     22 
     23 typedef u_int64_t		u_size;
     24 
     25 typedef __va_list		va_list;
     26 #define va_start(ap, last)	__builtin_va_start((ap), (last))
     27 #define va_arg(ap, type)	__builtin_va_arg((ap), type)
     28 #define va_copy(dest, src)	__builtin_va_copy((dest), (src))
     29 #define va_end(ap)		__builtin_va_end(ap)
     30 
     31 #endif /* _U_H_ */