#define COMMENT_CHARACTER '#'
#define NAME_SIZE 256
-#define OWNER_SIZE 30
-#define GROUP_SIZE 30
+#define OWNER_SIZE 32
+#define GROUP_SIZE 32
#define MODE_SIZE 8
#define ACTION_SIZE 32
#define LINE_SIZE 256
+#define DEVD_DIR "/etc/dev.d"
+#define DEVD_SUFFIX ".dev"
+
struct udevice {
char devpath[DEVPATH_SIZE];
char subsystem[SUBSYSTEM_SIZE];
+ char action[ACTION_SIZE];
char name[NAME_SIZE];
char owner[OWNER_SIZE];
char group[GROUP_SIZE];
mode_t mode;
char symlink[NAME_SIZE];
int partitions;
+ int ignore_remove;
int config_line;
char config_file[NAME_SIZE];
long config_uptime;
extern void udev_init_config(void);
extern int udev_start(void);
extern int parse_get_pair(char **orig_string, char **left, char **right);
-extern void dev_d_execute(struct udevice *udev);
+extern void dev_d_execute(struct udevice *udev, const char *basedir, const char *suffix);
-extern char **main_argv;
-extern char **main_envp;
extern char sysfs_path[SYSFS_PATH_MAX];
extern char udev_root[PATH_MAX];
extern char udev_db_path[PATH_MAX+NAME_MAX];