Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
|
Mark Seaborn
2013/08/23 15:45:22
The naming style in NaCl is to use "_" not "-" in
Petr Hosek
2013/08/23 21:35:07
Dropped the "stub" suffix.
| |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 | 7 |
| 8 /* | 8 /* |
| 9 * Stub routine for `_execve' for application porting support. | 9 * Stub routine for `_execve' for application porting support. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 #include <unistd.h> | 12 #include <unistd.h> |
| 13 #include <errno.h> | 13 #include <errno.h> |
| 14 | 14 |
| 15 int _execve(const char *name, char * const argv[], char * const envp[]) { | 15 int _execve(const char *name, char * const argv[], char * const envp[]) { |
| 16 errno = ENOSYS; | 16 errno = ENOSYS; |
| 17 return -1; | 17 return -1; |
| 18 } | 18 } |
| 19 | |
| 20 #include "native_client/src/untrusted/nosys/warning.h" | |
| 21 stub_warning(_execve); | |
| OLD | NEW |