mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
855efb5f6f
2002-08-04 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def if glob resp. globfree are not macros. * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def. * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64): Add libc_hidden_ver. * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add libc_hidden_def. * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver instead of libc_hidden_weak. * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use libc_hidden_ver instead of libc_hidden_def. * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use libc_hidden_ver instead of libc_hidden_def. (wcstoll, wcstoq): Remove libc_hidden_weak. * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add libc_hidden_ver. * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add libc_hidden_ver. * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add libc_hidden_ver. * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add libc_hidden_ver.
53 lines
1.8 KiB
C
53 lines
1.8 KiB
C
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, write to the Free
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
02111-1307 USA. */
|
|
|
|
#define glob64 __no_glob64_decl
|
|
#define globfree64 __no_globfree64_decl
|
|
|
|
#include <sys/types.h>
|
|
#include <glob.h>
|
|
#include <shlib-compat.h>
|
|
|
|
/* For Linux/Alpha we have to make the glob symbols versioned. */
|
|
#define glob(pattern, flags, errfunc, pglob) \
|
|
__new_glob (pattern, flags, errfunc, pglob)
|
|
#define globfree(pglob) \
|
|
__new_globfree (pglob)
|
|
|
|
/* We need prototypes for these new names. */
|
|
extern int __new_glob (const char *__pattern, int __flags,
|
|
int (*__errfunc) (const char *, int),
|
|
glob_t *__pglob);
|
|
extern void __new_globfree (glob_t *__pglob);
|
|
|
|
#include <sysdeps/generic/glob.c>
|
|
|
|
#undef glob
|
|
#undef globfree
|
|
#undef glob64
|
|
#undef globfree64
|
|
|
|
versioned_symbol (libc, __new_glob, glob, GLIBC_2_1);
|
|
versioned_symbol (libc, __new_globfree, globfree, GLIBC_2_1);
|
|
libc_hidden_ver (__new_glob, glob)
|
|
libc_hidden_ver (__new_globfree, globfree)
|
|
|
|
weak_alias (__new_glob, glob64)
|
|
weak_alias (__new_globfree, globfree64)
|
|
libc_hidden_ver (__new_globfree, globfree64)
|