summaryrefslogtreecommitdiff
path: root/amigaos4/amigaos.h
blob: bcbde8c96fd29b937492b45740be5fd322c50f22 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _AMIGAOS_H
#define _AMIGAOS_H

/* prototypes and defines missing from current OS4 SDK; */

/* netinet/in.h */

// #define INADDR_LOOPBACK   0x7f00001UL

/* unistd.h */

#include <stdio.h>

#if defined(__CLIB2__)
#  include <dos.h>
#endif
#if defined(__NEWLIB__)
#  include <amiga_platform.h>
#endif

#if 1
int myexecve(const char *path, char *argv[], char *env[]);
int myexecvp(const char *filename, char *argv[]);
int myexecv(const char *path, char *argv[]);
int myexecl(const char *path, ...);
#endif

#define execve(path, argv, env) myexecve(path, argv, env)
#define execvp(filename, argv) myexecvp(filename, argv)
#define execv(path, argv) myexecv(path, argv)
#define execl(path, ...) myexecl(path, __VA_ARGS__)

int pipe(int filedes[2]);

FILE *amigaos_popen(const char *cmd, const char *mode);
void amigaos4_obtain_environ();
void amigaos4_release_environ();

/* signal.h */

// #define SIGQUIT SIGABRT

void ___makeenviron() __attribute__((constructor));
void ___freeenviron() __attribute__((destructor));

long amigaos_get_file(int fd);

// BOOL constructed;



#endif