summaryrefslogtreecommitdiff
path: root/klibc_fixups.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-31 23:03:46 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:13 -0700
commite5a2989efbae81f40b60885a8f92ea1f87df7ea9 (patch)
treee23fdb064f57cdaa9a48527c30ac5d877d32d924 /klibc_fixups.c
parentf27125f98f6487e881a957726da895aebd799f0d (diff)
[PATCH] udevd race conditions and performance, assorted cleanups - take 2
here is a patch on top of your nice improvements. I fixed the whitespace and it hopefully fixes the stupid timestamp bug in udevd. Some stupid OS sets the hwclock to localtime and linux changes it to UTC while starting. If any events are pending they may be delayed by the users time distance from UTC :) So we use the uptime seconds now.
Diffstat (limited to 'klibc_fixups.c')
-rw-r--r--klibc_fixups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/klibc_fixups.c b/klibc_fixups.c
index eaa240c183..c4d44bbc49 100644
--- a/klibc_fixups.c
+++ b/klibc_fixups.c
@@ -30,12 +30,14 @@
#include "udev.h"
#include "klibc_fixups.h"
+#include "udev_lib.h"
#include "logging.h"
#define PW_FILE "/etc/passwd"
#define GR_FILE "/etc/group"
#define UTMP_FILE "/var/run/utmp"
+_syscall1(int, sysinfo, struct sysinfo *, info);
/* return the id of a passwd style line, selected by the users name */
static unsigned long get_id_by_name(const char *uname, const char *dbfile)