chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement new utility functions strstrip() and file_in_same_dir()
[elogind.git]
/
util.h
diff --git
a/util.h
b/util.h
index f14751ea5e2d2ea45e93ea248e0c738eaae65550..9aceaef47fd5e118d3a8a9a811fbf036b3cf944a 100644
(file)
--- a/
util.h
+++ b/
util.h
@@
-19,7
+19,7
@@
typedef uint64_t usec_t;
#define NSEC_PER_USEC 1000ULL
/* What is interpreted as whitespace? */
#define NSEC_PER_USEC 1000ULL
/* What is interpreted as whitespace? */
-#define WHITESPACE " \t\n"
+#define WHITESPACE " \t\n
\r
"
usec_t now(clockid_t clock);
usec_t now(clockid_t clock);
@@
-99,4
+99,9
@@
bool is_path(const char *p);
bool path_is_absolute(const char *p);
char *path_make_absolute(const char *p, const char *prefix);
bool path_is_absolute(const char *p);
char *path_make_absolute(const char *p, const char *prefix);
+int reset_all_signal_handlers(void);
+
+char *strstrip(char *s);
+char *file_in_same_dir(const char *path, const char *filename);
+
#endif
#endif