From 37c0312def0b0c1b3c4248bd8d797db15d88d772 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Apr 2000 09:40:02 +0000 Subject: 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) --- source3/include/smb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/include/smb.h') 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; -- cgit