Add const qualifier to data argument for msgsnd.
PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
This commit is contained in:
parent
5bdd667ffe
commit
b17c9cfa5e
@ -44,7 +44,7 @@
|
||||
.In sys/ipc.h
|
||||
.In sys/msg.h
|
||||
.Ft int
|
||||
.Fn msgsnd "int msqid" "void *msgp" "size_t msgsz" "int msgflg"
|
||||
.Fn msgsnd "int msqid" "const void *msgp" "size_t msgsz" "int msgflg"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn msgsnd
|
||||
|
@ -357,7 +357,7 @@
|
||||
224 MNOSTD BSD { int msgctl(int msqid, int cmd, \
|
||||
struct msqid_ds *buf); }
|
||||
225 MNOSTD BSD { int msgget(key_t key, int msgflg); }
|
||||
226 MNOSTD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \
|
||||
226 MNOSTD BSD { int msgsnd(int msqid, const void *msgp, size_t msgsz, \
|
||||
int msgflg); }
|
||||
227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
|
||||
long msgtyp, int msgflg); }
|
||||
|
@ -566,7 +566,7 @@ msgget(td, uap)
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct msgsnd_args {
|
||||
int msqid;
|
||||
void *msgp;
|
||||
const void *msgp;
|
||||
size_t msgsz;
|
||||
int msgflg;
|
||||
};
|
||||
@ -581,7 +581,7 @@ msgsnd(td, uap)
|
||||
register struct msgsnd_args *uap;
|
||||
{
|
||||
int msqid = uap->msqid;
|
||||
void *user_msgp = uap->msgp;
|
||||
const void *user_msgp = uap->msgp;
|
||||
size_t msgsz = uap->msgsz;
|
||||
int msgflg = uap->msgflg;
|
||||
int segs_needed, error = 0;
|
||||
|
@ -127,8 +127,7 @@ int msgctl(int, int, struct msqid_ds *);
|
||||
int msgget(key_t, int);
|
||||
/* XXX return value should be ssize_t. */
|
||||
int msgrcv(int, void *, size_t, long, int);
|
||||
/* XXX second parameter missing const type-qualifier. */
|
||||
int msgsnd(int, void *, size_t, int);
|
||||
int msgsnd(int, const void *, size_t, int);
|
||||
#if __BSD_VISIBLE
|
||||
int msgsys(int, ...);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user