|
Data Structures |
| struct | on_exit |
| | Register an on-exit function. More...
|
| struct | cmd_block |
| | Run a COMMAND.COM/4DOS external/internal command. More...
|
Functions |
|
void | setup_dos_xfer_buf (void) |
|
void | is_in_stack_init (void) |
|
STATIC int | setup_stk_check (void) |
|
void cdecl | _fatal_runtime_error (UINT stk) |
|
void cdecl | _fatal_runtime_error_ (UINT stk) |
|
| void (__cdecl *_aaltstkovr)(void) |
|
void | stk_overflow (void _far *where) |
|
STATIC void | test_stk_check (void) |
| unsigned long cdecl | _w32_intel (unsigned long val) |
| | Convert 32-bit big-endian (network order) to intel (host order) format.
|
| unsigned short cdecl | _w32_intel16 (unsigned short val) |
| | Convert 16-bit big-endian (network order) to intel (host order) format.
|
|
void | patch_with_bswap (void) |
| DWORD | get_day_num (void) |
| | Simplified method of getting days since 1970-01-01.
|
|
BOOL | RDTSC_enabled (void) |
|
BOOL | check_reg_struct (void) |
| void | init_misc (void) |
| | Initialise various stuff.
|
|
void | exit_misc (void) |
| | Called from sock_exit() to clear up things done here.
|
| FILE * | fopen_excl (const char *file, const char *mode) |
| | WIN32: Open an existing file (or create) in share-mode but deny other processes to write to the file.
|
|
int | list_compare (const struct on_exit *a, const struct on_exit *b) |
|
int | rundown_add (void(*func)(void), const char *name, int order, const char *file, unsigned line) |
| | Register a function to be called from sock_exit().
|
|
void | rundown_run (void) |
| | Run the registered and sorted exit_list[] functions.
|
|
void | rundown_dump (void) |
| | Dump 'exit_list[]' list.
|
|
_CRTIMP _CRT_REPORT_HOOK __cdecl | _CrtSetReportHook2 (int, _CRT_REPORT_HOOK) |
|
void __cdecl | crtdbg_exit (void) |
|
const char * | report_name (int type) |
|
void __cdecl | crtdbg_dump (const void *buf, size_t len) |
| int __cdecl | crtdbg_report (int type, char *message, int *ret_val) |
|
void | memdbg_init (void) |
| void | fortify_report (void) |
| | Report routine for Fortify.
|
|
void | assert_fail (const char *file, unsigned line, const char *what) |
| | Print an assert fail and store the text for later.
|
|
unsigned | Random (unsigned a, unsigned b) |
| | Returns a random integer in range [a..b].
|
|
void | RandomWait (unsigned a, unsigned b) |
| | Wait for a random period in range [a..b] millisec.
|
|
void | Wait (unsigned msec) |
| | Not all vendors have delay().
|
|
const char * | dos_extender_name (void) |
|
void | os_yield (void) |
|
BOOL | watt_check_break (void) |
|
int | watt_kbhit (void) |
| | A less CPU hogging kbhit().
|
|
const char * | list_lookup (DWORD type, const struct search_list *list, int num) |
| | Search 'list' for 'type' and return it's name.
|
|
const char * | list_lookupX (DWORD type, const struct search_list *list, int num) |
| const char * | MAC_address (const void *addr) |
| | Return hexa-decimal string for an 6/7 byte MAC-address.
|
|
void | unfinished (const char *func, const char *file, unsigned line) |
|
const char * | dword_str (DWORD val) |
| | Return nicely formatted string "xx,xxx,xxx" with thousand separators (left adjusted).
|
|
DWORD | get_ds_limit (void) |
|
DWORD | get_cs_limit (void) |
|
DWORD | get_ss_limit (void) |
|
unsigned dj_end | asm ("end") |
|
unsigned | get_frame_size (const char *x) |
|
BOOL | is_in_stack (const void *ptr) |
|
unsigned | used_stack (void) |
|
BOOL | valid_addr (const void *addr, unsigned len) |
|
void | free_selector (void) |
|
int | _w32_ffs (int i) |
|
void | watt_large_check (const void *sock, int size, const char *file, unsigned line) |
|
BOOL | is_big_endian (void) |
|
BOOL | shell_exec (const char *cmd) |
|
void | _w32_intr (int int_no, IREGS *reg) |
| | Microsoft/Digital Mars doesn't have intr() so we make our own.
|
|
STATIC void | stk_overflow (WORD ret_addr) |
|
void | stk_overflow (UINT ret_addr) |
|
int | stk_check_setup (void) |
|
void | stk_overflow (WORD cs, UINT eip) |
|
void | FATAL_HANDLER (UINT stk) |
|
BOOL | get_mem_strat (BYTE *strat) |
|
BOOL | set_mem_strat (BYTE strat) |
|
void | foo_10 (void) |
|
void | foo_20 (void) |
|
void | foo_30 (void) |
|
void | foo_40 (void) |
|
void | foo_50 (void) |
|
void | foo_60 (void) |
|
void | foo_70 (void) |
|
int | main (void) |
Variables |
|
const char | hex_chars_lower [] = "0123456789abcdef" |
|
const char | hex_chars_upper [] = "0123456789ABCDEF" |
| BOOL | win32_dos_box = FALSE |
| BOOL | _watt_fatal_error = FALSE |
| WORD | _watt_os_ver = 0x622 |
| char | _watt_assert_buf [256] |
|
int | num_exit_func_inserts = 0 |
|
int | _w32_errno = 0 |
|
int | __bss_count = 0 |
| FARPTR | _watt_dosFp |
|
_CPUID | lcc_cpuid |
|
char cdecl | x86_type = 5 |
|
char cdecl | x86_vendor_id [13] |
|
DWORD cdecl | x86_capability |
|
char cdecl | __begtext |
|
UINT cdecl | _x386_stacklow |
|
char * | dummy_fatal_rte = (char*)&FATAL_HANDLER |
| const BYTE | bswap32 [] |
| const BYTE | bswap16 [] |
|
on_exit | exit_list [40] |
|
_CrtMemState | last_state |
|
THREADLOCAL const char * | stack_bottom = 0 |
|
unsigned | _stklen |
|
unsigned | __djgpp_stack_limit |
|
REALPTR | _watt_dosTbr = 0 |
|
DWORD | _watt_dosTbSize = 0 |
|
WORD | rm_seg = 0 |
|
WORD | _watt_dosTbSeg = 0 |
|
WORD | _watt_dosTbSel = 0 |
|
WORD | _watt_dos_ds |
|
int | __brklvl |