fstring base_directory;
char *pname = argv[0];
int opt;
- extern XFILE *dbf;
extern char *optarg;
extern int optind;
int old_debug;
#define SEPARATORS " \t\n\r"
extern int DEBUGLEVEL;
extern struct cli_state *cli;
-extern XFILE *dbf;
/* These defines are for the do_setrattr routine, to indicate
* setting and reseting of file attributes in the function call */
int Debug1( char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2);
+extern XFILE *dbf;
+
/* If we have these macros, we can add additional info to the header. */
#ifdef HAVE_FILE_MACRO
#define FILE_MACRO (__FILE__)
#endif
/* Lists, trees, caching, database... */
+#include "xfile.h"
#include "ubi_sLinkList.h"
#include "ubi_dLinkList.h"
#include "dlinklist.h"
#include "messages.h"
#include "util_list.h"
#include "charset.h"
-#include "xfile.h"
#include "util_getent.h"
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef _XFILE_H_
+#define _XFILE_H_
/*
see xfile.c for explanations
*/
#define X_IONBF 2
#define x_getc(f) x_fgetc(f)
+
+#endif /* _XFILE_H_ */
BOOL interactive = True;
char *cmd_str = NULL;
int opt;
- extern XFILE *dbf;
extern char *optarg;
static pstring servicesf = CONFIGFILE;
pstring term_code;
int end))
{
fd_set fds;
- extern XFILE *dbf;
static pstring line;
struct timeval timeout;
int fd = fileno(stdin);
int main(int argc,char *argv[])
{
int opt;
- extern XFILE *dbf;
extern char *optarg;
extern BOOL append_log;
int opt;
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
dbf = x_stdout;
smbw_setup_shared();
extern BOOL in_client;
static int initialised;
static pstring servicesf = CONFIGFILE;
- extern XFILE *dbf;
char *p;
int eno;
pstring line;
char *share[NSERVERS];
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *p;
int seed, server;
char *share1, *share2, *nfspath1, *nfspath2;
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *p;
int seed;
struct cli_state *cli;
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *p;
int seed;
{
char *pname = argv[0];
int opt;
- extern XFILE *dbf;
extern char *optarg;
extern int optind;
static pstring servicesf = CONFIGFILE;
int gotpass = 0;
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
static pstring servicesf = CONFIGFILE;
BOOL correct = True;
pstring filename;
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *p;
static pstring servicesf = CONFIGFILE;
{
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *p;
pstring servicesf = CONFIGFILE;
} *srecs;
extern int DEBUGLEVEL;
-extern XFILE *dbf;
static pstring Ucrit_username = ""; /* added by OH */
static pid_t Ucrit_pid[100]; /* Ugly !!! */ /* added by OH */
#include "smb.h"
/* these live in util.c */
-extern XFILE *dbf;
extern int DEBUGLEVEL;
/***********************************************
#include "smb.h"
/* these live in util.c */
-extern XFILE *dbf;
extern int DEBUGLEVEL;
int main(int argc, char *argv[])
{
extern char *optarg;
extern int optind;
- extern XFILE *dbf;
int opt;
char *page;