Reverend Homer
8fb3f00997
tree-wide: replace all readdir cycles with FOREACH_DIRENT{,_ALL} ( #4853 )
2016-12-09 10:04:30 +01:00
Zbigniew Jędrzejewski-Szmek
e02c613560
udev/udev-watch: calculate the real buffer sizes needed
2016-11-02 22:36:43 -04:00
Daniel Mack
b26fa1a2fb
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.
2016-02-10 13:41:57 +01:00
Daniel Mack
d054f0a4d4
tree-wide: use xsprintf() where applicable
...
Also add a coccinelle receipt to help with such transitions.
2016-01-12 15:36:32 +01:00
Zbigniew Jędrzejewski-Szmek
3f65d73149
udev: add emacs header line
...
Otherwise emacs wants to use 2-space indentation and other
attrocities.
2015-12-07 00:45:08 -05:00
Thomas Hindoe Paaboel Andersen
cf0fbc49e6
tree-wide: sort includes
...
Sort the includes accoding to the new coding style.
2015-11-16 22:09:36 +01:00
Lennart Poettering
1f6b411372
tree-wide: update empty-if coccinelle script to cover empty-while and more
...
Let's also clean up single-line while and for blocks.
2015-09-09 14:59:51 +02:00
Thomas Hindoe Paaboel Andersen
2eec67acbb
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.
2015-02-23 23:53:42 +01:00
Michal Schmidt
56f64d9576
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.
2014-11-28 19:49:27 +01:00
Kay Sievers
9ec6e95b04
udev: place opening { at the same line as the function declaration
2014-07-29 15:49:25 +02:00
Lennart Poettering
9f6445e34a
log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings
2013-12-24 16:39:37 +01:00
Zbigniew Jędrzejewski-Szmek
c79bb9e4e2
Standarize on one spelling of symlink error message
...
It's polite to print the name of the link that wasn't created,
and it makes little sense to print the target.
2013-04-24 00:25:04 -04:00
Kay Sievers
1298001ec5
use the same email address everywhere
2012-11-12 19:47:43 +01:00
Václav Pavlín
6bb2f0a08a
udev: check return value of symlink
2012-09-23 14:24:43 +02:00
Kay Sievers
dbf61afb29
udev: export udev_device_new_from_device_id()
2012-08-10 19:56:57 +02:00
Kay Sievers
667e392408
udev: do not selinux label files in /run/udev
2012-05-31 13:20:06 +02:00
Kay Sievers
d2e54fae5c
mkdir: append _label to all mkdir() calls that explicitly set the selinux context
2012-05-31 12:40:20 +02:00
Kay Sievers
9e13dbae50
udev: replace util_create_path() with mkdir_parents()
2012-04-17 01:09:39 +02:00
Kay Sievers
6ada823a9a
udev: remove configuration options for /dev, /sys, /run directories
2012-04-16 19:20:57 +02:00
Kay Sievers
baa30fbc2c
udev: switch to systemd logging functions
2012-04-08 16:06:20 +02:00
Kay Sievers
3e2147858f
move imported udev into place
2012-04-04 05:05:07 +02:00