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 #include <sys/wait.h> | 9 #include <sys/wait.h> |
10 | 10 |
11 FILE* fopen$UNIX2003(const char* filename, const char* mode) { | 11 FILE* fopen$UNIX2003(const char* filename, const char* mode) { |
12 return fopen(filename, mode); | 12 return fopen(filename, mode); |
13 } | 13 } |
14 | 14 |
15 size_t fwrite$UNIX2003(const void* a, size_t b, size_t c, FILE* d) { | 15 size_t fwrite$UNIX2003(const void* a, size_t b, size_t c, FILE* d) { |
16 return fwrite(a, b, c, d); | 16 return fwrite(a, b, c, d); |
17 } | 17 } |
18 | 18 |
19 int fputs$UNIX2003(const char* restrict str, FILE* restrict stream) { | 19 int fputs$UNIX2003(const char* restrict str, FILE* restrict stream) { |
20 return fputs(str, stream); | 20 return fputs(str, stream); |
21 } | 21 } |
22 | 22 |
23 pid_t waitpid$UNIX2003(pid_t pid, int* status, int options) { | 23 pid_t waitpid$UNIX2003(pid_t pid, int* status, int options) { |
24 return waitpid(pid, status, options); | 24 return waitpid(pid, status, options); |
25 } | 25 } |
26 | 26 |
27 char* strerror$UNIX2003(int errnum) { | 27 char* strerror$UNIX2003(int errnum) { |
28 return strerror(errnum); | 28 return strerror(errnum); |
29 } | 29 } |
OLD | NEW |