diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-10 11:08:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-10 11:08:57 +0000 |
commit | 1af8bf34f1caa3e7ec312d8109c07d32a945a448 (patch) | |
tree | 00f3f2d6778554ba273b73ae82f8790b43e56374 /source/smbwrapper | |
parent | a7842fac94a3f772da0e6ddf14044df24af798a9 (diff) | |
download | samba-1af8bf34f1caa3e7ec312d8109c07d32a945a448.tar.gz samba-1af8bf34f1caa3e7ec312d8109c07d32a945a448.tar.xz samba-1af8bf34f1caa3e7ec312d8109c07d32a945a448.zip |
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.
Diffstat (limited to 'source/smbwrapper')
-rw-r--r-- | source/smbwrapper/smbsh.c | 4 | ||||
-rw-r--r-- | source/smbwrapper/smbw.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/smbwrapper/smbsh.c b/source/smbwrapper/smbsh.c index 37e29a94f9e..ce544004884 100644 --- a/source/smbwrapper/smbsh.c +++ b/source/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/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index dd78480f17d..74a931587d9 100644 --- a/source/smbwrapper/smbw.c +++ b/source/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"); |