#include "macro.h"
typedef uint64_t usec_t;
-typedef unsigned long nsec_t;
+typedef uint64_t nsec_t;
typedef struct dual_timestamp {
usec_t realtime;
int reset_terminal(const char *name);
int open_terminal(const char *name, int mode);
-int acquire_terminal(const char *name, bool fail, bool force, bool ignore_tiocstty_eperm);
+int acquire_terminal(const char *name, bool fail, bool force, bool ignore_tiocstty_eperm, usec_t timeout);
int release_terminal(void);
int flush_fd(int fd);