]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/alpha/glob.c
Synch with Linux 2.4.5:
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / alpha / glob.c
CommitLineData
782bca97 1/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
cab5b83e
UD
2
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.
7
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.
12
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. */
17
8ef5e906
UD
18#define glob64 __no_glob64_decl
19#define globfree64 __no_globfree64_decl
20
1037e1f4 21#include <sys/types.h>
a3a2cb21 22#include <glob.h>
782bca97 23#include <shlib-compat.h>
a3a2cb21 24
cab5b83e
UD
25/* For Linux/Alpha we have to make the glob symbols versioned. */
26#define glob(pattern, flags, errfunc, pglob) \
bde3fab6 27 __new_glob (pattern, flags, errfunc, pglob)
cab5b83e
UD
28#define globfree(pglob) \
29 __new_globfree (pglob)
30
bb71df5f
UD
31/* We need prototypes for these new names. */
32extern int __new_glob (const char *__pattern, int __flags,
33 int (*__errfunc) (const char *, int),
34 glob_t *__pglob);
35extern void __new_globfree (glob_t *__pglob);
36
bde3fab6 37#include <sysdeps/generic/glob.c>
cab5b83e
UD
38
39#undef glob
40#undef globfree
708e91e6
UD
41#undef glob64
42#undef globfree64
cab5b83e 43
782bca97
UD
44versioned_symbol (libc, __new_glob, glob, GLIBC_2_1);
45versioned_symbol (libc, __new_globfree, globfree, GLIBC_2_1);
8ef5e906
UD
46
47weak_alias (__new_glob, glob64)
48weak_alias (__new_globfree, globfree64)