New developer version 0.6.8; added select () function; added demonstrating example...
[ZeXOS.git] / libc / include / _libc.h
blobbf8678836d053e569dfddcd19eb7649bd7dc2bbf
1 /*
2 * ZeX/OS
3 * Copyright (C) 2010 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __LIBC_H
21 #define __LIBC_H
23 /* syscall return value pointers from kernel */
24 #define SYSV_GETKEY (unsigned *) 0x9004
25 #define SYSV_FORK (unsigned *) 0x9008
26 #define SYSV_WRITE (int *) 0x900C
27 #define SYSV_SOCKET (int *) 0x9010
28 #define SYSV_CONNECT (int *) 0x9014
29 #define SYSV_SEND (int *) 0x9018
30 #define SYSV_RECV (int *) 0x901C
31 #define SYSV_OPEN (int *) 0x9020
32 #define SYSV_READ (int *) 0x9024
33 #define SYSV_TIME (unsigned *) 0x9028
34 #define SYSV_CHDIR (int *) 0x902C
35 #define SYSV_BIND (int *) 0x9030
36 #define SYSV_LISTEN (int *) 0x9034
37 #define SYSV_ACCEPT (int *) 0x9038
38 #define SYSV_FCNTL (int *) 0x903C
39 #define SYSV_RS232READ (int *) 0x9044
40 #define SYSV_SENDTO (int *) 0x9048
41 #define SYSV_RECVFROM (int *) 0x904C
42 #define SYSV_GETCHAR (int *) 0x9050
43 #define SYSV_IOCTL (int *) 0x905C
44 #define SYSV_LSEEK (long *) 0x9060
45 #define SYSV_GETCH (unsigned *) 0x9064
46 #define SYSV_SELECT (int *) 0x9068
48 #define ERRNO_ADDRESS (int *) 0x9000
50 #include <errno.h>
52 #endif