Hide private snprintf symbols
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 2 Mar 2021 17:04:26 +0000 (12:04 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 2 Mar 2021 19:24:07 +0000 (14:24 -0500)
The major SONAME bump to '1' gives us the opportunity to hide private
symbols that should never have been visible.

Change-Id: Iee731f585712c997fc92bc252ad4e4a7a4bddf3c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
snprintf/floatio.h
snprintf/fvwrite.h
snprintf/local.h
snprintf/various.h

index 150813533397106e89110d9821331170d3f75c7b..ad696314289e9f50ede98495b8d8a7f4657c7a91 100644 (file)
@@ -10,6 +10,8 @@
  * Chris Torek.
  */
 
+#include "ust-helper.h"
+
 /*
  * Floating point scanf/printf (input/output) definitions.
  */
@@ -31,6 +33,9 @@
 #error "floating point buffers too small"
 #endif
 
+LTTNG_HIDDEN
 char *__hdtoa(double, const char *, int, int *, int *, char **);
+LTTNG_HIDDEN
 char *__hldtoa(long double, const char *, int, int *, int *, char **);
+LTTNG_HIDDEN
 char *__ldtoa(long double *, int, int, int *, int *, char **);
index 04092aa498525d3714b29ba8e40d96953466a91f..a758b50873d7005f2fa7bbc0f9acbf4ac75f6e58 100644 (file)
@@ -15,6 +15,8 @@
  */
 #include <stddef.h>
 
+#include "ust-helper.h"
+
 struct __lttng_ust_siov {
        void    *iov_base;
        size_t  iov_len;
@@ -25,4 +27,5 @@ struct __lttng_ust_suio {
        int     uio_resid;
 };
 
+LTTNG_HIDDEN
 extern int __sfvwrite(LTTNG_UST_LFILE *, struct __lttng_ust_suio *);
index 2df72d1ada80706cfa3061605c82d6da0ff0155e..e4af0ea2a776eb98e88ba5bf93c848f0f3db11d3 100644 (file)
 
 #include <stdio.h>
 #include <wchar.h>
+#include "ust-helper.h"
 #include "various.h"
 #include "wcio.h"
 #include "fileext.h"
 
+LTTNG_HIDDEN
 int    __sflush(LTTNG_UST_LFILE *);
+LTTNG_HIDDEN
 LTTNG_UST_LFILE        *__sfp(void);
+LTTNG_HIDDEN
 int    __srefill(LTTNG_UST_LFILE *);
+LTTNG_HIDDEN
 int    __sread(void *, char *, int);
+LTTNG_HIDDEN
 int    __swrite(void *, const char *, int);
+LTTNG_HIDDEN
 fpos_t __sseek(void *, fpos_t, int);
+LTTNG_HIDDEN
 int    __sclose(void *);
+LTTNG_HIDDEN
 void   __sinit(void);
+LTTNG_HIDDEN
 void   _cleanup(void);
+LTTNG_HIDDEN
 void   __smakebuf(LTTNG_UST_LFILE *);
+LTTNG_HIDDEN
 int    __swhatbuf(LTTNG_UST_LFILE *, size_t *, int *);
+LTTNG_HIDDEN
 int    _fwalk(int (*)(LTTNG_UST_LFILE *));
+LTTNG_HIDDEN
 int    __swsetup(LTTNG_UST_LFILE *);
+LTTNG_HIDDEN
 int    __sflags(const char *, int *);
+LTTNG_HIDDEN
 wint_t __fgetwc_unlock(LTTNG_UST_LFILE *);
 
+LTTNG_HIDDEN
 extern void __atexit_register_cleanup(void (*)(void));
+LTTNG_HIDDEN
 extern int __sdidinit;
 
 /*
index 9b1a3014abe260a0fec78166b7f1f1b4ec72e0e4..7bf14298b83ce2da8ea2ad30c0f69a49af831326 100644 (file)
@@ -16,6 +16,8 @@
 #include <stdio.h>
 #include <wchar.h>
 
+#include "ust-helper.h"
+
 struct __lttng_ust_sbuf {
         unsigned char *_base;
         int     _size;
@@ -98,9 +100,12 @@ typedef struct __lttng_ust_sFILE {
 
 #define __sferror(p)    (((p)->_flags & __SERR) != 0)
 
+LTTNG_HIDDEN
 extern int ust_safe_fflush(LTTNG_UST_LFILE *fp);
+LTTNG_HIDDEN
 extern int ust_safe_vfprintf(LTTNG_UST_LFILE *fp, const char *fmt0, va_list ap);
 
+LTTNG_HIDDEN
 extern size_t ust_safe_mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
 
 #endif /* UST_SNPRINTF_VARIOUS_H */
This page took 0.026905 seconds and 4 git commands to generate.