# Copyright (C) Stefan (metze) Metzmacher 2004
# Released under the GNU GPL
-package smb_build_h;
+package header;
use strict;
sub _add_define_section($)
{
my ($CTX, $file) = @_;
- open(SMB_BUILD_H,">$file") || die ("Can't open `$file'\n");
- print SMB_BUILD_H "/* autogenerated by build/smb_build/main.pl */\n";
- print SMB_BUILD_H _prepare_build_h($CTX);
- close(SMB_BUILD_H);
+ open(BUILD_H,">$file") || die ("Can't open `$file'\n");
+ print BUILD_H "/* autogenerated by build/smb_build/main.pl */\n";
+ print BUILD_H _prepare_build_h($CTX);
+ close(BUILD_H);
print __FILE__.": creating $file\n";
}
# Released under the GNU GPL
use smb_build::makefile;
-use smb_build::smb_build_h;
+use smb_build::header;
use smb_build::input;
use smb_build::config_mk;
use smb_build::output;
}
$mkenv->write("Makefile");
-smb_build_h::create_smb_build_h($OUTPUT, "include/smb_build.h");
+header::create_smb_build_h($OUTPUT, "include/build.h");
1;
#include "librpc/ndr/ndr_orpc.h"
#include "librpc/gen_ndr/orpc.h"
#include "librpc/rpc/dcerpc.h"
-#include "smb_interfaces.h"
+#include "libcli/raw/interfaces.h"
#include "auth/credentials/credentials.h"
#include "libcli/nbt/libnbt.h"
*/
#ifndef _PSTRING
+#define _PSTRING
#define PSTRING_LEN 1024
#define FSTRING_LEN 256
typedef char pstring[PSTRING_LEN];
typedef char fstring[FSTRING_LEN];
-#define _PSTRING
+#define pstrcpy(d,s) safe_strcpy((d), (s),sizeof(pstring)-1)
+#define pstrcat(d,s) safe_strcat((d), (s),sizeof(pstring)-1)
+#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
+#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
+
#endif
#endif /* !_SPLINT_ */
-#define pstrcpy(d,s) safe_strcpy((d), (s),sizeof(pstring)-1)
-#define pstrcat(d,s) safe_strcat((d), (s),sizeof(pstring)-1)
-#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
-#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
-
/* replace some string functions with multi-byte
versions */
#define strlower(s) strlower_m(s)
/*
Unix SMB/CIFS implementation.
- SMB parameters and setup
+ Some convenient macros
Copyright (C) Andrew Tridgell 1992-1999
Copyright (C) John H Terpstra 1996-1999
Copyright (C) Luke Kenneth Casson Leighton 1996-1999