File Coverage

third_party/modest/source/myport/posix/mycore/io.c
Criterion Covered Total %
statement 0 19 0.0
branch n/a
condition n/a
subroutine n/a
pod n/a
total 0 19 0.0


line stmt bran cond sub pod time code
1             /*
2             Copyright (C) 2015-2017 Alexander Borisov
3            
4             This library is free software; you can redistribute it and/or
5             modify it under the terms of the GNU Lesser General Public
6             License as published by the Free Software Foundation; either
7             version 2.1 of the License, or (at your option) any later version.
8            
9             This library is distributed in the hope that it will be useful,
10             but WITHOUT ANY WARRANTY; without even the implied warranty of
11             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12             Lesser General Public License for more details.
13            
14             You should have received a copy of the GNU Lesser General Public
15             License along with this library; if not, write to the Free Software
16             Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17            
18             Author: lex.borisov@gmail.com (Alexander Borisov)
19             */
20              
21             #include "mycore/myosi.h"
22             #include
23              
24             /* FILE */
25 0           FILE * mycore_fopen(const char *filename, const char *mode)
26             {
27 0           return fopen(filename, mode);
28             }
29              
30 0           int mycore_fclose(FILE *stream)
31             {
32 0           return fclose(stream);
33             }
34              
35 0           size_t mycore_fread(void *buffer, size_t size, size_t count, FILE *stream)
36             {
37 0           return fread(buffer, size, count, stream);
38             }
39              
40 0           size_t mycore_fwrite(const void *buffer, size_t size, size_t count, FILE *stream)
41             {
42 0           return fwrite(buffer, size, count, stream);
43             }
44              
45 0           int mycore_fflush(FILE *stream)
46             {
47 0           return fflush(stream);
48             }
49              
50 0           int mycore_fseek(FILE* stream, long offset, int origin)
51             {
52 0           return fseek(stream, offset, origin);
53             }
54              
55 0           long mycore_ftell(FILE* stream)
56             {
57 0           return ftell(stream);
58             }
59              
60 0           int mycore_ferror(FILE *stream)
61             {
62 0           return ferror(stream);
63             }
64              
65             /* setbuf */
66 0           void mycore_setbuf(FILE *stream, char *buffer)
67             {
68 0           setbuf(stream, buffer);
69 0           }