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