Doubts with sysfs(2)
Hi,
I recently ran into the sysfs(2) call and noticed that the manpage does not specify what header file(s) to include to use it. Now, is this because of the lack of libc/glibc support (hence no wrapper available)?
If so, I think we should add this problem in the BUGS section of the page, and put something like:
syscall(SYS_sysfs, number);
Any comments would be appreciated.
Thanks,
Davidlohr
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Dave,
Quoted 6 lines · Davidlohr Bueso
Hi,
I recently ran into the sysfs(2) call and noticed that the manpage does not specify what header file(s) to include to use it. Now, is this because of the lack of libc/glibc support (hence no wrapper available)?
Quoted 6 lines
If so, I think we should add this problem in the BUGS section of the page, and put something like:
syscall(SYS_sysfs, number);Any comments would be appreciated.
sysfs() is obsolete. Probably nothing uses it any more, and nothing new should, so explaining how to use it seems redundant. What I did do was clarify that it is obsolete. The change below is for man-pages-3.26.
Cheers,
Michael
man2/sysfs.2 +5 -5
@@ -90,12 +90,12 @@ is invalid. .SH "CONFORMING TO" SVr4. .SH NOTES -On Linux with the -.I proc -file system mounted on +This System-V derived system call is obsolete; don't use it. +On systems with .IR /proc , -the same information can be derived from -.IR /proc/filesystems . +the the same information can be obtained via +.IR /proc/filesystems ; +use that interface instead. .SH BUGS There is no libc or glibc support. There is no way to guess how large \fIbuf\fP should be.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
On 2010/6/27 Michael Kerrisk wrote:
[...]
Quoted 12 lines
man2/sysfs.2 +0
-0@@ -90,12 +90,12 @@ is invalid..SH "CONFORMING TO"
SVr4.
.SH NOTESman2/sysfs.2 +2
-3-On Linux with the -.I proc -file system mounted on +This System-V derived system call is obsolete; don't use it. +On systems with.IR /proc ,
man2/sysfs.2 is invalid. · line 96
Quoted 3 lines
man2/sysfs.2 +1
-2-the same information can be derived from -.IR /proc/filesystems . +the the same information can be obtained via
Hello Michael,
There is an extra 'the' just above, found in commit d1d721be.
Denis
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Denis,
Quoted 20 lines · Denis Barbier
On 2010/6/27 Michael Kerrisk wrote:
[...]Quoted 12 lines
man2/sysfs.2 +0
-0@@ -90,12 +90,12 @@ is invalid..SH "CONFORMING TO"
SVr4.
.SH NOTESman2/sysfs.2 +2
-3-On Linux with the -.I proc -file system mounted on +This System-V derived system call is obsolete; don't use it. +On systems with.IR /proc ,
man2/sysfs.2 is invalid. · line 96
Quoted 3 lines
man2/sysfs.2 +1
-2-the same information can be derived from -.IR /proc/filesystems . +the the same information can be obtained viaHello Michael,
Quoted 3 lines
There is an extra 'the' just above, found in commit
d1d721be.Denis
Thanks. Fixed.
Cheers,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface" http://blog.man7.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html