Skip to contentSkip to conversation

Fix the prototype of personality(2)

PATCH In review WANG Cong 2 participants 5 messages Mar 8, 2008 – Mar 10, 2008 4 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

WANG Cong

author
#0 lore raw

PATCH 1/1 Fix the prototype of personality(2)

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

---

man2/personality.2 +1 -1
Index: 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20080308.200447.90797012.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

Hi Cong,

Quoted 3 lines · WANG Cong

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

Quoted 18 lines

---

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.

Signature · 9 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): cfd18e0f0803100021u3d28db41pcdf2c0b64aabeada-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#4 lore raw

From: "Michael Kerrisk" <mtk.manpages-gM/[email protected]>
Date: Mon, 10 Mar 2008 08:21:32 +0100

Quoted 10 lines

Hi Cong,

Quoted 3 lines · WANG Cong

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20080310.152422.158004388.xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#6 lore raw
Quoted 11 lines · WANG Cong

From: "Michael Kerrisk" <mtk.manpages-gM/[email protected]>
Date: Mon, 10 Mar 2008 08:21:32 +0100

Quoted 7 lines

Hi Cong,

Quoted 3 lines · WANG Cong

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

Quoted 8 lines
Quoted 3 lines

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

Signature · 9 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): cfd18e0f0803100110s4101e6c9m71c20e9a737a5f79-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
Quoted 17 lines · Michael Kerrisk
Quoted 15 lines · WANG Cong

From: "Michael Kerrisk" <mtk.manpages-gM/[email protected]>
Date: Mon, 10 Mar 2008 08:21:32 +0100

Quoted 10 lines

Hi Cong,

Quoted 3 lines · WANG Cong

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.

Quoted 6 lines
Quoted 4 lines

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html