summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
AgeCommit message (Collapse)Author
2011-12-25builtin: kmod - hook up udev main logging to libkmodKay Sievers
2011-08-05implement path_id, usb_id, input_id as built-in commandKay Sievers
2011-07-14udevadm: move udevadm command descriptions into their filesKay Sievers
2011-04-17udevadm: test - use printf() instead of info() for non-debug outputKay Sievers
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2010-05-27while (1) -> for (;;)Kay Sievers
2009-12-25udevadm: logging - copy va_list and do not use it twiceKay Sievers
2009-12-25fix typo in log message priority handlingKay Sievers
2009-09-14udevadm: print all messages to stderr with priority higher or equal than LOG_ERRMarco d'Itri
It is needed to prevent errors in udev from going unnoticed (e.g. when udevd is not running).
2009-09-07udevadm: remove symlink support for old commandsKay Sievers
2009-08-01update a few years of copyrightKay Sievers
2009-06-09move syslog wrapper to libudevKay Sievers
2009-01-16remove stray initializerAlan Jenkins
Picked up by "gcc -Wextra". udevadm.c:83: warning: initialized field overwritten udevadm.c:83: warning: (near initialization for ‘cmds[2].help’) This is just a cleanup. It doesn't change the code generated by gcc.
2008-11-15udevadm: fix option parsing breakage with klibcSergey Vlasov
The klibc implementation of getopt_long() behaves slightly different from the glibc one - in particular, it treats the change of the option string argument between invocations as start of parsing a different command line, and resets its state. However, the udevadm code expected getopt_long() invocations in subcommands to continue parsing the rest of command line after initial options has been parsed at the top level; with klibc this broke, causing all udevadm subcommands to stop recognizing their options. Instead of relying on the glibc behavior, reset the getopt_long() state properly before invoking the subcommand handler: move argv to point to the subcommand name, decrease argc appropriately, and set optind = 0. This also fixes a minor bug visible with glibc - without setting optind = 0 all getopt_long() calls in subcommand handlers were behaving as if "+" was specified as the first character of the option string (which disables option reordering), because that state was set by the first getopt_long() call at the top level, and was not reset when parsing subcommand options. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
2008-10-18selinux_init(udev) -> udev_selinux_init(udev)Kay Sievers
2008-10-16udevd: use libudevKay Sievers
2008-10-02libudev: get rid of selinuxKay Sievers
"Hello world!" linked against libselinux parses /proc/mounts and whatever else on startup, even when the lib is not needed at all. Not funny! Get rid of that thing where it's not absolutely needed.
2008-10-02use no_argument, required_argument, optional_argument in longoptsKay Sievers
2008-09-19always include config.h from MakefileKay Sievers
2008-09-10update file headersKay Sievers
2008-09-09udevadm: log message if udevadm link is usedKay Sievers
2008-09-07udevadm: add --version --help options to man page, hide them as commandsKay Sievers
2008-09-06use libudev code, unify logging, pass udev context around everywhereKay Sievers
2008-09-04udevadm: move init from commands to udevadmKay Sievers
2008-09-03udevadm: rename internal functions to udevadm_*Kay Sievers
2008-09-03udevadm: print warning to stderr if udevadm is called by symlinkKay Sievers
2008-09-02remove deprecated envp[] in main()Alan Jenkins
envp is not standardized, and may become invalid when environment variables are modified. Since udev never actually uses it, we can simply remove it. Should anyone miss it in future, they can use the standardized environ variable - like udev_rules.c does already.
2008-07-30use autotoolsKay Sievers
2008-07-30delete all Makefiles and move udev source to udev/Kay Sievers