1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r12694: Move some headers to the directory of the subsystem they belong to.

This commit is contained in:
Jelmer Vernooij 2006-01-03 15:40:05 +00:00 committed by Gerald (Jerry) Carter
parent 73610639b2
commit c722f665c9
98 changed files with 134 additions and 74 deletions

View File

@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb.h"
#include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */ #include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */
#include "include/secrets.h" #include "passdb/secrets.h"
#include "system/filesys.h" #include "system/filesys.h"
/** /**

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
static BOOL read_negTokenInit(struct asn1_data *asn1, struct spnego_negTokenInit *token) static BOOL read_negTokenInit(struct asn1_data *asn1, struct spnego_negTokenInit *token)
{ {

View File

@ -23,7 +23,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"
/* /*

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "pstring.h" #include "pstring.h"
/* /*

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "version.h" #include "version.h"
#include "clilist.h" #include "libcli/libcli.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
#include "librpc/gen_ndr/ndr_srvsvc.h" #include "librpc/gen_ndr/ndr_srvsvc.h"
#include "librpc/gen_ndr/ndr_lsa.h" #include "librpc/gen_ndr/ndr_lsa.h"

View File

@ -1,28 +0,0 @@
/*
Unix SMB/CIFS implementation.
Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
struct clilist_file_info {
uint64_t size;
uint16_t attrib;
time_t mtime;
const char *name;
const char *short_name;
};

View File

@ -28,3 +28,11 @@ enum protocol_types {PROTOCOL_NONE,PROTOCOL_CORE,PROTOCOL_COREPLUS,PROTOCOL_LANM
/* security levels */ /* security levels */
enum security_types {SEC_SHARE,SEC_USER}; enum security_types {SEC_SHARE,SEC_USER};
/* passed to br lock code */
enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_READ_LOCK, PENDING_WRITE_LOCK};
enum smb_signing_state {SMB_SIGNING_OFF, SMB_SIGNING_SUPPORTED,
SMB_SIGNING_REQUIRED, SMB_SIGNING_AUTO};

View File

@ -84,9 +84,8 @@ struct ipv4_addr {
#include "structs.h" #include "structs.h"
#include "trans2.h" #include "trans2.h"
#include "nterr.h" #include "nterr.h"
#include "charset/charset.h"
#include "core.h" #include "core.h"
#include "smb.h"
#include "charset.h"
#include "debug.h" #include "debug.h"
#include "doserr.h" #include "doserr.h"
#include "enums.h" #include "enums.h"
@ -98,7 +97,6 @@ struct ipv4_addr {
#include "librpc/gen_ndr/orpc.h" #include "librpc/gen_ndr/orpc.h"
#include "librpc/rpc/dcerpc.h" #include "librpc/rpc/dcerpc.h"
#include "smb_interfaces.h" #include "smb_interfaces.h"
#include "cli_context.h"
#include "auth/credentials/credentials.h" #include "auth/credentials/credentials.h"
#include "libcli/nbt/libnbt.h" #include "libcli/nbt/libnbt.h"

View File

@ -29,9 +29,6 @@
#define SMB_PORTS "445 139" #define SMB_PORTS "445 139"
enum smb_signing_state {SMB_SIGNING_OFF, SMB_SIGNING_SUPPORTED,
SMB_SIGNING_REQUIRED, SMB_SIGNING_AUTO};
/* deny modes */ /* deny modes */
#define DENY_DOS 0 #define DENY_DOS 0
#define DENY_ALL 1 #define DENY_ALL 1
@ -557,20 +554,6 @@ enum smb_signing_state {SMB_SIGNING_OFF, SMB_SIGNING_SUPPORTED,
#define DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH 14 #define DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH 14
/* passed to br lock code */
enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_READ_LOCK, PENDING_WRITE_LOCK};
/* string manipulation flags - see clistr.c and srvstr.c */
#define STR_TERMINATE 1
#define STR_UPPER 2
#define STR_ASCII 4
#define STR_UNICODE 8
#define STR_NOALIGN 16
#define STR_NO_RANGE_CHECK 32
#define STR_LEN8BIT 64
#define STR_TERMINATE_ASCII 128 /* only terminate if ascii */
#define STR_LEN_NOTERM 256 /* the length field is the unterminated length */
/* /*
filesystem attribute bits filesystem attribute bits
@ -590,4 +573,10 @@ enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_READ_LOCK, PENDING_WRITE_LOCK};
#define FS_ATTR_ENCRYPTION 0x00020000 #define FS_ATTR_ENCRYPTION 0x00020000
#define FS_ATTR_NAMED_STREAMS 0x00040000 #define FS_ATTR_NAMED_STREAMS 0x00040000
#define smb_len(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|(PVAL(buf,1)<<16))
#define _smb_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0x10000)>>16; \
(buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
#define _smb_setlen2(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0xFF0000)>>16; \
(buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
#endif /* _SMB_H */ #endif /* _SMB_H */

View File

@ -44,12 +44,6 @@
DEBUG(0,("PANIC: assert failed at %s(%d)\n", __FILE__, __LINE__)); \ DEBUG(0,("PANIC: assert failed at %s(%d)\n", __FILE__, __LINE__)); \
smb_panic("assert failed"); }} while (0) smb_panic("assert failed"); }} while (0)
#define smb_len(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|(PVAL(buf,1)<<16))
#define _smb_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0x10000)>>16; \
(buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
#define _smb_setlen2(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0xFF0000)>>16; \
(buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
#ifndef MIN #ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b))
#endif #endif

View File

@ -372,3 +372,6 @@ struct registry_context;
struct nbtd_interface; struct nbtd_interface;
struct nbtd_iface_name; struct nbtd_iface_name;
struct nbtd_server; struct nbtd_server;
struct smbcli_session;
struct smbcli_state;
struct substitute_context;

View File

@ -26,7 +26,7 @@
#include "lib/events/events.h" #include "lib/events/events.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
#include "ldap_server/ldap_server.h" #include "ldap_server/ldap_server.h"
#include "smbd/service_task.h" #include "smbd/service_task.h"
#include "smbd/service_stream.h" #include "smbd/service_stream.h"

View File

@ -55,3 +55,15 @@ typedef struct {
void *cd_direct, *cd_pull, *cd_push; void *cd_direct, *cd_pull, *cd_push;
} *smb_iconv_t; } *smb_iconv_t;
/* string manipulation flags */
#define STR_TERMINATE 1
#define STR_UPPER 2
#define STR_ASCII 4
#define STR_UNICODE 8
#define STR_NOALIGN 16
#define STR_NO_RANGE_CHECK 32
#define STR_LEN8BIT 64
#define STR_TERMINATE_ASCII 128 /* only terminate if ascii */
#define STR_LEN_NOTERM 256 /* the length field is the unterminated length */
#include "lib/charset/charset_proto.h"

View File

@ -4,6 +4,7 @@
OBJ_FILES = \ OBJ_FILES = \
iconv.o \ iconv.o \
charcnv.o charcnv.o
PRIVATE_PROTO_HEADER = charset_proto.h
REQUIRED_SUBSYSTEMS = EXT_LIB_ICONV REQUIRED_SUBSYSTEMS = EXT_LIB_ICONV
# End SUBSYSTEM CHARSET # End SUBSYSTEM CHARSET
################################################ ################################################

View File

@ -23,7 +23,7 @@
#include "includes.h" #include "includes.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "messages.h" #include "messaging/messaging.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
#include "librpc/gen_ndr/ndr_irpc.h" #include "librpc/gen_ndr/ndr_irpc.h"

View File

@ -22,6 +22,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "system/iconv.h" #include "system/iconv.h"
#include "smb.h"
#include "pstring.h" #include "pstring.h"
#include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb.h"

View File

@ -24,6 +24,7 @@
#include "includes.h" #include "includes.h"
#include "system/time.h" #include "system/time.h"
#include "smb.h"
#include "auth/ntlmssp/ntlmssp.h" #include "auth/ntlmssp/ntlmssp.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "pstring.h" #include "pstring.h"

View File

@ -20,7 +20,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "asn_1.h" #include "libcli/util/asn_1.h"
#include "librpc/gen_ndr/ndr_nbt.h" #include "librpc/gen_ndr/ndr_nbt.h"
enum cldap_request_state {CLDAP_REQUEST_SEND, enum cldap_request_state {CLDAP_REQUEST_SEND,

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"

View File

@ -19,7 +19,8 @@
*/ */
#include "includes.h" #include "includes.h"
#include "clilist.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
struct delete_state { struct delete_state {
struct smbcli_tree *tree; struct smbcli_tree *tree;

View File

@ -20,7 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "clilist.h" #include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
struct search_private { struct search_private {

View File

@ -98,6 +98,7 @@ REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBCLI_UTILS LIBCLI_AUTH \
[SUBSYSTEM::LIBSMB] [SUBSYSTEM::LIBSMB]
REQUIRED_SUBSYSTEMS = LIBCLI SOCKET REQUIRED_SUBSYSTEMS = LIBCLI SOCKET
PRIVATE_PROTO_HEADER = libcli_proto.h
OBJ_FILES = clireadwrite.o \ OBJ_FILES = clireadwrite.o \
cliconnect.o \ cliconnect.o \
clifile.o \ clifile.o \

View File

@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "system/iconv.h" #include "system/iconv.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
#include "libcli/ldap/ldap.h" #include "libcli/ldap/ldap.h"

View File

@ -24,7 +24,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"

View File

@ -19,6 +19,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "smb.h"
/* /*
smbcli_state: internal state used in libcli library for single-threaded callers, smbcli_state: internal state used in libcli library for single-threaded callers,
i.e. a single session on a single socket. i.e. a single session on a single socket.
@ -30,3 +32,14 @@ struct smbcli_state {
struct substitute_context *substitute; struct substitute_context *substitute;
struct smblsa_state *lsa; struct smblsa_state *lsa;
}; };
struct clilist_file_info {
uint64_t size;
uint16_t attrib;
time_t mtime;
const char *name;
const char *short_name;
};
#include "libcli/libcli_proto.h"

View File

@ -21,6 +21,7 @@
*/ */
#include "request.h" #include "request.h"
#include "smb.h"
#include "librpc/gen_ndr/ndr_nbt.h" #include "librpc/gen_ndr/ndr_nbt.h"
struct smbcli_tree; /* forward declare */ struct smbcli_tree; /* forward declare */

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#define SETUP_REQUEST(cmd, wct, buflen) do { \ #define SETUP_REQUEST(cmd, wct, buflen) do { \

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"

View File

@ -20,6 +20,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "smb.h"
struct smb2_options { struct smb2_options {
uint32_t timeout; uint32_t timeout;
}; };

View File

@ -19,7 +19,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "asn_1.h" #include "libcli/util/asn_1.h"
/* free an asn1 structure */ /* free an asn1 structure */
void asn1_free(struct asn1_data *data) void asn1_free(struct asn1_data *data)

View File

@ -28,6 +28,7 @@
#include "includes.h" #include "includes.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#include "librpc/gen_ndr/ndr_lsa.h" #include "librpc/gen_ndr/ndr_lsa.h"
struct smblsa_state { struct smblsa_state {

View File

@ -26,7 +26,7 @@
#include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h" #include "lib/ldb/include/ldb_errors.h"
#include "libcli/cldap/cldap.h" #include "libcli/cldap/cldap.h"
#include "include/secrets.h" #include "passdb/secrets.h"
#include "dsdb/samdb/samdb.h" #include "dsdb/samdb/samdb.h"
/* /*

View File

@ -20,6 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "libnet/libnet.h" #include "libnet/libnet.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"

View File

@ -215,6 +215,7 @@ librpc/ndr/libndr.h: librpc/ndr/libndr_proto.h librpc/gen_ndr/misc.h
librpc/rpc/dcerpc.h: librpc/rpc/dcerpc_proto.h librpc/rpc/dcerpc.h: librpc/rpc/dcerpc_proto.h
auth/credentials/credentials.h: auth/credentials/credentials_proto.h auth/credentials/credentials.h: auth/credentials/credentials_proto.h
libcli/nbt/libnbt.h: libcli/nbt/nbt_proto.h libcli/nbt/libnbt.h: libcli/nbt/nbt_proto.h
lib/charset/charset.h: lib/charset/charset_proto.h
include/includes.h: \ include/includes.h: \
include/config.h \ include/config.h \
@ -223,7 +224,8 @@ include/includes.h: \
librpc/rpc/dcerpc.h \ librpc/rpc/dcerpc.h \
auth/credentials/credentials_proto.h \ auth/credentials/credentials_proto.h \
libcli/nbt/libnbt.h \ libcli/nbt/libnbt.h \
lib/basic.h lib/basic.h \
lib/charset/charset.h
clean_pch: clean_pch:
-rm -f include/includes.h.gch -rm -f include/includes.h.gch

View File

@ -28,7 +28,7 @@
#include "includes.h" #include "includes.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "lib/tdb/include/tdb.h" #include "lib/tdb/include/tdb.h"
#include "messages.h" #include "messaging/messaging.h"
#include "db_wrap.h" #include "db_wrap.h"
#include "lib/messaging/irpc.h" #include "lib/messaging/irpc.h"

View File

@ -41,9 +41,10 @@
#include "includes.h" #include "includes.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "lib/tdb/include/tdb.h" #include "lib/tdb/include/tdb.h"
#include "messages.h" #include "messaging/messaging.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "db_wrap.h" #include "db_wrap.h"
#include "smb_server/smb_server.h"
#include "lib/messaging/irpc.h" #include "lib/messaging/irpc.h"
struct odb_context { struct odb_context {

View File

@ -24,7 +24,7 @@
#include "vfs_posix.h" #include "vfs_posix.h"
#include "system/time.h" #include "system/time.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "messages.h" #include "messaging/messaging.h"
/* /*

View File

@ -25,7 +25,7 @@
#include "system/dir.h" #include "system/dir.h"
#include "system/time.h" #include "system/time.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "messages.h" #include "messaging/messaging.h"
#include "librpc/gen_ndr/ndr_xattr.h" #include "librpc/gen_ndr/ndr_xattr.h"
/* /*

View File

@ -28,6 +28,7 @@
#include "svfs.h" #include "svfs.h"
#include "system/time.h" #include "system/time.h"
#include "system/dir.h" #include "system/dir.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
/* /*

View File

@ -53,6 +53,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "version.h" #include "version.h"
#include "dynconfig.h" #include "dynconfig.h"
#include "pstring.h" #include "pstring.h"

View File

@ -26,7 +26,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/composite/composite.h" #include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"
#include "clilist.h" #include "libcli/libcli.h"
#if 0 #if 0

View File

@ -20,6 +20,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "smb.h"
#include "request.h" #include "request.h"
#include "smbd/process_model.h" #include "smbd/process_model.h"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
int create_complex_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *fname); int create_complex_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *fname);

View File

@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/libcli.h"
extern int torture_failures; extern int torture_failures;

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\chartest\\" #define BASEDIR "\\chartest\\"

View File

@ -27,6 +27,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#define BASEDIR "\\delaywrite" #define BASEDIR "\\delaywrite"

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/libcli.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
extern BOOL torture_showall; extern BOOL torture_showall;
extern int torture_failures; extern int torture_failures;

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/libcli.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"

View File

@ -24,6 +24,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\test_disconnect" #define BASEDIR "\\test_disconnect"

View File

@ -24,6 +24,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "lib/tdb/include/tdbutil.h" #include "lib/tdb/include/tdbutil.h"
#include "libcli/libcli.h"
#include "pstring.h" #include "pstring.h"
static TDB_CONTEXT *tdb; static TDB_CONTEXT *tdb;

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
struct bitmapping { struct bitmapping {
const char *name; const char *name;

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "libcli/libcli.h"
#include "torture/torture.h" #include "torture/torture.h"
/* /*

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "pstring.h" #include "pstring.h"

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#include "system/time.h" #include "system/time.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"

View File

@ -24,6 +24,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\unlinktest" #define BASEDIR "\\unlinktest"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/iconv.h" #include "system/iconv.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#include "pstring.h" #include "pstring.h"
BOOL torture_utable(void) BOOL torture_utable(void)

View File

@ -22,6 +22,7 @@
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "request.h" #include "request.h"
#include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"

View File

@ -23,6 +23,7 @@
#include "system/time.h" #include "system/time.h"
#include "pstring.h" #include "pstring.h"
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"
#include "libcli/libcli.h"
static int numops = 1000; static int numops = 1000;
static BOOL showall; static BOOL showall;

View File

@ -20,7 +20,7 @@
#include "includes.h" #include "includes.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "clilist.h" #include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/time.h" #include "system/time.h"
#include "pstring.h" #include "pstring.h"

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/libcli.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "pstring.h" #include "pstring.h"

View File

@ -24,6 +24,7 @@
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#define MAX_FILES 100 #define MAX_FILES 100

View File

@ -23,6 +23,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "rap.h" #include "rap.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
struct rap_call { struct rap_call {
uint16_t callno; uint16_t callno;

View File

@ -23,6 +23,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\testsd" #define BASEDIR "\\testsd"

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\rawchkpath" #define BASEDIR "\\rawchkpath"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/time.h" #include "system/time.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
/* basic testing of all RAW_CLOSE_* calls /* basic testing of all RAW_CLOSE_* calls

View File

@ -24,6 +24,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#include "libcli/composite/composite.h" #include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"

View File

@ -25,6 +25,7 @@
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "libcli/libcli.h"
#define BASEDIR "\\rawcontext" #define BASEDIR "\\rawcontext"

View File

@ -24,6 +24,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\testeas" #define BASEDIR "\\testeas"

View File

@ -23,6 +23,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "ioctl.h" #include "ioctl.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\rawioctl" #define BASEDIR "\\rawioctl"

View File

@ -23,6 +23,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\mkdirtest" #define BASEDIR "\\mkdirtest"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\test_mux" #define BASEDIR "\\test_mux"

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\test_notify" #define BASEDIR "\\test_notify"

View File

@ -25,6 +25,7 @@
#include "system/filesys.h" #include "system/filesys.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "libcli/libcli.h"
/* enum for whether reads/writes are possible on a file */ /* enum for whether reads/writes are possible on a file */
enum rdwr_mode {RDWR_NONE, RDWR_RDONLY, RDWR_WRONLY, RDWR_RDWR}; enum rdwr_mode {RDWR_NONE, RDWR_RDONLY, RDWR_WRONLY, RDWR_RDWR};

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define CHECK_VAL(v, correct) do { \ #define CHECK_VAL(v, correct) do { \
if ((v) != (correct)) { \ if ((v) != (correct)) { \

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
static struct { static struct {
const char *name; const char *name;

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
static struct { static struct {

View File

@ -23,6 +23,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\testsearch" #define BASEDIR "\\testsearch"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/time.h" #include "system/time.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define BASEDIR "\\testsfileinfo" #define BASEDIR "\\testsfileinfo"

View File

@ -24,6 +24,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#define BASEDIR "\\teststreams" #define BASEDIR "\\teststreams"

View File

@ -22,6 +22,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -24,6 +24,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/libcli.h"
#define CHECK_STATUS(status, correct) do { \ #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \ if (!NT_STATUS_EQUAL(status, correct)) { \

View File

@ -26,6 +26,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "smb.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
static const char *machine_password; static const char *machine_password;

View File

@ -24,6 +24,7 @@
#include "torture/torture.h" #include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa.h" #include "librpc/gen_ndr/ndr_lsa.h"
#include "librpc/gen_ndr/ndr_samr.h" #include "librpc/gen_ndr/ndr_samr.h"
#include "smb.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#define TEST_ACCOUNT_NAME "samrtorturetest" #define TEST_ACCOUNT_NAME "samrtorturetest"

View File

@ -31,6 +31,7 @@
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "libnet/libnet.h" #include "libnet/libnet.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
#include "smb.h"
#include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb.h"

View File

@ -21,6 +21,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "smb.h"
#include "libcli/smb2/smb2.h" #include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h" #include "libcli/smb2/smb2_calls.h"

View File

@ -25,6 +25,7 @@
#include "system/wait.h" #include "system/wait.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "ioctl.h" #include "ioctl.h"
#include "libcli/libcli.h"
#include "librpc/rpc/dcerpc_table.h" #include "librpc/rpc/dcerpc_table.h"
int torture_nprocs=4; int torture_nprocs=4;

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
#include "system/shmem.h" #include "system/shmem.h"
#include "system/time.h" #include "system/time.h"