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