diff options
author | kib <kib@FreeBSD.org> | 2009-06-29 18:54:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-06-29 18:54:17 +0000 |
commit | 8eb4412c3f17561dfaafef706ac9142086068e62 (patch) | |
tree | 71c8cd4991bc25f40a9a88bd3adad87ee2cfa271 /lib/libc/sys/shmctl.2 | |
parent | 49f1934625b5e0ef669dd50385840fa4a71a85f3 (diff) | |
download | FreeBSD-src-8eb4412c3f17561dfaafef706ac9142086068e62.zip FreeBSD-src-8eb4412c3f17561dfaafef706ac9142086068e62.tar.gz |
Make the structure definitions in the man pages match the real code, and
remove no longer valid caution.
Approved by: re (kensmith)
Diffstat (limited to 'lib/libc/sys/shmctl.2')
-rw-r--r-- | lib/libc/sys/shmctl.2 | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libc/sys/shmctl.2 b/lib/libc/sys/shmctl.2 index 2ac7d05..d3299af 100644 --- a/lib/libc/sys/shmctl.2 +++ b/lib/libc/sys/shmctl.2 @@ -100,14 +100,13 @@ structure is defined as follows: .Bd -literal struct shmid_ds { struct ipc_perm shm_perm; /* operation permission structure */ - int shm_segsz; /* size of segment in bytes */ + size_t shm_segsz; /* size of segment in bytes */ pid_t shm_lpid; /* process ID of last shared memory op */ pid_t shm_cpid; /* process ID of creator */ - short shm_nattch; /* number of current attaches */ + int shm_nattch; /* number of current attaches */ time_t shm_atime; /* time of last shmat() */ time_t shm_dtime; /* time of last shmdt() */ time_t shm_ctime; /* time of last change by shmctl() */ - void *shm_internal; /* sysv stupidity */ }; .Ed .Sh RETURN VALUES @@ -133,16 +132,6 @@ the shared memory segment's owner or creator. Permission denied due to mismatch between operation and mode of shared memory segment. .El -.Sh "BUGS" -The segment size has size_t type. -The shm_segsz member of the -.Vt shmid_ds -structure has type int, which is too short to represent the full range -of values for a segment size. -If shared memory limits are raised to allow segments with size > 2 GB -to be created, be aware that IPC_STAT call may return a truncated value -for shm_segsz. -.El .Sh "SEE ALSO" .Xr shmat 2 , .Xr shmdt 2 , |