[4] | 1 | /* Function prototypes for the system library.
|
---|
| 2 | * The implementation is contained in src/kernel/system/.
|
---|
| 3 | *
|
---|
| 4 | * The system library allows access to system services by doing a kernel call.
|
---|
| 5 | * Kernel calls are transformed into request messages to the SYS task that is
|
---|
| 6 | * responsible for handling the call. By convention, sys_call() is transformed
|
---|
| 7 | * into a message with type SYS_CALL that is handled in a function do_call().
|
---|
| 8 | */
|
---|
| 9 |
|
---|
| 10 | #ifndef SYSTEM_H
|
---|
| 11 | #define SYSTEM_H
|
---|
| 12 |
|
---|
| 13 | /* Common includes for the system library. */
|
---|
| 14 | #include "kernel.h"
|
---|
| 15 | #include "proto.h"
|
---|
| 16 | #include "proc.h"
|
---|
| 17 |
|
---|
| 18 | /* Default handler for unused kernel calls. */
|
---|
| 19 | _PROTOTYPE( int do_unused, (message *m_ptr) );
|
---|
| 20 | _PROTOTYPE( int do_exec, (message *m_ptr) );
|
---|
| 21 | _PROTOTYPE( int do_fork, (message *m_ptr) );
|
---|
| 22 | _PROTOTYPE( int do_newmap, (message *m_ptr) );
|
---|
| 23 | _PROTOTYPE( int do_exit, (message *m_ptr) );
|
---|
| 24 | _PROTOTYPE( int do_trace, (message *m_ptr) );
|
---|
| 25 | _PROTOTYPE( int do_nice, (message *m_ptr) );
|
---|
| 26 | _PROTOTYPE( int do_copy, (message *m_ptr) );
|
---|
| 27 | #define do_vircopy do_copy
|
---|
| 28 | #define do_physcopy do_copy
|
---|
| 29 | _PROTOTYPE( int do_vcopy, (message *m_ptr) );
|
---|
| 30 | #define do_virvcopy do_vcopy
|
---|
| 31 | #define do_physvcopy do_vcopy
|
---|
| 32 | _PROTOTYPE( int do_umap, (message *m_ptr) );
|
---|
| 33 | _PROTOTYPE( int do_memset, (message *m_ptr) );
|
---|
| 34 | _PROTOTYPE( int do_abort, (message *m_ptr) );
|
---|
| 35 | _PROTOTYPE( int do_getinfo, (message *m_ptr) );
|
---|
| 36 | _PROTOTYPE( int do_privctl, (message *m_ptr) );
|
---|
| 37 | _PROTOTYPE( int do_segctl, (message *m_ptr) );
|
---|
| 38 | _PROTOTYPE( int do_irqctl, (message *m_ptr) );
|
---|
| 39 | _PROTOTYPE( int do_devio, (message *m_ptr) );
|
---|
| 40 | _PROTOTYPE( int do_vdevio, (message *m_ptr) );
|
---|
| 41 | _PROTOTYPE( int do_int86, (message *m_ptr) );
|
---|
| 42 | _PROTOTYPE( int do_sdevio, (message *m_ptr) );
|
---|
| 43 | _PROTOTYPE( int do_kill, (message *m_ptr) );
|
---|
| 44 | _PROTOTYPE( int do_getksig, (message *m_ptr) );
|
---|
| 45 | _PROTOTYPE( int do_endksig, (message *m_ptr) );
|
---|
| 46 | _PROTOTYPE( int do_sigsend, (message *m_ptr) );
|
---|
| 47 | _PROTOTYPE( int do_sigreturn, (message *m_ptr) );
|
---|
| 48 | _PROTOTYPE( int do_times, (message *m_ptr) );
|
---|
| 49 | _PROTOTYPE( int do_setalarm, (message *m_ptr) );
|
---|
| 50 |
|
---|
| 51 | #endif /* SYSTEM_H */
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 |
|
---|