Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / libc / include / _libc.h
blob30e57bb05df2a0ac62544ea3df7d54133b196e4f
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_GETCH (unsigned *) 0x9000
25 #define SYSV_GETKEY (unsigned *) 0x9004
26 #define SYSV_FORK (unsigned *) 0x9008
27 #define SYSV_WRITE (int *) 0x900C
28 #define SYSV_SOCKET (int *) 0x9010
29 #define SYSV_CONNECT (int *) 0x9014
30 #define SYSV_SEND (int *) 0x9018
31 #define SYSV_RECV (int *) 0x901C
32 #define SYSV_OPEN (int *) 0x9020
33 #define SYSV_READ (int *) 0x9024
34 #define SYSV_TIME (unsigned *) 0x9028
35 #define SYSV_CHDIR (int *) 0x902C
36 #define SYSV_BIND (int *) 0x9030
37 #define SYSV_LISTEN (int *) 0x9034
38 #define SYSV_ACCEPT (int *) 0x9038
39 #define SYSV_FCNTL (int *) 0x903C
40 #define SYSV_RS232READ (int *) 0x9044
41 #define SYSV_SENDTO (int *) 0x9048
42 #define SYSV_RECVFROM (int *) 0x904C
43 #define SYSV_GETCHAR (int *) 0x9050
44 #define SYSV_IOCTL (int *) 0x905C
45 #define SYSV_LSEEK (long *) 0x9060
47 #define ERRNO_ADDRESS (int *) 0x9064
49 #include <errno.h>
51 #endif