[CRIU] [PATCH cr] zdtm: delete an unused file

Andrey Vagin avagin at openvz.org
Fri May 11 10:01:53 EDT 2012


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm/lib/vimitesu.h |   83 ----------------------------------------------
 1 files changed, 0 insertions(+), 83 deletions(-)
 delete mode 100644 test/zdtm/lib/vimitesu.h

diff --git a/test/zdtm/lib/vimitesu.h b/test/zdtm/lib/vimitesu.h
deleted file mode 100644
index 403d13c..0000000
--- a/test/zdtm/lib/vimitesu.h
+++ /dev/null
@@ -1,83 +0,0 @@
-#ifndef _VIMITESU_H_
-#define _VIMITESU_H_
-
-#include <sys/types.h>
-
-/* set up test */
-extern void test_init(int argc, char **argv);
-extern int test_fork_leader(void);
-/* finish setting up the test, write out pid file, and go to background */
-extern void test_daemon(void);
-/* store a message to a static buffer */
-extern void test_msg(const char *format, ...);
-/* tell if SIGUSR1 hasn't been received yet */
-extern int test_go(void);
-/* sleep until SIGUSR1 is delivered */
-extern void test_waitsig(void);
-/* dump test status and messages, wipe out pid file, etc. */
-extern void test_fini(void);
-
-#include <stdint.h>
-
-/* generate data with crc32 at the end of the buffer */
-extern void datagen(uint8_t *buffer, unsigned length, uint32_t *crc);
-/* check the data buffer against its crc32 */
-extern int datachk(const uint8_t *buffer, unsigned length, uint32_t *crc);
-
-/* streaming helpers */
-extern int set_nonblock(int fd, int on);
-extern int pipe_in2out(int infd, int outfd, uint8_t *buffer, int length);
-
-/* command line args */
-struct long_opt {
-	const char *name;
-	const char *type;
-	const char *doc;
-	int is_required;
-
-	int (*parse_opt)(char *arg, void *value);
-	void *value;
-	struct long_opt *next;
-};
-
-extern void __push_opt(struct long_opt *opt);
-
-#define TEST_OPTION(name, type, doc, is_required) 				\
-	param_check_##type(name, &(name));					\
-	static struct long_opt __long_opt_##name = {				\
-		#name, #type, doc, is_required, parse_opt_##type, &name };	\
-	static void __init_opt_##name(void) __attribute__ ((constructor));	\
-	static void __init_opt_##name(void) { __push_opt(&__long_opt_##name); }
-
-#define __param_check(name, p, type) \
-	static inline type *__check_##name(void) { return(p); }
-
-extern int parse_opt_bool(char *param, void *arg);
-#define param_check_bool(name, p) __param_check(name, p, int)
-extern int parse_opt_int(char *param, void *arg);
-#define param_check_int(name, p) __param_check(name, p, int)
-extern int parse_opt_uint(char *param, void *arg);
-#define param_check_uint(name, p) __param_check(name, p, unsigned int)
-extern int parse_opt_long(char *param, void *arg);
-#define param_check_long(name, p) __param_check(name, p, long)
-extern int parse_opt_ulong(char *param, void *arg);
-#define param_check_ulong(name, p) __param_check(name, p, unsigned long)
-extern int parse_opt_string(char *param, void *arg);
-#define param_check_string(name, p) __param_check(name, p, char *)
-
-#include <stdio.h>
-#include <errno.h>
-
-#define __stringify_1(x)        #x
-#define __stringify(x)          __stringify_1(x)
-
-/* message helpers */
-#define err(format, arg...)	\
-	test_msg("ERR: %s:%d: " format " (errno = %d)\n", \
-		__FILE__, __LINE__, ## arg, errno)
-#define fail(format, arg...)	\
-	test_msg("FAIL: %s:%d: " format " (errno = %d)\n", \
-		 __FILE__, __LINE__, ## arg, errno)
-#define pass()	test_msg("PASS\n")
-
-#endif /* _VIMITESU_H_ */
-- 
1.7.1



More information about the CRIU mailing list