chiark / gitweb /
[PATCH] fix special file mode mask for temporary device node
[elogind.git] / udev.h
diff --git a/udev.h b/udev.h
index 07385ccec551930ce98a68fc9eb293c48cba4419..c2f9859c5a38141607f13e3cfc9cfb6c5669171f 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -23,6 +23,7 @@
 #ifndef _UDEV_H_
 #define _UDEV_H_
 
+#include <sys/types.h>
 #include <sys/param.h>
 #include "libsysfs/sysfs/libsysfs.h"
 
@@ -45,6 +46,8 @@
 #define HOTPLUGD_DIR                   "/etc/hotplug.d"
 #define HOTPLUG_SUFFIX                 ".hotplug"
 
+#define DEFAULT_PARTITIONS_COUNT       15
+
 struct udevice {
        char devpath[DEVPATH_SIZE];
        char subsystem[SUBSYSTEM_SIZE];
@@ -59,6 +62,7 @@ struct udevice {
        int minor;
 
        char devname[NAME_SIZE];
+       char tmp_node[NAME_SIZE];
        int partitions;
        int ignore_remove;
        int config_line;
@@ -75,6 +79,7 @@ extern int udev_remove_device(struct udevice *udev);
 extern void udev_init_config(void);
 extern int udev_start(void);
 extern void udev_multiplex_directory(struct udevice *udev, const char *basedir, const char *suffix);
+extern int udev_make_node(struct udevice *udev, const char *file, int major, int minor, mode_t mode, uid_t uid, gid_t gid);
 
 extern char sysfs_path[SYSFS_PATH_MAX];
 extern char udev_root[PATH_MAX];