Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/mnttab.h
          +++ new/usr/src/uts/common/sys/mnttab.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  
  25   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  26   28   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  27   29   * Use is subject to license terms.
  28   30   */
  29   31  
  30   32  #ifndef _SYS_MNTTAB_H
  31   33  #define _SYS_MNTTAB_H
  32   34  
  33   35  #include <sys/types.h>
  34   36  
  35   37  #ifdef  __cplusplus
↓ open down ↓ 40 lines elided ↑ open up ↑
  76   78          uint_t  mnt_minor;
  77   79  };
  78   80  
  79   81  struct mntentbuf {
  80   82          struct  extmnttab *mbuf_emp;
  81   83          size_t  mbuf_bufsize;
  82   84          char    *mbuf_buf;
  83   85  };
  84   86  
  85   87  #if !defined(_KERNEL)
  86      -#ifdef __STDC__
  87   88  extern void     resetmnttab(FILE *);
  88   89  extern int      getmntent(FILE *, struct mnttab *);
  89   90  extern int      getextmntent(FILE *, struct extmnttab *, size_t);
  90   91  extern int      getmntany(FILE *, struct mnttab *, struct mnttab *);
  91   92  extern char     *hasmntopt(struct mnttab *, char *);
  92   93  extern char     *mntopt(char **);
  93      -#else
  94      -extern void     resetmnttab();
  95      -extern int      getmntent();
  96      -extern int      getextmntent();
  97      -extern int      getmntany();
  98      -extern char     *hasmntopt();
  99      -extern char     *mntopt();
 100   94  #endif
 101      -#endif
 102   95  
 103   96  #ifdef  __cplusplus
 104   97  }
 105   98  #endif
 106   99  
 107  100  #endif  /* _SYS_MNTTAB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX