summaryrefslogtreecommitdiff
path: root/udev/lib
AgeCommit message (Collapse)Author
2008-10-21replace strncpy() with strlcpy()Alan Jenkins
The problem was strncpy() doesn't stop after writing the terminating NUL; by definition it goes on to zero the entire buffer. I spy another use of strncpy in udev_device_add_property_from_string(), which is responsible for another ~1% user cpu time... Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21libudev: device - 128 -> ENVP_SIZEKay Sievers
2008-10-21libudev: allocate udev_device->envp[] dynamicallyAlan Jenkins
Measured 2% _user_ cpu time reduction on EeePC coldplug. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21libudev: util - optimize path_encode()Alan Jenkins
Since we already know the length, use memcpy() instead. Measured 2% _user_ cpu time reduction on EeePC coldplug. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21use more appropriate alternatives to malloc()Alan Jenkins
Use calloc to request cleared memory instead. Kernel and libc conspire to make this more efficient. Also, replace one malloc() + strcpy() with strdup(). Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-20libudev: device - get_attr_value() -> get_sysattr_value()Kay Sievers
2008-10-18prefix udev-util.c functions with util_*Kay Sievers
2008-10-18udev_list_cleanup() -> udev_list_cleanup_entries()Kay Sievers
2008-10-17libudev: make list_node functions availableKay Sievers
2008-10-17libudev: ctrl - change magic to integerKay Sievers
2008-10-17libudev: monitor - add set_receive_buffer_size()Kay Sievers
2008-10-17libudev: add sysnum to test programKay Sievers
2008-10-17libudev: fix sysnum logic for digit-only device namesAlan Jenkins
2008-10-17libudev: list - prepend udev_* to all functionsKay Sievers
2008-10-16fix sorting of rules filesKay Sievers
2008-10-16udev-rules-parse: name_list -> udev_listKay Sievers
2008-10-16libudev: monitor - export MAJOR/MINOR only if availableKay Sievers
2008-10-16libudev: always add UDEV_LOGKay Sievers
2008-10-16move udev_device_db to libudevKay Sievers
2008-10-16udevd: use libudevKay Sievers
2008-10-16libudev: device - copy global properties, unset empty propertiesKay Sievers
2008-10-16libudev: add global property listKay Sievers
2008-10-16libudev: ctrl - fix typo in set_env()Kay Sievers
2008-10-16libudev: list - handle update of key with NULL valueKay Sievers
2008-10-16libudev: device - export properties when values are setKay Sievers
2008-10-15libudev: device - lookup "subsystem" and "driver" only onceKay Sievers
2008-10-15libudev: update DEVLINKS property when properties are readKay Sievers
2008-10-15libudev: monitor - do not mangle DEVLINKS propertyKay Sievers
2008-10-15libudev: do not include ctrl in libudev.soKay Sievers
2008-10-15libudev: device - add get_envp() to construct envp from property listKay Sievers
2008-10-15libudev: monitor - fix send_device() property copyingKay Sievers
2008-10-14libudev: handle ! in sysname, add sysnum, return allocated list_entry on addKay Sievers
2008-10-11libudev: device - generate DEVNAME and DEVLINKS propertiesKay Sievers
2008-10-11libudev: list - add flagKay Sievers
2008-10-09libudev: add udev_monitor_send_device()Kay Sievers
2008-10-09libudev: also prefix non-exported functions with udev_*Kay Sievers
2008-10-07libudev: device - add device lookup by subsystem:sysnameKay Sievers
2008-10-06libudev: fix typo in "multiple entries in symlink" handlingKay Sievers
2008-10-06store node name and symlinks into db symlink target if they are small enoughKay Sievers
2008-10-06libudev: libudev.pc remove selinuxKay Sievers
2008-10-05libudev: fix --enable-debugKay Sievers
2008-10-03volume_id: add dbg() as noop to check for compile errorsKay Sievers
2008-10-03udevadm: info - fix --query=all for devices without a device nodeKay Sievers
2008-10-02libudev: device - add get_parent_with_subsystem()Kay 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-10-02libudev: enumerate - add_device() -> add_syspath()Kay Sievers
2008-10-02fix compile error with --disable-loggingKay Sievers
2008-10-01libudev: enumerate - ignore regular files while scanningKay Sievers
2008-10-01libudev: device - handle /sys/block/<disk-device-link>/<partition>Kay Sievers