diff --git a/man2/shmctl.2 b/man2/shmctl.2 index d471a0f98..32115e41e 100644 --- a/man2/shmctl.2 +++ b/man2/shmctl.2 @@ -104,7 +104,7 @@ Valid values for .I cmd are: .br -.TP 12 +.TP 10 .B IPC_STAT Copy information from the kernel data structure associated with .I shmid @@ -151,7 +151,7 @@ will be set. .PP The caller \fImust\fP ensure that a segment is eventually destroyed; otherwise its pages that were faulted in will remain in memory or swap. -.TP +.TP 10 .BR IPC_INFO " (Linux-specific)" Returns information about system-wide shared memory limits and parameters in the structure pointed to by @@ -169,11 +169,12 @@ feature test macro is defined: struct shminfo { unsigned long shmmax; /* Maximum segment size */ - unsigned long shmmin; /* Minimum segment size; always 1 */ + unsigned long shmmin; /* Minimum segment size; + always 1 */ unsigned long shmmni; /* Maximum number of segments */ - unsigned long shmseg; /* Maximum number of segments that - a process can attach; unused - within kernel */ + unsigned long shmseg; /* Maximum number of segments + that a process can attach; + unused within kernel */ unsigned long shmall; /* Maximum number of pages of shared memory, system-wide */ }; @@ -205,18 +206,18 @@ feature test macro is defined: .in +4n struct shm_info { - int used_ids; /* # of currently existing - segments */ - unsigned long shm_tot; /* Total number of shared - memory pages */ - unsigned long shm_rss; /* # of resident shared - memory pages */ - unsigned long shm_swp; /* # of swapped shared - memory pages */ + int used_ids;/* # of currently existing + segments */ + unsigned long shm_tot; /* Total number of shared + memory pages */ + unsigned long shm_rss; /* # of resident shared + memory pages */ + unsigned long shm_swp; /* # of swapped shared + memory pages */ unsigned long swap_attempts; - /* Unused since Linux 2.4 */ + /* Unused since Linux 2.4 */ unsigned long swap_successes; - /* Unused since Linux 2.4 */ + /* Unused since Linux 2.4 */ }; .in .fi @@ -235,7 +236,7 @@ all shared memory segments on the system. The caller can prevent or allow swapping of a shared memory segment with the following \fIcmd\fP values: .br -.TP 12 +.TP 10 .BR SHM_LOCK " (Linux-specific)" Prevent swapping of the shared memory segment. The caller must fault in