Ananth N Mavinakayanahalli | 1 Mar 2004 12:34
Picon

Re: Sysfsutils should not check for libsysfs

On Sun, Feb 29, 2004 at 01:58:36PM +0200, Martin Schlemmer wrote:

Hello Martin,

> Hi
> 
> It should not check for external libsysfs (as it provides it anyhow),
> because then it links the utils (systool) and tests against the
> distributed libsysfs, and the external one.  In the case of an older
> sysfsutils installed, it links against both libs:
> 
> --
> # ldd /space/var/tmp/portage/sysfsutils-1.0.0/image/usr/bin/systool
>         linux-gate.so.1 =>  (0xffffe000)
>         libsysfs.so.1 => not found
>         libsysfs.so.0 => /usr/lib/libsysfs.so.0 (0x40011000)
>         libc.so.6 => /lib/libc.so.6 (0x414ff000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x41000000)
>         libsysfs.so.1 => not found
> --

Patch applied! Thanks for the same..

Thanks,
Ananth
--

-- 
Ananth Narayan
Linux Technology Center,
IBM Software Lab, INDIA

(Continue reading)

Ananth N Mavinakayanahalli | 1 Mar 2004 12:42
Picon

Re: unsigned char in sysfsutils, C++ compatibility

On Sat, Feb 28, 2004 at 01:14:19PM -0500, Lev Makhlis wrote:
> Hi,
> 
> I notice that at some point, string types were changed throughout libsysfs
> from char to unsigned char.  Was there a good reason for this?  The standard
> library functions operate on char (not unsigned char) pointers, and string
> literals have a default type of const char[] (not const unsigned char[]).
> The difference is not enforced in C (which is why sysfsutils compiles),
> but I think it's better to use the correct types in any case.  In C++, it's an
> error, and in fact makes libsysfs.h fail compilation when included from C++
> source.

I do remember we did this for a reason but am not able to recollect exactly
what the reason was :(  Will dig back and see why...

> 
> Speaking of C++, there's been a couple of  new function declarations with
> parameters named 'class' or 'new' since my last cleanup patch.
> The attached patch renames those.

Patch applied! Thanks for the same.. Need to be cautious about these :) 

Thanks,
Ananth
--

-- 
Ananth Narayan
Linux Technology Center,
IBM Software Lab, INDIA

-------------------------------------------------------
(Continue reading)

Ananth N Mavinakayanahalli | 31 Mar 2004 14:56
Picon

[ANNOUNCE] Libsysfs v1.1.0 release

Hello,

Version 1.1.0 of libsysfs, shipped as part of the sysfsutils 
package is now available at 

	http://linux-diag.sourceforge.net

Libsysfs provides a simple API to access the sysfs filesystem.

Changes in this release include:
	- Lots of security auditing for buffer overflows.
	- C++ compatibility fixes.
	- Remove check for installed libsysfs during build.

Thanks to everyone who have been providing patches and valuable 
feedback.

As always, comments and feedback are welcome.

Thanks,
Ananth
--

-- 
Ananth Narayan
Linux Technology Center,
IBM Software Lab, INDIA

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
(Continue reading)


Gmane