Compare commits

..
234 Commits
Author SHA1 Message Date
Hugo 7a6eee2db1 Add optional versioned symbols (#82)
When compiling via meson, compile with versioned symbols.
Use `-Dsymbol-versioning=disabled` to opt out.

Fixes: https://github.com/illiliti/libudev-zero/issues/77
2026-07-22 19:08:48 +03:00
Hugo dcce41f33c Use meson for building (#81)
Gives us more control for implementing additional features, such as
optional symbol versions.

References: https://github.com/illiliti/libudev-zero/issues/77
2026-07-22 16:11:43 +03:00
Alexandru Ardelean 2bebebc9e0 udev: implement hwdb USB ID lookup from usb.ids (#80)
Replace the four stub udev_hwdb_*() functions with a working
implementation that looks up vendor and product names from a
usb.ids database file (e.g. provided by the hwdata package).

udev_hwdb_get_properties_list_entry() parses the file for USB
modalias strings of the form "usb:vVVVVpPPPP" (product lookup)
or "usb:vVVVV" (vendor lookup), and populates the entry list with
ID_MODEL_FROM_DATABASE or ID_VENDOR_FROM_DATABASE properties.

Lines are read via POSIX getline() so the buffer grows as needed
on long usb.ids entries.

The path to the usb.ids file is set at build time via the
USB_IDS_PATH Makefile variable, which defaults to
${SHAREDIR}/hwdata/usb.ids.
2026-05-19 17:52:47 +03:00
Zephyr Lykos 2173d01af7 udev_device.c: do not assume EV_REL and EV_ABS is mutually exclusive (#79)
Fixes https://github.com/illiliti/libudev-zero/issues/78
2026-05-18 18:48:48 +03:00
Matt bbeb7ad51c Fixes incorrect detection of touchpads (#66)
Some touchpad drivers (such as applespi) claim to have both EV_ABS and EV_REL
capabilities. These touchpads are then reported as mice by libudev-zero.
2024-02-13 14:20:52 +03:00
Sertonix c027f870c8 README: update link to PipeWire patch (#64) 2024-02-13 14:19:20 +03:00
liamHowattandilliliti 5eca08d71d Avoidable OOM on small systems (#62)
* bandaid fix OOM

* refactor fix OOM

* Makefile: remove no longer needed -pthread option

* libudev.pc.in: remove threads requirement

---------

Co-authored-by: illiliti <illiliti@protonmail.com>
2023-12-05 12:15:26 +03:00
Mingjie Shen a2cc51bb14 udev_device.c: fix TOCTOU race condition (#57)
Separately checking the state of a file before operating on it may allow
an attacker to modify the file between the two operations.

Reference: CWE-367.
2023-12-05 11:41:24 +03:00
Brian 90480bf525 Add CodeQL Workflow for Code Security Analysis (#61)
* Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every push and pull request to the main branch.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for third-party code, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation.

Signed-off-by: Brian <bayuan@purdue.edu>

* Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>

* Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>

* Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>

---------

Signed-off-by: Brian <bayuan@purdue.edu>
2023-12-05 11:40:23 +03:00
illiliti ee32ac5f64 Makefile: bump libudev version 2023-07-10 14:15:04 +03:00
illiliti 99f1bc955a udev_device.c: stub udev_device_get_current_tags_list_entry impl 2023-07-10 14:13:58 +03:00
illiliti 04a727df50 udev_device.c: consider device valid even if no subsystem symlink exists
Some devices may not have subsystem symlinks, therefore we cannot rely
on that to check if device is valid. Instead, check uevent file which
should be always present in valid device.

Reference: https://github.com/openwrt/openwrt/issues/12350
2023-04-18 09:28:02 +03:00
illiliti e5587c6edb Makefile: fix compatibility with smake 2022-07-12 01:12:37 +03:00
Nihal Jere 713e7dbe75 README: grammar fixes 2022-07-11 16:13:25 -05:00
Marc-André Moreau 4a28cc57e4 fix undefined LINE_MAX on Android 2022-04-15 10:14:22 -04:00
illiliti 4154cf252c udev_enumerate.c: support NULL value in match/nomatch
Fixes: #45
2021-12-16 08:30:49 +03:00
Alyssa Ross 505c61819b Makefile: support static-only builds
One of the problems with udev is that systemd cannot be built
statically[1].  With libudev-zero, on the other hand, no code changes
are required to be able to do a static-only build, only Makefile
changes.

With this change, it's possible to "make install-static" to do a
static-only build of libudev-zero.

[1]: https://github.com/systemd/systemd/pull/20621#issuecomment-912014839
2021-11-29 22:38:45 +00:00
illiliti 938b959402 readme: mention PipeWire patch 2021-11-17 00:20:57 +03:00
illiliti ec47f63d6b Revert "udev_enumerate.c: fix pipeware"
This reverts commit 4510b27a9b.
2021-11-16 16:17:47 +03:00
illiliti b8a0b953e6 Revert "Makefile: add stub symbol versioning"
This reverts commit 000ff7bf2f.
2021-11-16 16:17:40 +03:00
Firas Khalil Khana 6651ccc9d6 Fix typo 2021-11-16 16:19:50 +03:00
illiliti 7265d305c2 various: fix memory leaks
Closes: #41
2021-10-08 08:53:04 +03:00
illiliti caaa021290 udev_device.c: ignore devices without subsystem
Do not allocate udev_device if device doesn't have subsystem.

Fixes: #43
2021-10-08 08:36:20 +03:00
illiliti 6250984089 readme: add cups and workaround for pulseaudio 2021-09-09 23:53:51 +03:00
illiliti 858f0b107f readme: pros/cons 2021-09-09 03:01:12 +03:00
illiliti 000ff7bf2f Makefile: add stub symbol versioning
Fixes: #38
2021-09-08 21:44:45 +03:00
illiliti af4dc2ff14 readme: rewrite why, add pros/cons 2021-09-08 21:26:18 +03:00
illiliti 99676e0e04 readme: What works -> What doesn't work 2021-09-07 01:49:28 +03:00
illiliti c7669d8eec udev_enumerate.c: fix endless loop in filter_property 2021-09-05 17:22:32 +03:00
illiliti 3c2593376a readme: future directions 2021-09-02 21:39:59 +03:00
illiliti 8044ed8fd6 contrib/helper.c: remove redundant bind call 2021-08-29 04:59:31 +03:00
illiliti 8a4b5b582c udev_monitor.c: bitmask is unsigned 2021-08-29 04:55:14 +03:00
illiliti c2a08cdd79 contib/mdev.conf: mdevd can rebroadcast uevents natively 2021-08-28 02:28:05 +03:00
illiliti fc22990609 implement file-less hotplugging 2021-08-27 01:13:34 +00:00
illiliti 4510b27a9b udev_enumerate.c: fix pipeware
This is partial fix because pipeware relies on udev-specific
properties that aren't provided by libudev-zero.

Fixes: #26
2021-08-25 06:03:39 +03:00
illiliti d8c4dc4ce3 udev_device.c: define INPUT_PROP_CNT 2021-08-25 03:22:30 +03:00
illiliti 3d98bea289 *: code cleanup 2021-08-25 01:38:33 +03:00
illiliti 5f9186af41 contrib/*: be more explicit 2021-08-21 01:57:41 +03:00
illiliti bf23c9e5ba udev_device.c: fix integer overflow
Bitwise AND operation can produce value that may be larger than
test_bit() return value. Convert result to bool using `!!` to
avoid integer overflow.

Fixes: #33
2021-06-26 01:21:43 +03:00
illiliti bd7d1803e6 udev_enumerate.c: fix possible memory leak
Early return due to pthread_create() failure causes memory leak.
2021-06-11 14:06:20 +03:00
Naoto Yamaguchi eb30a8bc85 Fix install error at make install
At db72f8610d is missing change in Makefile.
This err was reporting at bkuhls.
This patch fix it.
2021-06-09 08:37:50 +00:00
illiliti 692cb07e55 readme: prettify
reading it in plain text was painful, now it's fixed.
2021-06-06 14:23:59 +03:00
illiliti 752403eb9c readme: drop TODO 2021-06-06 10:53:03 +03:00
illiliti e75aced4de udev_device.c: drop TODO 2021-06-06 10:52:20 +03:00
illiliti 7c94940e12 Revert "udev_device.c: use strrchr to trim newline"
This reverts commit 34f8727f28.
2021-06-06 10:50:38 +03:00
illiliti e23633ec56 udev_device.c: more accurate keys/keyboard detection 2021-06-06 10:29:55 +03:00
illiliti 34f8727f28 udev_device.c: use strrchr to trim newline 2021-06-06 10:29:55 +03:00
Naoto Yamaguchi 75a40e1040 Add license information to source files
Current libudev-zero source code doesn't have license information in source files.
This patch add license information to source files based on SPDX standard.
2021-06-05 07:38:25 +00:00
Naoto Yamaguchi db72f8610d Fix building library name from libudev.so to libudev.so.1
Currently, "-soname" set at "libudev.so.1", but building library file name was "libudev.so".
Typical shared library structure as a follow;
  libudev.so -> libudev.so.1
  libudev.so.1
Current installation is reversed.

This patch fix this.
2021-06-05 07:38:25 +00:00
Naoto Yamaguchi def1a43f53 Add PKGCONFIGDIR for installation
Ubuntu/Debian style file placement are ;
 No.1 libudev.so and libudev.so.1 in /lib or /lib/arch/
 No.2 libudev.h in /usr/include
 No.3 libudev.pc in /usr/lib/pkgconfig or /usr/lib/arch/pkgconfig

Current Makefile can install No.1 and No.2 pattern by
"make PREFIX=/usr LIBDIR=/lib INCLUDEDIR=/usr/include install",
but it can't install No.3 pattern.

This patch added PKGCONFIGDIR environment variable to achieve all install pattern by
"make PREFIX=/usr LIBDIR=/lib INCLUDEDIR=/usr/include PKGCONFIGDIR=/usr/lib install"
2021-06-05 07:38:25 +00:00
illiliti ed6c3e5c2d udev_monitor.c: check UDEV_MONITOR_DIR only for existence
Fixes #30
2021-06-04 20:15:45 +03:00
illiliti 23e9b6f8f4 udev_monitor.c: drip sticky bit for now 2021-06-04 00:35:15 +03:00
illiliti a81cb4444d udev_device.c: decrement size by 1
SUBSYSTEM == 9, not 10. same for others
2021-06-03 12:06:18 +03:00
illiliti 4cb97cd01e udev_device.c: use strncmp to compare uevent vars 2021-06-03 12:02:40 +03:00
illiliti 4623040b6c udev_monitor.c: free resources before return 2021-06-03 11:53:29 +03:00
illiliti 802c5b8695 udev_enumerate.c: check return value of pthread_create 2021-06-03 11:44:50 +03:00
illiliti b82f9d9e4f udev.c: move udev_hwdb here 2021-06-03 11:35:08 +03:00
illiliti e814cfa506 udev_device.c: fix possible uninitialized read 2021-06-03 11:20:51 +03:00
illiliti 496291c8dd udev_monitor.c: add a way to control UDEV_MONITOR_DIR at runtime 2021-06-03 10:38:40 +03:00
illiliti c9b824bd54 udev_monitor.c: skip inotify event if directory 2021-06-03 09:41:26 +03:00
illiliti fb44266bfd udev_monitor.c: check poll error early 2021-06-03 09:37:13 +03:00
illiliti 37e5fa7206 udev_monitor.c: inotify read of size 0 is impossible 2021-06-03 09:30:46 +03:00
illiliti 32f9d14551 udev_monitor.c: fix bad return value in udev_monitor_enable_receiving 2021-06-03 09:24:55 +03:00
illiliti f4b2b9331e udev_monitor.c: fail if monitored file is not dir 2021-06-03 09:19:45 +03:00
illiliti 4a6b31b8f1 udev_monitor.c: remove no longer required fcntl.h include 2021-06-03 09:17:39 +03:00
illiliti 0fd4054baf Revert "udev_device.c: replace strncmp with strcmp"
This reverts commit ff6cf67c23.
2021-06-03 07:24:19 +03:00
illiliti 0a1be0e4c0 Revert "contrib/helper.c: replace strncmp with strcmp"
This reverts commit b3f44ae7c9.
2021-06-03 07:23:30 +03:00
illiliti 53aa6f3b04 udev_device.c: abort if uevent file is malformed 2021-06-03 06:27:47 +03:00
illiliti ff6cf67c23 udev_device.c: replace strncmp with strcmp 2021-06-03 05:28:46 +03:00
illiliti b3f44ae7c9 contrib/helper.c: replace strncmp with strcmp 2021-06-03 05:19:14 +03:00
illiliti 41d6cc9976 udev_device.c: avoid passing NULL to atoi 2021-06-03 03:21:56 +03:00
illiliti 6dcad515e9 readme: add eventfd to deps 2021-06-01 22:08:50 +03:00
illiliti 93c48c86ec udev_device.c: nitpick 2021-06-01 22:08:00 +03:00
illiliti e06dfcd22c udev_monitor.c: minor fixes 2021-06-01 17:23:32 +03:00
Arthur Williams 03c53bc1c3 Removed THREAD_MAX and the barrier and pfd fields from udev_monitor
We can fix THREAD_MAX at one since we don't gain much by having multiple
threads. All the threads did were translate inotify events. We also
no longer need pfd and the barrier fields of udev_monitor since we don't
need to signal the single thread or guard against any races.
2021-06-01 03:12:11 +00:00
Arthur Williams af98e237cb Remove epoll dependency
Instead of using the Linux-specific epoll, we can use the
more portable poll.
2021-06-01 03:12:11 +00:00
illiliti 3d97786f09 udev_device.c: drop PAGESIZE
glibc violates POSIX and does not define it.
2021-05-27 19:13:04 +03:00
illiliti f44332df5a various: drop udev_* prefix from static functions 2021-05-26 17:55:29 +03:00
illiliti 0ea1528dfc udev_device.c: simplify bounds checking 2021-05-26 14:33:27 +03:00
illiliti 4b044ae52c udev_device.c: avoid off-by-one overflow 2021-05-26 13:37:02 +03:00
illiliti 145e2c814f udev_device.c: attempt to fix incorrect bitmask handling
Reference #22
2021-05-25 15:34:24 +03:00
illiliti f2083f0e47 udev_monitor.c: block signals within event loop
Fixes #23
Closes #24
2021-05-25 08:36:56 +03:00
illiliti a885b93c3c udev_device.c: correctly handle multiline sysattrs
Changed arbitrary size of sysattr to PAGESIZE[0]. Not sure about binary
sysattrs because they may be > PAGESIZE. Either way, we need dynamic
allocation to handle them.

Trim only trailing newlines, not the first one. Now content of the
sysattr not getting truncated. By the way, do we need to trim carrige
return '\r' too?

[0] https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

> The buffer will always be PAGE_SIZE bytes in length. On i386, this
  is 4096.

Fixes #25
2021-05-21 05:49:41 +03:00
illiliti 1fd071f24e contrib/helper.sh: exec env command to inherit exit status 2021-05-18 20:27:26 +03:00
illiliti f1107b0e17 contrib/helper.c: minor fixes
Exit with 2 if arguments are invalid.

Compare unneeded environment variables
with '=' delimiter to avoid false positives.
2021-05-18 20:15:33 +03:00
illiliti 721306c55d contrib/helper.c: make temporary file readable for everyone 2021-05-18 19:30:07 +03:00
illiliti 6685cfaeba add clarification why sys/sysmacros.h must be in udev.h 2021-05-07 10:28:39 +03:00
illiliti 960c902c12 Merge branch 'master' of github.com:illiliti/libudev-zero 2021-05-07 10:22:30 +03:00
illiliti bbea6a6d90 Merge pull request #21 from TAAPArthur/multi_media_keys
Treat devices with keys as keyboards
2021-05-03 16:53:29 +00:00
Arthur Williams 3d188e78e8 Treat devices with keys as keyboards
Some keyboards have an absolute axis and would erroneously not be treated
as a keyboard. Now any device with keys would have the ID_INPUT_KEY
property set.
2021-05-03 11:51:35 -05:00
illiliti 6ca90e62ee Merge pull request #20 from TAAPArthur/pinephone_touchscreen
Detect touch devices as touchscreen
2021-03-31 13:18:46 +00:00
Arthur Williams 048701fa5f Detect touch devices as touchscreen
The Goodix Capacitive TouchScreen on the pinephone was being detected as
a joystick instead of a touchscreen. This patch correctly marks it as a
touchscreen and allows it to work out of the box with libinput
2021-03-16 19:12:58 -05:00
illiliti 676c616b02 increment year 2021-02-16 15:15:35 +03:00
illiliti 1aef09bf84 replace unstable pthread_cancel() with self-pipe trick. fixes #16 2021-02-05 05:44:47 +03:00
illiliti 1dfe5144c8 squash 2021-01-26 00:20:57 +03:00
illiliti 8b30ab1692 Merge pull request #15 from mauve/add_missing_log_fn_to_fix_chromium
Add missing udev log functions
2021-01-26 00:24:38 +03:00
Mikael Olenfalk db8c75e07a Add missing udev log functions
Without these functions Chromium and Electron crash during
startup while loading libudev with a SIGTRAP.
2021-01-21 15:42:54 +01:00
illiliti eeacecb7a0 Merge branch 'master' of github.com:illiliti/libudev-zero 2021-01-20 09:13:33 +03:00
illiliti 84dcea670c define INPUT_PROP_{POINTING_STICK,ACCELEROMETER}. fixes #11 2021-01-20 09:10:29 +03:00
illiliti d9bd4f3a19 implement udev_device_get_usec_since_initialized. fixes #12, closes #14 2021-01-20 09:05:42 +03:00
illiliti b90b0acc88 general code cleanup 2021-01-20 08:58:19 +03:00
illiliti 9868e5e9ea add pthread. fixes #13 2021-01-20 08:55:12 +03:00
illiliti a2e85c4b53 Merge pull request #10 from mssx86/master
Touch up the README a little.
2020-11-26 07:52:23 +03:00
mssx86 f56e9982ac Touch up the README a little. 2020-11-23 01:53:26 +03:00
illiliti c1a4550f06 Merge pull request #9 from E5ten/fix-pc
libudev.pc: add prefix and exec_prefix support
2020-11-11 20:56:16 +03:00
illiliti 68b42a2404 implement udev_device_get_seqnum. closes #7 2020-11-11 20:49:20 +03:00
illiliti 4e31ed15b5 add todo 2020-11-11 20:37:54 +03:00
illiliti 3b3d86d666 guard against multiple inclusion 2020-11-11 20:37:29 +03:00
Ethan Sommer 5cebefbc85 libudev.pc: add prefix and exec_prefix support 2020-11-04 14:48:17 -05:00
illiliti be97914ade move not implemented comment to the same line of function for easier parsability 2020-09-16 21:51:08 +03:00
illiliti bb6cc905dd update readme 2020-09-16 02:43:37 +03:00
illiliti fd64152df9 prevent format string exploit 2020-09-15 02:38:57 +03:00
illiliti 7cdcebdf58 drop libudev.pc from all 2020-09-15 01:49:49 +03:00
illiliti 2fc3361abd Merge pull request #5 from firasuke/patch-1
PREFIX has to be specified twice
2020-09-15 00:53:22 +03:00
Firas Khalil Khana f5e0778f79 PREFIX has to be specified twice
`PREFIX` has to be specified for when using `make` solely. This is done to correct the wrong paths inside the generated `libudev.pc` which will always be `/usr/local/{include,lib}` regardless of the `PREFIX` value passed to `make install`.
2020-09-15 00:42:25 +03:00
illiliti 089e09e00a fix memory leak 2020-09-13 23:26:40 +03:00
illiliti d2820abf13 newline 2020-09-10 21:28:59 +03:00
illiliti 7f7c68e5e5 why ???? 2020-09-10 21:27:43 +03:00
illiliti 95da1614f5 update readme 2020-09-10 14:02:39 +03:00
illiliti 8390f74cad update readme 2020-09-10 13:10:21 +03:00
illiliti ccdc98818f add .gitignore 2020-09-01 22:03:30 +03:00
illiliti 0c4d64fdac fix xorg crash introduced in https://github.com/freedesktop/xorg-xserver/commit/74b7427c41b4e4104af7abf70a996c086d3d7628 2020-09-01 14:03:07 +03:00
illiliti 6e6fe8652c drop chmod 2020-08-24 17:11:42 +03:00
illiliti 14e187f1e2 check file size 2020-08-23 15:31:10 +03:00
illiliti 894aa48906 fix memory leak 2020-08-23 15:23:36 +03:00
illiliti 85707b0bba update readme 2020-08-23 01:15:49 +03:00
illiliti 15ab84d08b Merge pull request #3 from illiliti/hotplugging_new
implement hotplugging support
2020-08-23 00:55:49 +03:00
illiliti b54f639cfd final fixes 2020-08-23 00:51:10 +03:00
illiliti 44409c16e7 attempt to write docs 2020-08-21 14:55:24 +03:00
illiliti 662062604e check IN_IGNORED 2020-08-19 22:51:27 +03:00
illiliti d6e774460d simplify using barrier 2020-08-19 18:09:47 +03:00
illiliti 25a9dd70b0 replace self-pipe trick with conditional variable 2020-08-19 13:17:10 +03:00
illiliti b53bb9eb82 add helper.c 2020-08-18 12:28:22 +03:00
illiliti b17173163f drop sizeof 2020-08-17 17:30:07 +03:00
illiliti f6afe3602b eliminate race conditions 2020-08-17 16:57:50 +03:00
illiliti bcd28de858 fix potential UB while reading sysattr 2020-08-16 14:00:03 +03:00
illiliti 408249b34b simplify key=val parsing 2020-08-16 12:53:13 +03:00
illiliti 0105b25e70 add examples 2020-08-15 15:49:36 +03:00
illiliti 752f500a90 grab properties from uevent 2020-08-15 12:20:24 +03:00
illiliti ca2fb1d5fa update readme 2020-08-15 11:36:12 +03:00
illiliti f1388e805d create UDEV_MONITOR_DIR 2020-08-15 10:53:14 +03:00
illiliti f8c3526a63 move pthread_create to udev_device_enable_receiving 2020-08-15 07:56:36 +03:00
illiliti 508424a3a2 fix sysname 2020-08-15 07:39:02 +03:00
illiliti 3029436ea6 oops 2020-08-14 19:44:05 +03:00
illiliti 380e7f8890 implement hotplugging support 2020-08-14 19:33:18 +03:00
illiliti 56bcf25461 minor fixes, add joystick support 2020-08-12 23:31:37 +03:00
illiliti dc75e2b44e correctly find ID_INPUT_KEY 2020-08-10 00:48:02 +03:00
illiliti ca956fa663 add support for tablets, pointing sticks and accelerometers 2020-08-09 07:05:09 +03:00
illiliti 9c681d6cad update readme 2020-08-07 21:00:37 +03:00
illiliti 011d3db9e1 check if switch has EV_KEY capability 2020-08-07 05:42:20 +03:00
illiliti 4bbd8ddf3e update readme 2020-08-05 04:01:49 +03:00
illiliti f60cb919d4 update readme 2020-08-05 01:10:34 +03:00
illiliti a445c3ce47 update readme 2020-08-05 00:53:23 +03:00
illiliti 25977fddb5 cleanup 2020-08-04 21:32:06 +03:00
illiliti e1e78b525e update readme 2020-08-04 18:02:06 +03:00
illiliti c0d6c58393 switch to for loop 2020-08-04 16:11:17 +03:00
illiliti 7754aa691c prevent array index out of bounds 2020-08-03 18:37:40 +03:00
illiliti 8fa88d6697 remove useless NULL checks 2020-08-03 00:05:12 +03:00
illiliti 3700b9c642 check NULL 2020-08-02 15:50:17 +03:00
illiliti a41459e81c fix broken input 2020-08-01 18:31:29 +03:00
illiliti 8547b55072 use buffered io 2020-08-01 04:20:27 +03:00
illiliti c73a89dafc update readme 2020-08-01 03:47:37 +03:00
illiliti fca883ed54 get rid of ioctl
before - 2.964 total
after  - 0.932 total

still slow ???
2020-08-01 03:23:56 +03:00
illiliti c60bcdf666 rename len to cnt 2020-08-01 03:21:01 +03:00
illiliti 8a57e66afe pass O_NONBLOCK to open 2020-07-31 22:12:29 +03:00
illiliti 8c30f20b7e change logic 2020-07-31 21:30:38 +03:00
illiliti 314f1b005a change style 2020-07-31 01:19:27 +03:00
illiliti e751c69241 do not try to search parent device very deeply 2020-07-31 01:13:41 +03:00
illiliti bfd09f153e simplify logic 2020-07-31 00:28:09 +03:00
illiliti 37fe740623 check NULL before open devnode 2020-07-31 00:12:50 +03:00
illiliti a0528c5585 check NULL 2020-07-31 00:08:37 +03:00
illiliti 760346ed08 continue, no return 2020-07-30 23:37:51 +03:00
illiliti a73c1f89b1 update readme 2020-07-30 14:51:08 +03:00
illiliti 9b7641d9ec do not handle unique values when no need 2020-07-29 12:27:40 +03:00
illiliti edaf268cac const char where possible 2020-07-29 12:09:11 +03:00
illiliti eea8f66e76 further simplify 2020-07-29 11:56:29 +03:00
illiliti f96a573155 simplify error handling 2020-07-28 21:38:57 +03:00
illiliti 1e7ec603bc do udev_device_unref before lock 2020-07-28 20:51:01 +03:00
illiliti 89f33b8d9c update readme 2020-07-28 20:13:36 +03:00
illiliti 16a99644ad update readme 2020-07-28 20:13:09 +03:00
illiliti 60fd0bb19b update readme 2020-07-28 20:12:14 +03:00
illiliti 052dfec0d2 update readme 2020-07-28 20:05:59 +03:00
illiliti 2231740380 use static allocation 2020-07-28 19:45:36 +03:00
illiliti e988d6f67c implement pthreads
before - 3.870 total
after  - 2.964 total

not really big difference, huh ?
2020-07-28 13:05:51 +03:00
illiliti 56537c691a no need 2020-07-26 18:50:42 +03:00
illiliti f63ec4a2e7 minor changes 2020-07-26 15:49:15 +03:00
illiliti a5d5e4dd2b fix gcc 10 2020-07-26 12:34:43 +03:00
illiliti b9ab0e2fe9 use limits constants instead of hardcoded ones 2020-07-25 17:48:37 +03:00
illiliti 984295b4a0 minor fixes 2020-07-25 17:42:47 +03:00
illiliti d05676f232 drop O_NOFOLLOW 2020-07-25 16:44:17 +03:00
illiliti d4a60c10c0 use readlink 2020-07-25 16:41:10 +03:00
illiliti c7cc417701 simplify 2020-07-25 16:38:59 +03:00
illiliti 28ff928699 split 2020-07-25 16:23:46 +03:00
illiliti 92901c5b24 update readme 2020-07-22 21:19:50 +03:00
illiliti 60336bcf3b add missing include 2020-07-22 21:04:31 +03:00
illiliti 1f3d92132d update readme 2020-07-20 01:01:02 +03:00
illiliti f20aaf258e update readme 2020-07-19 21:55:42 +03:00
illiliti df1daa9f8b add donation link 2020-07-19 03:13:35 +03:00
illiliti df1b1b4319 add CPPFLAGS 2020-07-18 18:28:33 +03:00
illiliti af7bbc8bec drop _POSIX_VERSION definition 2020-07-18 05:59:11 +03:00
illiliti 8a946ad9e6 drop UDEV_EXPORT 2020-07-18 05:15:00 +03:00
illiliti 86d3dcab0f update readme 2020-07-17 23:04:36 +03:00
illiliti 758ad07c26 change style 2020-07-17 21:36:59 +03:00
illiliti 20314c6256 add udev_hwdb 2020-07-17 07:53:32 +03:00
illiliti ce939476f7 update readme 2020-07-17 07:47:23 +03:00
illiliti 8b7689302d fix 2020-07-17 04:48:15 +03:00
illiliti 09dbf27a07 implement udev_device_new_from_subsystem_sysname 2020-07-16 22:53:23 +03:00
illiliti f9eeef168e typo 2020-07-16 22:07:42 +03:00
illiliti 12eb197449 minor fixes 2020-07-16 21:18:38 +03:00
illiliti 80b754f876 format 2020-07-14 16:23:11 +03:00
illiliti 82de2c9cf8 format 2020-07-14 03:19:35 +03:00
illiliti bab130c7fd silence gcc 2020-07-14 00:14:10 +03:00
illiliti 3df658c73d remove useless include 2020-07-14 00:10:51 +03:00
illiliti 00b13d3268 use static 2020-07-13 22:46:01 +03:00
illiliti 24cc238b45 add touchscreen support 2020-07-13 19:35:01 +03:00
illiliti 54fd01f80e fix fd leak 2020-07-13 17:18:47 +03:00
illiliti 93e84c2c4b implement ioctl() 2020-07-13 02:26:09 +03:00
illiliti a50690071e update readme 2020-07-12 13:56:08 +03:00
illiliti a949a52ae1 update readme 2020-07-11 15:08:16 +03:00
illiliti e76f9b2824 update readme 2020-07-11 12:54:58 +03:00
illiliti 9a9bc2e3fd update readme 2020-07-10 21:51:45 +03:00
illiliti 0fe2371c0d add libudev.pc. thanks @E5ten 2020-07-10 20:59:25 +03:00
illiliti 1072c74cb6 extract name from parent device 2020-07-10 16:23:17 +03:00
illiliti 9c3df3e390 check NULL 2020-07-09 15:43:09 +03:00
illiliti a686cc2b22 check NULL 2020-07-08 19:39:18 +03:00
illiliti 8fbdeb3fe3 fix udev_device_get_sysname 2020-07-08 17:07:06 +03:00
illiliti 35972adc32 implement INPUT properties 2020-07-08 16:51:57 +03:00
illiliti 944d249b40 fix makefile 2020-07-08 14:44:44 +03:00
illiliti a5b5667dce rewrite 2020-07-08 14:38:40 +03:00
illiliti dbb13e9286 implement udev_enumerate_scan_devices, rewrite udev_device logic 2020-07-07 10:07:24 +03:00
illiliti b3b80e34a0 switch to macro 2020-07-05 12:30:53 +03:00
illiliti debdcbcc47 fix parent 2020-07-05 03:11:55 +03:00
illiliti bceae57798 formatting fixes 2020-07-04 10:18:24 +03:00
illiliti 7a09bb0557 init 2020-07-04 09:25:16 +03:00

Diff Content Not Available