From b30e75692d68233448b3ad3d7ddd4b4ac423d3ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Sep 2001 11:08:57 +0000 Subject: replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448) --- source3/smbwrapper/smbsh.c | 4 ++-- source3/smbwrapper/smbw.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbwrapper') diff --git a/source3/smbwrapper/smbsh.c b/source3/smbwrapper/smbsh.c index 37e29a94f9..ce54400488 100644 --- a/source3/smbwrapper/smbsh.c +++ b/source3/smbwrapper/smbsh.c @@ -42,9 +42,9 @@ int main(int argc, char *argv[]) int opt; extern char *optarg; extern int optind; - extern FILE *dbf; + extern XFILE *dbf; - dbf = stdout; + dbf = x_stdout; smbw_setup_shared(); while ((opt = getopt(argc, argv, "W:U:R:d:P:l:hL:")) != EOF) { diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index dd78480f17..74a931587d 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -47,7 +47,7 @@ void smbw_init(void) extern BOOL in_client; static int initialised; static pstring servicesf = CONFIGFILE; - extern FILE *dbf; + extern XFILE *dbf; char *p; int eno; pstring line; @@ -62,7 +62,7 @@ void smbw_init(void) DEBUGLEVEL = 0; setup_logging("smbsh",True); - dbf = stderr; + dbf = x_stderr; if ((p=smbw_getshared("LOGFILE"))) { dbf = sys_fopen(p, "a"); -- cgit