Added ENOSYS stubs for a number of process routines.

This commit is contained in:
Joel Sherrill
1998-09-25 13:17:32 +00:00
parent 1d2366e5ea
commit 97149ba590
16 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/*
* execl() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execl(
const char *path,
const char *arg,
...
)
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,17 @@
/*
* execle() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execle(
const char *path,
char const *arg,
...
)
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,16 @@
/*
* execlp() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execlp(
const char *file,
const char *arg,
...
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,16 @@
/*
* execv() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execv(
const char *file,
char *const argv[],
...
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,18 @@
/*
* execve() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execve(
const char *path,
char *const argv[],
char *const envp[],
...
)
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,16 @@
/*
* execvp() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execvp(
const char *path,
char const *argv[]
)
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,14 @@
/*
* fork() - POSIX 1003.1b 3.1.1
*
* $Id$
*/
#include <sys/types.h>
#include <errno.h>
int fork( void )
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,18 @@
/*
* pthread_atfork() - POSIX 1003.1b 3.1.3
*
* $Id$
*/
#include <sys/types.h>
#include <errno.h>
int pthread_atfork(
void (*prepare)(void),
void (*parent)(void),
void (*child)(void)
)
{
errno = ENOSYS;
return -1;
}

17
cpukit/posix/src/execl.c Normal file
View File

@@ -0,0 +1,17 @@
/*
* execl() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execl(
const char *path,
const char *arg,
...
)
{
errno = ENOSYS;
return -1;
}

17
cpukit/posix/src/execle.c Normal file
View File

@@ -0,0 +1,17 @@
/*
* execle() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execle(
const char *path,
char const *arg,
...
)
{
errno = ENOSYS;
return -1;
}

16
cpukit/posix/src/execlp.c Normal file
View File

@@ -0,0 +1,16 @@
/*
* execlp() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execlp(
const char *file,
const char *arg,
...
{
errno = ENOSYS;
return -1;
}

16
cpukit/posix/src/execv.c Normal file
View File

@@ -0,0 +1,16 @@
/*
* execv() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execv(
const char *file,
char *const argv[],
...
{
errno = ENOSYS;
return -1;
}

18
cpukit/posix/src/execve.c Normal file
View File

@@ -0,0 +1,18 @@
/*
* execve() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execve(
const char *path,
char *const argv[],
char *const envp[],
...
)
{
errno = ENOSYS;
return -1;
}

16
cpukit/posix/src/execvp.c Normal file
View File

@@ -0,0 +1,16 @@
/*
* execvp() - POSIX 1003.1b 3.1.2
*
* $Id$
*/
#include <errno.h>
int execvp(
const char *path,
char const *argv[]
)
{
errno = ENOSYS;
return -1;
}

14
cpukit/posix/src/fork.c Normal file
View File

@@ -0,0 +1,14 @@
/*
* fork() - POSIX 1003.1b 3.1.1
*
* $Id$
*/
#include <sys/types.h>
#include <errno.h>
int fork( void )
{
errno = ENOSYS;
return -1;
}

View File

@@ -0,0 +1,18 @@
/*
* pthread_atfork() - POSIX 1003.1b 3.1.3
*
* $Id$
*/
#include <sys/types.h>
#include <errno.h>
int pthread_atfork(
void (*prepare)(void),
void (*parent)(void),
void (*child)(void)
)
{
errno = ENOSYS;
return -1;
}