Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/shadow.h
          +++ new/usr/src/head/shadow.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 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*      Copyright (c) 1988 AT&T */
  27   29  /*        All Rights Reserved   */
  28   30  
  29   31  
  30   32  #ifndef _SHADOW_H
  31   33  #define _SHADOW_H
↓ open down ↓ 32 lines elided ↑ open up ↑
  64   66          int sp_max;     /* number of days password is valid */
  65   67          int sp_warn;    /* number of days to warn user to change passwd */
  66   68          int sp_inact;   /* number of days the login may be inactive */
  67   69          int sp_expire;  /* date when the login is no longer valid */
  68   70          unsigned int sp_flag;   /* currently low 4 bits are used */
  69   71  
  70   72          /* low 4 bits of sp_flag for counting failed login attempts */
  71   73  #define FAILCOUNT_MASK 0xF
  72   74  };
  73   75  
  74      -#if defined(__STDC__)
  75      -
  76   76  #ifndef _STDIO_H
  77   77  #include <stdio.h>
  78   78  #endif
  79   79  
  80   80  /* Declare all shadow password functions */
  81   81  
  82   82  extern struct spwd *getspnam_r(const char *,  struct spwd *, char *, int);
  83   83  extern struct spwd *getspent_r(struct spwd *, char *, int);
  84   84  extern struct spwd *fgetspent_r(FILE *, struct spwd *, char *, int);
  85   85  
  86   86  extern void     setspent(void);
  87   87  extern void     endspent(void);
  88   88  extern struct spwd      *getspent(void);                        /* MT-unsafe */
  89   89  extern struct spwd      *fgetspent(FILE *);                     /* MT-unsafe */
  90   90  extern struct spwd      *getspnam(const char *);        /* MT-unsafe */
  91   91  
  92   92  extern int      putspent(const struct spwd *, FILE *);
  93   93  extern int      lckpwdf(void);
  94   94  extern int      ulckpwdf(void);
  95   95  
  96      -#else
  97      -
  98      -/* Declare all shadow password functions */
  99      -
 100      -struct spwd     *getspent_r(), *fgetspent_r(), *getspnam_r();
 101      -void            setspent(), endspent();
 102      -struct spwd     *getspent(), *fgetspent(), *getspnam(); /* MT-unsafe */
 103      -int             putspent(), lckpwdf(), ulckpwdf();
 104      -
 105      -#endif
 106      -
 107   96  #ifdef  __cplusplus
 108   97  }
 109   98  #endif
 110   99  
 111  100  #endif  /* _SHADOW_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX