Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/mount.h
          +++ new/usr/src/uts/common/sys/mount.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) 1984, 1986, 1987, 1988, 1989 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 (c) 1996, 1999 by Sun Microsystems, Inc.
  28   30   * All rights reserved.
  29   31   */
  30   32  
  31   33  #ifndef _SYS_MOUNT_H
  32   34  #define _SYS_MOUNT_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 11.10 */
  35      -
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  /*
  41   41   * Flag bits passed to mount(2).
  42   42   */
  43   43  #define MS_RDONLY       0x0001  /* Read-only */
  44   44  #define MS_FSS          0x0002  /* Old (4-argument) mount (compatibility) */
  45   45  #define MS_DATA         0x0004  /* 6-argument mount */
↓ open down ↓ 23 lines elided ↑ open up ↑
  69   69   * Mask to sift out flag bits allowable from umount2(2).
  70   70   */
  71   71  
  72   72  #define MS_UMOUNT_MASK  (MS_FORCE)
  73   73  
  74   74  /*
  75   75   * Maximum option string length accepted or returned by mount(2).
  76   76   */
  77   77  #define MAX_MNTOPT_STR  1024    /* max length of mount options string */
  78   78  
  79      -#if defined(__STDC__) && !defined(_KERNEL)
       79 +#if !defined(_KERNEL)
  80   80  int mount(const char *, const char *, int, ...);
  81   81  int umount(const char *);
  82   82  int umount2(const char *, int);
  83   83  #endif
  84   84  
  85   85  #ifdef  __cplusplus
  86   86  }
  87   87  #endif
  88   88  
  89   89  #endif  /* _SYS_MOUNT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX