Update.
[glibc.git] / sysdeps / unix / sysv / linux / alpha / glob.c
blob5baa0aea789da46a7baabd9d1f4477f642af9930
1 /* Copyright (C) 1998 Free Software Foundation, Inc.
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public License as
5 published by the Free Software Foundation; either version 2 of the
6 License, or (at your option) any later version.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public
14 License along with this library; see the file COPYING.LIB. If not,
15 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA. */
18 #include <sys/types.h>
19 #include <glob.h>
21 /* For Linux/Alpha we have to make the glob symbols versioned. */
22 #define glob(pattern, flags, errfunc, pglob) \
23 __new_glob (pattern, flags, errfunc, pglob)
24 #define globfree(pglob) \
25 __new_globfree (pglob)
27 /* We need prototypes for these new names. */
28 extern int __new_glob (const char *__pattern, int __flags,
29 int (*__errfunc) (const char *, int),
30 glob_t *__pglob);
31 extern void __new_globfree (glob_t *__pglob);
33 #include <sysdeps/generic/glob.c>
35 #undef glob
36 #undef globfree
38 default_symbol_version(__new_glob, glob, GLIBC_2.1);
39 default_symbol_version(__new_globfree, globfree, GLIBC_2.1);