]> sjero.net Git - wget/blobdiff - src/utils.h
[svn] Timer code update.
[wget] / src / utils.h
index d49847b7fbd34e985e6db690a5f831861633b619..28976ff522c87e471c6b72188c3c949ea686f019 100644 (file)
@@ -49,6 +49,8 @@ struct file_memory {
   int mmap_p;
 };
 
+#define HYPHENP(x) (*(x) == '-' && !*((x) + 1))
+
 struct wget_timer;
 
 char *time_str PARAMS ((time_t *));
@@ -64,7 +66,6 @@ int count_char PARAMS ((const char *, char));
 char *strdupdelim PARAMS ((const char *, const char *));
 char **sepstring PARAMS ((const char *));
 int frontcmp PARAMS ((const char *, const char *));
-char *pwd_cuserid PARAMS ((char *));
 void fork_to_background PARAMS ((void));
 
 void touch PARAMS ((const char *, time_t));
@@ -110,7 +111,8 @@ struct wget_timer *wtimer_allocate PARAMS ((void));
 struct wget_timer *wtimer_new PARAMS ((void));
 void wtimer_delete PARAMS ((struct wget_timer *));
 void wtimer_reset PARAMS ((struct wget_timer *));
-double wtimer_elapsed PARAMS ((struct wget_timer *));
+void wtimer_update PARAMS ((struct wget_timer *));
+double wtimer_read PARAMS ((const struct wget_timer *));
 double wtimer_granularity PARAMS ((void));
 
 char *html_quote_string PARAMS ((const char *));
@@ -120,5 +122,6 @@ int random_number PARAMS ((int));
 double random_float PARAMS ((void));
 
 int run_with_timeout PARAMS ((double, void (*) (void *), void *));
+void xsleep PARAMS ((double));
 
 #endif /* UTILS_H */