summaryrefslogtreecommitdiff
path: root/m68k-unknown-amigaos/recipes/files/clib2/stubs.c
blob: d996b9d443360c1afc1d68632bf5b16208c125ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <glob.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

#include "stdlib_headers.h"

pid_t wait(int *status)
{
	__set_errno(ECHILD);

	return -1;
}

pid_t vfork(void)
{
	__set_errno(EAGAIN);

	return -1;
}

int pipe(int pipefd[2])
{
	__set_errno(ENFILE);

	return -1;
}

int glob(const char *pattern, int flags,
	int (*errfunc) (const char *epath, int eerrno),
	glob_t *pglob)
{
	return GLOB_NOMATCH;
}

void globfree(glob_t *pglob)
{
}