[PATCH] dhcpc: Check for kernel support for PACKET_AUXDATA

2014-04-29 Thread Dan Moulding
Rather than simply assuming that the kernel supports PACKET_AUXDATA, check to see if it is defined before trying to use it. --- networking/udhcp/dhcpc.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index

[PATCH] dhcpc: Fix compile error with ancient kernel headers

2014-04-29 Thread Dan Moulding
I have a need to build against old, decrepit kernel headers: 2.6.18. While I like shiny new kernels just as much as the next guy, in this case I am forced to use the old kernel. When building against the 2.6.18 kernel headers, I ran into some compile errors in dhcpc.c. Back in 2012 (in commit

Re: [PATCH 1/1] hwclock: Verify RTC file descriptor; use reentrant functions

2014-04-29 Thread Denys Vlasenko
On Fri, Apr 25, 2014 at 7:48 PM, Bryan Evenson beven...@melinkcorp.com wrote: If the RTC is in use by another process or if the dev interface is not properly established, calling rtc_xopen will fail. I don't see how is that possible: int FAST_FUNC rtc_xopen(const char **default_rtc, int flags)

[PATCH] Add Linux gpio sysfs applets

2014-04-29 Thread Sascha Hauer
This adds applets for manipulating gpios under Linux via sysfs. It uses the /sys/class/gpio API to set direction and value of gpios and to read back the actual value. The applets work like the corresponding C functions in the kernel: gpio_set_value gpio value gpio_get_value gpio

[PATCH] dhcpc: Check for kernel support for PACKET_AUXDATA

2014-04-29 Thread Dan Moulding
Rather than simply assuming that the kernel supports PACKET_AUXDATA, check to see if it is defined before trying to use it. Signed-off-by: Dan Moulding dan.mould...@rackwareinc.com --- networking/udhcp/dhcpc.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH] dhcpc: Fix compile error with ancient kernel headers

2014-04-29 Thread Dan Moulding
Ooops. Forgot the signed-off-by line the first time around. Dan Moulding (1): dhcpc: Check for kernel support for PACKET_AUXDATA networking/udhcp/dhcpc.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 1.8.2.1 ___

Re: Receiving two REMOVE actions for the same USB drive

2014-04-29 Thread Mason
Isaac Dunham wrote: On Mon, Apr 28, 2014 at 06:03:01PM +0200, Mason wrote: Isaac Dunham wrote: Mason wrote: Ralf Friedl wrote: If you say that simple filtering of the events would be annoying, you don't want to change the kernel to avoid the double notification. What do you mean by you

Re: [PATCH 1/1] hwclock: Verify RTC file descriptor; use reentrant functions

2014-04-29 Thread Ralf Friedl
Bryan Evenson wrote: Similarly, the returned pointer of ctime and localtime was being used without checking if the pointer was valid. One of these calls was causing a call to hwclock to enter an uninterruptable sleep when the invalid hwclock access occurred. An uninterruptable sleep is a

RE: [PATCH 1/1] hwclock: Verify RTC file descriptor; use reentrant functions

2014-04-29 Thread Bryan Evenson
Denys and Ralf, -Original Message- From: Denys Vlasenko [mailto:vda.li...@googlemail.com] Sent: Tuesday, April 29, 2014 10:19 AM To: Bryan Evenson Cc: busybox; gri...@gmx.de Subject: Re: [PATCH 1/1] hwclock: Verify RTC file descriptor; use reentrant functions On Fri, Apr 25,

Re: [PATCH] Add Linux gpio sysfs applets

2014-04-29 Thread Tito
On Tuesday 29 April 2014 16:31:33 Sascha Hauer wrote: This adds applets for manipulating gpios under Linux via sysfs. It uses the /sys/class/gpio API to set direction and value of gpios and to read back the actual value. The applets work like the corresponding C functions in the kernel: