Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/acct.h
          +++ new/usr/src/uts/common/sys/acct.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23   24   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  #ifndef _SYS_ACCT_H
  30   31  #define _SYS_ACCT_H
  31   32  
  32   33  #include <sys/types.h>
↓ open down ↓ 42 lines elided ↑ open up ↑
  75   76          comp_t  ac_utime;               /* acctng user time in clock ticks */
  76   77          comp_t  ac_stime;               /* acctng system time in clock ticks */
  77   78          comp_t  ac_etime;               /* acctng elapsed time in clock ticks */
  78   79          comp_t  ac_mem;                 /* memory usage */
  79   80          comp_t  ac_io;                  /* chars transferred */
  80   81          comp_t  ac_rw;                  /* blocks read or written */
  81   82          char    ac_comm[8];             /* command name */
  82   83  };
  83   84  
  84   85  #if !defined(_KERNEL)
  85      -#if defined(__STDC__)
  86   86  extern int acct(const char *);
  87      -#else
  88      -extern int acct();
  89      -#endif
  90   87  #endif /* !defined(_KERNEL) */
  91   88  
  92   89  #if defined(_KERNEL)
  93   90  
  94   91  void    acct(char);
  95   92  int     sysacct(char *);
  96   93  
  97   94  struct vnode;
  98   95  int     acct_fs_in_use(struct vnode *);
  99   96  #endif
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX