Yu Watanabe
2024ed616e
udev: drop unused udev struct
2018-09-10 18:27:36 +09:00
Yu Watanabe
f330408d62
tree-wide: drop empty lines in comments
2018-07-23 08:44:24 +02:00
Zbigniew Jędrzejewski-Szmek
d9b02e1697
tree-wide: drop copyright headers from frequent contributors
...
Fixes #9320 .
for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do
git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms'
done
2018-06-20 11:58:53 +02:00
Zbigniew Jędrzejewski-Szmek
50d1760d26
Drop more license boilerplate
...
$ git grep -e 'This program is free software' -l |grep -v LICENSE | \
xargs perl -i -0pe 's/ \* This program.*?for more details.\s*\*\n( \* You should have.*licenses.>.\n)?//gms'
For some reason they were missed previously. All those files seem to
have proper SDPX tags.
2018-06-14 13:05:41 +02:00
Lennart Poettering
810adae9e9
tree-wide: use proper unicode © instead of (C) where we can
...
Let's use a proper unicode copyright symbol where we can, it's prettier.
This important patch is very important.
2018-06-14 10:20:20 +02:00
Zbigniew Jędrzejewski-Szmek
cb51ee7a6e
Add some handling to remaining unlinkat calls
...
Coverity now started warning about this ("Calling unlinkat without checking
return value (as is done elsewhere 12 out of 15 times).", and it is right:
most of the time we should at list print a log message so people can figure
out something is wrong when this happens.
v2:
- use warning level in journald too (this is unlikely to happen ever, so it
should be safe to something that is visible by default).
2018-02-19 15:00:00 +01:00
Zbigniew Jędrzejewski-Szmek
e7145211c7
Add SPDX license identifiers to source files under the GPL
2017-11-19 19:08:15 +01:00
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