Lennart Poettering
fbd0b64f44
tree-wide: make use of new STRLEN() macro everywhere ( #7639 )
...
Let's employ coccinelle to do this for us.
Follow-up for #7625 .
2017-12-14 19:02:29 +01:00
Yu Watanabe
5639df9a80
udevadm: getopt() and help message cleanup
...
This adds missing options, mainly '--version' in getopt(), removes
an unused option from getopt().
Also, this adds a deprecate message in `udevadm hwdb`, and cleanups
help messages.
Follow-up for 65eb4378c3
.
2017-12-05 23:30:10 +09:00
Marcus Folkesson
73527992c1
udevadm-info: list all short options in help text
...
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
2017-12-03 18:40:07 +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
Zbigniew Jędrzejewski-Szmek
948aaa7c52
tree-wide: standardize on $(PACKAGE_VERSION) for the version string
...
We defined both $(VERSION) and $(PACKAGE_VERSION) with the same contents.
$(PACKAGE_VERSION) is slightly more descriptive, so settle on that, and
drop the other define.
2017-04-04 20:36:09 -04: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
19a29798bc
udevadm: trivial simplification
2016-06-14 17:12:23 -04:00
Zbigniew Jędrzejewski-Szmek
755700bbd4
Udevadm trivial cleanups ( #3331 )
...
* udevadm-info: use _cleanup_
* udevadm-info: propagate return value from export_devices()
* sd-device: add comment and remove unnecessary braces
2016-05-24 12:07:42 +02: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
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
Lennart Poettering
3ffd4af220
util-lib: split out fd-related operations into fd-util.[ch]
...
There are more than enough to deserve their own .c file, hence move them
over.
2015-10-25 13:19:18 +01:00
Lennart Poettering
07630cea1f
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.
2015-10-24 23:05:02 +02:00
Lennart Poettering
200c7fa6fe
udevadm: enclose invocation of unlinkat() with a (void) cast
...
Let's make Coverity happy about this one.
2015-04-21 17:43:55 +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
Zbigniew Jędrzejewski-Szmek
1fa2f38f0f
Assorted format fixes
...
Types used for pids and uids in various interfaces are unpredictable.
Too bad.
2015-01-22 01:14:52 -05:00
Lennart Poettering
5ac0162c3a
udevadm,..: make --help output of udev tools more like the output of the various other tools
2015-01-05 13:19:55 +01:00
Zbigniew Jędrzejewski-Szmek
d6170d27b2
udevadm: split out find_device helper
...
The idea is to unify the way that devices can be specified.
2014-11-25 21:16:47 -05:00
Kay Sievers
9ec6e95b04
udev: place opening { at the same line as the function declaration
2014-07-29 15:49:25 +02:00
Zbigniew Jędrzejewski-Szmek
bdd13f6be4
Remove dead lines in various places
...
As pointed-out by clang -Wunreachable-code.
No behaviour changes.
2014-02-24 19:24:14 -05:00
Zbigniew Jędrzejewski-Szmek
44433ebdb1
udevadm: modernization
2013-12-18 23:58:23 -05:00
Zbigniew Jędrzejewski-Szmek
7643ac9a8a
udevadm,scsi_id: add short options to help strings and to the man page
...
Also clean things up a bit here and there.
2013-12-18 23:58:23 -05:00
Tom Gundersen
84b6ad702e
udev: export tags of "dead" device nodes to /run/udev/static_node-tags/
...
Based on a patch by Kay Sievers.
A tag is exported at boot as a symlinks to the device node in the folder
/run/udev/static_node-tags/<tagname>/, if the device node exists.
These tags are cleaned up by udevadm info --cleanup-db, but are otherwise
never removed.
2013-07-16 20:07:57 +02:00
Zbigniew Jędrzejewski-Szmek
46512cd959
udevadm: place const in the right place
...
Otherwise clang at least thinks that both consts apply to char.
2013-03-22 23:08:17 -04:00
Kay Sievers
3f60bcb5e6
udev: firmware - do not created /run/udev/firmware-missing/
...
The userspace firmware loader is deprecated now, and will be entirely
removed when we depend on a kernel version with the built-in firmware
loader available.
2013-03-03 18:31:52 +01:00
Thomas Hindoe Paaboel Andersen
090be86534
use streq instead of strcmp
2013-02-13 18:14:20 +01:00
Kay Sievers
d5a89d7dc1
udev: move string copy functions to shared/
2013-01-09 19:06:46 +01:00
Kay Sievers
1298001ec5
use the same email address everywhere
2012-11-12 19:47:43 +01:00
Kay Sievers
4f5d327a49
udev: support "udevadm info /dev/sda; udevadm info /sys/class/block/sda"
2012-06-10 22:53:07 +02:00
Kay Sievers
33502ffe2e
udev: use startswith() and streq()
2012-04-16 20:54:17 +02:00
Kay Sievers
6ada823a9a
udev: remove configuration options for /dev, /sys, /run directories
2012-04-16 19:20:57 +02:00
Kay Sievers
8fef0ff25c
udev: replace ARRAY_SIZE() with ELEMENTSOF()
2012-04-16 19:20:57 +02:00
Kay Sievers
04a9d3a00a
udev: fix gcc warnings showing up after adding $(AM_CFLAGS)
2012-04-10 17:27:46 +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