summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/README.mqueue
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-07-22 09:46:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-07-22 09:46:48 +0000
commit2b3e9d9b244e279ef5693a7cf5dacc7903164af5 (patch)
tree955e5242d4d08a8ec747c8350f55003bb9d4b519 /c/src/exec/posix/src/README.mqueue
parentRemove everything. (diff)
downloadrtems-2b3e9d9b244e279ef5693a7cf5dacc7903164af5.tar.bz2
Remove, moved to cpukit.
Diffstat (limited to 'c/src/exec/posix/src/README.mqueue')
-rw-r--r--c/src/exec/posix/src/README.mqueue38
1 files changed, 0 insertions, 38 deletions
diff --git a/c/src/exec/posix/src/README.mqueue b/c/src/exec/posix/src/README.mqueue
deleted file mode 100644
index 12c8afc03e..0000000000
--- a/c/src/exec/posix/src/README.mqueue
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# $Id$
-#
-
-This program should print out the default attribute settings for a
-POSIX message queue.
-
-#include <mqueue.h>
-#include <stdio.h>
-
-main()
-{
- mqd_t mqfd;
- struct mq_attr mqstat;
- int status;
-
- /* this should create it */
- mqfd = mq_open("myipc",O_WRONLY|O_CREAT,NULL);
- if ( (int)mqfd == -1 ) {
- perror( "Unable to open message queue" );
- exit( 1 );
- }
-
- status = mq_getattr(mqfd, &mqstat);
- if ( !status ) {
- printf( "mq_maxmsg: %d\n", mqstat.mq_maxmsg );
- printf( "mq_msgsize: %d\n", mqstat.mq_msgsize );
- printf( "mq_curmsgs: %d\n", mqstat.mq_curmsgs );
- } else {
- perror( "Unable to get attributes on message queue" );
- exit( 1 );
- }
-
- /* this should delete it */
- (void) mq_close( mqfd );
- exit( 0 );
-}
-