Check-in [21e5cd0712]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add API levels to system calls.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:21e5cd0712b95b96fe45f61c40fd0c993be32727
User & Date: stephanie.gawroriski 2019-05-23 16:41:44
Context
2019-05-23
16:48
Remove TimeAccess and replace with system calls. check-in: 79482f1be1 user: stephanie.gawroriski tags: trunk
16:41
Add API levels to system calls. check-in: 21e5cd0712 user: stephanie.gawroriski tags: trunk
16:40
Add and implement with a test a system call for getting the current time. check-in: b6312d2861 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/vki/SystemCallIndex.java.

5
6
7
8
9
10
11



12
13
14
15
16
17
18
19

20
21
22
23

24
25
26
27

28
29
30
31

32
33
34
35

36
37
38
39

40
41
42
43

44
45
46
47
48
49
50
51
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.cldc.vki;




/**
 * This contains the index of system calls.
 *
 * @since 2019/05/23
 */
public interface SystemCallIndex
{
	/** Checks if the system call is supported. */

	public static final short QUERY_INDEX =
		0;
	
	/** Gets the last error state. */

	public static final short ERROR_GET =
		1;
	
	/** Sets the last error state. */

	public static final short ERROR_SET =
		2;
	
	/** Current wall clock milliseconds (low). */

	public static final short TIME_LO_MILLI_WALL =
		3;
	
	/** Current wall clock milliseconds (high). */

	public static final short TIME_HI_MILLI_WALL =
		4;
	
	/** Current monotonic clock nanoseconds (low). */

	public static final short TIME_LO_NANO_MONO =
		5;
	
	/** Current monotonic clock nanoseconds (high). */

	public static final short TIME_HI_NANO_MONO =
		6;
	
	/** System call count. */
	public static final int NUM_SYSCALLS =
		7;
}








>
>
>








>




>




>




>




>




>




>








5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.cldc.vki;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.lang.ApiLevel;

/**
 * This contains the index of system calls.
 *
 * @since 2019/05/23
 */
public interface SystemCallIndex
{
	/** Checks if the system call is supported. */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short QUERY_INDEX =
		0;
	
	/** Gets the last error state. */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short ERROR_GET =
		1;
	
	/** Sets the last error state. */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short ERROR_SET =
		2;
	
	/** Current wall clock milliseconds (low). */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short TIME_LO_MILLI_WALL =
		3;
	
	/** Current wall clock milliseconds (high). */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short TIME_HI_MILLI_WALL =
		4;
	
	/** Current monotonic clock nanoseconds (low). */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short TIME_LO_NANO_MONO =
		5;
	
	/** Current monotonic clock nanoseconds (high). */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static final short TIME_HI_NANO_MONO =
		6;
	
	/** System call count. */
	public static final int NUM_SYSCALLS =
		7;
}