Files
codezero/tasks/test0/include/tests.h
Bahadir Balban bece68fbf7 Fixed omission of if curly brackets causing stack corruption.
Initialization a local pointer variable was only done in some conditions
causing the uninitialized pointer to corrupt kernel stack of current.
2009-05-25 12:12:21 +03:00

27 lines
479 B
C

#ifndef __TEST0_TESTS_H__
#define __TEST0_TESTS_H__
#define __TASKNAME__ "test0"
//#define TEST_VERBOSE_PRINT
#if defined (TEST_VERBOSE_PRINT)
#define test_printf(...) printf(__VA_ARGS__)
#else
#define test_printf(...)
#endif
#include <sys/types.h>
extern pid_t parent_of_all;
void ipc_full_test(void);
int shmtest(void);
int forktest(void);
int mmaptest(void);
int dirtest(void);
int fileio(void);
int clonetest(void);
int exectest(void);
#endif /* __TEST0_TESTS_H__ */