miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
main.c File Reference
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <time.h>
Include dependency graph for main.c:

Typedefs

typedef void(* sighandler_t) (int)

Functions

int kill (pid_t pid, int sig)
sighandler_t signal (int sig, sighandler_t handler)
int sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
int sigemptyset (sigset_t *set)
int sigaddset (sigset_t *set, int sig)
int sigismember (const sigset_t *set, int sig)
static void write_str (const char *s)
static void spin_forever (void)
static void sigaction_test_handler (int sig)
static void persistent_signal_handler (int sig)
static void roundtrip_sigaction_handler (int sig)
static void sigalrm_count_handler (int sig)
static int expect_true (const char *name, int condition, const char *message)
int main (void)

Variables

static volatile sig_atomic_t g_signal_count
static volatile sig_atomic_t g_sigaction_count
static volatile sig_atomic_t g_sigalrm_count

Typedef Documentation

◆ sighandler_t

typedef void(* sighandler_t) (int)

Function Documentation

◆ expect_true()

int expect_true ( const char * name,
int condition,
const char * message )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kill()

int kill ( pid_t pid,
int sig )
Here is the call graph for this function:

◆ main()

int main ( void )
Here is the call graph for this function:

◆ persistent_signal_handler()

void persistent_signal_handler ( int sig)
static
Here is the caller graph for this function:

◆ roundtrip_sigaction_handler()

void roundtrip_sigaction_handler ( int sig)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sigaction()

int sigaction ( int sig,
const struct sigaction * act,
struct sigaction * oact )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sigaction_test_handler()

void sigaction_test_handler ( int sig)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sigaddset()

int sigaddset ( sigset_t * set,
int sig )
Here is the caller graph for this function:

◆ sigalrm_count_handler()

void sigalrm_count_handler ( int sig)
static
Here is the caller graph for this function:

◆ sigemptyset()

int sigemptyset ( sigset_t * set)
Here is the caller graph for this function:

◆ sigismember()

int sigismember ( const sigset_t * set,
int sig )
Here is the caller graph for this function:

◆ signal()

sighandler_t signal ( int sig,
sighandler_t handler )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spin_forever()

void spin_forever ( void )
static
Here is the caller graph for this function:

◆ write_str()

void write_str ( const char * s)
static
Here is the call graph for this function:

Variable Documentation

◆ g_sigaction_count

volatile sig_atomic_t g_sigaction_count
static

◆ g_sigalrm_count

volatile sig_atomic_t g_sigalrm_count
static

◆ g_signal_count

volatile sig_atomic_t g_signal_count
static