#ifndef _UTIL_H_ #define _UTIL_H_ #include #include extern int _testmode; struct user; // Get monotonic clock (seconds) time_t now( void ); void init_time( void ); bool doublefork( void ); bool waitRead( int fd, int ms ); void copy( const char *src, char *dst, size_t len, const char *stop ); void killSession( const struct user * user ); void redirect( int newIn, int newOut ); void switchUserSafe( const char* user ); void run( bool detach, const char *file, ... ); #endif