/* [<][>][^][v][top][bottom][index][help] */
1 /*
2 * Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
3 * The President and Fellows of Harvard College.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the University nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30 #define TESTFILE "badcallfile"
31 #define TESTDIR "badcalldir"
32 #define TESTLINK "badcalllink"
33
34 /* driver.c */
35 void report_survival(int rv, int error, const char *desc);
36 void report_test(int rv, int error, int right_error, const char *desc);
37 void report_test2(int rv, int error, int okerr1, int okerr2, const char *desc);
38 int open_testfile(const char *str);
39 int create_testfile(void);
40 int create_testdir(void);
41 int create_testlink(void);
42
43 /* common_buf.c */
44 void test_read_buf(void);
45 void test_write_buf(void);
46 void test_getdirentry_buf(void);
47 void test_getcwd_buf(void);
48 void test_readlink_buf(void);
49
50 /* common_fds.c */
51 void test_read_fd(void);
52 void test_write_fd(void);
53 void test_close_fd(void);
54 void test_ioctl_fd(void);
55 void test_lseek_fd(void);
56 void test_fsync_fd(void);
57 void test_ftruncate_fd(void);
58 void test_fstat_fd(void);
59 void test_getdirentry_fd(void);
60 void test_dup2_fd(void);
61
62 /* common_path.c */
63 void test_open_path(void);
64 void test_remove_path(void);
65 void test_rename_paths(void);
66 void test_link_paths(void);
67 void test_mkdir_path(void);
68 void test_rmdir_path(void);
69 void test_chdir_path(void);
70 void test_symlink_paths(void);
71 void test_readlink_path(void);
72 void test_stat_path(void);
73 void test_lstat_path(void);
74
75 /* bad_*.c */
76 void test_execv(void);
77 void test_waitpid(void);
78 void test_open(void);
79 void test_read(void);
80 void test_write(void);
81 void test_close(void);
82 void test_reboot(void);
83 void test_sbrk(void);
84 void test_ioctl(void);
85 void test_lseek(void);
86 void test_fsync(void);
87 void test_ftruncate(void);
88 void test_fstat(void); /* in bad_stat.c */
89 void test_remove(void);
90 void test_rename(void);
91 void test_link(void);
92 void test_mkdir(void);
93 void test_rmdir(void);
94 void test_chdir(void);
95 void test_getdirentry(void);
96 void test_symlink(void);
97 void test_readlink(void);
98 void test_dup2(void);
99 void test_pipe(void);
100 void test_time(void);
101 void test_getcwd(void);
102 void test_stat(void);
103 void test_lstat(void); /* in bad_stat.c */