linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Doubts with sysfs(2)
@ 2010-06-27 10:51 Davidlohr Bueso
  2010-06-27 13:54 ` Michael Kerrisk
  0 siblings, 1 reply; 4+ messages in thread
From: Davidlohr Bueso @ 2010-06-27 10:51 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, tdyas-plZrL8KR64B+CIkdHa1UOg
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Doubts with sysfs(2)
  2010-06-27 10:51 Doubts with sysfs(2) Davidlohr Bueso
@ 2010-06-27 13:54 ` Michael Kerrisk
       [not found]   ` <AANLkTilFc81wcLlG_ELqjDb8xz1RZC_Y3Okh5ncCrOxH-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk @ 2010-06-27 13:54 UTC (permalink / raw)
  To: dave.bueso-Re5JQEeQqe8AvxtiuMwx3w
  Cc: tdyas-plZrL8KR64B+CIkdHa1UOg, linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Dave,

On Sun, Jun 27, 2010 at 12:51 PM, Davidlohr Bueso <dave.bueso-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 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.

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


--- a/man2/sysfs.2
+++ b/man2/sysfs.2
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Doubts with sysfs(2)
       [not found]   ` <AANLkTilFc81wcLlG_ELqjDb8xz1RZC_Y3Okh5ncCrOxH-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-08-29  9:25     ` Denis Barbier
       [not found]       ` <AANLkTi=kh3Tnuh+QZxsa8JpAv-RJ8mC9bYUe8cga-sux-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Barbier @ 2010-08-29  9:25 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On 2010/6/27 Michael Kerrisk wrote:
[...]
> --- a/man2/sysfs.2
> +++ b/man2/sysfs.2
> @@ -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

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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Doubts with sysfs(2)
       [not found]       ` <AANLkTi=kh3Tnuh+QZxsa8JpAv-RJ8mC9bYUe8cga-sux-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-08-29 12:39         ` Michael Kerrisk
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk @ 2010-08-29 12:39 UTC (permalink / raw)
  To: Denis Barbier; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Denis,

On Sun, Aug 29, 2010 at 11:25 AM, Denis Barbier <bouzim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On 2010/6/27 Michael Kerrisk wrote:
> [...]
>> --- a/man2/sysfs.2
>> +++ b/man2/sysfs.2
>> @@ -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
>
> Hello Michael,
>
> There is an extra 'the' just above, found in commit d1d721be.
>
> Denis

Thanks. Fixed.

Cheers,

Michael


-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-29 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-27 10:51 Doubts with sysfs(2) Davidlohr Bueso
2010-06-27 13:54 ` Michael Kerrisk
     [not found]   ` <AANLkTilFc81wcLlG_ELqjDb8xz1RZC_Y3Okh5ncCrOxH-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-29  9:25     ` Denis Barbier
     [not found]       ` <AANLkTi=kh3Tnuh+QZxsa8JpAv-RJ8mC9bYUe8cga-sux-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-29 12:39         ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).