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