chiark / gitweb /
[PATCH] fix up the wait_for_sysfs_test script a bit.
[elogind.git] / udev_lib.h
index 18ce25ccc791475a450888747171ebc22fe7065b..e9ff379fc6665fda1a5e70f2d60808882f09f458 100644 (file)
@@ -65,6 +65,15 @@ do { \
            pos = pos + len + strspn(pos, separator), len = strcspn(pos, separator)) \
                if (len > 0)
 
+#ifdef asmlinkage
+# undef asmlinkage
+#endif
+#ifdef __i386__
+# define asmlinkage    __attribute__((regparm(0)))
+#endif
+#ifndef asmlinkage
+# define asmlinkage    /* nothing */
+#endif
 
 extern char *get_action(void);
 extern char *get_devpath(void);
@@ -78,6 +87,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 int set_cloexec_flag (int desc, int value);
 
 #endif