New applet, devfsd, by Matteo Croce and Tito

This commit is contained in:
Glenn L McGrath 2003-10-09 11:46:23 +00:00
parent a55d72bbb4
commit 17d21fa519
6 changed files with 2070 additions and 0 deletions

View File

@ -119,3 +119,7 @@ Charles P. Wright <cpwright@villagenet.com>
Enrique Zanardi <ezanardi@ull.es> Enrique Zanardi <ezanardi@ull.es>
tarcat (since removed), loadkmap, various fixes, Debian maintenance tarcat (since removed), loadkmap, various fixes, Debian maintenance
Tito Ragusa <farmatito@tiscali.it>
devfsd and size optimizations in strings, openvt and deallocvt.

View File

@ -142,6 +142,9 @@
#ifdef CONFIG_DELUSER #ifdef CONFIG_DELUSER
APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER) APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif #endif
#ifdef CONFIG_DEVFSD
APPLET(devfsd, devfsd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_DF #ifdef CONFIG_DF
APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER) APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif #endif

View File

@ -336,6 +336,18 @@
#define deluser_full_usage \ #define deluser_full_usage \
"Deletes user USER from the system" "Deletes user USER from the system"
#define devfsd_trivial_usage \
"mntpnt [-v] [-fg] [-np]"
#define devfsd_full_usage \
"Optional daemon for managing devfs (the Linux Device Filesystem).\n" \
"\nOptions:\n" \
"\tmntpnt\tThe mount point where devfs is mounted.\n\n" \
"\t-v\tPrint the protocol version numbers for devfsd\n" \
"\t\tand the kernel-side protocol version and exits.\n" \
"\t-fg\tRun the daemon in the foreground.\n\n" \
"\t-np\tExit after parsing the configuration file and processing syn-\n" \
"\t\tthetic REGISTER events. Do not poll for events."
#ifdef CONFIG_FEATURE_HUMAN_READABLE #ifdef CONFIG_FEATURE_HUMAN_READABLE
#define USAGE_HUMAN_READABLE(a) a #define USAGE_HUMAN_READABLE(a) a
#define USAGE_NOT_HUMAN_READABLE(a) #define USAGE_NOT_HUMAN_READABLE(a)

View File

@ -40,6 +40,27 @@ config CONFIG_DC
Dc is a reverse-polish desk calculator which supports unlimited Dc is a reverse-polish desk calculator which supports unlimited
precision arithmetic. precision arithmetic.
config CONFIG_DEVFSD
bool "devfsd"
default n
help
Provides compatibility with old device names on a devfs systems.
You should set it to true if you have devfs enabled.
config CONFIG_DEVFSD_VERBOSE
bool "Increases logging to stderr and syslog"
default n
depends on CONFIG_DEVFSD
help
Increases logging to stderr and syslog.
config CONFIG_DEVFSD_DEBUG
bool "Adds function names to program output"
default n
depends on CONFIG_DEVFSD
help
Adds function names to program output.
config CONFIG_LAST config CONFIG_LAST
bool "last" bool "last"
default n default n

View File

@ -28,6 +28,7 @@ MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
MISCUTILS-$(CONFIG_CROND) += crond.o MISCUTILS-$(CONFIG_CROND) += crond.o
MISCUTILS-$(CONFIG_CRONTAB) += crontab.o MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
MISCUTILS-$(CONFIG_DC) += dc.o MISCUTILS-$(CONFIG_DC) += dc.o
MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o
MISCUTILS-$(CONFIG_HDPARM) += hdparm.o MISCUTILS-$(CONFIG_HDPARM) += hdparm.o
MISCUTILS-$(CONFIG_LAST) += last.o MISCUTILS-$(CONFIG_LAST) += last.o
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o

2029
miscutils/devfsd.c Normal file

File diff suppressed because it is too large Load Diff