ADT
ast-experimental
enum
forall-pointer-decay
pthread-emulation
qualifiedEnum
|
Last change
on this file since 4de48c5 was 40a64f78, checked in by Thierry Delisle <tdelisle@…>, 4 years ago |
|
Added options to redirect outputs and allow disabling Ctrl+D to stop.
|
-
Property mode
set to
100644
|
|
File size:
666 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <stdint.h>
|
|---|
| 4 |
|
|---|
| 5 | #include <kernel.hfa>
|
|---|
| 6 |
|
|---|
| 7 | struct cluster;
|
|---|
| 8 |
|
|---|
| 9 | struct Options {
|
|---|
| 10 | bool log;
|
|---|
| 11 | bool stats;
|
|---|
| 12 | bool interactive;
|
|---|
| 13 | const char * reopen_stdout;
|
|---|
| 14 | const char * reopen_stderr;
|
|---|
| 15 |
|
|---|
| 16 | struct {
|
|---|
| 17 | const char * path;
|
|---|
| 18 | int open_flags;
|
|---|
| 19 | uint32_t hash_seed;
|
|---|
| 20 | size_t size;
|
|---|
| 21 | bool list;
|
|---|
| 22 | bool fixed_fds;
|
|---|
| 23 | } file_cache;
|
|---|
| 24 |
|
|---|
| 25 | struct {
|
|---|
| 26 | int port;
|
|---|
| 27 | int backlog;
|
|---|
| 28 | int buflen;
|
|---|
| 29 | } socket;
|
|---|
| 30 |
|
|---|
| 31 | struct {
|
|---|
| 32 | int nclusters;
|
|---|
| 33 | int nprocs;
|
|---|
| 34 | int nworkers;
|
|---|
| 35 | io_context_params params;
|
|---|
| 36 | bool procstats;
|
|---|
| 37 | bool viewhalts;
|
|---|
| 38 | cluster ** instance;
|
|---|
| 39 | size_t * thrd_cnt;
|
|---|
| 40 | size_t cltr_cnt;
|
|---|
| 41 | } clopts;
|
|---|
| 42 | };
|
|---|
| 43 |
|
|---|
| 44 | extern Options options;
|
|---|
| 45 |
|
|---|
| 46 | void parse_options( int argc, char * argv[] );
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.