/*
* Copyright (C) 2010, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: vtwrapper.c,v 1.4 2010/08/12 09:31:50 fdupont Exp $ */
#define _GNU_SOURCE
#include <math.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef SYS_select
#endif
#ifdef SYS_poll
#include <poll.h>
#endif
#ifdef SYS_kevent
#endif
#ifdef SYS_epoll_wait
#endif
#ifdef SYS_gettimeofday
#define VIRTUAL_TIME
#ifdef VIRTUAL_TIME
static int _init_called = 0;
void
_init(void) {
_init_called = 1;
}
static void
{
double d;
return;
}
goto done;
d = exp(d);
done:
}
return;
}
static void
double d;
return;
}
goto done;
d = log(d);
done:
}
return;
}
static void
}
}
return;
}
static void
return;
}
}
return;
}
#endif
int
#ifdef VIRTUAL_TIME
int ret;
if (!_init_called) _init();
if (ret == 0)
return ret;
#else
#endif
}
#ifdef SYS_select
int
{
#ifdef VIRTUAL_TIME
if (!_init_called) _init();
#else
#endif
}
#endif
#ifdef SYS_poll
int
#ifdef VIRTUAL_TIME
if (!_init_called) _init();
#else
#endif
}
#endif
#ifdef SYS_kevent
int
{
#ifdef VIRTUAL_TIME
if (!_init_called) _init();
#else
#endif
}
#endif
#ifdef SYS_epoll_wait
int
#ifdef VIRTUAL_TIME
if (!_init_called) _init();
#else
#endif
}
#endif
#endif