From: kay.sievers@vrfy.org Date: Thu, 25 Nov 2004 01:44:38 +0000 (+0100) Subject: [PATCH] rename udev_lib to udev_utils and dev_d to udev_multiplex X-Git-Tag: 047~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af5bb2f8fdbf54c064ddbd319d61092f28a4132;p=systemd [PATCH] rename udev_lib to udev_utils and dev_d to udev_multiplex --- diff --git a/Makefile b/Makefile index c89fa0fe..4d48b3c9 100644 --- a/Makefile +++ b/Makefile @@ -204,20 +204,20 @@ SYSFS = $(PWD)/libsysfs/sysfs_bus.o \ $(PWD)/libsysfs/sysfs_utils.o \ $(PWD)/libsysfs/dlist.o -OBJS = udev_lib.o \ +OBJS = udev_utils.o \ udev_config.o \ udev_add.o \ udev_remove.o \ udev_start.o \ udev_sysfs.o \ udev_db.o \ + udev_multiplex.o\ namedev.o \ namedev_parse.o \ - dev_d.o \ $(SYSFS) HEADERS = udev.h \ - udev_lib.h \ + udev_utils.h \ namedev.h \ udev_version.h \ udev_db.h \ @@ -291,11 +291,11 @@ $(TESTER): $(LIBC) $(TESTER).o $(OBJS) $(HEADERS) $(QUIET) $(STRIPCMD) $@ $(INFO): $(LIBC) $(INFO).o $(OBJS) $(HEADERS) - $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udevinfo.o udev_lib.o udev_config.o udev_db.o $(SYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS) + $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udevinfo.o udev_utils.o udev_config.o udev_db.o $(SYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(QUIET) $(STRIPCMD) $@ $(DAEMON): $(LIBC) $(DAEMON).o $(OBJS) udevd.h - $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udevd.o udev_lib.o $(KLIBC_FIXUP) $(LIB_OBJS) $(ARCH_LIB_OBJS) + $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udevd.o udev_utils.o $(KLIBC_FIXUP) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(QUIET) $(STRIPCMD) $@ $(SENDER): $(LIBC) $(SENDER).o $(OBJS) udevd.h diff --git a/klibc_fixups/klibc_fixups.c b/klibc_fixups/klibc_fixups.c index 2d673d8c..175cf27f 100644 --- a/klibc_fixups/klibc_fixups.c +++ b/klibc_fixups/klibc_fixups.c @@ -30,7 +30,7 @@ #include "pwd.h" #include "../udev.h" -#include "../udev_lib.h" +#include "../udev_utils.h" #include "../logging.h" #define PW_FILE "/etc/passwd" diff --git a/namedev.c b/namedev.c index dca405ce..126453cc 100644 --- a/namedev.c +++ b/namedev.c @@ -36,7 +36,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "list.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "logging.h" #include "namedev.h" diff --git a/namedev_parse.c b/namedev_parse.c index cb1760fd..d39141bf 100644 --- a/namedev_parse.c +++ b/namedev_parse.c @@ -36,7 +36,7 @@ #include #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "logging.h" #include "namedev.h" diff --git a/udev.c b/udev.c index e71cddd3..9b0a00fb 100644 --- a/udev.c +++ b/udev.c @@ -33,7 +33,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_sysfs.h" #include "udev_version.h" #include "namedev.h" @@ -182,7 +182,7 @@ int main(int argc, char *argv[], char *envp[]) /* run dev.d/ scripts if we created a node or changed a netif name */ if (udev.devname[0] != '\0') { setenv("DEVNAME", udev.devname, 1); - dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX); + udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX); } sysfs_close_class_device(class_dev); @@ -200,7 +200,7 @@ int main(int argc, char *argv[], char *envp[]) /* run dev.d/ scripts if we're not instructed to ignore the event */ if (udev.devname[0] != '\0') { setenv("DEVNAME", udev.devname, 1); - dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX); + udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX); } } @@ -229,7 +229,7 @@ int main(int argc, char *argv[], char *envp[]) hotplug: if (manage_hotplug_event()) - dev_d_execute(&udev, HOTPLUGD_DIR, HOTPLUG_SUFFIX); + udev_multiplex_directory(&udev, HOTPLUGD_DIR, HOTPLUG_SUFFIX); exit: logging_close(); diff --git a/udev.h b/udev.h index e834f1e5..1e3db5af 100644 --- a/udev.h +++ b/udev.h @@ -78,7 +78,7 @@ extern int udev_remove_device(struct udevice *udev); 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, const char *basedir, const char *suffix); +extern void udev_multiplex_directory(struct udevice *udev, const char *basedir, const char *suffix); extern char sysfs_path[SYSFS_PATH_MAX]; extern char udev_root[PATH_MAX]; diff --git a/udev_add.c b/udev_add.c index 4fb5ef18..f537f567 100644 --- a/udev_add.c +++ b/udev_add.c @@ -38,7 +38,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "logging.h" #include "namedev.h" diff --git a/udev_config.c b/udev_config.c index 19847393..51bdc720 100644 --- a/udev_config.c +++ b/udev_config.c @@ -34,7 +34,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "logging.h" #include "namedev.h" diff --git a/udev_db.c b/udev_db.c index e07e72b8..36da2647 100644 --- a/udev_db.c +++ b/udev_db.c @@ -33,7 +33,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "logging.h" #include "udev_db.h" diff --git a/dev_d.c b/udev_multiplex.c similarity index 93% rename from dev_d.c rename to udev_multiplex.c index 817355af..7e3dc656 100644 --- a/dev_d.c +++ b/udev_multiplex.c @@ -1,5 +1,5 @@ /* - * dev_d.c - dev.d/ multiplexer + * udev_multiplex.c directory multiplexer * * Copyright (C) 2004 Greg Kroah-Hartman * @@ -28,7 +28,7 @@ #include #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "logging.h" static int run_program(const char *filename, void *data) @@ -71,7 +71,7 @@ static int run_program(const char *filename, void *data) * subsystem/ * default/ */ -void dev_d_execute(struct udevice *udev, const char *basedir, const char *suffix) +void udev_multiplex_directory(struct udevice *udev, const char *basedir, const char *suffix) { char dirname[PATH_MAX]; char devname[NAME_SIZE]; diff --git a/udev_remove.c b/udev_remove.c index 8887125d..14250358 100644 --- a/udev_remove.c +++ b/udev_remove.c @@ -31,7 +31,7 @@ #include #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "namedev.h" #include "udev_db.h" diff --git a/udev_start.c b/udev_start.c index 3e3062c0..129af429 100644 --- a/udev_start.c +++ b/udev_start.c @@ -35,7 +35,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "logging.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "list.h" #include "udev.h" @@ -111,7 +111,7 @@ static int add_device(char *devpath, char *subsystem) /* run dev.d/ scripts if we created a node or changed a netif name */ if (udev.devname[0] != '\0') { setenv("DEVNAME", udev.devname, 1); - dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX); + udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX); } sysfs_close_class_device(class_dev); diff --git a/udev_sysfs.c b/udev_sysfs.c index 4976b8f3..66559684 100644 --- a/udev_sysfs.c +++ b/udev_sysfs.c @@ -31,7 +31,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev_version.h" #include "udev_sysfs.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "logging.h" /* list of subsystem specific files, NULL if there is no file to wait for */ diff --git a/udev_lib.c b/udev_utils.c similarity index 99% rename from udev_lib.c rename to udev_utils.c index 86a526f7..bdf0233e 100644 --- a/udev_lib.c +++ b/udev_utils.c @@ -32,7 +32,7 @@ #include "udev.h" #include "logging.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "list.h" diff --git a/udev_lib.h b/udev_utils.h similarity index 100% rename from udev_lib.h rename to udev_utils.h diff --git a/udevd.c b/udevd.c index bd36d2c1..06b172bc 100644 --- a/udevd.c +++ b/udevd.c @@ -38,8 +38,8 @@ #include "list.h" #include "udev.h" -#include "udev_lib.h" #include "udev_version.h" +#include "udev_utils.h" #include "udevd.h" #include "logging.h" diff --git a/udevinfo.c b/udevinfo.c index 9ba302cb..6e6b9aeb 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -30,7 +30,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "libsysfs/dlist.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "udev_db.h" #include "logging.h" diff --git a/udevsend.c b/udevsend.c index 7d865573..341ed4cc 100644 --- a/udevsend.c +++ b/udevsend.c @@ -36,7 +36,6 @@ #include #include "udev.h" -#include "udev_lib.h" #include "udev_version.h" #include "udevd.h" #include "logging.h" diff --git a/udevtest.c b/udevtest.c index b9a5fea4..37ec767e 100644 --- a/udevtest.c +++ b/udevtest.c @@ -29,7 +29,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "namedev.h" #include "logging.h"