Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/resource.h
          +++ new/usr/src/uts/common/sys/resource.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2014 Garrrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   29  /*        All Rights Reserved   */
  28   30  
  29   31  /*
  30   32   * University Copyright- Copyright (c) 1982, 1986, 1988
  31   33   * The Regents of the University of California
  32   34   * All Rights Reserved
  33   35   *
  34   36   * University Acknowledgment- Portions of this document are derived from
  35   37   * software developed by the University of California, Berkeley, and its
  36   38   * contributors.
  37   39   */
  38   40  
  39   41  #ifndef _SYS_RESOURCE_H
  40   42  #define _SYS_RESOURCE_H
  41   43  
  42      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  43      -
  44   44  #include <sys/feature_tests.h>
  45   45  
  46   46  #include <sys/types.h>
  47   47  #include <sys/time.h>
  48   48  
  49   49  #ifdef  __cplusplus
  50   50  extern "C" {
  51   51  #endif
  52   52  
  53   53  /*
↓ open down ↓ 197 lines elided ↑ open up ↑
 251  251  #ifdef __PRAGMA_REDEFINE_EXTNAME
 252  252  #pragma redefine_extname        setrlimit64     setrlimit
 253  253  #pragma redefine_extname        getrlimit64     getrlimit
 254  254  #else
 255  255  #define setrlimit64             setrlimit
 256  256  #define getrlimit64             getrlimit
 257  257  #define rlimit64                rlimit
 258  258  #endif
 259  259  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 260  260  
 261      -#if defined(__STDC__)
 262      -
 263  261  extern int setrlimit(int, const struct rlimit *);
 264  262  extern int getrlimit(int, struct rlimit *);
 265  263  
 266  264  /* transitional large file interfaces */
 267  265  #if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 268  266              !defined(__PRAGMA_REDEFINE_EXTNAME))
 269  267  extern int setrlimit64(int, const struct rlimit64 *);
 270  268  extern int getrlimit64(int, struct rlimit64 *);
 271  269  #endif  /* _LARGEFILE64_SOURCE... */
 272  270  
 273  271  extern int getpriority(int, id_t);
 274  272  extern int setpriority(int, id_t, int);
 275  273  extern int getrusage(int, struct rusage *);
 276  274  
 277      -#else   /* __STDC__ */
 278      -
 279      -extern int getrlimit();
 280      -extern int setrlimit();
 281      -
 282      -/* transitional large file interfaces */
 283      -#if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 284      -            !defined(__PRAGMA_REDEFINE_EXTNAME))
 285      -extern int setrlimit64();
 286      -extern int getrlimit64();
 287      -#endif  /* _LARGEFILE64_SOURCE... */
 288      -
 289      -extern  int getpriority();
 290      -extern  int setpriority();
 291      -extern  int getrusage();
 292      -
 293      -#endif  /* __STDC__ */
 294      -
 295  275  #endif  /* _KERNEL */
 296  276  
 297  277  #ifdef  __cplusplus
 298  278  }
 299  279  #endif
 300  280  
 301  281  #endif  /* _SYS_RESOURCE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX