ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast
new-ast-unique-expr
pthread-emulation
qualifiedEnum
|
Last change
on this file since 39fc03e was 03ed863, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
|
Http request buffer size is now configurable
|
-
Property mode
set to
100644
|
|
File size:
466 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <stdint.h>
|
|---|
| 4 |
|
|---|
| 5 | struct cluster;
|
|---|
| 6 |
|
|---|
| 7 | struct Options {
|
|---|
| 8 | struct {
|
|---|
| 9 | int open_flags;
|
|---|
| 10 | uint32_t hash_seed;
|
|---|
| 11 | size_t size;
|
|---|
| 12 | bool list;
|
|---|
| 13 | bool fixed_fds;
|
|---|
| 14 | } file_cache;
|
|---|
| 15 |
|
|---|
| 16 | struct {
|
|---|
| 17 | int port;
|
|---|
| 18 | int backlog;
|
|---|
| 19 | int buflen;
|
|---|
| 20 | } socket;
|
|---|
| 21 |
|
|---|
| 22 | struct {
|
|---|
| 23 | int nprocs;
|
|---|
| 24 | int nworkers;
|
|---|
| 25 | int flags;
|
|---|
| 26 | int chan_size;
|
|---|
| 27 | bool procstats;
|
|---|
| 28 | bool viewhalts;
|
|---|
| 29 | cluster * instance;
|
|---|
| 30 | } clopts;
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | extern Options options;
|
|---|
| 34 |
|
|---|
| 35 | const char * parse_options( int argc, char * argv[] );
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.