|
GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdint.h>#include <unistd.h>#include <signal.h>#include <sys/types.h>#include <sys/wait.h>#include "ge.h"#include "console_socket.h"#include "cardreader.h"#include "printer.h"#include "disk.h"#include "tape.h"#include "cap.h"#include "transcode.h"#include "binimage.h"#include "log.h"#include "sat_batches.h"#include <fcntl.h>Go to the source code of this file.
Functions | |
| void | ge_log_set_active_types_from_spec (const char *spec) |
| Set active log types from a comma-separated name specification. | |
| static void | on_sigusr1 (int sig) |
| static void | on_sigusr2 (int sig) |
| static pid_t | spawn_tui (const char *argv0) |
| static void | print_usage (const char *argv0) |
| int | main (int argc, char *argv[]) |
Variables | |
| static volatile sig_atomic_t | g_toggle_js1 = 0 |
| static volatile sig_atomic_t | g_toggle_js2 = 0 |
|
extern |
Set active log types from a comma-separated name specification.
Parses spec as a comma-separated list of category names and enables exactly those log types by calling ge_log_set_active_types(). Surrounding whitespace around each name is ignored.
Recognised names: err, debug, regs, states, conds, regs_v, future, cycle, console, peri, reader, cmds, all (enable everything), none (disable all).
If spec is NULL or empty the active types are left unchanged. Unknown names are silently ignored except that a LOG_ERR message is emitted.
| spec | Comma-separated list of category names, or NULL / empty string |