Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/utmp.h
          +++ new/usr/src/head/utmp.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30   32  
  31   33  
  32   34  #ifndef _UTMP_H
  33   35  #define _UTMP_H
  34   36  
  35      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.5.1.7 */
  36      -
  37   37  /*
  38   38   * Note:  The getutent(3c) family of interfaces are obsolete.
  39   39   * The getutxent(3c) family provide a superset of this functionality
  40   40   * and should be used in place of getutent(3c).
  41   41   */
  42   42  
  43   43  #include <sys/types.h>
  44   44  
  45   45  #ifdef  __cplusplus
  46   46  extern "C" {
↓ open down ↓ 97 lines elided ↑ open up ↑
 144  144  #define PSRADM_MSG      "%03d  %s"      /* processor on or off */
 145  145  #define DOWN_MSG        "system down"
 146  146  
 147  147  /*      Define and macro for determing if a normal user wrote the entry */
 148  148  /*       and marking the utmpx entry as a normal user */
 149  149  #define NONROOT_USR     2
 150  150  #define nonuser(ut)     ((ut).ut_exit.e_exit == NONROOT_USR ? 1 : 0)
 151  151  #define setuser(ut)     ((ut).ut_exit.e_exit = NONROOT_USR)
 152  152  
 153  153  
 154      -#if defined(__STDC__)
 155  154  extern void endutent(void);
 156  155  extern struct utmp *getutent(void);
 157  156  extern struct utmp *getutid(const struct utmp *);
 158  157  extern struct utmp *getutline(const struct utmp *);
 159  158  extern struct utmp *pututline(const struct utmp *);
 160  159  extern void setutent(void);
 161  160  extern int utmpname(const char *);
 162      -#else
 163      -extern void endutent();
 164      -extern struct utmp *getutent();
 165      -extern struct utmp *getutid();
 166      -extern struct utmp *getutline();
 167      -extern struct utmp *pututline();
 168      -extern void setutent();
 169      -extern int utmpname();
 170      -#endif
 171  161  
 172  162  #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 173  163  
 174  164  #ifdef  __cplusplus
 175  165  }
 176  166  #endif
 177  167  
 178  168  #endif  /* _UTMP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX