summaryrefslogtreecommitdiff
path: root/rts/js/hscore.js
blob: 95751477e45149fcc1570eb74a8802a580c25496 (plain)
1
2
3
4
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//#OPTIONS: CPP

#ifdef GHCJS_TRACE_HSCORE
function h$logHscore() { h$log.apply(h$log,arguments); }
#define TRACE_HSCORE(args...) h$logHscore(args)
#else
#define TRACE_HSCORE(args...)
#endif

function h$__hscore_sizeof_termios() {
    TRACE_HSCORE("hscore_sizeof_termios")
    return 4;
}

function h$tcgetattr(x, y, z) {
    TRACE_HSCORE("tcgetattr: " + x + " " + y + " " + z)
    return 0;
}

function h$__hscore_get_saved_termios(r) {
    TRACE_HSCORE("hscore_get_saved_termios: " + r)
    RETURN_UBX_TUP2(null, 0);
}

function h$__hscore_set_saved_termios(a, b, c) {
    TRACE_HSCORE("hscore_set_saved_termios: " + a + " " + b + " " + c)
    RETURN_UBX_TUP2(null, 0);
}

function h$__hscore_sizeof_sigset_t() {
    TRACE_HSCORE("hscore_sizeof_sigset_t")
    return 4;
}

function h$sigemptyset(a, b) {
    TRACE_HSCORE("sigemptyset: " + a + " " + b)
    RETURN_UBX_TUP2(null, 0);
}

function h$__hscore_sigttou() {
    TRACE_HSCORE("hscore_sigttou")
    return 0;
}

function h$sigaddset(a, b, c) {
    TRACE_HSCORE("sigaddset: " + a + " " + b + " " + c)
    return 0;
}

function h$__hscore_sig_block() {
    TRACE_HSCORE("hscore_sig_block")
    return 0;
}

function h$sigprocmask(a,b,c,d,e) {
    TRACE_HSCORE("sigprocmask: " + a + " " + b + " " + c + " " + d + " " + e)
    RETURN_UBX_TUP2(0, 0);
}

function h$__hscore_lflag(a,b) {
    TRACE_HSCORE("hscore_lflag: " + a + " " + b)
    return 0;
}

function h$__hscore_icanon() {
    TRACE_HSCORE("hscore_icanon")
    return 0;
}

function h$__hscore_poke_lflag(a, b, c) {
    TRACE_HSCORE("hscore_poke_lflag: " + a + " " + b + " " + c)
    return 0;
}

function h$__hscore_ptr_c_cc(a, b) {
    TRACE_HSCORE("hscore_ptr_c_cc: " + a + " " + b)
    RETURN_UBX_TUP2(h$newByteArray(8), 0); // null;
}

function h$__hscore_vmin() {
    TRACE_HSCORE("hscore_vmin")
    RETURN_UBX_TUP2(h$newByteArray(8), 0); // null;
}

function h$__hscore_vtime() {
    TRACE_HSCORE("hscore_vtime")
    return 0;
}

function h$__hscore_tcsanow() {
    TRACE_HSCORE("hscore_tcsanow")
    return 0;
}

function h$tcsetattr(a,b,c,d) {
    TRACE_HSCORE("tcsetattr: " + a + " " + b + " " + c + " " + d)
    return 0;
}

function h$__hscore_sig_setmask() {
    TRACE_HSCORE("hscore_sig_setmask")
    return 0;
}