b4bbcaa9c44260e88402cb8f9a5fb8ac7f35e123 |
|
17-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: group include of libudev.h with sd-* |
cf0fbc49e67b55f8d346fc94de28c90113505297 |
|
16-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: sort includes
Sort the includes accoding to the new coding style. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
6bedfcbb2970e06a4d3280c8fb62083d252ede73 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
7bb092142e2022edcc9958ce1bd50f59d01c5b6f |
|
17-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: device - fix typo in udev_device_get_sysattr_list_entry()
We were adding the attributes to the wrong list. |
4189708ad0cde8e211e38d27de943579772f8869 |
|
02-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
sd-device: get_subsystem - don't complain if a device does not have a subsystem |
378f61ebef6d29efce8512402a73df880c7d960c |
|
23-Apr-2015 |
Tom Gundersen <teg@jklm.no> |
libudev-device: fix lazy loading of devlinks, properties and tags
If the underlying device has not read in the properties yet, the generation will be 0, so
make sure we trigger the reading at least once. |
f4ac4d1a82e2c468761fffa333323841ad886221 |
|
02-Apr-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: device - replace by a thin wrapper around sd-device |
bf0e00ec58c0d203d0654c083bbe5c6d9cb23328 |
|
18-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: private - introduce udev_device_new_from_synthetic_event()
This allows set_action(), read_uevent_file() and read_db() to be made internal to libudev. |
cdd45c1ffbf790facd1817757832aa25d9211967 |
|
15-Mar-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: downgrade "has devpath" and "filled with db file" messages
Udev debug messages have to be significantly overhauled... For now
just downgrade those two. They are responsible for approximately 25%
of debug output during boot and are rather useless. |
1b14c3cfbe25f9bf1183bd26875f3c68847559c0 |
|
13-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
udev: make set_usec_initialized() internal to libudev
Instead introduce ensure_usec_initialized(), which copies the timestamp if possible otherwise
sets it to now(CLOCK_MONOTONIC). |
8f0f13f04555d3bc67511d2e334c667cef7e8971 |
|
12-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: introduce clone_with_db()
This allows us to move the db reading from udevd to libudev. |
1cd0a77022a4da17d1274f8f776b63e72c99fb05 |
|
12-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: introduce udev_device_properties_copy()
To copy properties from one device to another. Drop the equivalent functionality from udevd. |
570b83cc62067f518c119e4803b4f234d1f0f01c |
|
09-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: udev_device_read_db - drop unused argument |
df546eb56a3e8cb7cbea7a1cb630f9ed21ea5c6b |
|
09-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: udev_device_add_property - implicitly mark properties for saving to db
Properties should only be saved to the db when added to the udev_device by udevd, and only if
the property does not start with a '.'. Make this implicit rather than expose the marking of
properties. |
3738cc858d6d1312f66a31d2f7652328bb317876 |
|
09-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
udev/libudev: event - move {OLD_,}INTERFACE handling from udevd to libudev
This should be internal to the library as it is only about reflecting the sysfs state in the udev_device. |
bd57b6de74c6ff77f0220bf08d43a7e41f4316e9 |
|
09-Mar-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: private - make property_from_string_parse* static |
63c372cb9df3bee01e3bf8cd7f96f336bddda846 |
|
03-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the
same time, add support for NULL sentinels, even if they are normally not
necessary. |
71ef8b3ac49fd8b5cff36ee7efc945a751ab9a09 |
|
26-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: private - drop some functions from the internal API |
2df959ec3b5128dfe4d9b996dc13b16a8f4c4233 |
|
26-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
libudev: monitor - move nulstr parsing to libudev-device
Hide the details a bit. |
fa639f3ae770ffccdd9f97430b0883d01bc821ce |
|
26-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
udev: event - introduce and use internal udev_device_shallow_clone() |
243d182543c7edc3980e1ae41712bb0b96df46bd |
|
26-Jan-2015 |
Tom Gundersen <teg@jklm.no> |
udev: event - move renaming of udev_device to libudev
This is not exposed in the public API. We want to simplify the internal libudev-device API as much as possible
so that it will be simpler to rip the whole thing out in the future. |
1fa2f38f0f011010bf57522b42fcc168856a7003 |
|
22-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad. |
c4ef05484df942b6cc2037d33dd56cd209d1db9b |
|
11-Dec-2014 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
use correct format types |
154e6f233af028cf76608d49a3b7ed8de61373d8 |
|
03-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
libudev: set errno properly in all error conditions of udev_device_new_from_syspath() |
4a62c710b62a5a3c7a8a278b810b9d5b5a0c8f4f |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: another round of simplifications
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno
+ return simplifications". |
56f64d95763a799ba4475daf44d8e9f72a1bd474 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'
Plus some whitespace, linewrap, and indent adjustments. |
ff49bc3212cb07d850dcfd59940539773a0be26f |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: drop unnecessary trailing \n in log_*() calls |
41b848b0ea674dba135d5d5f82b87d126d967fcf |
|
13-Nov-2014 |
Kay Sievers <kay@vrfy.org> |
udev: move global property handling from libudev to udevd |
25e773eeb4f853804e1bf0dbd9a184f23e9b2a97 |
|
13-Nov-2014 |
Kay Sievers <kay@vrfy.org> |
udev: switch to systemd logging functions |
572016d1c2c5a679ea3ac95ff15ce9f3508020f3 |
|
18-Sep-2014 |
Robert Milasan <rmilasan@suse.com> |
udev: fix path for database names on 'change' event
If a device does not have a major/minor number attached, we use different
database names than if it does. On "change" events, we didn't copy the
devnum over, therefore, we used different paths than on 'add' or 'remove'
events (where devnum was properly copied).
Fix this by always copying the devnum into the udev-device.
(David: added commit-log from email) |
8e3ba3772cadf6a8292b0da533062dd4d377af67 |
|
11-Sep-2014 |
David Herrmann <dh.herrmann@gmail.com> |
udev: allow removing tags via TAG-="foobar"
This extends the udev parser to support OP_REMOVE (-=) and adds support
for TAG-= to remove previously set tags. We don't fail if the tag didn't
exist.
This is pretty handy if we ship default rules for seat-assignments and
users want to exclude specific devices from that. They can easily add
rules that drop any automatically added "seat" tags again. |
aa0e72ea54aaa9a0e7badfb3593cbf7e6e303345 |
|
01-Aug-2014 |
Tom Gundersen <teg@jklm.no> |
libudev: set errno when udev_device_new_from_* or udev_device_get_parent_* fail |
de0671ee7fe465e108f62dcbbbe9366f81dd9e9a |
|
15-May-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Remove unnecessary casts in printfs
No functional change expected :) |
955d98c9c1104d469c2989dbfb58f58ee6fe9bdc |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
everywhere: make use of new0() and macro() macros, and stop using perror() |
29804cc1e0f37ee34301530fd7f1eb8550be464e |
|
31-Jan-2014 |
Greg KH <gregkh@linuxfoundation.org> |
use memzero(foo, length); for all memset(foo, 0, length); calls
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length). |
f6613dd959a1ab49bf061555ada77903397569ad |
|
18-Dec-2013 |
Kay Sievers <kay@vrfy.org> |
libudev: devices received from udev are always initialized |
572ce4f7832ffa7a91a582c4098f18cec5662666 |
|
01-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
docs: remove unneeded the's in gudev docs
https://bugs.freedesktop.org/show_bug.cgi?id=72164 |
725d7e6cebcafef3bd4adbf76c8fa73a9b18972e |
|
20-Nov-2013 |
Lennart Poettering <lennart@poettering.net> |
libudev: always return NULL in _unref() APIs
Returning anything else but NULL would suggest the caller's reference
might still be valid, but it isn't, because the caller just invoked
_unref() after all.
This turns the return value into a typesafe shortcut that allows
unreffing and resetting a reference in one line. In contrast to
solutions for this which take a pointer to a pointer to accomplish the
same this solution is just syntactic sugar the developer can make use of
but doesn't have to, and this is particularly useful when immediately
unreffing objects returned by function calls. |
994e023433e020e2b3f683d5d1f2c974db580447 |
|
20-Nov-2013 |
Lennart Poettering <lennart@poettering.net> |
libudev: always return valid negative error codes on API functions |
b26618399ecc9a773dcb384dd1ad66309921e8e0 |
|
13-Nov-2013 |
Kay Sievers <kay@vrfy.org> |
udev: declare some symbols static |
5eec7de6ad91bcfbb2c8dabaf592d0f5151730a7 |
|
15-Aug-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
typo fixes in man and comments |
67410e9f73a6cdd8453c78b966451b5151def14a |
|
01-Jul-2013 |
Kay Sievers <kay@vrfy.org> |
hwdb: add --device=<device-id> and --filter=<key name glob> |
53726349e1d7a85bdf572ce81f122e66e438c6ec |
|
20-Mar-2013 |
Kay Sievers <kay@vrfy.org> |
libude: remove special handling of "device" link, it should not be used |
946f1825751919a176cd0039002a514de0c9c70f |
|
13-Mar-2013 |
Hannes Reinecke <hare@suse.de> |
libudev: implement udev_device_set_attribute_value() |
d5a89d7dc17a5ba5cf4fc71f82963c5c94a31c3d |
|
09-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: move string copy functions to shared/ |
1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 |
|
31-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent |
5ae18ddc0d86673520c0dd6b59ccac8afc8aa605 |
|
20-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
libudev: do not resolve $attr{device} symlinks |
88a6477ef32ac4c59111f7340525714a6e02e503 |
|
12-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
libudev: update copyright headers |
40fe8b11be9c1a1b38b91db097a5d6ebfa99304c |
|
12-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: use usec_t and now() |
8a1733871ffe9bfc47958e9056fd53ce216b1802 |
|
08-Oct-2012 |
Kay Sievers <kay@vrfy.org> |
udev: remove SYMLINK "unique" option |
c53158818d8cdaf46b3f1b5299b9bda118a1043f |
|
13-Sep-2012 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
man: fix a bunch of typos in docs
https://bugs.freedesktop.org/show_bug.cgi?id=54501 |
dbf61afb29e016fe1b4ac48312a782df1d60a3e6 |
|
10-Aug-2012 |
Kay Sievers <kay@vrfy.org> |
udev: export udev_device_new_from_device_id() |
4cb72937d3c10948e4904388ea27efae75775f08 |
|
15-Jul-2012 |
Kay Sievers <kay@vrfy.org> |
udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run |
c195956988799837b763ab1b9f078e5f0b7f26e6 |
|
15-May-2012 |
Kay Sievers <kay@vrfy.org> |
udev: update docs, NEWS |
20bbd54f603994a3cc211d2795de16550882ed8d |
|
15-May-2012 |
Kay Sievers <kay@vrfy.org> |
udev: libudev - bump soname, remove deprecated functions, introduce symbol versions |
c8f8394a9309d4390daac70b736b34d0b6734f95 |
|
26-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
libudev: prefix log macros with 'udev_' |
21dbe43aece5b6fc87860de175f067b56649e7d1 |
|
20-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
docs: hook-up gtk-doc to 'make check' |
33502ffe2eb7b56cdd018a4fb6830d7828519fad |
|
16-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: use startswith() and streq() |
6ada823a9a0979ea145fd70add1007c21caa45c0 |
|
16-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: remove configuration options for /dev, /sys, /run directories |
bb061708d5aa83579f213bdfb67253f7027217c3 |
|
13-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: move libudev, gudev to src/; move gudev/docs/, udev/docs/ to to docs/ |