#define RANDRAND 1152921504606846976.0
#define HALFRAND 0x40000000
#define myrand() (int)random()
#define rand_mod(m) ((myrand() / 37) % (m))
extern struct timespec timebuf;
#define roundsleep(x) (clock_gettime(CLOCK_REALTIME, &timebuf),sleep(timebuf.tv_nsec > (500 * 1000 * 1000) ?x+1:x))
#define waiting 0
#ifdef NOTDEF
EXT int len_last_line_got INIT(0);
#endif
#ifdef NOTDEF
#define MD_DIR 0
#define MD_FILE 1
#endif
void util_init(void);
void movc3(int, char *, char *);
__dead void no_can_do(const char *);
int exdis(int);
void *safemalloc(size_t size);
char *safecpy(char *, const char *, size_t);
char *cpytill(char *, const char *, int);
char *instr(const char *, const char *);
#ifdef SETUIDGID
int eaccess(const char *, mode_t);
#endif
__dead void prexit(const char *);
char *savestr(const char *);
char *getval(const char *, const char *);