Print this page
remove support for non-ANSI compilation


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 
  23 /*

  24  * Copyright 1985, 1992 by Mortice Kern Systems Inc.  All rights reserved.
  25  */
  26 
  27 /*
  28  * Copyright (c) 1989, 1993
  29  *      The Regents of the University of California.  All rights reserved.
  30  *
  31  * This code is derived from software contributed to Berkeley by
  32  * Guido van Rossum.
  33  *
  34  * Redistribution and use in source and binary forms, with or without
  35  * modification, are permitted provided that the following conditions
  36  * are met:
  37  * 1. Redistributions of source code must retain the above copyright
  38  *    notice, this list of conditions and the following disclaimer.
  39  * 2. Redistributions in binary form must reproduce the above copyright
  40  *    notice, this list of conditions and the following disclaimer in the
  41  *    documentation and/or other materials provided with the distribution.
  42  * 3. Neither the name of the University nor the names of its contributors
  43  *    may be used to endorse or promote products derived from this software


 142 #define GLOB_ALTDIRFUNC 0x8000  /* Use alternately specified directory funcs. */
 143 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 144 
 145 /*
 146  * Error returns from "glob"
 147  */
 148 #define GLOB_NOSYS      (-4)            /* function not supported (XPG4) */
 149 #define GLOB_NOMATCH    (-3)            /* Pattern does not match */
 150 #define GLOB_NOSPACE    (-2)            /* Not enough memory */
 151 #define GLOB_ABORTED    (-1)            /* GLOB_ERR set or errfunc return!=0 */
 152 #define GLOB_ABEND      GLOB_ABORTED    /* backward compatibility */
 153 
 154 #ifdef __PRAGMA_REDEFINE_EXTNAME
 155 #pragma redefine_extname        glob    _glob_ext
 156 #pragma redefine_extname        globfree        _globfree_ext
 157 #else /* __PRAGMA_REDEFINE_EXTNAME */
 158 #define glob    _glob_ext
 159 #define globfree        _globfree_ext
 160 #endif /* __PRAGMA_REDEFINE_EXTNAME */
 161 
 162 #if defined(__STDC__)
 163 
 164 extern int glob(const char *_RESTRICT_KYWD, int, int(*)(const char *, int),
 165                 glob_t *_RESTRICT_KYWD);
 166 extern void globfree(glob_t *);
 167 
 168 #else /* __STDC__ */
 169 
 170 extern int glob();
 171 extern void globfree();
 172 
 173 #endif /* __STDC__ */
 174 
 175 #ifdef  __cplusplus
 176 }
 177 #endif
 178 
 179 #endif  /* _GLOB_H */


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 
  23 /*
  24  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25  * Copyright 1985, 1992 by Mortice Kern Systems Inc.  All rights reserved.
  26  */
  27 
  28 /*
  29  * Copyright (c) 1989, 1993
  30  *      The Regents of the University of California.  All rights reserved.
  31  *
  32  * This code is derived from software contributed to Berkeley by
  33  * Guido van Rossum.
  34  *
  35  * Redistribution and use in source and binary forms, with or without
  36  * modification, are permitted provided that the following conditions
  37  * are met:
  38  * 1. Redistributions of source code must retain the above copyright
  39  *    notice, this list of conditions and the following disclaimer.
  40  * 2. Redistributions in binary form must reproduce the above copyright
  41  *    notice, this list of conditions and the following disclaimer in the
  42  *    documentation and/or other materials provided with the distribution.
  43  * 3. Neither the name of the University nor the names of its contributors
  44  *    may be used to endorse or promote products derived from this software


 143 #define GLOB_ALTDIRFUNC 0x8000  /* Use alternately specified directory funcs. */
 144 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 145 
 146 /*
 147  * Error returns from "glob"
 148  */
 149 #define GLOB_NOSYS      (-4)            /* function not supported (XPG4) */
 150 #define GLOB_NOMATCH    (-3)            /* Pattern does not match */
 151 #define GLOB_NOSPACE    (-2)            /* Not enough memory */
 152 #define GLOB_ABORTED    (-1)            /* GLOB_ERR set or errfunc return!=0 */
 153 #define GLOB_ABEND      GLOB_ABORTED    /* backward compatibility */
 154 
 155 #ifdef __PRAGMA_REDEFINE_EXTNAME
 156 #pragma redefine_extname        glob    _glob_ext
 157 #pragma redefine_extname        globfree        _globfree_ext
 158 #else /* __PRAGMA_REDEFINE_EXTNAME */
 159 #define glob    _glob_ext
 160 #define globfree        _globfree_ext
 161 #endif /* __PRAGMA_REDEFINE_EXTNAME */
 162 


 163 extern int glob(const char *_RESTRICT_KYWD, int, int(*)(const char *, int),
 164                 glob_t *_RESTRICT_KYWD);
 165 extern void globfree(glob_t *);
 166 







 167 #ifdef  __cplusplus
 168 }
 169 #endif
 170 
 171 #endif  /* _GLOB_H */