Next: , Previous: , Up: Executive Assembler Introduction   [Index]


8.1.10 Miscellaneous Convenience Routines

The SIGCHLD signal handler:

static void
SIGCHLD_handler(int signal)
{
    SIGCHLD_received = 1;
    *static_class = 1;
}

A string printer:

static int
test_cast(void *cast, const char *name, unsigned size)
{
    return size ^ fwrite(name, 1, size, cast);
}

Source offset picker:

static int
pick_shuffle(struct context_type *context_data, unsigned *copy)
{
    return x1f4_seek_shuffle(context_data->logic, copy);
}