+int namedev_init_rules(void)
+{
+ struct stat stats;
+
+ stat(udev_rules_filename, &stats);
+ if ((stats.st_mode & S_IFMT) != S_IFDIR)
+ return namedev_parse_rules(udev_rules_filename, NULL);
+ else
+ return call_foreach_file(namedev_parse_rules, udev_rules_filename,
+ RULEFILE_SUFFIX, NULL);
+}
+
+int namedev_init_permissions(void)
+{
+ struct stat stats;
+
+ stat(udev_permissions_filename, &stats);
+ if ((stats.st_mode & S_IFMT) != S_IFDIR)
+ return namedev_parse_permissions(udev_permissions_filename, NULL);
+ else
+ return call_foreach_file(namedev_parse_permissions, udev_permissions_filename,
+ PERMFILE_SUFFIX, NULL);
+}