| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino 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 // Support file for GNU libc. Most of this is noops or always | 5 // Support file for GNU libc. Most of this is noops or always |
| 6 // returning an error. The read and write functions can be hooked into | 6 // returning an error. The read and write functions can be hooked into |
| 7 // through weak functions. `gettimeofday` is implemented in terms of cmsis_os | 7 // through weak functions. `gettimeofday` is implemented in terms of cmsis_os |
| 8 // osKernelSysTick. | 8 // osKernelSysTick. |
| 9 | 9 |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 int _fork(void) { | 116 int _fork(void) { |
| 117 errno = EAGAIN; | 117 errno = EAGAIN; |
| 118 return -1; | 118 return -1; |
| 119 } | 119 } |
| 120 | 120 |
| 121 int _execve(char *name, char **argv, char **env) { | 121 int _execve(char *name, char **argv, char **env) { |
| 122 errno = ENOMEM; | 122 errno = ENOMEM; |
| 123 return -1; | 123 return -1; |
| 124 } | 124 } |
| OLD | NEW |