minix/servers/inet/generic/clock.h
Lionel Sambuc 744378194d Alignement on netbsd types, part 1
The following types are modified (old -> new):
 * _BSD_USECONDS_T_ int       -> unsigned int
 * __socklen_t      __int32_t -> __uint32_t
 * blksize_t        uint32_t  -> int32_t
 * rlim_t           uint32_t  -> uint64_t
On ARM:
 * _BSD_CLOCK_T_    int       -> unsigned int
On Intel:
 * _BSD_CLOCK_T_    int       -> unsigned long

bin/cat is also updated in order to fix warnings.

_BSD_TIMER_T_ has still to be aligned.

Change-Id: I2b4fda024125a19901120546c4e22e443ba5e9d7
2014-02-18 11:25:01 +01:00

39 lines
842 B
C

/*
clock.h
Copyright 1995 Philip Homburg
*/
#ifndef CLOCK_H
#define CLOCK_H
struct timer;
typedef void (*timer_func_t) ARGS(( int fd, struct timer *timer ));
typedef struct timer
{
struct timer *tim_next;
timer_func_t tim_func;
int tim_ref;
time_t tim_time;
int tim_active;
} timer_t;
extern int clck_call_expire; /* Call clck_expire_timer from the mainloop */
void clck_init ARGS(( void ));
void set_time ARGS(( clock_t time ));
time_t get_time ARGS(( void ));
void reset_time ARGS(( void ));
/* set a timer to go off at the time specified by timeout */
void clck_timer ARGS(( struct timer *timer, time_t timeout, timer_func_t func,
int fd ));
void clck_untimer ARGS(( struct timer *timer ));
void clck_expire_timers ARGS(( void ));
#endif /* CLOCK_H */
/*
* $PchId: clock.h,v 1.5 1995/11/21 06:45:27 philip Exp $
*/