aboutsummaryrefslogtreecommitdiff
path: root/include/linux/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/msg.h')
-rw-r--r--include/linux/msg.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/msg.h b/include/linux/msg.h
index 7a4b9e97d29..f3f302f9c19 100644
--- a/include/linux/msg.h
+++ b/include/linux/msg.h
@@ -6,10 +6,10 @@
/* one msg_msg structure for each message */
struct msg_msg {
- struct list_head m_list;
- long m_type;
- int m_ts; /* message text size */
- struct msg_msgseg* next;
+ struct list_head m_list;
+ long m_type;
+ size_t m_ts; /* message text size */
+ struct msg_msgseg *next;
void *security;
/* the actual message follows immediately */
};
@@ -34,7 +34,9 @@ struct msg_queue {
/* Helper routines for sys_msgsnd and sys_msgrcv */
extern long do_msgsnd(int msqid, long mtype, void __user *mtext,
size_t msgsz, int msgflg);
-extern long do_msgrcv(int msqid, long *pmtype, void __user *mtext,
- size_t msgsz, long msgtyp, int msgflg);
+extern long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp,
+ int msgflg,
+ long (*msg_fill)(void __user *, struct msg_msg *,
+ size_t));
#endif /* _LINUX_MSG_H */