-char sysfs_path[SYSFS_PATH_MAX];
-char udev_root[PATH_MAX];
-char udev_db_path[PATH_MAX+NAME_MAX];
-char udev_permissions_filename[PATH_MAX+NAME_MAX];
-char udev_rules_filename[PATH_MAX+NAME_MAX];
-char udev_config_filename[PATH_MAX+NAME_MAX];
-char default_mode_str[MODE_SIZE];
-char default_owner_str[OWNER_SIZE];
-char default_group_str[GROUP_SIZE];
-int udev_log;
-int udev_dev_d;
-
-
-static int string_is_true(char *str)
-{
- if (strcasecmp(str, "true") == 0)
- return 1;
- if (strcasecmp(str, "yes") == 0)
- return 1;
- if (strcasecmp(str, "1") == 0)
- return 1;
- return 0;
-}
-
-static void init_variables(void)
-{
- char *env;
-
- /* fill up the defaults.
- * If any config values are specified, they will
- * override these values. */
- strfieldcpy(udev_root, UDEV_ROOT);
- strfieldcpy(udev_db_path, UDEV_DB);
- strfieldcpy(udev_config_filename, UDEV_CONFIG_FILE);
- strfieldcpy(udev_rules_filename, UDEV_RULES_FILE);
- strfieldcpy(udev_permissions_filename, UDEV_PERMISSION_FILE);
- udev_log = string_is_true(UDEV_LOG_DEFAULT);
-
- udev_dev_d = 1;
- env = getenv("UDEV_NO_DEVD");
- if (env && string_is_true(env))
- udev_dev_d = 0;
-}
-
-int parse_get_pair(char **orig_string, char **left, char **right)
+char sysfs_path[PATH_SIZE];
+char udev_root[PATH_SIZE];
+char udev_db_path[PATH_SIZE];
+char udev_config_filename[PATH_SIZE];
+char udev_rules_filename[PATH_SIZE];
+int udev_log_priority;
+int udev_run;
+
+static int get_key(char **line, char **key, char **value)