nmc-utils
0.1.1
|
#include <stdio.h>
#include <getopt.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/select.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <termios.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#include <sys/epoll.h>
#include <easynmc.h>
Go to the source code of this file.
Macros | |
#define | dbg(fmt,...) |
#define | err(fmt,...) |
#define | NUMEVENTS 3 |
Functions | |
void | usage (char *nm) |
void | nonblock (int fd, int state) |
void | die () |
void | handle_sigint (int sig) |
int | read_inbound (int fd) |
int | run_interactive_console (struct easynmc_handle *h) |
int | main (int argc, char **argv) |
Variables | |
int | g_debug = 1 |
int | g_force = 0 |
int | g_nostdio = 0 |
int | g_detach = 0 |
int | g_nosigint = 0 |
struct easynmc_handle * | g_handle = NULL |
#define dbg | ( | fmt, | |
... | |||
) |
#define err | ( | fmt, | |
... | |||
) |
#define NUMEVENTS 3 |
Definition at line 152 of file nmrun.c.
Referenced by run_interactive_console().
void die | ( | ) |
Definition at line 133 of file nmrun.c.
References easynmc_stop_app(), g_nosigint, and nonblock().
Referenced by handle_sigint(), and run_interactive_console().
void handle_sigint | ( | int | sig | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 301 of file nmrun.c.
References ABSLOAD_FLAG_DEFAULT, ABSLOAD_FLAG_STDIO, EASYNMC_CORE_IDLE, easynmc_load_abs(), easynmc_open(), EASYNMC_PERSIST_DISABLE, EASYNMC_PERSIST_ENABLE, easynmc_persist_set(), easynmc_pollmark(), easynmc_set_args(), easynmc_start_app(), easynmc_state_name(), g_detach, g_nosigint, g_nostdio, handle_sigint(), nonblock(), run_interactive_console(), and usage().
void nonblock | ( | int | fd, |
int | state | ||
) |
Definition at line 107 of file nmrun.c.
Referenced by die(), main(), and run_interactive_console().
int read_inbound | ( | int | fd | ) |
Definition at line 155 of file nmrun.c.
Referenced by run_interactive_console().
int run_interactive_console | ( | struct easynmc_handle * | h | ) |
Definition at line 175 of file nmrun.c.
References die(), easynmc_close(), EASYNMC_CORE_IDLE, easynmc_exitcode(), easynmc_handle::iofd, easynmc_handle::memfd, nonblock(), NUMEVENTS, and read_inbound().
Referenced by main().
struct easynmc_handle* g_handle = NULL |