As explained in issue 6267 of systemd [1], Linux < 3.11 does not
provide definitions for BTN_DPAD_{UP,RIGHT}, which were introduced in
[2].
This patch fixes this issue.
[1] https://github.com/systemd/systemd/pull/6267
[2] 9ee2748712
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
If a device exposes more than 16 mouse buttons, we run into the BTN_JOYSTICK
range, also labelling it as joystick. And since 774ff9b this results in only
ID_INPUT_JOYSTICK but no ID_INPUT_MOUSE.
Fixes#8460
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
short options which were added to the udevd manpage, were not added to
the .xml file, and everytime manpages get regenerated the change gets
overwritten.
also update pregenerated version of udev manpage
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Commit bb070c1 forgot to include the installation of 60-input-id.rules
and 70-joystick.rules via the Makefile. Without this, commits dba4728
and 5df0137 leave the system without any useable input devices.
Update to match systemd v235-1952-gba3182b91
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Update to match systemd v235-1952-gba3182b91
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Some headerfiles are missing "#pragma once" or corresponding
"#ifndef..." which may result in build error if multiple source files
include the same file.
Use "#pragma once" for all header files.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
When using --debug, we want the output to our console.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Last time $UDEV_LOG was referred in code was in
dacd994fda.
Remove all traces for this legacy option.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Solve a bug that could result in really nasty behavior.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Resolve warning:
util.c:1730:23: warning: passing argument 1 of ‘__xpg_basename’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
For all those who prefer emails instead of web GUIs.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
We makes two controls if we consider udev is started;
access(UDEV_ROOT_RUN "/udev/control", F_OK) < 0
and
!udev_has_devtmpfs(udev))
If one(not both) of these statements fails, we consider that udev is not
running.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
The optionparser will simply abort(3) if you try to access optarg on an
option that not takes arguments.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
An important hunk was lost when merging systemd commit
adeba500 leading to broken global properties, issue #142.
This commit fixes this bug.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
In some cases (e.g. trimmed-down chroot or containers), libudev is the
only thing needed, with udevd and assorted programs totally useless
(e.g. because /dev is bind-mounted from the real one and managed
out-side the chroot/container).
Add an option to ./configure to enable/disable building the programs;
this option defaults to "enable", so that it is backward compatible with
existing build procedure, and because it by default makes sense to have
udevd et al.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>