1 | //===-- Definition of RPC opcodes -----------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef LLVM_LIBC_TYPES_RPC_OPCODES_T_H |
10 | #define LLVM_LIBC_TYPES_RPC_OPCODES_T_H |
11 | |
12 | typedef enum { |
13 | RPC_NOOP = 0, |
14 | RPC_EXIT, |
15 | RPC_WRITE_TO_STDOUT, |
16 | RPC_WRITE_TO_STDERR, |
17 | RPC_WRITE_TO_STREAM, |
18 | RPC_WRITE_TO_STDOUT_NEWLINE, |
19 | RPC_READ_FROM_STREAM, |
20 | RPC_READ_FGETS, |
21 | RPC_OPEN_FILE, |
22 | RPC_CLOSE_FILE, |
23 | RPC_MALLOC, |
24 | RPC_FREE, |
25 | RPC_HOST_CALL, |
26 | RPC_ABORT, |
27 | RPC_FEOF, |
28 | RPC_FERROR, |
29 | RPC_CLEARERR, |
30 | RPC_FSEEK, |
31 | RPC_FTELL, |
32 | RPC_FFLUSH, |
33 | RPC_UNGETC, |
34 | RPC_PRINTF_TO_STDOUT, |
35 | RPC_PRINTF_TO_STDERR, |
36 | RPC_PRINTF_TO_STREAM, |
37 | RPC_LAST = 0xFFFF, |
38 | } rpc_opcode_t; |
39 | |
40 | #endif // LLVM_LIBC_TYPES_RPC_OPCODES_T_H |
41 | |