The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
timeval.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /**
19  * $Id: 2d57aa7d4fb2ed679f633782a6a61b18c15e0160 $
20  *
21  * @brief Functions for manipulating timeval structures
22  * @file lib/util/timeval.h
23  *
24  * @copyright 2019 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
25  */
26 RCSIDH(timeval_h, "$Id: 2d57aa7d4fb2ed679f633782a6a61b18c15e0160 $")
27 
28 #include <sys/time.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 void fr_timeval_subtract(struct timeval *out, struct timeval const *end, struct timeval const *start);
34 int fr_timeval_from_str(struct timeval *out, char const *in);
35 
36 #ifdef __cplusplus
37 }
38 #endif
#define RCSIDH(h, id)
Definition: build.h:445
static fr_slen_t in
Definition: dict.h:645
int fr_timeval_from_str(struct timeval *out, char const *in)
Create timeval from a string.
Definition: timeval.c:62
void fr_timeval_subtract(struct timeval *out, struct timeval const *end, struct timeval const *start)
Subtract one timeval from another.
Definition: timeval.c:36
static size_t char ** out
Definition: value.h:984