From bb64080b0f4926cfaad11f8655a5a0ff1c21e50f Mon Sep 17 00:00:00 2001 From: guenther Date: Thu, 27 Aug 2015 04:37:09 +0000 Subject: Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal symbols that are not longer exported. (This improves the generated code.) ok deraadt@ --- lib/libc/stdio/local.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/local.h') diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index 0ebe1158116..56cdf22d9f1 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: local.h,v 1.20 2011/11/08 18:30:42 guenther Exp $ */ +/* $OpenBSD: local.h,v 1.21 2015/08/27 04:37:09 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,6 +41,12 @@ #include "wcio.h" #include "fileext.h" +void _cleanup(void); +int _fwalk(int (*)(FILE *)); + +extern void __atexit_register_cleanup(void (*)(void)); + +__BEGIN_HIDDEN_DECLS int __sflush(FILE *); int __sflush_locked(FILE *); FILE *__sfp(void); @@ -50,10 +56,8 @@ int __swrite(void *, const char *, int); fpos_t __sseek(void *, fpos_t, int); int __sclose(void *); void __sinit(void); -void _cleanup(void); void __smakebuf(FILE *); int __swhatbuf(FILE *, size_t *, int *); -int _fwalk(int (*)(FILE *)); int __swsetup(FILE *); int __sflags(const char *, int *); wint_t __fgetwc_unlock(FILE *); @@ -63,8 +67,8 @@ int __svfscanf(FILE * __restrict, const char * __restrict, __va_list); int __vfwprintf(FILE * __restrict, const wchar_t * __restrict, __va_list); int __vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list); -extern void __atexit_register_cleanup(void (*)(void)); extern int __sdidinit; +__END_HIDDEN_DECLS /* * Return true if the given FILE cannot be written now. -- cgit v1.2.3-59-g8ed1b