- char *seqnum;
-
- seqnum = getenv("SEQNUM");
- return seqnum;
-}
-
-static void get_dirs(void)
-{
- char *udev_test;
- char *temp;
- int retval;
-
- udev_test = getenv("UDEV_TEST");
- if (udev_test == NULL) {
- /* normal operation, use the compiled in defaults */
- udev_config_dir = UDEV_CONFIG_DIR;
- udev_root = UDEV_ROOT;
- retval = sysfs_get_mnt_path(sysfs_path, SYSFS_PATH_MAX);
- dbg("sysfs_path = %s", sysfs_path);
- if (retval)
- dbg("sysfs_get_mnt_path failed");
-
- } else {
- /* hm testing is happening, use the specified values */
- temp = getenv("UDEV_SYSFS_PATH");
- strncpy(sysfs_path, temp, sizeof(sysfs_path));
- udev_config_dir = getenv("UDEV_CONFIG_DIR");
- udev_root = getenv("UDEV_ROOT");