| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include <stdio.h> | 5 #include <stdio.h> |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 | 9 |
| 10 FILE* fopen$UNIX2003(const char* filename, const char* mode) { | 10 FILE* fopen$UNIX2003(const char* filename, const char* mode) { |
| 11 return fopen(filename, mode); | 11 return fopen(filename, mode); |
| 12 } | 12 } |
| 13 | 13 |
| 14 size_t fwrite$UNIX2003(const void* a, size_t b, size_t c, FILE* d) { | 14 size_t fwrite$UNIX2003(const void* a, size_t b, size_t c, FILE* d) { |
| 15 return fwrite(a, b, c, d); | 15 return fwrite(a, b, c, d); |
| 16 } | 16 } |
| 17 | 17 |
| 18 int fputs$UNIX2003(const char* restrict str, FILE* restrict stream) { | 18 int fputs$UNIX2003(const char* restrict str, FILE* restrict stream) { |
| 19 return fputs(str, stream); | 19 return fputs(str, stream); |
| 20 } | 20 } |
| OLD | NEW |