Dazo-org/zerovm — Issue #31: sys callback testing and examples
Author: camuel
Created: 2012-02-18 06:46:32+00:00
State: open
Labels: CRITICAL, QUICKFIX, ZRT

There should be a test that calls one by one all 54 syscalls with syscallback installed and verifies that on the callback the right number and right type of parameters are passed over. The test must also extract and print those parameters being a template and gold standard of implementing syscallbacks for future zerovm applications .

Every syscallback must be properly documented so zerovm application developer could make a decision based on the documentation and test whether installing such syscallback could be useful for his application.

In general, bare zerovm daemon is not C99 compliant, since without syscallback installed the functionality of all 55 syscalls are very limited, they basically excuse themselves and return null. However, the syscallback mechanism provides the app developer with the great flexibility by letting him to implement syscalls. NaCl SDK will be accompanied with several valid full 54 (except of untrappable exit) syscallback implementation so that with each of them ZeroVM would be valid C99 implementation.