2 * PuTTY miscellaneous Unix stuff
10 unsigned long getticks(void)
13 gettimeofday(&tv, NULL);
15 * This will wrap around approximately every 4000 seconds, i.e.
16 * just over an hour, which is more than enough.
18 return tv.tv_sec * 1000000 + tv.tv_usec;
21 Filename filename_from_str(char *str)
24 strncpy(ret.path, str, sizeof(ret.path));
25 ret.path[sizeof(ret.path)-1] = '\0';
29 char *filename_to_str(Filename fn)
34 int filename_equal(Filename f1, Filename f2)
36 return !strcmp(f1.path, f2.path);
39 int filename_is_null(Filename fn)