• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) International Business Machines  Corp., 2002
3  * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it would be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write the Free Software Foundation,
17  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19 
20 #ifndef __LIBMSGCTL_H__
21 #define __LIBMSGCTL_H__
22 
23 #define FAIL	1
24 #define PASS	0
25 
26 struct mbuffer {
27 	long type;
28 	struct {
29 		char len;
30 		char pbytes[99];
31 	} data;
32 };
33 
34 int doreader(long key, int tid, long type, int child, int nreps);
35 int dowriter(long key, int tid, long type, int child, int nreps);
36 int fill_buffer(char *buf, char val, int size);
37 int verify(char *buf, char val, int size, int child);
38 
39 #endif /*__LIBMSGCTL_H__ */
40