Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/timex.h
          +++ new/usr/src/uts/common/sys/timex.h
↓ open down ↓ 5 lines elided ↑ open up ↑
   6    6   * that the above copyright notice appears in all copies and that both the
   7    7   * copyright notice and this permission notice appear in supporting
   8    8   * documentation, and that the name University of Delaware not be used in
   9    9   * advertising or publicity pertaining to distribution of the software
  10   10   * without specific, written prior permission.  The University of Delaware
  11   11   * makes no representations about the suitability this software for any
  12   12   * purpose.  It is provided "as is" without express or implied warranty.
  13   13   */
  14   14  
  15   15  /*
       16 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       17 + *
  16   18   * Copyright 1996-1997, 2002 Sun Microsystems, Inc.  All rights reserved.
  17   19   * Use is subject to license terms.
  18   20   */
  19   21  
  20   22  #ifndef _SYS_TIMEX_H
  21   23  #define _SYS_TIMEX_H
  22   24  
  23      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  24      -
  25   25  #ifdef  __cplusplus
  26   26  extern "C" {
  27   27  #endif
  28   28  
  29   29  #include <sys/types.h>
  30   30  #include <sys/time.h>
  31   31  #include <sys/syscall.h>
  32   32  #include <sys/inttypes.h>
  33   33  
  34   34  /*
↓ open down ↓ 195 lines elided ↑ open up ↑
 230  230          int32_t ppsfreq;        /* pps frequency (scaled ppm) (ro) */
 231  231          int32_t jitter;         /* pps jitter (us) (ro) */
 232  232          int32_t shift;          /* interval duration (s) (shift) (ro) */
 233  233          int32_t stabil;         /* pps stability (scaled ppm) (ro) */
 234  234          int32_t jitcnt;         /* jitter limit exceeded (ro) */
 235  235          int32_t calcnt;         /* calibration intervals (ro) */
 236  236          int32_t errcnt;         /* calibration errors (ro) */
 237  237          int32_t stbcnt;         /* stability limit exceeded (ro) */
 238  238  };
 239  239  
 240      -#if defined(__STDC__)
 241  240  /*
 242  241   * NTP syscalls
 243  242   */
 244  243  int ntp_gettime(struct ntptimeval *);
 245  244  int ntp_adjtime(struct timex *);
 246      -#else
 247      -int ntp_gettime();
 248      -int ntp_adjtime();
 249      -#endif /* __STDC__ */
 250  245  
 251  246  #ifdef _KERNEL
 252  247  
 253  248  extern int32_t time_state;      /* clock state */
 254  249  extern int32_t time_status;     /* clock status bits */
 255  250  extern int32_t time_offset;     /* time adjustment (us) */
 256  251  extern int32_t time_freq;       /* frequency offset (scaled ppm) */
 257  252  extern int32_t time_maxerror;   /* maximum error (us) */
 258  253  extern int32_t time_esterror;   /* estimated error (us) */
 259  254  extern int32_t time_constant;   /* pll time constant */
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX