check: Remount file system if MOUNT_OPTIONS changed
[xfstests-dev.git] / include / dataascii.h
1 /*
2  * Copyright (c) 2000 Silicon Graphics, Inc.
3  * 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.
8  *
9  * This program is distributed in the hope that it would be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write the Free Software Foundation,
16  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18 #ifndef _DATAASCII_H_
19 #define _DATAASCII_H_
20
21 /***********************************************************************
22  * int dataasciigen(listofchars, buffer, size, offset)
23  *
24  * This function fills buffer with ascii characters.
25  * The ascii characters are obtained from listofchars or the CHARS array
26  *  if listofchars is NULL.
27  * Each char is selected by an index.  The index is the remainder
28  *  of count divided by the array size. 
29  * This method allows more than one process to write to a location
30  *  in a file without corrupting it for another process' point of view.
31  *
32  * The return value will be the number of character written in buffer
33  *  (size).
34  *
35  ***********************************************************************/
36 int dataasciigen(char *, char *, int, int);
37
38 /***********************************************************************
39  * int dataasciichk(listofchars, buffer, size, count, errmsg)
40  *
41  * This function checks the contents of a buffer produced by
42  *  dataasciigen.
43  *
44  * return values:
45  *      >= 0 : error at character count
46  *      < 0  : no error
47  ***********************************************************************/
48
49 int dataasciichk(char *, char *, int, int, char**);
50
51 #endif