r13959: make more functions public
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Mar 2006 16:37:35 +0000 (16:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:52:31 +0000 (13:52 -0500)
metze
(This used to be commit a5b95a7741085a9adb04b8b63066d1b3d0f024ae)

source4/lib/util/dprintf.c
source4/lib/util/util_file.c

index 64227148fd9aeb1497a20c2f0f67945700cba0f3..916db3af9348e17a9a6a82b36675e36da90b4a59 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "includes.h"
 
-int d_vfprintf(FILE *f, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
+_PUBLIC_ int d_vfprintf(FILE *f, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
 {
        char *p, *p2;
        int ret, maxlen, clen;
@@ -71,7 +71,7 @@ again:
 }
 
 
-int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+_PUBLIC_ int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 {
        int ret;
        va_list ap;
@@ -85,7 +85,7 @@ int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 
 static FILE *outfile;
 
-int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2)
+_PUBLIC_ int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2)
 {
        int ret;
        va_list ap;
@@ -101,7 +101,7 @@ int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2)
 
 /* interactive programs need a way of tell d_*() to write to stderr instead
    of stdout */
-void display_set_stderr(void)
+_PUBLIC_ void display_set_stderr(void)
 {
        outfile = stderr;
 }
index 430472f25a42dc28757897823567d9fea1f75dc2..b35d2675822370d11e12fbe6cd839c5278721c6e 100644 (file)
@@ -364,7 +364,7 @@ _PUBLIC_ BOOL file_exists(const char *path)
        return (stat(path, &st) == 0);
 }
 
-int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
+_PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
 {
        char *p;
        int len, ret;
@@ -379,7 +379,7 @@ int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
        return ret;
 }
 
-int fdprintf(int fd, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+_PUBLIC_ int fdprintf(int fd, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 {
        va_list ap;
        int ret;