summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-16 09:40:02 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-16 09:40:02 +0000
commit37c0312def0b0c1b3c4248bd8d797db15d88d772 (patch)
tree8dcb976c17049887e27d4119a900200ad29c56ea /source3/include/smb.h
parentd79a8c68d6ea2288dc8574f994bb281c2a784cf8 (diff)
downloadsamba-37c0312def0b0c1b3c4248bd8d797db15d88d772.tar.gz
samba-37c0312def0b0c1b3c4248bd8d797db15d88d772.tar.bz2
samba-37c0312def0b0c1b3c4248bd8d797db15d88d772.zip
added fdprintf()
this is like fprintf() but operates on a file descriptor combined with file_load_lines() this makes it really easy to get rid of the use of fopen() in Samba. (This used to be commit bd5cd502bf52164b95d7bfc026189e04988171db)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index b8cd415ef9..854200e4cb 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1303,6 +1303,16 @@ int slprintf(char *str, int n, char *format, ...)
int slprintf();
#endif
+#ifdef HAVE_STDARG_H
+int fdprintf(int fd, char *format, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (printf, 2, 3)))
+#endif
+;
+#else
+int fdprintf();
+#endif
+
#ifdef WITH_DFS
void dfs_unlogin(void);
extern int dcelogin_atmost_once;