Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nsctl.h
          +++ new/usr/src/head/nsctl.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  #ifndef _NSCTL_H
  27   29  #define _NSCTL_H
  28   30  
  29   31  #ifdef  __cplusplus
  30   32  extern "C" {
  31   33  #endif
↓ open down ↓ 24 lines elided ↑ open up ↑
  56   58   * build   - the build release (e.g. "5.7")
  57   59   * runtime - comma &/or space separated list of acceptable runtime
  58   60   *           releases (e.g. "5.7, 5.8")
  59   61   */
  60   62  
  61   63  typedef struct nsc_release {
  62   64          const char *build;      /* build release */
  63   65          const char *runtime;    /* runtime release(s) */
  64   66  } nsc_release_t;
  65   67  
  66      -#ifdef __STDC__
  67   68  extern void _nsc_nocheck(void);
  68   69  extern nsc_fd_t *nsc_open(char *, int, int);
  69   70  extern nsc_fd_t *nsc_fdopen(int, char *, int);
  70   71  extern int nsc_close(nsc_fd_t *);
  71   72  extern int nsc_fileno(nsc_fd_t *);
  72   73  extern int nsc_reserve(nsc_fd_t *);
  73   74  extern int nsc_release(nsc_fd_t *);
  74   75  extern int nsc_partsize(nsc_fd_t *, nsc_size_t *);
  75   76  extern int nsc_freeze(char *path);
  76   77  extern int nsc_unfreeze(char *path);
  77   78  extern int nsc_isfrozen(char *path);
  78   79  extern int nsc_getsystemid(int *id);
  79   80  extern int nsc_name_to_id(char *name, int *id);
  80   81  extern int nsc_id_to_name(char **name, int id);
  81   82  extern int nsc_check_release(const char *, nsc_release_t *, char **);
  82      -#else
  83      -extern void _nsc_nocheck();
  84      -extern nsc_fd_t *nsc_open();
  85      -extern nsc_fd_t *nsc_fdopen();
  86      -extern int nsc_close();
  87      -extern int nsc_fileno();
  88      -extern int nsc_reserve();
  89      -extern int nsc_release();
  90      -extern int nsc_partsize();
  91      -extern int nsc_freeze();
  92      -extern int nsc_unfreeze();
  93      -extern int nsc_isfrozen();
  94      -extern int nsc_getsystemid();
  95      -extern int nsc_name_to_id();
  96      -extern int nsc_id_to_name();
  97      -extern int nsc_check_release();
  98      -#endif
  99   83  
 100   84  #ifdef  __cplusplus
 101   85  }
 102   86  #endif
 103   87  
 104   88  #endif /* _NSCTL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX