Reap dead code in lio_kqueue_test and aio_kqueue_test
MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35358
This commit is contained in:
parent
57082ce8c4
commit
f10dd8af4b
@ -59,7 +59,7 @@ main (int argc, char *argv[])
|
||||
{
|
||||
struct aiocb **iocb, *kq_iocb;
|
||||
char *file, pathname[sizeof(PATH_TEMPLATE)+1];
|
||||
struct kevent ke, kq_returned;
|
||||
struct kevent kq_returned;
|
||||
struct timespec ts;
|
||||
char buffer[32768];
|
||||
int max_queue_per_proc;
|
||||
@ -156,8 +156,7 @@ main (int argc, char *argv[])
|
||||
|
||||
for (;;) {
|
||||
|
||||
bzero(&ke, sizeof(ke));
|
||||
bzero(&kq_returned, sizeof(ke));
|
||||
bzero(&kq_returned, sizeof(kq_returned));
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = 1;
|
||||
result = kevent(kq, NULL, 0,
|
||||
|
@ -63,7 +63,7 @@ main(int argc, char *argv[])
|
||||
size_t max_queue_per_proc_size;
|
||||
char buffer[32768];
|
||||
int kq;
|
||||
struct kevent ke, kq_returned;
|
||||
struct kevent kq_returned;
|
||||
struct timespec ts;
|
||||
struct sigevent sig;
|
||||
time_t time1, time2;
|
||||
@ -153,15 +153,12 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
bzero(&ke, sizeof(ke));
|
||||
bzero(&kq_returned, sizeof(ke));
|
||||
bzero(&kq_returned, sizeof(kq_returned));
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = 1;
|
||||
#ifdef DEBUG
|
||||
printf("FOO lio %d -> %p\n", j, lio[j]);
|
||||
#endif
|
||||
EV_SET(&ke, (uintptr_t)lio[j],
|
||||
EVFILT_LIO, EV_ONESHOT, 0, 0, iocb[j]);
|
||||
result = kevent(kq, NULL, 0,
|
||||
&kq_returned, 1, &ts);
|
||||
error = errno;
|
||||
|
Loading…
x
Reference in New Issue
Block a user