chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Revert previous dev_d.c change, it's not what is causing HAL problems.
[elogind.git]
/
udev_lib.h
diff --git
a/udev_lib.h
b/udev_lib.h
index 53ad92d505443b584567fbeca8118bdef9662c45..2f1965ea32ac4f5743879f09260544d238634c0a 100644
(file)
--- a/
udev_lib.h
+++ b/
udev_lib.h
@@
-59,12
+59,6
@@
do { \
snprintf((to) + strlen(to), maxsize - strlen(to)-1, "%u", i); \
} while (0)
snprintf((to) + strlen(to), maxsize - strlen(to)-1, "%u", i); \
} while (0)
-#define strlongcat(to, i) \
-do { \
- to[sizeof(to)-1] = '\0'; \
- snprintf((to) + strlen(to), sizeof(to) - strlen(to)-1, "%li", i); \
-} while (0)
-
#define foreach_strpart(str, separator, pos, len) \
for(pos = str, len = 0; \
(pos) < ((str) + strlen(str)); \
#define foreach_strpart(str, separator, pos, len) \
for(pos = str, len = 0; \
(pos) < ((str) + strlen(str)); \
@@
-84,6
+78,6
@@
extern size_t buf_get_line(char *buf, size_t buflen, size_t cur);
extern void leading_slash(char *path);
extern void no_leading_slash(char *path);
extern int call_foreach_file(int fnct(char *f) , char *filename, char *extension);
extern void leading_slash(char *path);
extern void no_leading_slash(char *path);
extern int call_foreach_file(int fnct(char *f) , char *filename, char *extension);
-
+extern int set_cloexec_flag (int desc, int value);
#endif
#endif