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/unistd.h
          +++ new/usr/src/head/unistd.h
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24   * Copyright (c) 2013 Gary Mills
  25   25   *
  26   26   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  27   27   */
  28   28  
  29   29  /*      Copyright (c) 1988 AT&T */
  30   30  /*        All Rights Reserved   */
  31   31  
  32   32  /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  33   33  
       34 +/*
       35 + * Copyright 2014 PALO, Richard.
       36 + */
       37 +
  34   38  #ifndef _UNISTD_H
  35   39  #define _UNISTD_H
  36   40  
  37   41  #include <sys/feature_tests.h>
  38   42  
       43 +#include <sys/null.h>
  39   44  #include <sys/types.h>
  40   45  #include <sys/unistd.h>
  41   46  
  42   47  #ifdef  __cplusplus
  43   48  extern "C" {
  44   49  #endif
  45   50  
  46   51  /* Symbolic constants for the "access" routine: */
  47   52  #define R_OK    4       /* Test for Read permission */
  48   53  #define W_OK    2       /* Test for Write permission */
↓ open down ↓ 122 lines elided ↑ open up ↑
 171  176  #define _POSIX_THREAD_PRIO_PROTECT              200112L
 172  177  #else
 173  178  #define _POSIX_THREAD_PRIO_INHERIT              1
 174  179  #define _POSIX_THREAD_PRIO_PROTECT              1
 175  180  #endif
 176  181  
 177  182  #ifndef _POSIX_VDISABLE
 178  183  #define _POSIX_VDISABLE         0
 179  184  #endif
 180  185  
 181      -#ifndef NULL
 182      -#if defined(_LP64)
 183      -#define NULL    0L
 184      -#else
 185      -#define NULL    0
 186      -#endif
 187      -#endif
 188      -
 189  186  #define STDIN_FILENO    0
 190  187  #define STDOUT_FILENO   1
 191  188  #define STDERR_FILENO   2
 192  189  
 193  190  /*
 194  191   * Large File Summit-related announcement macros.  The system supports both
 195  192   * the additional and transitional Large File Summit interfaces.  (The final
 196  193   * two macros provide a finer granularity breakdown of _LFS64_LARGEFILE.)
 197  194   */
 198  195  #define _LFS_LARGEFILE          1
↓ open down ↓ 526 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX