diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-14 11:18:21 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-14 11:18:21 +0000 |
commit | 83b297f2f002d92fe29b8b6c4466b58491c60cd9 (patch) | |
tree | 91abecd893b916905cbb54d6b161023826a6cd18 /lib | |
parent | c952a2a492986a744ef73884b4e30f448f735c55 (diff) | |
download | FreeBSD-src-83b297f2f002d92fe29b8b6c4466b58491c60cd9.zip FreeBSD-src-83b297f2f002d92fe29b8b6c4466b58491c60cd9.tar.gz |
Use a weak reference instead of a macro to make vfscanf an alias
for __vfscanf.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/local.h | 2 | ||||
-rw-r--r-- | lib/libc/stdio/vfscanf.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index ba2416b..3ef5a5b 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -68,11 +68,13 @@ extern void (*__cleanup)(void); extern void __smakebuf(FILE *); extern int __swhatbuf(FILE *, size_t *, int *); extern int _fwalk(int (*)(FILE *)); +extern int __svfscanf(FILE *, const char *, __va_list); extern int __swsetup(FILE *); extern int __sflags(const char *, int *); extern int __ungetc(int, FILE *); extern wint_t __ungetwc(wint_t, FILE *); extern int __vfprintf(FILE *, const char *, __va_list); +extern int __vfscanf(FILE *, const char *, __va_list); extern int __vfwprintf(FILE *, const wchar_t *, __va_list); extern int __vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list); diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 358c562..f6480f1 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -106,6 +106,8 @@ __FBSDID("$FreeBSD$"); static const u_char *__sccl(char *, const u_char *); +__weak_reference(__vfscanf, vfscanf); + /* * __vfscanf - MT-safe version */ |