summaryrefslogtreecommitdiff
path: root/src/libudev
AgeCommit message (Collapse)Author
2013-06-03src/libudev/libudev-device.c: fix typoAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02libudev: remove udev_monitor_new_from_socket() symbolMichael Biebl
This function was removed in v183, so drop it from the symbols versioning file.
2013-06-02libudev: Move -lrt to Libs.privateMichael Biebl
It's only needed for static linking. https://bugs.freedesktop.org/show_bug.cgi?id=63309 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02Correct missing int to size_t changeAnthony G. Basile
This corrects a previously applied commit for upstream's acd42fae59096d84e78f1c17bfcc0d8f96486341 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02libude: remove special handling of "device" link and legacy respecting codeKay Sievers
Remove special handling of device link by Sievers. Remove legacy respecting code by Basile. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02libudev: implement udev_device_set_attribute_value()Hannes Reinecke
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-05adjust symbol versioning for libudevIan Stakenvicius
Libudev has a symbol version for 199 now, so the libudev_internal version (which is used to essentially hide symbols that are not part of the external API) needs to use 199 as its baseline instead of 196 Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-04Add support for legacy behaviour in udev_device_get_sysattr_value()Ian Stakenvicius
Wraps the changes made in systemd commits 5ae18ddc and 53726349 with a #if's on LIBUDEV_LEGACY_VERSION so that old behaviour can be chosen at build-time if users find it necessary to support legacy software dependent on the original behaviour Original Authors: Kay Sievers Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-04Use LN_S instead of directly calling ln -sIan Stakenvicius
configure.ac has AC_PROG_LN_S already so we should use it. upstream did this in commit 783162123dbac43d5b7a3fab9d4f11dcf86d06e1 Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-03Respect the MIT licenseklondike
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-03Fix buffer overflowklondike
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-03Clean up the string functionsklondike
Avoid two evaluations of src in util_strpcpy clean the code in the ones where the pointer passed is not modified and merge the main loop of util_strpcpyl and util_strscpyl into util_strpcpyv. Also make strpcpy more compact by removing some unnecessary arithmetic. Cleanup util_strpcpyv by shortcutting size == 0 case Do some style fixups Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02libudev: update to 199Ian Stakenvicius
This updates the library codebase to upstream version 199. (originally merged by Anthony G. Basile <blueness@gentoo.org>) Upstream commits 5ae18ddc0d and 53726349e1 are not applied, code will be excluded via #if...#endif in a future commit Authors: Kay Sievers Thomas Hindoe Paaboel Andersen Hannes Reinecke Jan Engelhardt See http://cgit.freedesktop.org/systemd/systemd/log/src/libudev Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-03-14Fix whitespace in various filesAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-02-07udevadm: support updating hwdb from an offset rootLuca Barbato
Introduce `--root` option to make users run udevadm on rootfs not mounted as / Ease the life of distribution packagers.
2013-01-28Port new net_id capabilities from systemd-udev-197Ian Stakenvicius
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Honor DEVUID, DEVGID in addition to DEVMODEIan Stakenvicius
New behaviour in udev-197 systemd commit 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 Author: Kay Sievers <kay@vrfy.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Fix missing endian wrappersIan Stakenvicius
https://bugs.freedesktop.org/show_bug.cgi?id=58067 systemd commit f4443fa5976eca51661947dd4df60847213f27fa Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28save a line of codeIan Stakenvicius
This mainly just helps keep diff's between eudev and systemd a little more clean, but it does drop one line of duplicate code. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Abort udev_enumerate_new if udev obj is nullIan Stakenvicius
https://bugs.freedesktop.org/show_bug.cgi?id=58289 systemd commit e68893075083a7461b1572233d23fdb23541d630 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-23src/libudev/util.c: fix typo introduce at commit 1ebf647Anthony G. Basile
The first argument of fcntl should be 'fd', the file descriptor. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-21Fall back on POSIX mkstemp() for systems lacking mkostemp()Anthony G. Basile
We add an autotools check to use mkstemp() and fcntl() when mkostemp() is missing. This is not strictly equivalent because we have no way of setting the file access mode O_WRONLY flag, but that should produce no functional difference. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-21Make all udev tools dynamically link to libudev.soIan Stakenvicius
Move libudev.so back to $(rootlibdir) for lvm2 support, and have all udev tools dynamically link to it. The symbol versioning and hidden-visibility on libudev were modified accordingly: we rebase against the public LIBUDEV_196 symbol versioning, and marked all other symbols (which used to be local) as LIBUDEV_internal. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-20Switch to dup2 from dup3Richard Yao
dup3() was being used in a situation where dup2() would suffice. uclibc does not support dup3(), so we switch to dup2(). Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-07The only functional changes in systemd-udev-196Ian Stakenvicius
As far as I can tell these are the only functional changes between the current eudev codebase and the codebase of systemd-196, in relation to udev hwdb code. There are some code style differences, and a number of error-trap-and-log lines that are not present, but that's about it Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-07Added LIBUDEV_196 symbol versioningIan Stakenvicius
systemd-udev-196 added four more functions to their libudev.sym under the LIBUDEV_196 version; consumers such as udisks use the symbol versions at link time and so it is absolutely necessary for us to provide the same symbol versioning and functions in order to provide compatibility. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-04Fix bugs in execv() calls to modprobeIan Stakenvicius
Change the execv() call to an execvp() call so that --with-modprobe="modprobe" is supported; also added the command as argv[0] in the call to execvp(), which fixes the failures when 'modprobe' is a symlink to kmod Signed off by ryao
2012-12-27cgroup: factorize pathLuca Barbato
Spare few bytes and make typos less likely.
2012-12-17Fixed some cosmetic naming in log entriesIan Stakenvicius
2012-12-02Use udev version instead of eudev version for compatibilityRichard Yao
The use of the eudev version in pkgconfig files caused build failures, so we switch to the udev version for compatibility purposes. Resolves gentoo/eudev#22 Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-12-01Include config.h in src/libudev/Makefile.am to provide needed #define'sAnthony G. Basile
This commit provides needed #define's that provide structures that are found at configure time. It also reverts commit 91ce21b2d7978837b233e152ac63863a910eaf21 to avoid redefinitions of _GNU_SOURCE. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-12-01Put libudev.so under ${prefix} so tools in rootprefix don't link to itIan Stakenvicius
This is a combination of commits: bc7e89950323f635196c3c8eeebbe77af4307967 cde38f304f1cba616dfad4eb2608e8ec1a163f61 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-12-01Put symbol versioning back, ensured libudev.sym is distributedIan Stakenvicius
This is a combination of commits 67fd630e5fadeed8e0e96d396a9ebdc5f677fe98 f3666f76d5bf08572e001d1cee37e142b1a1be8f Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-12-01Fix glibc-isms with #define _GNU_SOURCEIan Stakenvicius
This is a combination of commits c9485bf12eafad22dbe316ccbf3a9506d4cace66 abd4a3a3bf5851f07cac6665f35c8b92279c4a47 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-12-01Moved files to libudev that once were in upstream libsystemd-sharedIan Stakenvicius
2012-11-26adjusted libudev.pc.in to use the correct libdir (rootlibdir)Ian Stakenvicius
2012-11-26changed install path for libudev to 'rootlibdir' instead of 'libdir'Ian Stakenvicius
2012-11-25Fixes the contents of udev.pcAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Propagation of configured installation paths to Makefile.am and .c codeAnthony G. Basile
This commit is a continuation of the previous one in which all the configured paths obtained in configure.ac are propagated to the Makefile.am and .c files via AM_CPPFLAGS of the form -DUDEV_CONF_FILE=\"$(udevconffile)\". This should address the issue in https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18Fix "attribute 'packed' is ignored" warnings when using ClangRichard Yao
Clang 3.1 warned that "attribute 'packed' is ignored". This stems from placing "__attribute__ ((packed))" at the start of structure declarations when common practice is to place it at the end. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18Fix unused result warningsKacper Kowalik (Xarthisius)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18Fix implicit declaration warningKacper Kowalik (Xarthisius)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-17Restructure src/ as per lu_zeroAnthony G. Basile
2012-11-17Fix all Makefile.am: work towards 'make distcheck' sanityAnthony G. Basile
2012-11-17Rename src/shared to src/include, a saner nameAnthony G. Basile
2012-11-17src/test: disable for now to get a full buildAnthony G. Basile
2012-11-16src/udev: restore needed deps from src/shareAnthony G. Basile
2012-11-15src/libudev: successfully buildsAnthony G. Basile
2012-11-15Final step of revamping the build systemAnthony G. Basile
The structure of the source tree is basically correct and this is about as far as we can go without hacking at the C code.
2012-11-15Second step of revamping the build systemAnthony G. Basile
The original Makefile.am was drawn to the top level. This commit breaks it out into the various directories with SUBDIRS connecting them. This makes each directory easier to maintain.