#include <sys/stat.h>#include <sys/types.h>#include <sys/ipc.h>#include <sys/msg.h>#include <sys/wait.h>#include <signal.h>#include <errno.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include "test.h"#include "usctest.h"Go to the source code of this file.
Defines | |
| #define | _XOPEN_SOURCE 500 |
| #define | MAXNREPS 1000 |
| #define | MAXNPROCS 1000000 |
| #define | MAXNKIDS 10 |
| #define | FAIL 1 |
| #define | PASS 0 |
| #define | BUFSIZE 512 |
Functions | |
| int | dotest (key_t, int) |
| int | doreader (long, int, int) |
| int | dowriter (long, int, int) |
| int | fill_buffer (char *, char, int) |
| int | verify (char *, char, int, int) |
| void | setup () |
| void | cleanup () |
| void | term (int) |
| void | cleanup_msgqueue (int i, int tid) |
| int | main (int argc, argv) |
Variables | |
| char * | TCID = "msgctl09" |
| int | TST_TOTAL = 1 |
| int | Tst_count |
| int | exp_enos [] = {0} |
| key_t | keyarray [MAXNPROCS] |
| struct { | |
| long type | |
| struct { | |
| char len | |
| char pbytes [99] | |
| } data | |
| } | buffer |
| int | pidarray [MAXNPROCS] |
| int | rkidarray [MAXNKIDS] |
| int | wkidarray [MAXNKIDS] |
| int | tid |
| int | nprocs |
| int | nreps |
| int | nkids |
| int | MSGMNI |
| int | procstat |
| #define _XOPEN_SOURCE 500 |
Definition at line 38 of file msgctl09.c.
| #define BUFSIZE 512 |
Definition at line 627 of file msgctl09.c.
| #define FAIL 1 |
Definition at line 60 of file msgctl09.c.
| #define MAXNKIDS 10 |
Definition at line 59 of file msgctl09.c.
| #define MAXNPROCS 1000000 |
Definition at line 55 of file msgctl09.c.
| #define MAXNREPS 1000 |
Definition at line 53 of file msgctl09.c.
| #define PASS 0 |
Definition at line 61 of file msgctl09.c.
| void cleanup_msgqueue | ( | int | i, | |
| int | tid | |||
| ) |
Definition at line 321 of file msgctl09.c.
| int doreader | ( | long | key, | |
| int | type, | |||
| int | child | |||
| ) |
Definition at line 468 of file msgctl09.c.
| int dotest | ( | key_t | key, | |
| int | child_process | |||
| ) |
| int dowriter | ( | long | key, | |
| int | type, | |||
| int | child | |||
| ) |
Definition at line 513 of file msgctl09.c.
| int fill_buffer | ( | char * | buf, | |
| char | val, | |||
| int | size | |||
| ) |
Definition at line 407 of file msgctl08.c.
| int main | ( | int argc | , | |
| argv | ||||
| ) |
Definition at line 117 of file msgctl09.c.
| void setup | ( | void | ) |
Definition at line 130 of file msgctl01.c.
| void term | ( | int | sig | ) |
| int verify | ( | char * | buf, | |
| char | val, | |||
| int | size, | |||
| int | child | |||
| ) |
Definition at line 428 of file msgctl08.c.
| struct { ... } buffer |
| struct { ... } data |
| int exp_enos[] = {0} |
Definition at line 80 of file msgctl09.c.
| key_t keyarray[MAXNPROCS] |
Definition at line 83 of file msgctl09.c.
| char len |
Definition at line 88 of file msgctl09.c.
| int MSGMNI |
Definition at line 97 of file msgctl09.c.
| int nkids |
Definition at line 97 of file msgctl09.c.
| int nprocs |
Definition at line 97 of file msgctl09.c.
| int nreps |
Definition at line 97 of file msgctl09.c.
| char pbytes[99] |
Definition at line 89 of file msgctl09.c.
| int pidarray[MAXNPROCS] |
Definition at line 93 of file msgctl09.c.
| int procstat |
Definition at line 98 of file msgctl09.c.
| int rkidarray[MAXNKIDS] |
Definition at line 94 of file msgctl09.c.
| char* TCID = "msgctl09" |
Definition at line 76 of file msgctl09.c.
| int tid |
Definition at line 96 of file msgctl09.c.
| int TST_TOTAL = 1 |
Definition at line 77 of file msgctl09.c.
| long type |
Definition at line 86 of file msgctl09.c.
| int wkidarray[MAXNKIDS] |
Definition at line 95 of file msgctl09.c.
1.5.8