Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/stddef_iso.h
          +++ new/usr/src/head/iso/stddef_iso.h
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
  27   27   * Copyright 1999-2003 Sun Microsystems, Inc.  All rights reserved.
  28   28   * Use is subject to license terms.
  29   29   */
  30   30  
  31   31  /*
       32 + * Copyright 2014 PALO, Richard.
       33 + */
       34 +
       35 +/*
  32   36   * An application should not include this header directly.  Instead it
  33   37   * should be included only through the inclusion of other Sun headers.
  34   38   *
  35   39   * The contents of this header is limited to identifiers specified in the
  36   40   * C Standard.  Any new identifiers specified in future amendments to the
  37   41   * C Standard must be placed in this header.  If these new identifiers
  38   42   * are required to also be in the C++ Standard "std" namespace, then for
  39   43   * anything other than macro definitions, corresponding "using" directives
  40   44   * must also be added to <stddef.h.h>.
  41   45   */
  42   46  
  43   47  #ifndef _ISO_STDDEF_ISO_H
  44   48  #define _ISO_STDDEF_ISO_H
  45   49  
  46      -#pragma ident   "%Z%%M% %I%     %E% SMI" /* SVr4.0 1.5 */
  47      -
  48   50  #include <sys/isa_defs.h>
       51 +#include <sys/null.h>
  49   52  
  50   53  #ifdef  __cplusplus
  51   54  extern "C" {
  52   55  #endif
  53   56  
  54   57  #if __cplusplus >= 199711L
  55   58  namespace std {
  56   59  #endif
  57   60  
  58      -#ifndef NULL
  59      -#if defined(_LP64)
  60      -#define NULL    0L
  61      -#else
  62      -#define NULL    0
  63      -#endif
  64      -#endif
  65      -
  66   61  #if !defined(_PTRDIFF_T) || __cplusplus >= 199711L
  67   62  #define _PTRDIFF_T
  68   63  #if defined(_LP64) || defined(_I32LPx)
  69   64  typedef long    ptrdiff_t;              /* pointer difference */
  70   65  #else
  71   66  typedef int     ptrdiff_t;              /* (historical version) */
  72   67  #endif
  73   68  #endif  /* !_PTRDIFF_T */
  74   69  
  75   70  #if !defined(_SIZE_T) || __cplusplus >= 199711L
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX