summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/local.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
committerguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
commitbb64080b0f4926cfaad11f8655a5a0ff1c21e50f (patch)
tree2f9ddff73dde02f16705737abba78e6aa5e185c8 /lib/libc/stdio/local.h
parentMove the __rand48_* declarations into rand48.h, and then hide both them (diff)
downloadwireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.tar.xz
wireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.zip
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@
Diffstat (limited to 'lib/libc/stdio/local.h')
-rw-r--r--lib/libc/stdio/local.h12
1 files changed, 8 insertions, 4 deletions
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.