public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] Fix the prototype of personality(2)
@ 2008-03-08 12:04 WANG Cong
       [not found] ` <20080308.200447.90797012.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: WANG Cong @ 2008-03-08 12:04 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA


According to the source code of Linux kernel, the type of the
return value of personality(2) should be long instead of int.

Signed-off-by: WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

---

Index: man-pages-2.78/man2/personality.2
===================================================================
--- man-pages-2.78.orig/man2/personality.2
+++ man-pages-2.78/man2/personality.2
@@ -33,7 +33,7 @@ personality \- set the process execution
 .SH SYNOPSIS
 .B #include <sys/personality.h>
 .sp
-.BI "int personality(unsigned long " persona );
+.BI "long personality(unsigned long " persona );
 .SH DESCRIPTION
 Linux supports different execution domains, or personalities, for each
 process.
--
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] 5+ messages in thread

* Re: [Patch] Fix the prototype of personality(2)
       [not found] ` <20080308.200447.90797012.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2008-03-10  7:21   ` Michael Kerrisk
       [not found]     ` <cfd18e0f0803100021u3d28db41pcdf2c0b64aabeada-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Kerrisk @ 2008-03-10  7:21 UTC (permalink / raw)
  To: WANG Cong
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Cong,

On Sat, Mar 8, 2008 at 1:04 PM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>  According to the source code of Linux kernel, the type of the
>  return value of personality(2) should be long instead of int.

But in <sys/personality.h>, the return type is long...  So it seems to
me the page is correct.  Let me know if/why you still disagree.

Cheers,

Michael


>  Signed-off-by: WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
>  ---
>
>  Index: man-pages-2.78/man2/personality.2
>  ===================================================================
>  --- man-pages-2.78.orig/man2/personality.2
>  +++ man-pages-2.78/man2/personality.2
>  @@ -33,7 +33,7 @@ personality \- set the process execution
>   .SH SYNOPSIS
>   .B #include <sys/personality.h>
>   .sp
>  -.BI "int personality(unsigned long " persona );
>  +.BI "long personality(unsigned long " persona );
>   .SH DESCRIPTION
>   Linux supports different execution domains, or personalities, for each
>   process.
>



-- 
Michael Kerrisk
Maintainer of the Linux man-pages project
http://www.kernel.org/doc/man-pages/
Want to report a man-pages bug?  Look here:
http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
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] 5+ messages in thread

* Re: [Patch] Fix the prototype of personality(2)
       [not found]     ` <cfd18e0f0803100021u3d28db41pcdf2c0b64aabeada-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-03-10  7:24       ` WANG Cong
       [not found]         ` <20080310.152422.158004388.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: WANG Cong @ 2008-03-10  7:24 UTC (permalink / raw)
  To: mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

From: "Michael Kerrisk" <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Date: Mon, 10 Mar 2008 08:21:32 +0100

> Hi Cong,
> 
> On Sat, Mar 8, 2008 at 1:04 PM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> >  According to the source code of Linux kernel, the type of the
> >  return value of personality(2) should be long instead of int.
> 
> But in <sys/personality.h>, the return type is long...  So it seems to
> me the page is correct.  Let me know if/why you still disagree.
> 

Oh, I see.

It seems that glibc wraps it, right? And what's the relation between
kernel headers and glibc headers?

Thank you.
--
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] 5+ messages in thread

* Re: [Patch] Fix the prototype of personality(2)
       [not found]         ` <20080310.152422.158004388.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2008-03-10  8:10           ` Michael Kerrisk
       [not found]             ` <cfd18e0f0803100110s4101e6c9m71c20e9a737a5f79-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Kerrisk @ 2008-03-10  8:10 UTC (permalink / raw)
  To: WANG Cong
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Mar 10, 2008 at 8:24 AM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> From: "Michael Kerrisk" <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
>  Date: Mon, 10 Mar 2008 08:21:32 +0100
>
>
>  > Hi Cong,
>  >
>  > On Sat, Mar 8, 2008 at 1:04 PM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>  > >
>  > >  According to the source code of Linux kernel, the type of the
>  > >  return value of personality(2) should be long instead of int.
>  >
>  > But in <sys/personality.h>, the return type is long...  So it seems to
>  > me the page is correct.  Let me know if/why you still disagree.
>  >
>
>  Oh, I see.
>
>  It seems that glibc wraps it, right? And what's the relation between
>  kernel headers and glibc headers?

I'm not 100% sure of the details on this point.  Let me know if you find out.

Cheers,

Michael


-- 
Michael Kerrisk
Maintainer of the Linux man-pages project
http://www.kernel.org/doc/man-pages/
Want to report a man-pages bug?  Look here:
http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
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] 5+ messages in thread

* Re: [Patch] Fix the prototype of personality(2)
       [not found]             ` <cfd18e0f0803100110s4101e6c9m71c20e9a737a5f79-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-03-10  8:10               ` Michael Kerrisk
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk @ 2008-03-10  8:10 UTC (permalink / raw)
  To: WANG Cong
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Mar 10, 2008 at 9:10 AM, Michael Kerrisk
<mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
> On Mon, Mar 10, 2008 at 8:24 AM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>  > From: "Michael Kerrisk" <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
>  >  Date: Mon, 10 Mar 2008 08:21:32 +0100
>  >
>  >
>  >  > Hi Cong,
>  >  >
>  >  > On Sat, Mar 8, 2008 at 1:04 PM, WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>  >  > >
>  >  > >  According to the source code of Linux kernel, the type of the
>  >  > >  return value of personality(2) should be long instead of int.
>  >  >
>  >  > But in <sys/personality.h>, the return type is long...  So it seems to
>  >  > me the page is correct.  Let me know if/why you still disagree.
>  >  >
>  >
>  >  Oh, I see.
>  >
>  >  It seems that glibc wraps it, right? And what's the relation between
>  >  kernel headers and glibc headers?
>
>  I'm not 100% sure of the details on this point.  Let me know if you find out.

PS: Yes-- glibc wraps it...
--
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] 5+ messages in thread

end of thread, other threads:[~2008-03-10  8:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-08 12:04 [Patch] Fix the prototype of personality(2) WANG Cong
     [not found] ` <20080308.200447.90797012.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-03-10  7:21   ` Michael Kerrisk
     [not found]     ` <cfd18e0f0803100021u3d28db41pcdf2c0b64aabeada-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-10  7:24       ` WANG Cong
     [not found]         ` <20080310.152422.158004388.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-03-10  8:10           ` Michael Kerrisk
     [not found]             ` <cfd18e0f0803100110s4101e6c9m71c20e9a737a5f79-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-10  8:10               ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox