The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/stddef.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* The <stddef.h> header defines certain commonly used macros. */
    2 
    3 #ifndef _STDDEF_H
    4 #define _STDDEF_H
    5 
    6 #define NULL   ((void *)0)
    7 
    8 /* The following is not portable, but the compiler accepts it. */
    9 #define offsetof(type, ident)   ((size_t) (unsigned long) &((type *)0)->ident)
   10 
   11 #if _EM_PSIZE == _EM_WSIZE
   12 typedef int ptrdiff_t;          /* result of subtracting two pointers */
   13 #else   /* _EM_PSIZE == _EM_LSIZE */
   14 typedef long ptrdiff_t;
   15 #endif
   16 
   17 #ifndef _SIZE_T
   18 #define _SIZE_T
   19 typedef unsigned int size_t;    /* type returned by sizeof */
   20 #endif
   21 
   22 #ifndef _WCHAR_T
   23 #define _WCHAR_T
   24 typedef char wchar_t;           /* type expanded character set */
   25 #endif
   26 
   27 #endif /* _STDDEF_H */

Cache object: 75436decb03ac0c6efb78ddb97e09664


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.