scummvm random work
[patches.git] / inotify.patch
1 Index: inotify01.c
2 ===================================================================
3 --- inotify01.c (revision 127)
4 +++ inotify01.c (working copy)
5 @@ -73,6 +73,8 @@
6
7 int event_set[EVENT_MAX];
8
9 +char event_buf[EVENT_BUF_LEN];
10 +
11 static long myinotify_init()
12 {
13 return syscall(__NR_inotify_init);
14 @@ -180,7 +182,6 @@
15 /*
16 * get list on events
17 */
18 - char event_buf[EVENT_BUF_LEN];
19 int len, i = 0, test_num = 0;
20 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) {
21 tst_brkm(TBROK, cleanup,
22 Index: inotify02.c
23 ===================================================================
24 --- inotify02.c (revision 127)
25 +++ inotify02.c (working copy)
26 @@ -85,6 +85,8 @@
27
28 struct event_t event_set [EVENT_MAX];
29
30 +char event_buf[EVENT_BUF_LEN];
31 +
32 static long myinotify_init()
33 {
34 return syscall(__NR_inotify_init);
35 @@ -222,8 +224,6 @@
36
37 Tst_count = 0;
38
39 -
40 - char event_buf[EVENT_BUF_LEN];
41 int len, i = 0, test_num = 0;
42 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) {
43 tst_brkm(TBROK, cleanup,