summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/sys/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/include/sys/msg.h')
-rw-r--r--mdk-stage1/dietlibc/include/sys/msg.h48
1 files changed, 46 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/include/sys/msg.h b/mdk-stage1/dietlibc/include/sys/msg.h
index ea1e470b6..564fd9472 100644
--- a/mdk-stage1/dietlibc/include/sys/msg.h
+++ b/mdk-stage1/dietlibc/include/sys/msg.h
@@ -1,9 +1,53 @@
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
-#include <linux/msg.h>
#include <sys/ipc.h>
-#include <asm/page.h>
+
+/* ipcs ctl commands */
+#define MSG_STAT 11
+#define MSG_INFO 12
+
+/* msgrcv options */
+#define MSG_NOERROR 010000 /* no error if message is too big */
+#define MSG_EXCEPT 020000 /* recv any msg except of specified type.*/
+
+struct msqid_ds {
+ struct ipc_perm msg_perm;
+ struct msg *msg_first; /* first message on queue,unused */
+ struct msg *msg_last; /* last message in queue,unused */
+ time_t msg_stime; /* last msgsnd time */
+ time_t msg_rtime; /* last msgrcv time */
+ time_t msg_ctime; /* last change time */
+ unsigned long msg_lcbytes; /* Reuse junk fields for 32 bit */
+ unsigned long msg_lqbytes; /* ditto */
+ unsigned short msg_cbytes; /* current number of bytes on queue */
+ unsigned short msg_qnum; /* number of messages in queue */
+ unsigned short msg_qbytes; /* max number of bytes on queue */
+ pid_t msg_lspid; /* pid of last msgsnd */
+ pid_t msg_lrpid; /* last receive pid */
+};
+
+/* message buffer for msgsnd and msgrcv calls */
+struct msgbuf {
+ long mtype; /* type of message */
+ char mtext[1]; /* message text */
+};
+
+/* buffer for msgctl calls IPC_INFO, MSG_INFO */
+struct msginfo {
+ int msgpool;
+ int msgmap;
+ int msgmax;
+ int msgmnb;
+ int msgmni;
+ int msgssz;
+ int msgtql;
+ unsigned short msgseg;
+};
+
+#define MSGMNI 16 /* <= IPCMNI */ /* max # of msg queue identifiers */
+#define MSGMAX 8192 /* <= INT_MAX */ /* max size of message (bytes) */
+#define MSGMNB 16384 /* <= INT_MAX */ /* default max size of a message queue */
extern int msgctl (int msqid, int cmd, struct msqid_ds *buf) __THROW;
extern int msgget (key_t key, int msgflg) __THROW;
e?id=eac3e2367e57f09a0953841823f08f52eda2a89e'>update (Yukiko Bando)Thierry Vignaud2005-12-151-10/+11 | * update (Yukiko Bando)Thierry Vignaud2005-12-151-73/+80 | * updated pot filePablo Saratxaga2005-12-1525-836/+1085 | * updated pot filePablo Saratxaga2005-12-1546-1727/+2110 | * fixed encoding to UTF-8Pablo Saratxaga2005-12-152-322/+334 | * use Locale::gettext for dgettext, bindtextdomain and bind_textdomain_codeset ↵Pascal Rigaux2005-12-151-0/+2 | | | | | | | instead of module c (that way we can also use dngettext, and it's more modular) * s/maintain/keep/David Baudens2005-12-141-1/+1 | * updated Galician filePablo Saratxaga2005-12-141-1435/+493 | * UpdatedWilly Sudiarto Raharjo2005-12-091-4/+4 | * Updatd POT file.Funda Wang2005-12-0871-15127/+16276 | * add ndiswrapper in INSTALL section, commonly used for wireless cardsOlivier Blin2005-12-071-0/+1 | * don't try to install an old library (that is anyway pulled by other packages)Olivier Blin2005-12-071-1/+1 | * install nscd on laptopsFrederic Lepied2005-12-061-1/+1 | * NVU is the new defaut Web editor in Mandriva LinuxDavid Baudens2005-12-051-4/+1 | * *** empty log message ***José Melo2005-12-051-191/+93 | * UpdatedWilly Sudiarto Raharjo2005-12-051-2/+2 | * Updated POT file.Funda Wang2005-12-0471-7234/+7309 | * add cdrdao-gcdmaster to burn audio on gnomeFlorent Villard2005-12-011-1/+1 | * typo fixThierry Vignaud2005-11-301-2/+2 | * updateThierry Vignaud2005-11-301-10/+10 | * UpdatedWilly Sudiarto Raharjo2005-11-301-3/+3 | * Updated POT file.Funda Wang2005-11-3071-31195/+31581 | * Updated Malay translationSharuzzaman Ahmat Raslan2005-11-261-3162/+3569 | * updateThierry Vignaud2005-11-251-3/+3 | * Updated zh_CN translationFunda Wang2005-11-241-120/+4 | * adapt to MDV::PackdrakengPascal Rigaux2005-11-231-1/+3 | * *** empty log message ***José Melo2005-11-221-182/+94 | * updated Walloon file (better strings in drakfont)Pablo Saratxaga2005-11-211-12/+16 | * install aoss too when installing ALSAThierry Vignaud2005-11-211-2/+2 | * bpalogin is required for Telstra's BPA cable connectionsOlivier Blin2005-11-211-0/+1 | * UpdatedWilly Sudiarto Raharjo2005-11-191-3/+5 | * updateThierry Vignaud2005-11-182-13/+6 | * Updated POT fileThierry Vignaud2005-11-18