retire _PROTOTYPE
. only good for obsolete K&R support . also remove a stray ansi.h and the proto cmd
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
|
||||
int common_test_nr = -1, errct = 0, subtest;
|
||||
|
||||
_PROTOTYPE(void cleanup, (void));
|
||||
_PROTOTYPE(int does_fs_truncate, (void));
|
||||
_PROTOTYPE(void e, (int n));
|
||||
_PROTOTYPE(int name_max, (char *path));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
_PROTOTYPE(void rm_rf_dir, (int test_nr));
|
||||
_PROTOTYPE(void rm_rf_ppdir, (int test_nr));
|
||||
_PROTOTYPE(void start, (int test_nr));
|
||||
void cleanup(void);
|
||||
int does_fs_truncate(void);
|
||||
void e(int n);
|
||||
int name_max(char *path);
|
||||
void quit(void);
|
||||
void rm_rf_dir(int test_nr);
|
||||
void rm_rf_ppdir(int test_nr);
|
||||
void start(int test_nr);
|
||||
|
||||
void start(test_nr)
|
||||
int test_nr;
|
||||
|
||||
@@ -202,7 +202,7 @@ void test_map(void)
|
||||
}
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
char *key_u32 = "test_u32";
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
char buf_buf[BUF_SIZE + CLICK_SIZE];
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -36,7 +36,7 @@ int test(size_t size)
|
||||
}
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -5,7 +5,7 @@ char buf_buf[BUF_SIZE + CLICK_SIZE];
|
||||
int fid_send, fid_get;
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -8,7 +8,7 @@ char *buf;
|
||||
int fid_send, fid_get;
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -5,7 +5,7 @@ char buf_buf[BUF_SIZE + CLICK_SIZE];
|
||||
int fid_send, fid_get;
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -8,7 +8,7 @@ char *buf;
|
||||
int fid_send, fid_get;
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
|
||||
/*===========================================================================*
|
||||
* read_write_buff *
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
int main(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
int errct, subtest=1;
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv [], char *envp []));
|
||||
_PROTOTYPE(int diff, (char *s1, char *s2));
|
||||
_PROTOTYPE(void e, (int n));
|
||||
int main(int argc, char *argv [], char *envp []);
|
||||
int diff(char *s1, char *s2);
|
||||
void e(int n);
|
||||
|
||||
int main(argc, argv, envp)
|
||||
int argc;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
|
||||
int errct, subtest=1;
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(int diff, (char *s1, char *s2));
|
||||
_PROTOTYPE(void e, (int n));
|
||||
int main(int argc, char *argv []);
|
||||
int diff(char *s1, char *s2);
|
||||
void e(int n);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
16
test/test1.c
16
test/test1.c
@@ -17,14 +17,14 @@ int errct;
|
||||
int subtest;
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test1a, (void));
|
||||
_PROTOTYPE(void parent, (void));
|
||||
_PROTOTYPE(void child, (int i));
|
||||
_PROTOTYPE(void test1b, (void));
|
||||
_PROTOTYPE(void parent1, (int childpid));
|
||||
_PROTOTYPE(void func, (int s));
|
||||
_PROTOTYPE(void child1, (void));
|
||||
int main(int argc, char *argv []);
|
||||
void test1a(void);
|
||||
void parent(void);
|
||||
void child(int i);
|
||||
void test1b(void);
|
||||
void parent1(int childpid);
|
||||
void func(int s);
|
||||
void child1(void);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -16,12 +16,12 @@ int psize;
|
||||
#define MAX_ERROR 2
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
_PROTOTYPE(void spawn, (int n));
|
||||
_PROTOTYPE(void mkfiles, (void));
|
||||
_PROTOTYPE(void cr_file, (char *name, int size));
|
||||
_PROTOTYPE(void rmfiles, (void));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
int main(void);
|
||||
void spawn(int n);
|
||||
void mkfiles(void);
|
||||
void cr_file(char *name, int size);
|
||||
void rmfiles(void);
|
||||
void quit(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -19,11 +19,11 @@ char *passwd_file = "/etc/passwd";
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv[]));
|
||||
_PROTOTYPE(void test11a, (void));
|
||||
_PROTOTYPE(void test11b, (void));
|
||||
_PROTOTYPE(void test11c, (void));
|
||||
_PROTOTYPE(void test11d, (void));
|
||||
int main(int argc, char *argv[]);
|
||||
void test11a(void);
|
||||
void test11b(void);
|
||||
void test11c(void);
|
||||
void test11d(void);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
int main(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -20,8 +20,8 @@ char buffer[BLOCK_SIZE];
|
||||
#define MAX_ERROR 2
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
int main(void);
|
||||
void quit(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -15,9 +15,9 @@ int subtest = 1;
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
_PROTOTYPE(void e, (int n));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
int main(void);
|
||||
void e(int n);
|
||||
void quit(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -26,11 +26,11 @@ int charsigned; /* Result. */
|
||||
#define MAX_ERROR 2
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(void check, (int thing, int number));
|
||||
_PROTOTYPE(void equal, (char *a, char *b, int number));
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void first, (void));
|
||||
_PROTOTYPE(void second, (void));
|
||||
void check(int thing, int number);
|
||||
void equal(char *a, char *b, int number);
|
||||
int main(int argc, char *argv []);
|
||||
void first(void);
|
||||
void second(void);
|
||||
|
||||
/*
|
||||
- check - complain if condition is not true
|
||||
|
||||
@@ -15,9 +15,9 @@ int subtest, passes;
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test16a, (void));
|
||||
_PROTOTYPE(void get_times, (char *name, time_t *a, time_t *c, time_t *m));
|
||||
int main(int argc, char *argv []);
|
||||
void test16a(void);
|
||||
void get_times(char *name, time_t *a, time_t *c, time_t *m);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -78,35 +78,35 @@ char *mode_fnames[MODES] = {"---", "--x", "-w-", "-wx", "r--", "r-x", "rw-", "rw
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test, (int mask));
|
||||
_PROTOTYPE(void test01, (void));
|
||||
_PROTOTYPE(void test02, (void));
|
||||
_PROTOTYPE(void test08, (void));
|
||||
_PROTOTYPE(void test09, (void));
|
||||
_PROTOTYPE(void test10, (void));
|
||||
_PROTOTYPE(int link_alot, (char *bigboss));
|
||||
_PROTOTYPE(int unlink_alot, (int number));
|
||||
_PROTOTYPE(void get_new, (char name []));
|
||||
_PROTOTYPE(void test11, (void));
|
||||
_PROTOTYPE(void nlcr, (void));
|
||||
_PROTOTYPE(void str, (char *s));
|
||||
_PROTOTYPE(void test03, (void));
|
||||
_PROTOTYPE(void put_file_in_dir, (char *dirname, int mode));
|
||||
_PROTOTYPE(void init_array, (char *a));
|
||||
_PROTOTYPE(void clear_array, (char *b));
|
||||
_PROTOTYPE(int comp_array, (char *a, char *b, int range));
|
||||
_PROTOTYPE(void try_close, (int filedes, char *name));
|
||||
_PROTOTYPE(void try_unlink, (char *fname));
|
||||
_PROTOTYPE(void Remove, (int fdes, char *fname));
|
||||
_PROTOTYPE(int get_mode, (char *name));
|
||||
_PROTOTYPE(void check, (char *scall, int number));
|
||||
_PROTOTYPE(void put, (int nr));
|
||||
_PROTOTYPE(int open_alot, (void));
|
||||
_PROTOTYPE(int close_alot, (int number));
|
||||
_PROTOTYPE(void clean_up_the_mess, (void));
|
||||
_PROTOTYPE(void chmod_8_dirs, (int sw));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
int main(int argc, char *argv []);
|
||||
void test(int mask);
|
||||
void test01(void);
|
||||
void test02(void);
|
||||
void test08(void);
|
||||
void test09(void);
|
||||
void test10(void);
|
||||
int link_alot(char *bigboss);
|
||||
int unlink_alot(int number);
|
||||
void get_new(char name []);
|
||||
void test11(void);
|
||||
void nlcr(void);
|
||||
void str(char *s);
|
||||
void test03(void);
|
||||
void put_file_in_dir(char *dirname, int mode);
|
||||
void init_array(char *a);
|
||||
void clear_array(char *b);
|
||||
int comp_array(char *a, char *b, int range);
|
||||
void try_close(int filedes, char *name);
|
||||
void try_unlink(char *fname);
|
||||
void Remove(int fdes, char *fname);
|
||||
int get_mode(char *name);
|
||||
void check(char *scall, int number);
|
||||
void put(int nr);
|
||||
int open_alot(void);
|
||||
int close_alot(int number);
|
||||
void clean_up_the_mess(void);
|
||||
void chmod_8_dirs(int sw);
|
||||
void quit(void);
|
||||
|
||||
/*****************************************************************************
|
||||
* TEST *
|
||||
|
||||
@@ -80,42 +80,42 @@ char *fnames[8] = {"---", "--x", "-w-", "-wx", "r--", "r-x", "rw-", "rwx"},
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char **argv));
|
||||
_PROTOTYPE(void test, (void));
|
||||
_PROTOTYPE(void test01, (void));
|
||||
_PROTOTYPE(void test02, (void));
|
||||
_PROTOTYPE(void test03, (void));
|
||||
_PROTOTYPE(void write_standards, (int filedes, char a []));
|
||||
_PROTOTYPE(void test04, (void));
|
||||
_PROTOTYPE(void read_standards, (int filedes, char a []));
|
||||
_PROTOTYPE(void read_more, (int filedes, char a []));
|
||||
_PROTOTYPE(void test05, (void));
|
||||
_PROTOTYPE(void try_open, (char *fname, int mode, int test));
|
||||
_PROTOTYPE(void test06, (void));
|
||||
_PROTOTYPE(void test07, (void));
|
||||
_PROTOTYPE(void access_standards, (void));
|
||||
_PROTOTYPE(void test08, (void));
|
||||
_PROTOTYPE(static int iovec_is_equal,
|
||||
(struct iovec *x, struct iovec *y, size_t size));
|
||||
_PROTOTYPE(static size_t iovec_setup,
|
||||
(int pattern, struct iovec *iovec, char *buffer, int count));
|
||||
_PROTOTYPE(static int power, (int base, int exponent));
|
||||
_PROTOTYPE(void try_access, (char *fname, int mode, int test));
|
||||
_PROTOTYPE(void make_and_fill_dirs, (void));
|
||||
_PROTOTYPE(void put_file_in_dir, (char *dirname, int mode));
|
||||
_PROTOTYPE(void init_array, (char *a));
|
||||
_PROTOTYPE(void clear_array, (char *b));
|
||||
_PROTOTYPE(int comp_array, (char *a, char *b, int range));
|
||||
_PROTOTYPE(void try_close, (int filedes, char *name));
|
||||
_PROTOTYPE(void try_unlink, (char *fname));
|
||||
_PROTOTYPE(void Remove, (int fdes, char *fname));
|
||||
_PROTOTYPE(int get_mode, (char *name));
|
||||
_PROTOTYPE(void check, (char *scall, int number));
|
||||
_PROTOTYPE(void put, (int nr));
|
||||
_PROTOTYPE(int open_alot, (void));
|
||||
_PROTOTYPE(int close_alot, (int number));
|
||||
_PROTOTYPE(void clean_up_the_mess, (void));
|
||||
_PROTOTYPE(void chmod_8_dirs, (int sw));
|
||||
int main(int argc, char **argv);
|
||||
void test(void);
|
||||
void test01(void);
|
||||
void test02(void);
|
||||
void test03(void);
|
||||
void write_standards(int filedes, char a []);
|
||||
void test04(void);
|
||||
void read_standards(int filedes, char a []);
|
||||
void read_more(int filedes, char a []);
|
||||
void test05(void);
|
||||
void try_open(char *fname, int mode, int test);
|
||||
void test06(void);
|
||||
void test07(void);
|
||||
void access_standards(void);
|
||||
void test08(void);
|
||||
static int iovec_is_equal(struct iovec *x, struct iovec *y, size_t
|
||||
size);
|
||||
static size_t iovec_setup(int pattern, struct iovec *iovec, char
|
||||
*buffer, int count);
|
||||
static int power(int base, int exponent);
|
||||
void try_access(char *fname, int mode, int test);
|
||||
void make_and_fill_dirs(void);
|
||||
void put_file_in_dir(char *dirname, int mode);
|
||||
void init_array(char *a);
|
||||
void clear_array(char *b);
|
||||
int comp_array(char *a, char *b, int range);
|
||||
void try_close(int filedes, char *name);
|
||||
void try_unlink(char *fname);
|
||||
void Remove(int fdes, char *fname);
|
||||
int get_mode(char *name);
|
||||
void check(char *scall, int number);
|
||||
void put(int nr);
|
||||
int open_alot(void);
|
||||
int close_alot(int number);
|
||||
void clean_up_the_mess(void);
|
||||
void chmod_8_dirs(int sw);
|
||||
|
||||
/*****************************************************************************
|
||||
* TEST *
|
||||
|
||||
@@ -22,16 +22,16 @@ char buff[30000];
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv[]));
|
||||
_PROTOTYPE(void test19a, (void));
|
||||
_PROTOTYPE(void test19b, (void));
|
||||
_PROTOTYPE(void test19c, (void));
|
||||
_PROTOTYPE(void test19d, (void));
|
||||
_PROTOTYPE(void test19e, (void));
|
||||
_PROTOTYPE(void test19f, (void));
|
||||
_PROTOTYPE(void test19g, (void));
|
||||
_PROTOTYPE(void clraa, (void));
|
||||
_PROTOTYPE(void pipecatcher, (int s));
|
||||
int main(int argc, char *argv[]);
|
||||
void test19a(void);
|
||||
void test19b(void);
|
||||
void test19c(void);
|
||||
void test19d(void);
|
||||
void test19e(void);
|
||||
void test19f(void);
|
||||
void test19g(void);
|
||||
void clraa(void);
|
||||
void pipecatcher(int s);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
18
test/test2.c
18
test/test2.c
@@ -19,15 +19,15 @@ char buf[2048];
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test2a, (void));
|
||||
_PROTOTYPE(void test2b, (void));
|
||||
_PROTOTYPE(void test2c, (void));
|
||||
_PROTOTYPE(void test2d, (void));
|
||||
_PROTOTYPE(void test2e, (void));
|
||||
_PROTOTYPE(void test2f, (void));
|
||||
_PROTOTYPE(void test2g, (void));
|
||||
_PROTOTYPE(void sigpip, (int s));
|
||||
int main(int argc, char *argv []);
|
||||
void test2a(void);
|
||||
void test2b(void);
|
||||
void test2c(void);
|
||||
void test2d(void);
|
||||
void test2e(void);
|
||||
void test2f(void);
|
||||
void test2g(void);
|
||||
void sigpip(int s);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
|
||||
int superuser;
|
||||
|
||||
_PROTOTYPE(void test20a, (void));
|
||||
_PROTOTYPE(void test20b, (void));
|
||||
_PROTOTYPE(void test20c, (void));
|
||||
_PROTOTYPE(void test20d, (void));
|
||||
_PROTOTYPE(int do_check, (void));
|
||||
void test20a(void);
|
||||
void test20b(void);
|
||||
void test20c(void);
|
||||
void test20d(void);
|
||||
int do_check(void);
|
||||
|
||||
char executable[1024];
|
||||
|
||||
|
||||
@@ -20,22 +20,22 @@
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test21a, (void));
|
||||
_PROTOTYPE(void test21b, (void));
|
||||
_PROTOTYPE(void test21c, (void));
|
||||
_PROTOTYPE(void test21d, (void));
|
||||
_PROTOTYPE(void test21e, (void));
|
||||
_PROTOTYPE(void test21f, (void));
|
||||
_PROTOTYPE(void test21g, (void));
|
||||
_PROTOTYPE(void test21h, (void));
|
||||
_PROTOTYPE(void test21i, (void));
|
||||
_PROTOTYPE(void test21k, (void));
|
||||
_PROTOTYPE(void test21l, (void));
|
||||
_PROTOTYPE(void test21m, (void));
|
||||
_PROTOTYPE(void test21n, (void));
|
||||
_PROTOTYPE(void test21o, (void));
|
||||
_PROTOTYPE(int get_link, (char *name));
|
||||
int main(int argc, char *argv []);
|
||||
void test21a(void);
|
||||
void test21b(void);
|
||||
void test21c(void);
|
||||
void test21d(void);
|
||||
void test21e(void);
|
||||
void test21f(void);
|
||||
void test21g(void);
|
||||
void test21h(void);
|
||||
void test21i(void);
|
||||
void test21k(void);
|
||||
void test21l(void);
|
||||
void test21m(void);
|
||||
void test21n(void);
|
||||
void test21o(void);
|
||||
int get_link(char *name);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(void test22a, (void));
|
||||
_PROTOTYPE(int mode, (char *filename));
|
||||
_PROTOTYPE(int umode, (char *filename));
|
||||
_PROTOTYPE(void e, (int number));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
void test22a(void);
|
||||
int mode(char *filename);
|
||||
int umode(char *filename);
|
||||
void e(int number);
|
||||
void quit(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -29,10 +29,10 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test23a, (void));
|
||||
_PROTOTYPE(void test23b, (void));
|
||||
_PROTOTYPE(void test23c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void)); /* Fill MaxName etc. */
|
||||
void test23a(void);
|
||||
void test23b(void);
|
||||
void test23c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
|
||||
_PROTOTYPE(void chk_dir, (DIR * dirpntr));
|
||||
_PROTOTYPE(void test24a, (void));
|
||||
_PROTOTYPE(void test24b, (void));
|
||||
_PROTOTYPE(void test24c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void chk_dir(DIR * dirpntr);
|
||||
void test24a(void);
|
||||
void test24b(void);
|
||||
void test24c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
#define OVERFLOW_DIR_NR (OPEN_MAX + 1)
|
||||
#define MAX_ERROR 4
|
||||
|
||||
@@ -34,12 +34,12 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test25a, (void));
|
||||
_PROTOTYPE(void test25b, (void));
|
||||
_PROTOTYPE(void test25c, (void));
|
||||
_PROTOTYPE(void test25d, (void));
|
||||
_PROTOTYPE(void test25e, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test25a(void);
|
||||
void test25b(void);
|
||||
void test25c(void);
|
||||
void test25d(void);
|
||||
void test25e(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(void test26a, (void));
|
||||
_PROTOTYPE(void test26b, (void));
|
||||
_PROTOTYPE(void test26c, (void));
|
||||
void test26a(void);
|
||||
void test26b(void);
|
||||
void test26c(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -27,10 +27,10 @@ char MaxPath[PATH_MAX];
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1];
|
||||
|
||||
_PROTOTYPE(void test27a, (void));
|
||||
_PROTOTYPE(void test27b, (void));
|
||||
_PROTOTYPE(void test27c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test27a(void);
|
||||
void test27b(void);
|
||||
void test27c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -37,10 +37,10 @@ char MaxPath[PATH_MAX];
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1];
|
||||
|
||||
_PROTOTYPE(void test28a, (void));
|
||||
_PROTOTYPE(void test28c, (void));
|
||||
_PROTOTYPE(void test28b, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test28a(void);
|
||||
void test28c(void);
|
||||
void test28b(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
|
||||
int superuser;
|
||||
|
||||
_PROTOTYPE(void test29a, (void));
|
||||
_PROTOTYPE(void test29b, (void));
|
||||
_PROTOTYPE(void test29c, (void));
|
||||
void test29a(void);
|
||||
void test29b(void);
|
||||
void test29c(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
12
test/test3.c
12
test/test3.c
@@ -20,12 +20,12 @@ char el_weirdo[] = "\n\t\\\e@@!!##\e\e\n\n";
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test3a, (void));
|
||||
_PROTOTYPE(void test3c, (void));
|
||||
_PROTOTYPE(void test3d, (void));
|
||||
_PROTOTYPE(void test3e, (void));
|
||||
_PROTOTYPE(void e, (int n));
|
||||
int main(int argc, char *argv []);
|
||||
void test3a(void);
|
||||
void test3c(void);
|
||||
void test3d(void);
|
||||
void test3e(void);
|
||||
void e(int n);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -34,10 +34,10 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test30a, (void));
|
||||
_PROTOTYPE(void test30b, (void));
|
||||
_PROTOTYPE(void test30c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test30a(void);
|
||||
void test30b(void);
|
||||
void test30c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -27,10 +27,10 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test31a, (void));
|
||||
_PROTOTYPE(void test31b, (void));
|
||||
_PROTOTYPE(void test31c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test31a(void);
|
||||
void test31b(void);
|
||||
void test31c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -28,10 +28,10 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test32a, (void));
|
||||
_PROTOTYPE(void test32b, (void));
|
||||
_PROTOTYPE(void test32c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test32a(void);
|
||||
void test32b(void);
|
||||
void test32c(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -29,12 +29,12 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *ToLongName; /* Name of maximum +1 length */
|
||||
char ToLongPath[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test33a, (void));
|
||||
_PROTOTYPE(void test33b, (void));
|
||||
_PROTOTYPE(void test33c, (void));
|
||||
_PROTOTYPE(void test33d, (void));
|
||||
_PROTOTYPE(void test_access, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
void test33a(void);
|
||||
void test33b(void);
|
||||
void test33c(void);
|
||||
void test33d(void);
|
||||
void test_access(void);
|
||||
void makelongnames(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -46,12 +46,12 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *NameTooLong; /* Name of maximum +1 length */
|
||||
char PathTooLong[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test34a, (void));
|
||||
_PROTOTYPE(void test34b, (void));
|
||||
_PROTOTYPE(void test34c, (void));
|
||||
_PROTOTYPE(mode_t mode, (char *file_name));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
_PROTOTYPE(void getids, (uid_t * uid, gid_t * gid));
|
||||
void test34a(void);
|
||||
void test34b(void);
|
||||
void test34c(void);
|
||||
mode_t mode(char *file_name);
|
||||
void makelongnames(void);
|
||||
void getids(uid_t * uid, gid_t * gid);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -39,11 +39,11 @@ char MaxPath[PATH_MAX]; /* Same for path */
|
||||
char *NameTooLong; /* Name of maximum +1 length */
|
||||
char PathTooLong[PATH_MAX + 1]; /* Same for path, both too long */
|
||||
|
||||
_PROTOTYPE(void test35a, (void));
|
||||
_PROTOTYPE(void test35b, (void));
|
||||
_PROTOTYPE(void test35c, (void));
|
||||
_PROTOTYPE(void makelongnames, (void));
|
||||
_PROTOTYPE(void getids, (uid_t * uid, gid_t * gid));
|
||||
void test35a(void);
|
||||
void test35b(void);
|
||||
void test35c(void);
|
||||
void makelongnames(void);
|
||||
void getids(uid_t * uid, gid_t * gid);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
|
||||
int superuser;
|
||||
|
||||
_PROTOTYPE(void test36a, (void));
|
||||
_PROTOTYPE(void test36b, (void));
|
||||
_PROTOTYPE(void test36c, (void));
|
||||
_PROTOTYPE(void test36d, (void));
|
||||
_PROTOTYPE(int not_provided_option, (int _option));
|
||||
_PROTOTYPE(int provided_option, (int _option, int _minimum_value));
|
||||
_PROTOTYPE(int variating_option, (int _option, int _minimum_value));
|
||||
void test36a(void);
|
||||
void test36b(void);
|
||||
void test36c(void);
|
||||
void test36d(void);
|
||||
int not_provided_option(int _option);
|
||||
int provided_option(int _option, int _minimum_value);
|
||||
int variating_option(int _option, int _minimum_value);
|
||||
|
||||
char *testdirs[] = {
|
||||
"/",
|
||||
|
||||
@@ -23,47 +23,47 @@ int sigarray[SIGS] = {SIGHUP, SIGILL, SIGTRAP, SIGABRT, SIGIOT,
|
||||
SIGTERM};
|
||||
|
||||
/* Prototypes produced automatically by mkptypes. */
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test37a, (void));
|
||||
_PROTOTYPE(void func1, (int sig));
|
||||
_PROTOTYPE(void func2, (int sig));
|
||||
_PROTOTYPE(void test37b, (void));
|
||||
_PROTOTYPE(void catch1, (int signo));
|
||||
_PROTOTYPE(void catch2, (int signo));
|
||||
_PROTOTYPE(void test37c, (void));
|
||||
_PROTOTYPE(void catch3, (int signo));
|
||||
_PROTOTYPE(void test37d, (void));
|
||||
_PROTOTYPE(void catch4, (int signo));
|
||||
_PROTOTYPE(void test37e, (void));
|
||||
_PROTOTYPE(void catch5, (int signo));
|
||||
_PROTOTYPE(void test37f, (void));
|
||||
_PROTOTYPE(void sigint_handler, (int signo));
|
||||
_PROTOTYPE(void sigpipe_handler, (int signo));
|
||||
_PROTOTYPE(void test37g, (void));
|
||||
_PROTOTYPE(void sighup8, (int signo));
|
||||
_PROTOTYPE(void sigpip8, (int signo));
|
||||
_PROTOTYPE(void sigter8, (int signo));
|
||||
_PROTOTYPE(void test37h, (void));
|
||||
_PROTOTYPE(void sighup9, (int signo));
|
||||
_PROTOTYPE(void sigter9, (int signo));
|
||||
_PROTOTYPE(void test37i, (void));
|
||||
_PROTOTYPE(void sighup10, (int signo));
|
||||
_PROTOTYPE(void sigalrm_handler10, (int signo));
|
||||
_PROTOTYPE(void test37j, (void));
|
||||
_PROTOTYPE(void test37k, (void));
|
||||
_PROTOTYPE(void test37l, (void));
|
||||
_PROTOTYPE(void func_m1, (void));
|
||||
_PROTOTYPE(void func_m2, (void));
|
||||
_PROTOTYPE(void test37m, (void));
|
||||
_PROTOTYPE(void test37p, (void));
|
||||
_PROTOTYPE(void test37q, (void));
|
||||
_PROTOTYPE(void longjerr, (void));
|
||||
_PROTOTYPE(void catch14, (int signo, int code, struct sigcontext * scp));
|
||||
_PROTOTYPE(void test37n, (void));
|
||||
_PROTOTYPE(void catch15, (int signo));
|
||||
_PROTOTYPE(void test37o, (void));
|
||||
_PROTOTYPE(void clearsigstate, (void));
|
||||
_PROTOTYPE(void wait_for, (int pid));
|
||||
int main(int argc, char *argv []);
|
||||
void test37a(void);
|
||||
void func1(int sig);
|
||||
void func2(int sig);
|
||||
void test37b(void);
|
||||
void catch1(int signo);
|
||||
void catch2(int signo);
|
||||
void test37c(void);
|
||||
void catch3(int signo);
|
||||
void test37d(void);
|
||||
void catch4(int signo);
|
||||
void test37e(void);
|
||||
void catch5(int signo);
|
||||
void test37f(void);
|
||||
void sigint_handler(int signo);
|
||||
void sigpipe_handler(int signo);
|
||||
void test37g(void);
|
||||
void sighup8(int signo);
|
||||
void sigpip8(int signo);
|
||||
void sigter8(int signo);
|
||||
void test37h(void);
|
||||
void sighup9(int signo);
|
||||
void sigter9(int signo);
|
||||
void test37i(void);
|
||||
void sighup10(int signo);
|
||||
void sigalrm_handler10(int signo);
|
||||
void test37j(void);
|
||||
void test37k(void);
|
||||
void test37l(void);
|
||||
void func_m1(void);
|
||||
void func_m2(void);
|
||||
void test37m(void);
|
||||
void test37p(void);
|
||||
void test37q(void);
|
||||
void longjerr(void);
|
||||
void catch14(int signo, int code, struct sigcontext * scp);
|
||||
void test37n(void);
|
||||
void catch15(int signo);
|
||||
void test37o(void);
|
||||
void clearsigstate(void);
|
||||
void wait_for(int pid);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
@@ -927,7 +927,7 @@ struct sigcontext *scp;
|
||||
void test37n()
|
||||
{
|
||||
struct sigaction act;
|
||||
typedef _PROTOTYPE( void (*sighandler_t), (int sig) );
|
||||
typedef void(*sighandler_t) (int sig);
|
||||
|
||||
subtest = 14;
|
||||
clearsigstate();
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
int superuser;
|
||||
int signumber = 0;
|
||||
|
||||
_PROTOTYPE(void test38a, (void));
|
||||
_PROTOTYPE(void test38b, (void));
|
||||
_PROTOTYPE(void test38c, (void));
|
||||
_PROTOTYPE(void setsignumber, (int _signumber));
|
||||
void test38a(void);
|
||||
void test38b(void);
|
||||
void test38c(void);
|
||||
void setsignumber(int _signumber);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define MAX_ERROR 1
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE( void test39a, (void) );
|
||||
void test39a(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -19,10 +19,10 @@ char buf[1024];
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (void));
|
||||
_PROTOTYPE(void subr, (void));
|
||||
_PROTOTYPE(void nofork, (void));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
int main(void);
|
||||
void subr(void);
|
||||
void nofork(void);
|
||||
void quit(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -42,20 +42,20 @@
|
||||
UPPERUSEC(vu))) && \
|
||||
(it).it_interval.tv_sec == (is) && EQUSEC((it).it_interval.tv_usec,iu))
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char **argv));
|
||||
_PROTOTYPE(void test, (int m, int t));
|
||||
_PROTOTYPE(void test_which, (void));
|
||||
_PROTOTYPE(void test_getset, (void));
|
||||
_PROTOTYPE(void test_neglarge, (void));
|
||||
_PROTOTYPE(void test_zero, (void));
|
||||
_PROTOTYPE(void test_timer, (void));
|
||||
_PROTOTYPE(void test_alarm, (void));
|
||||
_PROTOTYPE(void test_fork, (void));
|
||||
_PROTOTYPE(void test_exec, (void));
|
||||
_PROTOTYPE(int do_check, (void));
|
||||
_PROTOTYPE(void got_alarm, (int sig));
|
||||
_PROTOTYPE(void busy_wait, (int secs));
|
||||
_PROTOTYPE(void my_e, (int n));
|
||||
int main(int argc, char **argv);
|
||||
void test(int m, int t);
|
||||
void test_which(void);
|
||||
void test_getset(void);
|
||||
void test_neglarge(void);
|
||||
void test_zero(void);
|
||||
void test_timer(void);
|
||||
void test_alarm(void);
|
||||
void test_fork(void);
|
||||
void test_exec(void);
|
||||
int do_check(void);
|
||||
void got_alarm(int sig);
|
||||
void busy_wait(int secs);
|
||||
void my_e(int n);
|
||||
|
||||
static char *executable;
|
||||
static int signals;
|
||||
|
||||
104
test/test42.c
104
test/test42.c
@@ -21,56 +21,56 @@
|
||||
|
||||
#define timed_test(func) (timed_test_func(#func, func));
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char **argv));
|
||||
_PROTOTYPE(void test, (int m, int a));
|
||||
_PROTOTYPE(void timed_test_func, (const char *s, void (* func)(void)));
|
||||
_PROTOTYPE(void timed_test_timeout, (int signum));
|
||||
_PROTOTYPE(pid_t traced_fork, (_PROTOTYPE(void (*c), (void))));
|
||||
_PROTOTYPE(pid_t traced_pfork, (_PROTOTYPE(void (*c), (void))));
|
||||
_PROTOTYPE(void WRITE, (int value));
|
||||
_PROTOTYPE(int READ, (void));
|
||||
_PROTOTYPE(void traced_wait, (void));
|
||||
_PROTOTYPE(void detach_running, (pid_t pid));
|
||||
_PROTOTYPE(void dummy_handler, (int sig));
|
||||
_PROTOTYPE(void exit_handler, (int sig));
|
||||
_PROTOTYPE(void count_handler, (int sig));
|
||||
_PROTOTYPE(void catch_handler, (int sig));
|
||||
_PROTOTYPE(void test_wait_child, (void));
|
||||
_PROTOTYPE(void test_wait, (void));
|
||||
_PROTOTYPE(void test_exec_child, (void));
|
||||
_PROTOTYPE(void test_exec, (void));
|
||||
_PROTOTYPE(void test_step_child, (void));
|
||||
_PROTOTYPE(void test_step, (void));
|
||||
_PROTOTYPE(void test_sig_child, (void));
|
||||
_PROTOTYPE(void test_sig, (void));
|
||||
_PROTOTYPE(void test_exit_child, (void));
|
||||
_PROTOTYPE(void test_exit, (void));
|
||||
_PROTOTYPE(void test_term_child, (void));
|
||||
_PROTOTYPE(void test_term, (void));
|
||||
_PROTOTYPE(void test_catch_child, (void));
|
||||
_PROTOTYPE(void test_catch, (void));
|
||||
_PROTOTYPE(void test_kill_child, (void));
|
||||
_PROTOTYPE(void test_kill, (void));
|
||||
_PROTOTYPE(void test_attach_child, (void));
|
||||
_PROTOTYPE(void test_attach, (void));
|
||||
_PROTOTYPE(void test_detach_child, (void));
|
||||
_PROTOTYPE(void test_detach, (void));
|
||||
_PROTOTYPE(void test_death_child, (void));
|
||||
_PROTOTYPE(void test_death, (void));
|
||||
_PROTOTYPE(void test_zdeath_child, (void));
|
||||
_PROTOTYPE(void test_zdeath, (void));
|
||||
_PROTOTYPE(void test_syscall_child, (void));
|
||||
_PROTOTYPE(void test_syscall, (void));
|
||||
_PROTOTYPE(void test_tracefork_child, (void));
|
||||
_PROTOTYPE(void test_tracefork, (void));
|
||||
_PROTOTYPE(void sigexec, (int setflag, int opt, int *traps, int *stop));
|
||||
_PROTOTYPE(void test_trapexec, (void));
|
||||
_PROTOTYPE(void test_altexec, (void));
|
||||
_PROTOTYPE(void test_noexec, (void));
|
||||
_PROTOTYPE(void test_defexec, (void));
|
||||
_PROTOTYPE(void test_reattach_child, (void));
|
||||
_PROTOTYPE(void test_reattach, (void));
|
||||
_PROTOTYPE(void my_e, (int n));
|
||||
int main(int argc, char **argv);
|
||||
void test(int m, int a);
|
||||
void timed_test_func(const char *s, void (* func)(void));
|
||||
void timed_test_timeout(int signum);
|
||||
pid_t traced_fork(void (*c) (void));
|
||||
pid_t traced_pfork(void (*c) (void));
|
||||
void WRITE(int value);
|
||||
int READ(void);
|
||||
void traced_wait(void);
|
||||
void detach_running(pid_t pid);
|
||||
void dummy_handler(int sig);
|
||||
void exit_handler(int sig);
|
||||
void count_handler(int sig);
|
||||
void catch_handler(int sig);
|
||||
void test_wait_child(void);
|
||||
void test_wait(void);
|
||||
void test_exec_child(void);
|
||||
void test_exec(void);
|
||||
void test_step_child(void);
|
||||
void test_step(void);
|
||||
void test_sig_child(void);
|
||||
void test_sig(void);
|
||||
void test_exit_child(void);
|
||||
void test_exit(void);
|
||||
void test_term_child(void);
|
||||
void test_term(void);
|
||||
void test_catch_child(void);
|
||||
void test_catch(void);
|
||||
void test_kill_child(void);
|
||||
void test_kill(void);
|
||||
void test_attach_child(void);
|
||||
void test_attach(void);
|
||||
void test_detach_child(void);
|
||||
void test_detach(void);
|
||||
void test_death_child(void);
|
||||
void test_death(void);
|
||||
void test_zdeath_child(void);
|
||||
void test_zdeath(void);
|
||||
void test_syscall_child(void);
|
||||
void test_syscall(void);
|
||||
void test_tracefork_child(void);
|
||||
void test_tracefork(void);
|
||||
void sigexec(int setflag, int opt, int *traps, int *stop);
|
||||
void test_trapexec(void);
|
||||
void test_altexec(void);
|
||||
void test_noexec(void);
|
||||
void test_defexec(void);
|
||||
void test_reattach_child(void);
|
||||
void test_reattach(void);
|
||||
void my_e(int n);
|
||||
|
||||
static char *executable;
|
||||
static int child = 0, attach;
|
||||
@@ -166,7 +166,7 @@ void timed_test_func(const char *s, void (* func)(void))
|
||||
}
|
||||
|
||||
pid_t traced_fork(c)
|
||||
_PROTOTYPE(void (*c), (void));
|
||||
void(*c) (void);
|
||||
{
|
||||
pid_t pid;
|
||||
int r, status;
|
||||
@@ -333,7 +333,7 @@ _PROTOTYPE(void (*c), (void));
|
||||
}
|
||||
|
||||
pid_t traced_pfork(c)
|
||||
_PROTOTYPE(void (*c), (void));
|
||||
void(*c) (void);
|
||||
{
|
||||
pid_t pid;
|
||||
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
_PROTOTYPE( void api_test, (void) );
|
||||
_PROTOTYPE( void e, (int error_no) );
|
||||
_PROTOTYPE( void group_test, (void) );
|
||||
_PROTOTYPE( void limit_test, (void) );
|
||||
_PROTOTYPE( void group_test_1, (void) );
|
||||
_PROTOTYPE( void group_test_2, (void) );
|
||||
_PROTOTYPE( void group_test_3, (void) );
|
||||
_PROTOTYPE( void group_test_4, (void) );
|
||||
_PROTOTYPE( void group_test_5, (void) );
|
||||
_PROTOTYPE( int dotest, (void (*testfunc)(void)) );
|
||||
void api_test(void);
|
||||
void e(int error_no);
|
||||
void group_test(void);
|
||||
void limit_test(void);
|
||||
void group_test_1(void);
|
||||
void group_test_2(void);
|
||||
void group_test_3(void);
|
||||
void group_test_4(void);
|
||||
void group_test_5(void);
|
||||
int dotest(void (*testfunc)(void));
|
||||
|
||||
#define MAX_ERROR 5
|
||||
#define IMAGINARY_GID 100
|
||||
|
||||
36
test/test5.c
36
test/test5.c
@@ -19,24 +19,24 @@ int sigmap[5] = {9, 10, 11};
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv[]));
|
||||
_PROTOTYPE(void test5a, (void));
|
||||
_PROTOTYPE(void parent, (int childpid));
|
||||
_PROTOTYPE(void child, (int parpid));
|
||||
_PROTOTYPE(void func1, (int s));
|
||||
_PROTOTYPE(void func8, (int s));
|
||||
_PROTOTYPE(void func10, (int s));
|
||||
_PROTOTYPE(void func11, (int s));
|
||||
_PROTOTYPE(void test5b, (void));
|
||||
_PROTOTYPE(void test5c, (void));
|
||||
_PROTOTYPE(void test5d, (void));
|
||||
_PROTOTYPE(void test5e, (void));
|
||||
_PROTOTYPE(void test5f, (void));
|
||||
_PROTOTYPE(void test5g, (void));
|
||||
_PROTOTYPE(void funcalrm, (int s));
|
||||
_PROTOTYPE(void test5h, (void));
|
||||
_PROTOTYPE(void test5i, (void));
|
||||
_PROTOTYPE(void ex, (void));
|
||||
int main(int argc, char *argv[]);
|
||||
void test5a(void);
|
||||
void parent(int childpid);
|
||||
void child(int parpid);
|
||||
void func1(int s);
|
||||
void func8(int s);
|
||||
void func10(int s);
|
||||
void func11(int s);
|
||||
void test5b(void);
|
||||
void test5c(void);
|
||||
void test5d(void);
|
||||
void test5e(void);
|
||||
void test5f(void);
|
||||
void test5g(void);
|
||||
void funcalrm(int s);
|
||||
void test5h(void);
|
||||
void test5i(void);
|
||||
void ex(void);
|
||||
|
||||
_VOLATILE int childsigs, parsigs, alarms;
|
||||
|
||||
|
||||
@@ -15,27 +15,25 @@
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv[]));
|
||||
_PROTOTYPE(void prepare, (void));
|
||||
_PROTOTYPE(int make_file, (off_t size));
|
||||
_PROTOTYPE(void check_file, (int fd, off_t size, off_t hole_start,
|
||||
off_t hole_end));
|
||||
_PROTOTYPE(void all_sizes,
|
||||
(_PROTOTYPE(void (*call), (off_t osize, off_t nsize))));
|
||||
_PROTOTYPE(void test50a, (void));
|
||||
_PROTOTYPE(void test50b, (void));
|
||||
_PROTOTYPE(void test50c, (void));
|
||||
_PROTOTYPE(void test50d, (void));
|
||||
_PROTOTYPE(void sub50e, (off_t osize, off_t nsize));
|
||||
_PROTOTYPE(void test50e, (void));
|
||||
_PROTOTYPE(void sub50f, (off_t osize, off_t nsize));
|
||||
_PROTOTYPE(void test50f, (void));
|
||||
_PROTOTYPE(void sub50g, (off_t osize, off_t nsize));
|
||||
_PROTOTYPE(void test50g, (void));
|
||||
_PROTOTYPE(void sub50h, (off_t osize, off_t nsize));
|
||||
_PROTOTYPE(void test50h, (void));
|
||||
_PROTOTYPE(void sub50i, (off_t size, off_t off, size_t len, int type));
|
||||
_PROTOTYPE(void test50i, (void));
|
||||
int main(int argc, char *argv[]);
|
||||
void prepare(void);
|
||||
int make_file(off_t size);
|
||||
void check_file(int fd, off_t size, off_t hole_start, off_t hole_end);
|
||||
void all_sizes(void (*call) (off_t osize, off_t nsize));
|
||||
void test50a(void);
|
||||
void test50b(void);
|
||||
void test50c(void);
|
||||
void test50d(void);
|
||||
void sub50e(off_t osize, off_t nsize);
|
||||
void test50e(void);
|
||||
void sub50f(off_t osize, off_t nsize);
|
||||
void test50f(void);
|
||||
void sub50g(off_t osize, off_t nsize);
|
||||
void test50g(void);
|
||||
void sub50h(off_t osize, off_t nsize);
|
||||
void test50h(void);
|
||||
void sub50i(off_t size, off_t off, size_t len, int type);
|
||||
void test50i(void);
|
||||
|
||||
/* Some of the sizes have been chosen in such a way that they should be on the
|
||||
* edge of direct/single indirect/double indirect switchovers for a MINIX
|
||||
@@ -96,7 +94,7 @@ void prepare()
|
||||
}
|
||||
|
||||
void all_sizes(call)
|
||||
_PROTOTYPE(void (*call), (off_t osize, off_t nsize));
|
||||
void(*call) (off_t osize, off_t nsize);
|
||||
{
|
||||
int i, j;
|
||||
|
||||
|
||||
@@ -17,18 +17,17 @@
|
||||
|
||||
#include <sys/signal.h>
|
||||
|
||||
_PROTOTYPE( void do_calcs, (void) );
|
||||
_PROTOTYPE( void do_child, (void) );
|
||||
_PROTOTYPE( void do_parent, (void) );
|
||||
_PROTOTYPE( void err, (int subtest, int error_no) );
|
||||
_PROTOTYPE( void func1, (int a, int b, int c, int d, int e, int f, int g,
|
||||
int h, int i, int j, int k, int l, int m, int n,
|
||||
int o, int p, int q, int r, int s, int t, int u,
|
||||
int v, int w, int x, int y, int z, int aa, int bb));
|
||||
_PROTOTYPE( void func2, (void) );
|
||||
_PROTOTYPE( void just_exit, (void) );
|
||||
_PROTOTYPE( void test_brk, (void) );
|
||||
_PROTOTYPE( void verify_main_reenter, (void) );
|
||||
void do_calcs(void);
|
||||
void do_child(void);
|
||||
void do_parent(void);
|
||||
void err(int subtest, int error_no);
|
||||
void func1(int a, int b, int c, int d, int e, int f, int g, int h, int
|
||||
i, int j, int k, int l, int m, int n, int o, int p, int q, int r, int s,
|
||||
int t, int u, int v, int w, int x, int y, int z, int aa, int bb);
|
||||
void func2(void);
|
||||
void just_exit(void);
|
||||
void test_brk(void);
|
||||
void verify_main_reenter(void);
|
||||
|
||||
#define MAX_ERROR 5
|
||||
#define SSIZE 32768
|
||||
|
||||
@@ -31,7 +31,7 @@ int subtest = -1;
|
||||
#define TEST_PATH "a/b/c"
|
||||
#define INTEGR_MSG "You might want to check fs integrity\n"
|
||||
|
||||
_PROTOTYPE( void do_test, (void) );
|
||||
void do_test(void);
|
||||
|
||||
void do_test(void)
|
||||
{
|
||||
|
||||
@@ -61,22 +61,22 @@ PRIVATE int rwlock_a_step, rwlock_b_step;
|
||||
#define MEG 1024*1024
|
||||
#define MAGIC ((signed) 0xb4a3f1c2)
|
||||
|
||||
FORWARD _PROTOTYPE( void destr_a, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void destr_b, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_a, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_b, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_c, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_d, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void thread_e, (void) );
|
||||
FORWARD _PROTOTYPE( void *thread_f, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_g, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void *thread_h, (void *arg) );
|
||||
FORWARD _PROTOTYPE( void test_scheduling, (void) );
|
||||
FORWARD _PROTOTYPE( void test_mutex, (void) );
|
||||
FORWARD _PROTOTYPE( void test_condition, (void) );
|
||||
FORWARD _PROTOTYPE( void test_attributes, (void) );
|
||||
FORWARD _PROTOTYPE( void test_keys, (void) );
|
||||
FORWARD _PROTOTYPE( void err, (int subtest, int error) );
|
||||
FORWARD void destr_a(void *arg);
|
||||
FORWARD void destr_b(void *arg);
|
||||
FORWARD void *thread_a(void *arg);
|
||||
FORWARD void *thread_b(void *arg);
|
||||
FORWARD void *thread_c(void *arg);
|
||||
FORWARD void *thread_d(void *arg);
|
||||
FORWARD void thread_e(void);
|
||||
FORWARD void *thread_f(void *arg);
|
||||
FORWARD void *thread_g(void *arg);
|
||||
FORWARD void *thread_h(void *arg);
|
||||
FORWARD void test_scheduling(void);
|
||||
FORWARD void test_mutex(void);
|
||||
FORWARD void test_condition(void);
|
||||
FORWARD void test_attributes(void);
|
||||
FORWARD void test_keys(void);
|
||||
FORWARD void err(int subtest, int error);
|
||||
|
||||
/*===========================================================================*
|
||||
* thread_a *
|
||||
|
||||
@@ -17,9 +17,9 @@ int zilch[5000];
|
||||
|
||||
#include "common.c"
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test6a, (void));
|
||||
_PROTOTYPE(void test6b, (void));
|
||||
int main(int argc, char *argv []);
|
||||
void test6a(void);
|
||||
void test6b(void);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
34
test/test7.c
34
test/test7.c
@@ -36,23 +36,23 @@ extern char **environ;
|
||||
|
||||
#define timed_test(func) (timed_test_func(#func, func));
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void timed_test_func, (const char *s, void (* func)(void)));
|
||||
_PROTOTYPE(void timed_test_timeout, (int signum));
|
||||
_PROTOTYPE(void test7a, (void));
|
||||
_PROTOTYPE(void test7b, (void));
|
||||
_PROTOTYPE(void test7c, (void));
|
||||
_PROTOTYPE(void test7d, (void));
|
||||
_PROTOTYPE(void test7e, (void));
|
||||
_PROTOTYPE(void test7f, (void));
|
||||
_PROTOTYPE(void test7g, (void));
|
||||
_PROTOTYPE(void test7h, (void));
|
||||
_PROTOTYPE(void test7i, (void));
|
||||
_PROTOTYPE(void test7j, (void));
|
||||
_PROTOTYPE(void cloexec_test, (void));
|
||||
_PROTOTYPE(int set, (int how, int first, int last));
|
||||
_PROTOTYPE(int locked, (int b));
|
||||
_PROTOTYPE(void sigfunc, (int s));
|
||||
int main(int argc, char *argv []);
|
||||
void timed_test_func(const char *s, void (* func)(void));
|
||||
void timed_test_timeout(int signum);
|
||||
void test7a(void);
|
||||
void test7b(void);
|
||||
void test7c(void);
|
||||
void test7d(void);
|
||||
void test7e(void);
|
||||
void test7f(void);
|
||||
void test7g(void);
|
||||
void test7h(void);
|
||||
void test7i(void);
|
||||
void test7j(void);
|
||||
void cloexec_test(void);
|
||||
int set(int how, int first, int last);
|
||||
int locked(int b);
|
||||
void sigfunc(int s);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
int subtest;
|
||||
|
||||
_PROTOTYPE(void test8a, (void));
|
||||
_PROTOTYPE(void test8b, (void));
|
||||
void test8a(void);
|
||||
void test8b(void);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
28
test/test9.c
28
test/test9.c
@@ -10,20 +10,20 @@
|
||||
|
||||
char *tmpa;
|
||||
|
||||
_PROTOTYPE(int main, (int argc, char *argv []));
|
||||
_PROTOTYPE(void test9a, (void));
|
||||
_PROTOTYPE(void test9b, (void));
|
||||
_PROTOTYPE(void test9c, (void));
|
||||
_PROTOTYPE(void test9d, (void));
|
||||
_PROTOTYPE(void test9e, (void));
|
||||
_PROTOTYPE(void test9f, (void));
|
||||
_PROTOTYPE(char *addr, (void));
|
||||
_PROTOTYPE(void garbage, (void));
|
||||
_PROTOTYPE(void level1, (void));
|
||||
_PROTOTYPE(void level2, (void));
|
||||
_PROTOTYPE(void dolev, (void));
|
||||
_PROTOTYPE(void catch, (int s));
|
||||
_PROTOTYPE(void hard, (void));
|
||||
int main(int argc, char *argv []);
|
||||
void test9a(void);
|
||||
void test9b(void);
|
||||
void test9c(void);
|
||||
void test9d(void);
|
||||
void test9e(void);
|
||||
void test9f(void);
|
||||
char *addr(void);
|
||||
void garbage(void);
|
||||
void level1(void);
|
||||
void level2(void);
|
||||
void dolev(void);
|
||||
void catch(int s);
|
||||
void hard(void);
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
||||
Reference in New Issue
Block a user