Defines | Functions

/build/buildd-opendnssec_1.3.2-1~bpo60+1-amd64-DfhaW2/opendnssec-1.3.2/signer/src/daemon/cmdhandler.c File Reference

#include "daemon/cmdhandler.h"
#include "daemon/engine.h"
#include "scheduler/schedule.h"
#include "scheduler/task.h"
#include "shared/allocator.h"
#include "shared/file.h"
#include "shared/locks.h"
#include "shared/log.h"
#include "shared/status.h"
#include <errno.h>
#include <fcntl.h>
#include <ldns/ldns.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
Include dependency graph for cmdhandler.c:

Go to the source code of this file.

Defines

#define SE_CMDH_CMDLEN   7
#define SUN_LEN(su)   (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))

Functions

cmdhandler_typecmdhandler_create (allocator_type *allocator, const char *filename)
void cmdhandler_start (cmdhandler_type *cmdhandler)
void cmdhandler_cleanup (cmdhandler_type *cmdhandler)

Define Documentation

#define SE_CMDH_CMDLEN   7

Command handler.

Definition at line 61 of file cmdhandler.c.

#define SUN_LEN (   su  )     (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))

Definition at line 64 of file cmdhandler.c.

Referenced by cmdhandler_create().


Function Documentation

void cmdhandler_cleanup ( cmdhandler_type cmdhandler  ) 

Cleanup command handler.

Definition at line 1006 of file cmdhandler.c.

References cmdhandler_struct::allocator, and allocator_deallocate().

Referenced by engine_cleanup().

cmdhandler_type* cmdhandler_create ( allocator_type allocator,
const char *  filename 
)
void cmdhandler_start ( cmdhandler_type cmdhandler  )