s3:torture: move the torture-specific headers to new torture/torture.h
authorMichael Adam <obnox@samba.org>
Fri, 20 Nov 2009 16:47:21 +0000 (17:47 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 23 Nov 2009 22:51:07 +0000 (23:51 +0100)
Michael

source3/include/proto.h
source3/torture/denytest.c
source3/torture/mangle_test.c
source3/torture/nbio.c
source3/torture/scanner.c
source3/torture/torture.c
source3/torture/torture.h [new file with mode: 0644]
source3/torture/utable.c

index 88f6dd54ae19fc54da6bf885f9f007077b8b53a8..5b1ce7462c51ac89d881e5f6ad92efda87f9e657 100644 (file)
@@ -7163,61 +7163,6 @@ int vfs_lstat_smb_fname(struct connection_struct *conn, const char *fname,
                        SMB_STRUCT_STAT *psbuf);
 NTSTATUS vfs_stat_fsp(files_struct *fsp);
 
-/* The following definitions come from torture/denytest.c  */
-
-bool torture_denytest1(int dummy);
-bool torture_denytest2(int dummy);
-
-/* The following definitions come from torture/mangle_test.c  */
-
-bool torture_mangle(int dummy);
-
-/* The following definitions come from torture/nbio.c  */
-
-double nbio_total(void);
-void nb_alarm(int ignore);
-void nbio_shmem(int n);
-void nb_setup(struct cli_state *cli);
-void nb_unlink(const char *fname);
-void nb_createx(const char *fname, 
-               unsigned create_options, unsigned create_disposition, int handle);
-void nb_writex(int handle, int offset, int size, int ret_size);
-void nb_readx(int handle, int offset, int size, int ret_size);
-void nb_close(int handle);
-void nb_rmdir(const char *fname);
-void nb_rename(const char *oldname, const char *newname);
-void nb_qpathinfo(const char *fname);
-void nb_qfileinfo(int fnum);
-void nb_qfsinfo(int level);
-void nb_findfirst(const char *mask);
-void nb_flush(int fnum);
-void nb_deltree(const char *dname);
-void nb_cleanup(void);
-
-/* The following definitions come from torture/scanner.c  */
-
-bool torture_trans2_scan(int dummy);
-bool torture_nttrans_scan(int dummy);
-
-/* The following definitions come from torture/torture.c  */
-
-void start_timer(void);
-double end_timer(void);
-void *shm_setup(int size);
-bool smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
-                     char **hostname, char **sharename);
-void torture_open_connection_free_unclist(char **unc_list);
-bool torture_open_connection(struct cli_state **c, int conn_index);
-bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid);
-bool torture_close_connection(struct cli_state *c);
-bool torture_ioctl_test(int dummy);
-bool torture_chkpath_test(int dummy);
-
-/* The following definitions come from torture/utable.c  */
-
-bool torture_utable(int dummy);
-bool torture_casetable(int dummy);
-
 /* The following definitions come from utils/passwd_util.c  */
 
 char *stdin_new_passwd( void);
index 66a1c9f9356bb20e1701aaf0a9832100973da120..bf491bc22ee93648e6b845c2db3537814367d6e3 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "torture.h"
 
 extern bool torture_showall;
 
index 34c908e64239033691b427d3663e6ae1e52ae842..e5f69479a502d624dc6966c733e5a7e5a2f5ec45 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "torture.h"
 
 extern int torture_numops;
 
index bef54f75fe6257127b80fc3ea1901dfc82b5bc00..5e7a458025ae27f9b8abe22ffeacfb5ecfe5c2b4 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "torture.h"
 
 #define MAX_FILES 1000
 
index e42e80abca46fe123e33af3897a2c8f6c8191121..4d9ee286e828c986a0fa1832b9c339160ea9ce3f 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "torture.h"
 
 #define VERBOSE 0
 #define OP_MIN 0
index bf89ca35b1cef587c5a009375947ccca65c637bf..19103dfbeff93992c54ec34f5b0a74d0f218a999 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "nsswitch/libwbclient/wbc_async.h"
+#include "torture.h"
 
 extern char *optarg;
 extern int optind;
diff --git a/source3/torture/torture.h b/source3/torture/torture.h
new file mode 100644 (file)
index 0000000..353b98c
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+   Unix SMB/CIFS implementation.
+
+   SMB torture tester - header file
+
+   Copyright (C) Andrew Tridgell 1997-1998
+   Copyright (C) Jeremy Allison 2009
+
+   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 3 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, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __TORTURE_H__
+#define __TORTURE_H__
+
+/* The following definitions come from torture/denytest.c  */
+
+bool torture_denytest1(int dummy);
+bool torture_denytest2(int dummy);
+
+/* The following definitions come from torture/mangle_test.c  */
+
+bool torture_mangle(int dummy);
+
+/* The following definitions come from torture/nbio.c  */
+
+double nbio_total(void);
+void nb_alarm(int ignore);
+void nbio_shmem(int n);
+void nb_setup(struct cli_state *cli);
+void nb_unlink(const char *fname);
+void nb_createx(const char *fname,
+               unsigned create_options, unsigned create_disposition, int handle);
+void nb_writex(int handle, int offset, int size, int ret_size);
+void nb_readx(int handle, int offset, int size, int ret_size);
+void nb_close(int handle);
+void nb_rmdir(const char *fname);
+void nb_rename(const char *oldname, const char *newname);
+void nb_qpathinfo(const char *fname);
+void nb_qfileinfo(int fnum);
+void nb_qfsinfo(int level);
+void nb_findfirst(const char *mask);
+void nb_flush(int fnum);
+void nb_deltree(const char *dname);
+void nb_cleanup(void);
+
+/* The following definitions come from torture/scanner.c  */
+
+bool torture_trans2_scan(int dummy);
+bool torture_nttrans_scan(int dummy);
+
+/* The following definitions come from torture/torture.c  */
+
+void start_timer(void);
+double end_timer(void);
+void *shm_setup(int size);
+bool smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
+                     char **hostname, char **sharename);
+void torture_open_connection_free_unclist(char **unc_list);
+bool torture_open_connection(struct cli_state **c, int conn_index);
+bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid);
+bool torture_close_connection(struct cli_state *c);
+bool torture_ioctl_test(int dummy);
+bool torture_chkpath_test(int dummy);
+
+/* The following definitions come from torture/utable.c  */
+
+bool torture_utable(int dummy);
+bool torture_casetable(int dummy);
+
+#endif /* __TORTURE_H__ */
index 1f75164848ff57c753f415eec92465a34f2717b6..247642b04470e253638b117837bc6b30be29a4ef 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "torture.h"
 
 bool torture_utable(int dummy)
 {