Integer type name change.
[silc.git] / lib / silcutil / silcfileutil.h
1 /*
2
3   silcfileutil.h 
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 1997 - 2002 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 /****h* silcutil/SilcFileUtilAPI
21  *
22  * DESCRIPTION
23  *
24  *
25  ***/
26
27 #ifndef SILCFILEUTIL_H
28 #define SILCFILEUTIL_H
29
30 /* Prototypes */
31
32 int silc_file_open(const char *filename, int flags);
33 int silc_file_open_mode(const char *filename, int flags, int mode);
34 int silc_file_read(int fd, unsigned char *buf, SilcUInt32 buf_len);
35 int silc_file_write(int fd, const char *buffer, SilcUInt32 len);
36 int silc_file_close(int fd);
37 char *silc_file_readfile(const char *filename, SilcUInt32 *return_len);
38 int silc_file_writefile(const char *filename, const char *buffer, SilcUInt32 len);
39 int silc_file_writefile_mode(const char *filename, const char *buffer, 
40                              SilcUInt32 len, int mode);
41 SilcUInt64 silc_file_size(const char *filename);
42
43 #endif /* SILCFILEUTIL_H */