1 | #include <stdio.h> |
1 | #include <stdio.h> |
|
|
2 | #include <unistd.h> |
2 | #include <assert.h> |
3 | #include <assert.h> |
3 | #include <string.h> |
4 | #include <string.h> |
4 | #include <time.h> |
5 | #include <time.h> |
5 | #include <sys/time.h> |
6 | #include <sys/time.h> |
6 | #include <sys/times.h> |
7 | #include <sys/times.h> |
… | |
… | |
39 | |
40 | |
40 | static void sigu (int signum) |
41 | static void sigu (int signum) |
41 | { |
42 | { |
42 | } |
43 | } |
43 | |
44 | |
44 | int eventfd(unsigned int,int); |
|
|
45 | |
|
|
46 | #define DSIZE 2821120 |
45 | #define DSIZE 2821120 |
47 | |
46 | |
48 | unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2]; |
47 | unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2]; |
49 | |
48 | |
50 | int main(void) |
49 | int main(void) |
… | |
… | |
54 | int i, l, j; |
53 | int i, l, j; |
55 | int min = 1<<30; |
54 | int min = 1<<30; |
56 | int lp; |
55 | int lp; |
57 | char buf[8192]; |
56 | char buf[8192]; |
58 | int p[2]; |
57 | int p[2]; |
59 | int evfd = eventfd (0, 0); |
|
|
60 | long ctr = 1; |
58 | long ctr = 1; |
61 | struct stat sbuf; |
59 | struct stat sbuf; |
62 | |
60 | |
63 | pipe (p); |
61 | pipe (p); |
64 | |
62 | |