b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
3f65d73149cd0f64eb3fdb0c71f55f6c1133fefe |
|
07-Dec-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: add emacs header line
Otherwise emacs wants to use 2-space indentation and other
attrocities. |
4afd3348c7506dd1d36305b7bcb9feb8952b9d6b |
|
27-Nov-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy
GLIB has recently started to officially support the gcc cleanup
attribute in its public API, hence let's do the same for our APIs.
With this patch we'll define an xyz_unrefp() call for each public
xyz_unref() call, to make it easy to use inside a
__attribute__((cleanup())) expression. Then, all code is ported over to
make use of this.
The new calls are also documented in the man pages, with examples how to
use them (well, I only added docs where the _unref() call itself already
had docs, and the examples, only cover sd_bus_unrefp() and
sd_event_unrefp()).
This also renames sd_lldp_free() to sd_lldp_unref(), since that's how we
tend to call our destructors these days.
Note that this defines no public macro that wraps gcc's attribute and
makes it easier to use. While I think it's our duty in the library to
make our stuff easy to use, I figure it's not our duty to make gcc's own
features easy to use on its own. Most likely, client code which wants to
make use of this should define its own:
#define _cleanup_(function) __attribute__((cleanup(function)))
Or similar, to make the gcc feature easier to use.
Making this logic public has the benefit that we can remove three header
files whose only purpose was to define these functions internally.
See #2008. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
f4f15635ec05293ffcc83a5b39f624bbabbd8fd0 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move a number of fs operations into fs-util.[ch] |
0d39fa9c69b97a2ceb156053deef69c0866c2b97 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move more file I/O related calls into fileio.[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. |
efbea947980544574c66fa812edc5ebdcc8add04 |
|
09-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
Revert "hwdb: actually search /run/udev/hwdb.d" |
03dfe7b749796c10074b5ebc5e9c3f947d726104 |
|
09-Jun-2015 |
Peter Hutterer <peter.hutterer@who-t.net> |
hwdb: actually search /run/udev/hwdb.d
The documentation claims hwdb entries may be placed in the volatile
/run/udev/hwdb.d directory but nothing actually looked at it. |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
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. |
65eb4378c3e1de25383d8cd606909e64c71edc80 |
|
18-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
systemd-hwdb: introduce new tool
This pulls out the hwdb managment from udevadm into an independent tool.
The old code is left in place for backwards compatibility, and easy of
testing, but all documentation is dropped to encourage use of the new
tool instead. |
d640c07d97eb19003226257b703eaa6cf1cbb4cf |
|
15-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
udevadm: port to sd-hwdb |
8b516fdea74127327b0945bb50690bd70c6b6692 |
|
11-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
libudev: make libudev-hwdb a wrapper around sd-hwdb |
36afca67b67984520c5c9a6ce14af51a68c7c8cf |
|
28-Nov-2014 |
Peter Hutterer <peter.hutterer@who-t.net> |
udevadm hwdb: discard extra leading whitespaces in hwdb
Currently a property in the form of
FOO=bar
is stored as " FOO=bar", i.e. the property name contains a leading space.
That's quite hard to spot.
This patch discards all extra whitespaces but the first one which is required
by libudev's hwdb_add_property.
[zj: modify the check a bit]
https://bugs.freedesktop.org/show_bug.cgi?id=82311 |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
33488f19793dc0a86fdee27266c5319b5b78d695 |
|
28-Oct-2014 |
Martin Pitt <martin.pitt@ubuntu.com> |
udev hwdb: Support shipping pre-compiled database in system images
In some cases it is preferable to ship system images with a pre-generated
binary hwdb database, to avoid having to build it at runtime, avoid shipping
the source hwdb files, or avoid storing large binary files in /etc.
So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in
UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/
and re-generating the database which trumps the one in /usr/lib.
Add a new --usr flag to "udevadm hwdb --update" which puts the database
into UDEVLIBEXECDIR.
Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we
already have it in /usr. |
f901aaadd68050bc575c1c15b84f8f31fd4d494d |
|
18-Sep-2014 |
Tom Gundersen <teg@jklm.no> |
udevadm: hwdb - check return value of fseeko()
Fonud by Coverity. Fixes CID #996255. |
d4f1ef4437e59b2cb69a201bb086ab23070ea72d |
|
19-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
udev: make sure we always return a valid error code in trie_store() |
955d98c9c1104d469c2989dbfb58f58ee6fe9bdc |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
everywhere: make use of new0() and macro() macros, and stop using perror() |
90b2de37b80603168f4e9c9c81cff7eea4efa21a |
|
06-Feb-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Update some message formats
Use PID_FMT/USEC_FMT/... in more places.
Also update logind error messages to print the full path to a file that
failed. This should make debugging easier for people who do not know
off the top of their head where logind stores it state. |
9f6445e34a57c270f013c9416c123e56261553dd |
|
24-Dec-2013 |
Lennart Poettering <lennart@poettering.net> |
log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings |
7643ac9a8add1f07ffc237c054feb443b5612717 |
|
19-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udevadm,scsi_id: add short options to help strings and to the man page
Also clean things up a bit here and there. |
872c8faaf2009422a91d227ae0b5c6f04c9d2c69 |
|
13-Oct-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Fix write-only use of a few variables
Since the invention of read-only memory, write-only memory has been
considered deprecated. Where appropriate, either make use of the
value, or avoid writing it, to make it clear that it is not used. |
ef89eef77ee098a6828169a6d0d74128e236bcbd |
|
19-Jul-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: fix two trivial memleaks in error path
Based-on-a-patch-by: Ian Stakenvicius <axs@gentoo.org> |
06639c0940ad9a81f085cbaff05bbf3f69a7f88f |
|
10-Jul-2013 |
Kay Sievers <kay@vrfy.org> |
hwdb: allow list of lookup keys per given record
This allows to specify:
dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Model 231*:pvr*
dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Series 12*:pvr*
KEY_A=value
KEY_B=value
Instead of:
dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Model 231*:pvr*
KEY_A=value
KEY_B=value
dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Series 12*:pvr*
KEY_A=value
KEY_B=value |
3cf7b686e6b29f78de0af5929602cae4482f6d49 |
|
01-Jul-2013 |
Kay Sievers <kay@vrfy.org> |
hwdb: remove support for (not fully implemented) conditional properties |
7fd1b19bc9e9f5574f2877936b8ac267c7706947 |
|
18-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html |
8c62ecf1a99ab4a3f69cb81be38715c504ef5723 |
|
05-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udevadm: do not free node on success
A fix for ff03aed06a422. |
ff03aed06a42235a87a3d33e7d812be1e9c8161d |
|
05-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udevadm-hwdb: avoid leak in error path |
844ec79b3c2f246114ea316ebe1f36044bdb688e |
|
29-Mar-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
catalog: open up catalog internals
In order to write tests for the catalog functions, they
are made non-static and start taking a 'database' parameter,
which is the name of a file with the preprocessed catalog
entries.
This makes it possible to make test-catalog part of the
normal test suite, since it now only operates on files
in /tmp.
Some more tests are added. |
3e49f2ecb55185966ee425a45fcd7b8c2526f3af |
|
08-Feb-2013 |
Kay Sievers <kay@vrfy.org> |
udev: udevadm hwdb - add --root=
https://bugs.freedesktop.org/show_bug.cgi?id=60398 |
7850b3b83791ba0e2377ba40383c5abc258b839d |
|
08-Feb-2013 |
Kay Sievers <kay@vrfy.org> |
shared: conf-files - add root parameter |
beb23689e357ed549f5c9d4a3440da2132a419f1 |
|
07-Feb-2013 |
Kay Sievers <kay@vrfy.org> |
udev: remove HWDB_BIN |
e32a4e1ef4c61561b08f50f73f82587bdc946b40 |
|
21-Nov-2012 |
Tom Gundersen <teg@jklm.no> |
hwdb: fix usage
--create is not a valid option. |
ee623f0d0c04a9c8da4953ddc29862c8c4945458 |
|
16-Nov-2012 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
hwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary database
It's not configuration, so it doesn't belong in udev.
Also, remove the catalog when uninstalling udev. |
1298001ec5e320f9f9b6a9b925c8939b2579396d |
|
12-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
use the same email address everywhere |
3a4431ef720b18daf2936bf162c0c3946b80e5b3 |
|
02-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: break over-long lines |
23b7245397ac3d21b2386e7b33d9e4ae3db3c8a1 |
|
28-Oct-2012 |
Kay Sievers <kay@vrfy.org> |
udev: add "udevadm hwdb --test=<modalias>" |
2001208c2ab631a69896d1f670c26846b70d1fb7 |
|
27-Oct-2012 |
Kay Sievers <kay@vrfy.org> |
libudev: import hwdb and export lookup interface |
c225f2ffc8a44d9796723aa97bbdfcf331a836c5 |
|
25-Oct-2012 |
Kay Sievers <kay@vrfy.org> |
udev: hwdb - properly initialize search structure |
796b06c21b62d13c9021e2fbd9c58a5c6edb2764 |
|
23-Oct-2012 |
Kay Sievers <kay@vrfy.org> |
udev: add hardware database support |