projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Distribute some forgotten files that are needed by "make check".
[openvswitch]
/
lib
/
timeval.c
diff --git
a/lib/timeval.c
b/lib/timeval.c
index 84abdfae46f9ac687eea89b15f471c14dfdd408d..5e423875852c450dbe212fee47b885b1593ff702 100644
(file)
--- a/
lib/timeval.c
+++ b/
lib/timeval.c
@@
-43,8
+43,8
@@
static struct timeval now;
/* Time at which to die with SIGALRM (if not TIME_MIN). */
static time_t deadline = TIME_MIN;
/* Time at which to die with SIGALRM (if not TIME_MIN). */
static time_t deadline = TIME_MIN;
-static void setup_timer(void);
-static void setup_signal(int flags);
+static void set
_
up_timer(void);
+static void set
_
up_signal(int flags);
static void sigalrm_handler(int);
static void refresh_if_ticked(void);
static time_t time_add(time_t, time_t);
static void sigalrm_handler(int);
static void refresh_if_ticked(void);
static time_t time_add(time_t, time_t);
@@
-67,12
+67,12
@@
time_init(void)
gettimeofday(&now, NULL);
tick = false;
gettimeofday(&now, NULL);
tick = false;
- setup_signal(SA_RESTART);
- setup_timer();
+ set
_
up_signal(SA_RESTART);
+ set
_
up_timer();
}
static void
}
static void
-setup_signal(int flags)
+set
_
up_signal(int flags)
{
struct sigaction sa;
{
struct sigaction sa;
@@
-100,7
+100,7
@@
setup_signal(int flags)
void
time_disable_restart(void)
{
void
time_disable_restart(void)
{
- setup_signal(0);
+ set
_
up_signal(0);
}
/* Add SA_RESTART to the flags for SIGALRM, so that any system call that
}
/* Add SA_RESTART to the flags for SIGALRM, so that any system call that
@@
-109,11
+109,11
@@
time_disable_restart(void)
void
time_enable_restart(void)
{
void
time_enable_restart(void)
{
- setup_signal(SA_RESTART);
+ set
_
up_signal(SA_RESTART);
}
static void
}
static void
-setup_timer(void)
+set
_
up_timer(void)
{
struct itimerval itimer;
{
struct itimerval itimer;
@@
-133,7
+133,7
@@
setup_timer(void)
void
time_postfork(void)
{
void
time_postfork(void)
{
- setup_timer();
+ set
_
up_timer();
}
/* Forces a refresh of the current time from the kernel. It is not usually
}
/* Forces a refresh of the current time from the kernel. It is not usually