Package: manpages-dev
Version: 2.39-1
Severity: wishlist

Hi,

The prctl(2) manpage is missing some new options and the versions
when some of those options were introduced, I've added accuracy to
some of the other versions. Attached you can find a patch which
fixes those.

regards,
guillem
--- man2/prctl.2        2006-08-28 07:19:32.000000000 +0300
+++ man2/prctl.2        2006-08-30 04:28:22.000000000 +0300
@@ -26,11 +26,13 @@
 .\" Modified 27 Jun 02, Michael Kerrisk
 .\"    Added PR_SET_DUMPABLE, PR_GET_DUMPABLE, 
 .\"    PR_SET_KEEPCAPS, PR_GET_KEEPCAPS
+.\" Modified 2006-08-30 Guillem Jover <[EMAIL PROTECTED]>
+.\"    Updated Linux versions where the options where introduced.
+.\"    Added PR_SET_TIMING, PR_GET_TIMING, PR_SET_NAME, PR_GET_NAME,
+.\"    PR_SET_UNALIGN, PR_GET_UNALIGN, PR_SET_FPEMU, PR_GET_FPEMU,
+.\"    PR_SET_FPEXC, PR_GET_FPEXC
 .\"
-.\" FIXME The following (applicable only on IA-64) are not currently
-.\" described: PR_SET_UNALIGN, PR_GET_UNALIGN, PR_SET_FPEMU, PR_GET_FPEMU
-.\"
-.TH PRCTL 2 2002-06-27 "Linux 2.4.18" "Linux Programmer's Manual"
+.TH PRCTL 2 2006-08-30 "Linux 2.6.17" "Linux Programmer's Manual"
 .SH NAME
 prctl \- operations on a process
 .SH SYNOPSIS
@@ -56,12 +58,12 @@ This value is cleared upon a 
 .BR fork ().
 .TP
 .B PR_GET_PDEATHSIG
-(since Linux 2.3.15)
+(Since Linux 2.3.15)
 Read the current value of the parent process death signal
 into the (int *) \fIarg2\fP.
 .TP
 .B PR_SET_DUMPABLE
-(Since Linux 2.4)
+(Since Linux 2.3.20)
 Set the state of the flag determining whether core dumps are produced
 for this process upon delivery of a signal whose default behaviour is
 to produce a core dump.
@@ -81,7 +83,7 @@ in
 .BR proc (5).)
 .TP
 .B PR_GET_DUMPABLE
-(Since Linux 2.4)
+(Since Linux 2.3.20)
 Return (as the function result) the current state of the calling
 process's dumpable flag.
 .\" Since Linux 2.6.13, the dumpable flag can have the value 2, 
@@ -89,6 +91,7 @@ process's dumpable flag.
 .\" flags has a non-zero value.  This was fixed in 2.6.14.
 .TP
 .B PR_SET_KEEPCAPS
+(Since Linux 2.2.18)
 Set the state of the process's "keep capabilities" flag,
 which determines whether the process's effective and permitted
 capability sets are cleared when a change is made to the process's user IDs
@@ -99,8 +102,64 @@ all become non-zero when at least one of
 must be either 0 (capabilities are cleared) or 1 (capabilities are kept).
 .TP
 .B PR_GET_KEEPCAPS
+(Since Linux 2.2.18)
 Return (as the function result) the current state of the calling process's
 "keep capabilities" flag.
+.TP
+.B PR_SET_TIMING
+Set whether to use (normal, traditional) statistical process timing or
+accurate timestamp based process timing, by passing \fBPR_TIMING_STATISTICAL\fP
+or \fBPR_TIMING_TIMESTAMP\fP to \fIarg2\fP.
+.TP
+.B PR_GET_TIMING
+Return (as the function result) which process timing method is currently
+in use.
+.TP
+.B PR_SET_NAME
+(Since Linux 2.6.9)
+Set the process name for the current process to \fIarg2\fP.
+.TP
+.B PR_GET_NAME
+(Since Linux 2.6.11)
+Get the process name for the current process from \fIarg2\fP.
+.TP
+.B PR_SET_UNALIGN
+(Since Linux 2.3.48, only on parisc and ia64)
+Set unaligned access control bits to \fIarg2\fP. Pass
+\fBPR_UNALIGN_NOPRINT\fP to silently fix up unaligned user accesses, or
+\fBPR_UNALIGN_SIGBUS\fP to generate SIGBUS on unaligned user access.
+.TP
+.B PR_GET_UNALIGN
+(Since Linux 2.3.48, only on parisc and ia64)
+Get unaligned access control bits from \fIarg2\fP.
+.TP
+.B PR_SET_FPEMU
+(Since Linux 2.4.18, 2.5.9, only on ia64)
+Set floating-point emulation control bits to \fIarg2\fP.
+Pass \fBPR_FPEMU_NOPRINT\fP to silently emulate fp operations accesses, or
+\fBPR_FPEMU_SIGFPE\fP to not emulate fp operations and send SIGFPE instead.
+.TP
+.B PR_GET_FPEMU
+(Since Linux 2.4.18, 2.5.9, only on ia64)
+Get floating-point emulation control bits from \fIarg2\fP.
+.TP
+.B PR_SET_FPEXC
+(Since Linux 2.4.21, 2.5.32, only on powerpc)
+Set floating-point exception mode to \fIarg2\fP. Pass
+\fBPR_FP_EXC_SW_ENABLE\fP to use FPEXC for FP exception enables,
+\fBPR_FP_EXC_DIV\fP for floating point divide by zero,
+\fBPR_FP_EXC_OVF\fP for floating point overflow,
+\fBPR_FP_EXC_UND\fP for floating point underflow,
+\fBPR_FP_EXC_RES\fP for floating point inexact result,
+\fBPR_FP_EXC_INV\fP for floating point invalid operation,
+\fBPR_FP_EXC_DISABLED\fP for FP exceptions disabled,
+\fBPR_FP_EXC_NONRECOV\fP for async non-recoverable exception mode,
+\fBPR_FP_EXC_ASYNC\fP for async recoverable exception mode,
+\fBPR_FP_EXC_PRECISE\fP for precise exception mode.
+.TP
+.B PR_GET_FPEXC
+(Since Linux 2.4.21, 2.5.32, only on powerpc)
+Get floating-point exception mode from \fIarg2\fP.
 .SH "RETURN VALUE"
 .B PR_GET_DUMPABLE
 and

Reply via email to