| 
    CS350 COS
    
   COS 
   | 
 
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <errno.h>#include <syscall.h>#include <sys/sysctl.h>Go to the source code of this file.
Data Structures | |
| struct | SysCtlEntry | 
Macros | |
| #define | SYSCTL_STR(_PATH, _FLAGS, _DESCRIPTION, _DEFAULT) { #_PATH, SYSCTL_TYPE_STR, _FLAGS, _DESCRIPTION }, | 
| #define | SYSCTL_INT(_PATH, _FLAGS, _DESCRIPTION, _DEFAULT) { #_PATH, SYSCTL_TYPE_INT, _FLAGS, _DESCRIPTION }, | 
| #define | SYSCTL_BOOL(_PATH, _FLAGS, _DESCRIPTION, _DEFAULT) { #_PATH, SYSCTL_TYPE_BOOL, _FLAGS, _DESCRIPTION }, | 
Typedefs | |
| typedef struct SysCtlEntry | SysCtlEntry | 
Functions | |
| void | PrintVal (int idx) | 
| void | UpdateVal (int idx, const char *val) | 
| int | main (int argc, const char *argv[]) | 
Variables | |
| SysCtlEntry | SYSCTLTable [] | 
| struct SysCtlEntry | 
| #define SYSCTL_BOOL | ( | _PATH, | |
| _FLAGS, | |||
| _DESCRIPTION, | |||
| _DEFAULT | |||
| ) | { #_PATH, SYSCTL_TYPE_BOOL, _FLAGS, _DESCRIPTION }, | 
| #define SYSCTL_INT | ( | _PATH, | |
| _FLAGS, | |||
| _DESCRIPTION, | |||
| _DEFAULT | |||
| ) | { #_PATH, SYSCTL_TYPE_INT, _FLAGS, _DESCRIPTION }, | 
| #define SYSCTL_STR | ( | _PATH, | |
| _FLAGS, | |||
| _DESCRIPTION, | |||
| _DEFAULT | |||
| ) | { #_PATH, SYSCTL_TYPE_STR, _FLAGS, _DESCRIPTION }, | 
| typedef struct SysCtlEntry SysCtlEntry | 
| int main | ( | int | argc, | 
| const char * | argv[] | ||
| ) | 
Definition at line 103 of file sysctl.c.
| void PrintVal | ( | int | idx | ) | 
Definition at line 32 of file sysctl.c.
| void UpdateVal | ( | int | idx, | 
| const char * | val | ||
| ) | 
Definition at line 64 of file sysctl.c.
| SysCtlEntry SYSCTLTable[] |