Kay Sievers
3c67f7d2df
libudev: monitor - replace far too expensive snprintf() with strlcpy()
2008-10-24 15:09:43 +02:00
Alan Jenkins
b29a5e4ab9
use more appropriate alternatives to malloc()
...
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-21 12:54:57 +02:00
Kay Sievers
cb25a9585d
libudev: monitor - add set_receive_buffer_size()
2008-10-17 16:49:27 +02:00
Kay Sievers
3361a0f110
libudev: monitor - export MAJOR/MINOR only if available
2008-10-16 18:56:19 +02:00
Kay Sievers
31f4b036ea
libudev: device - export properties when values are set
2008-10-16 11:37:22 +02:00
Kay Sievers
1e61ff54f5
libudev: monitor - do not mangle DEVLINKS property
2008-10-15 16:55:04 +02:00
Kay Sievers
81d9e22120
libudev: monitor - fix send_device() property copying
2008-10-15 14:20:27 +02:00
Kay Sievers
9925ab0451
libudev: add udev_monitor_send_device()
2008-10-09 23:38:30 +02:00
Kay Sievers
8cd2e972e5
libudev: also prefix non-exported functions with udev_*
2008-10-09 22:24:43 +02:00
Kay Sievers
e0083e8e69
libudev: device_init() -> device_new()
2008-09-30 16:16:29 +02:00
Alan Jenkins
659353f5a9
replace strerror() usage with threadsafe "%m" format string
...
strerror() is not threadsafe. It uses a buffer to build messages of the form
"Unknown error 387689".
syslog() provides a %m format which is equivalent to strerror(errno).
As a GNU extension, this is also accepted by printf and friends.
At least in the current implementation, it is correctly threadsafe.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-09-29 17:06:00 +02:00
Kay Sievers
9921484458
libudev: device - read database only when needed
2008-09-26 19:43:32 +02:00
Kay Sievers
38f27948cd
always include config.h from Makefile
2008-09-19 23:03:49 -07:00
Kay Sievers
8753fadf2a
libudev: switch API from devpath to syspath
2008-09-15 17:12:47 -07:00
Kay Sievers
0518da3b74
libudev: handle "device" link as parent, handle "class" "block" as "subsystem"
2008-09-15 11:19:56 -07:00
Kay Sievers
3eb46ec6dd
libudev: do not use any udev source file
2008-09-10 18:00:31 +02:00
Kay Sievers
1c7047ea77
libudev: monitor- add netlink uevent support
2008-09-09 17:38:10 +02:00
Kay Sievers
37372bbc38
libudev: monitor - add event properties to udev_device
2008-09-09 14:37:36 +02:00
Kay Sievers
c4f5f942d7
add a bunch of private device properties to udev_device
2008-09-09 14:06:20 +02:00
Kay Sievers
d59f11e140
move udev_ctrl to libudev-private
2008-09-08 17:59:00 +02:00
Kay Sievers
7d563a17f3
use libudev code, unify logging, pass udev context around everywhere
2008-09-06 15:45:31 +02:00
Kay Sievers
11d543c1ee
libudev: add udev_device_get_syspath()
2008-09-01 18:52:22 +02:00
Kay Sievers
b98fd84005
libudev: fix monitor documentation
2008-09-01 16:41:41 +02:00
Kay Sievers
7d8787b311
libudev: add monitor documentation
2008-08-30 16:16:37 +02:00
Kay Sievers
ba6929f669
libudev: add udev event monitor API
2008-08-28 23:05:01 +02:00