Systemd/libsysfs
dsteklof@us.ibm.com 8d8172514d [PATCH] patch for libsysfs sysfs directory handling
Here's a quick patch to:

1) Add an environment variable "SYSFS_PATH" that libsysfs will check
for when getting mount point before searching system's sysfs mount
point.

2) A quick fix to sysfs_get_link where the bug was.

I have tested this out with libsysfs and with udev. I couldn't test
with klibc because I haven't got the tree to build with klibc without
my changes either. I made the link but get an error finding
linux/linits.h. I will figure that out.

Please have a look at the patch. If it's agreeable, please test it. I
really want to add some generic path manipulation functions for the
sysfs_get_link error, rather than my patch's hack. But, I haven't had
time yet to do that. You really sounded like you needed this for
testing, so I'm sending it out to you. I should probably add a
function to set the env variable(?).
2005-04-26 21:06:23 -07:00
..
dlist.c [PATCH] make libsysfs build cleanly 2005-04-26 21:05:23 -07:00
dlist.h [PATCH] make libsysfs build cleanly 2005-04-26 21:05:23 -07:00
LGPL [PATCH] added libsysfs code from sysutils-0.1.1-071803 release 2005-04-26 21:01:39 -07:00
libsysfs.h [PATCH] patch for libsysfs sysfs directory handling 2005-04-26 21:06:23 -07:00
sysfs.h [PATCH] libsysfs does not need mntent.h in it's header file. 2005-04-26 21:06:22 -07:00
sysfs_bus.c [PATCH] new version of libsysfs patch 2005-04-26 21:01:42 -07:00
sysfs_class.c [PATCH] new version of libsysfs patch 2005-04-26 21:01:42 -07:00
sysfs_device.c [PATCH] new version of libsysfs patch 2005-04-26 21:01:42 -07:00
sysfs_dir.c [PATCH] klibc specific tweaks 2005-04-26 21:06:22 -07:00
sysfs_driver.c [PATCH] new version of libsysfs patch 2005-04-26 21:01:42 -07:00
sysfs_utils.c [PATCH] patch for libsysfs sysfs directory handling 2005-04-26 21:06:23 -07:00