Make the structure definitions in the man pages match the real code, and
remove no longer valid caution. Approved by: re (kensmith)
This commit is contained in:
parent
7850fa71f5
commit
8c8484d103
@ -71,12 +71,8 @@ struct msqid_ds {
|
||||
pid_t msg_lspid; /* pid of last msgsnd() */
|
||||
pid_t msg_lrpid; /* pid of last msgrcv() */
|
||||
time_t msg_stime; /* time of last msgsnd() */
|
||||
long msg_pad1;
|
||||
time_t msg_rtime; /* time of last msgrcv() */
|
||||
long msg_pad2;
|
||||
time_t msg_ctime; /* time of last msgctl() */
|
||||
long msg_pad3;
|
||||
long msg_pad4[4];
|
||||
};
|
||||
.Ed
|
||||
.Pp
|
||||
@ -89,11 +85,11 @@ structure is defined in
|
||||
and looks like this:
|
||||
.Bd -literal
|
||||
struct ipc_perm {
|
||||
unsigned short cuid; /* creator user id */
|
||||
unsigned short cgid; /* creator group id */
|
||||
unsigned short uid; /* user id */
|
||||
unsigned short gid; /* group id */
|
||||
unsigned short mode; /* r/w permission */
|
||||
uid_t cuid; /* creator user id */
|
||||
gid_t cgid; /* creator group id */
|
||||
uid_t uid; /* user id */
|
||||
gid_t gid; /* group id */
|
||||
mode_t mode; /* r/w permission */
|
||||
unsigned short seq; /* sequence # (to generate unique ipcid) */
|
||||
key_t key; /* user specified msg/sem/shm key */
|
||||
};
|
||||
|
@ -148,12 +148,9 @@ struct semid_ds {
|
||||
struct sem *sem_base; /* pointer to first semaphore in set */
|
||||
u_short sem_nsems; /* number of sems in set */
|
||||
time_t sem_otime; /* last operation time */
|
||||
long sem_pad1; /* SVABI/386 says I need this here */
|
||||
time_t sem_ctime; /* last change time */
|
||||
/* Times measured in secs since */
|
||||
/* 00:00:00 GMT, Jan. 1, 1970 */
|
||||
long sem_pad2; /* SVABI/386 says I need this here */
|
||||
long sem_pad3[4]; /* SVABI/386 says I need this here */
|
||||
};
|
||||
.Ed
|
||||
.Sh RETURN VALUES
|
||||
|
@ -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 ,
|
||||
|
Loading…
Reference in New Issue
Block a user