Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/fnmatch.h
          +++ new/usr/src/head/fnmatch.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  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  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23   24   * Copyright (c) 1994 by Sun Microsystems, Inc.
  24   25   * Copyright 1985, 1994 by Mortice Kern Systems Inc.  All rights reserved.
  25   26   */
  26   27  
  27   28  #ifndef _FNMATCH_H
  28   29  #define _FNMATCH_H
  29   30  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   31  #ifdef  __cplusplus
  33   32  extern "C" {
  34   33  #endif
  35   34  
  36   35  #define FNM_PATHNAME    0x01    /* Slash in str only matches slash in pattern */
  37   36  #define FNM_NOESCAPE    0x02    /* Disable '\'-quoting of metacharacters */
  38   37  #define FNM_PERIOD      0x04    /* Leading period in string must be exactly */
  39   38                                  /* matched by period in pattern */
  40   39  #define FNM_IGNORECASE  0x08    /* Ignore case when making comparisons */
  41   40  
  42   41  #define FNM_NOMATCH     1       /* string doesnt match the specified pattern */
  43   42  #define FNM_ERROR       2       /* error occured */
  44   43  #define FNM_NOSYS       3       /* Function (XPG4) not supported */
  45   44  
  46      -#if defined(__STDC__)
  47   45  extern int fnmatch(const char *, const char *, int);
  48      -#else
  49      -extern int fnmatch();
  50      -#endif
  51   46  
  52   47  #ifdef  __cplusplus
  53   48  }
  54   49  #endif
  55   50  
  56   51  #endif  /* _FNMATCH_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX