From 97149ba590564355c631e0902149710dd73862f5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 25 Sep 1998 13:17:32 +0000 Subject: Added ENOSYS stubs for a number of process routines. --- cpukit/posix/src/execl.c | 17 +++++++++++++++++ cpukit/posix/src/execle.c | 17 +++++++++++++++++ cpukit/posix/src/execlp.c | 16 ++++++++++++++++ cpukit/posix/src/execv.c | 16 ++++++++++++++++ cpukit/posix/src/execve.c | 18 ++++++++++++++++++ cpukit/posix/src/execvp.c | 16 ++++++++++++++++ cpukit/posix/src/fork.c | 14 ++++++++++++++ cpukit/posix/src/pthreadatfork.c | 18 ++++++++++++++++++ 8 files changed, 132 insertions(+) create mode 100644 cpukit/posix/src/execl.c create mode 100644 cpukit/posix/src/execle.c create mode 100644 cpukit/posix/src/execlp.c create mode 100644 cpukit/posix/src/execv.c create mode 100644 cpukit/posix/src/execve.c create mode 100644 cpukit/posix/src/execvp.c create mode 100644 cpukit/posix/src/fork.c create mode 100644 cpukit/posix/src/pthreadatfork.c (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/execl.c b/cpukit/posix/src/execl.c new file mode 100644 index 0000000000..af26b539d5 --- /dev/null +++ b/cpukit/posix/src/execl.c @@ -0,0 +1,17 @@ +/* + * execl() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execl( + const char *path, + const char *arg, + ... +) +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/execle.c b/cpukit/posix/src/execle.c new file mode 100644 index 0000000000..94b0ede939 --- /dev/null +++ b/cpukit/posix/src/execle.c @@ -0,0 +1,17 @@ +/* + * execle() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execle( + const char *path, + char const *arg, + ... +) +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/execlp.c b/cpukit/posix/src/execlp.c new file mode 100644 index 0000000000..0967aa8201 --- /dev/null +++ b/cpukit/posix/src/execlp.c @@ -0,0 +1,16 @@ +/* + * execlp() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execlp( + const char *file, + const char *arg, + ... +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/execv.c b/cpukit/posix/src/execv.c new file mode 100644 index 0000000000..0d580ba882 --- /dev/null +++ b/cpukit/posix/src/execv.c @@ -0,0 +1,16 @@ +/* + * execv() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execv( + const char *file, + char *const argv[], + ... +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/execve.c b/cpukit/posix/src/execve.c new file mode 100644 index 0000000000..478af706ea --- /dev/null +++ b/cpukit/posix/src/execve.c @@ -0,0 +1,18 @@ +/* + * execve() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execve( + const char *path, + char *const argv[], + char *const envp[], + ... +) +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/execvp.c b/cpukit/posix/src/execvp.c new file mode 100644 index 0000000000..a9d7694fbd --- /dev/null +++ b/cpukit/posix/src/execvp.c @@ -0,0 +1,16 @@ +/* + * execvp() - POSIX 1003.1b 3.1.2 + * + * $Id$ + */ + +#include + +int execvp( + const char *path, + char const *argv[] +) +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/fork.c b/cpukit/posix/src/fork.c new file mode 100644 index 0000000000..11cac91bdb --- /dev/null +++ b/cpukit/posix/src/fork.c @@ -0,0 +1,14 @@ +/* + * fork() - POSIX 1003.1b 3.1.1 + * + * $Id$ + */ + +#include +#include + +int fork( void ) +{ + errno = ENOSYS; + return -1; +} diff --git a/cpukit/posix/src/pthreadatfork.c b/cpukit/posix/src/pthreadatfork.c new file mode 100644 index 0000000000..f70f8d7dc1 --- /dev/null +++ b/cpukit/posix/src/pthreadatfork.c @@ -0,0 +1,18 @@ +/* + * pthread_atfork() - POSIX 1003.1b 3.1.3 + * + * $Id$ + */ + +#include +#include + +int pthread_atfork( + void (*prepare)(void), + void (*parent)(void), + void (*child)(void) +) +{ + errno = ENOSYS; + return -1; +} -- cgit v1.2.3