SimpleOS

LXR

Navigation



Site hébergé par : enix

The LXR Cross Referencer for SOS

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Article:1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 6.5 ] [ 7 ] [ 7.5 ] [ 8 ] [ 9 ] [ 9.5 ]

001 /* Copyright (C) 2005 David Decotigny
002    Copyright (C) 2003 Thomas Petazzoni
003 
004    This program is free software; you can redistribute it and/or
005    modify it under the terms of the GNU General Public License
006    as published by the Free Software Foundation; either version 2
007    of the License, or (at your option) any later version.
008    
009    This program is distributed in the hope that it will be useful,
010    but WITHOUT ANY WARRANTY; without even the implied warranty of
011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012    GNU General Public License for more details.
013    
014    You should have received a copy of the GNU General Public License
015    along with this program; if not, write to the Free Software
016    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
017    USA. 
018 */
019 #ifndef _SOS_USER_CRT_H_
020 #define _SOS_USER_CRT_H_
021 
022 
023 /**
024  * @file crt.h
025  *
026  * C runtime environment for the user side of the kernel/user
027  * interface
028  */
029 
030 #include <types.h>
031 
032 /**
033  * We include the syscall.h file from the kernel to retrieve the list
034  * of available syscall ID
035  */
036 #include <sos/syscall.h>
037 
038 
039 /**
040  * The syscall wrappers hiding the details of the implementation
041  */
042 int _sos_syscall0(int id);
043 
044 int _sos_syscall1(int id,
045                   unsigned int arg1);
046 
047 int _sos_syscall2(int id,
048                   unsigned int arg1,
049                   unsigned int arg2);
050 
051 int _sos_syscall3(int id,
052                   unsigned int arg1,
053                   unsigned int arg2,
054                   unsigned int arg3);
055 
056 int _sos_syscall4(int id,
057                   unsigned int arg1,
058                   unsigned int arg2,
059                   unsigned int arg3,
060                   unsigned int arg4);
061 
062 int _sos_syscall5(int id,
063                   unsigned int arg1,
064                   unsigned int arg2,
065                   unsigned int arg3,
066                   unsigned int arg4,
067                   unsigned int arg5);
068 
069 int _sos_syscall6(int id,
070                   unsigned int arg1,
071                   unsigned int arg2,
072                   unsigned int arg3,
073                   unsigned int arg4,
074                   unsigned int arg5,
075                   unsigned int arg6);
076 
077 int _sos_syscall7(int id,
078                   unsigned int arg1,
079                   unsigned int arg2,
080                   unsigned int arg3,
081                   unsigned int arg4,
082                   unsigned int arg5,
083                   unsigned int arg6,
084                   unsigned int arg7);
085 
086 int _sos_syscall8(int id,
087                   unsigned int arg1,
088                   unsigned int arg2,
089                   unsigned int arg3,
090                   unsigned int arg4,
091                   unsigned int arg5,
092                   unsigned int arg6,
093                   unsigned int arg7,
094                   unsigned int arg8);
095 
096 
097 /**
098  * The most important function of a C program ! ;)
099  */
100 void _sos_exit (int status) __attribute__((noreturn));
101 
102 
103 /**
104  * Non standard function to print something on bochs
105  */
106 int _sos_bochs_write(const char *str, unsigned length);
107 #endif /* _SOS_USER_CRT_H_ */

source navigation ] diff markup ] identifier search ] general search ]