Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/timeb.h
          +++ new/usr/src/uts/common/sys/timeb.h
   1    1  /*
        2 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
        3 + *
   2    4   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
   3    5   * Use is subject to license terms.
   4    6   */
   5    7  
   6    8  #ifndef _SYS_TIMEB_H
   7    9  #define _SYS_TIMEB_H
   8   10  
   9      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  10      -
  11   11  #ifdef  __cplusplus
  12   12  extern "C" {
  13   13  #endif
  14   14  
  15   15  #include <sys/types.h>
  16   16  
  17   17  /*
  18   18   * Copyright (c) 1991, 1993
  19   19   *      The Regents of the University of California.  All rights reserved.
  20   20   * (c) UNIX System Laboratories, Inc.
↓ open down ↓ 32 lines elided ↑ open up ↑
  53   53   */
  54   54  
  55   55  /* The ftime(2) system call structure */
  56   56  struct timeb {
  57   57          time_t  time;                   /* seconds since the Epoch */
  58   58          unsigned short millitm;         /* + milliseconds since the Epoch */
  59   59          short   timezone;               /* minutes west of CUT */
  60   60          short   dstflag;                /* DST == non-zero */
  61   61  };
  62   62  
  63      -#if defined(__STDC__)
  64   63  extern int ftime(struct timeb *);
  65      -#else
  66      -extern int ftime();
  67      -#endif
  68   64  
  69   65  #ifdef  __cplusplus
  70   66  }
  71   67  #endif
  72   68  
  73   69  #endif  /* _SYS_TIMEB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX