5
Last change
on this file since 04da96c7 was
22bb1b61,
checked in by Joel Sherrill <joel@…>, on 01/19/16 at 18:11:47
|
posix/src/exec*: Remove all variants already in Newlib
The RTEMS build of Newlib includes implementations of all exec*()
variants. They rely on the _execve() support method. RTEMS already
had this and it returned ENOSYS. There is no functional change.
closes #2537.
|
-
Property mode set to
100644
|
File size:
904 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief _execve() |
---|
5 | * @ingroup POSIXAPI |
---|
6 | * |
---|
7 | * The Newlib C Library contains all of the exec*() variants and assumes |
---|
8 | * the underlying OS support provides _execve(). This single method |
---|
9 | * ensures that all exec*() variants return ENOSYS. |
---|
10 | */ |
---|
11 | |
---|
12 | /* |
---|
13 | * COPYRIGHT (c) 1989-2013,2016. |
---|
14 | * On-Line Applications Research Corporation (OAR). |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.org/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #if HAVE_CONFIG_H |
---|
22 | #include "config.h" |
---|
23 | #endif |
---|
24 | |
---|
25 | /* |
---|
26 | * Needed to get the prototype for this newlib helper method |
---|
27 | */ |
---|
28 | #define _COMPILING_NEWLIB |
---|
29 | |
---|
30 | #include <errno.h> |
---|
31 | #include <rtems/seterr.h> |
---|
32 | #include <sys/unistd.h> |
---|
33 | |
---|
34 | int _execve( |
---|
35 | const char *path, |
---|
36 | char *const argv[], |
---|
37 | char *const envp[] |
---|
38 | ) |
---|
39 | { |
---|
40 | (void) path; |
---|
41 | (void) argv; |
---|
42 | (void) envp; |
---|
43 | rtems_set_errno_and_return_minus_one( ENOSYS ); |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.