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