1f08c3bdfSopenharmony_ci/*
2f08c3bdfSopenharmony_ci *   Copyright (c) Cyril Hrubis chrubis@suse.cz 2009
3f08c3bdfSopenharmony_ci *
4f08c3bdfSopenharmony_ci *   This program is free software;  you can redistribute it and/or modify
5f08c3bdfSopenharmony_ci *   it under the terms of the GNU General Public License as published by
6f08c3bdfSopenharmony_ci *   the Free Software Foundation; either version 2 of the License, or
7f08c3bdfSopenharmony_ci *   (at your option) any later version.
8f08c3bdfSopenharmony_ci *
9f08c3bdfSopenharmony_ci *   This program is distributed in the hope that it will be useful,
10f08c3bdfSopenharmony_ci *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
11f08c3bdfSopenharmony_ci *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
12f08c3bdfSopenharmony_ci *   the GNU General Public License for more details.
13f08c3bdfSopenharmony_ci *
14f08c3bdfSopenharmony_ci *   You should have received a copy of the GNU General Public License
15f08c3bdfSopenharmony_ci *   along with this program;  if not, write to the Free Software
16f08c3bdfSopenharmony_ci *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17f08c3bdfSopenharmony_ci */
18f08c3bdfSopenharmony_ci
19f08c3bdfSopenharmony_ci/*
20f08c3bdfSopenharmony_ci * This small library was created in order to put all code that's duplicated in
21f08c3bdfSopenharmony_ci * ftestXX.c files here.
22f08c3bdfSopenharmony_ci */
23f08c3bdfSopenharmony_ci
24f08c3bdfSopenharmony_ci#ifndef __LIBFTEST_H__
25f08c3bdfSopenharmony_ci#define __LIBFTEST_H__
26f08c3bdfSopenharmony_ci
27f08c3bdfSopenharmony_cistruct iovec;
28f08c3bdfSopenharmony_ci
29f08c3bdfSopenharmony_ci/*
30f08c3bdfSopenharmony_ci * Dump content of iov structure.
31f08c3bdfSopenharmony_ci */
32f08c3bdfSopenharmony_civoid ft_dumpiov(struct iovec *iov);
33f08c3bdfSopenharmony_ci
34f08c3bdfSopenharmony_ci/*
35f08c3bdfSopenharmony_ci * Dump bits string.
36f08c3bdfSopenharmony_ci */
37f08c3bdfSopenharmony_civoid ft_dumpbits(void *bits, size_t size);
38f08c3bdfSopenharmony_ci
39f08c3bdfSopenharmony_ci/*
40f08c3bdfSopenharmony_ci * Do logical or of hold and bits (of size)
41f08c3bdfSopenharmony_ci * fields and store result into hold field.
42f08c3bdfSopenharmony_ci */
43f08c3bdfSopenharmony_civoid ft_orbits(char *hold, char *bits, int size);
44f08c3bdfSopenharmony_ci
45f08c3bdfSopenharmony_ci/*
46f08c3bdfSopenharmony_ci * Dumps buffer in hexadecimal format.
47f08c3bdfSopenharmony_ci */
48f08c3bdfSopenharmony_civoid ft_dumpbuf(char *buf, int csize);
49f08c3bdfSopenharmony_ci
50f08c3bdfSopenharmony_ci/*
51f08c3bdfSopenharmony_ci * Creates filename from path and numbers.
52f08c3bdfSopenharmony_ci */
53f08c3bdfSopenharmony_civoid ft_mkname(char *name, char *dirname, int me, int idx);
54f08c3bdfSopenharmony_ci
55f08c3bdfSopenharmony_ci#endif /* __LIBFTEST_H__ */
56