third_party/modest/source/myport/posix/mycore/io.c

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 19 SCAR 0
CC
0
Cov
0%
CRAP 0
« third_party/modest/source/myhtml/tokenizer_script.c ↑ Summary third_party/modest/source/myurl/host.c »
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 <stdarg.h>
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 }
« third_party/modest/source/myhtml/tokenizer_script.c ↑ Summary third_party/modest/source/myurl/host.c »