#include <config.h>
#include "sbuild-lock.h"
#include <cerrno>
#include <cstdlib>
#include <unistd.h>
#include <boost/format.hpp>
#include <lockdev.h>
Include dependency graph for sbuild-lock.cc:
Typedefs | |
typedef std::pair< lock::error_code, const char * > | emap |
Functions | |
void | alarm_handler (int ignore) |
Handle the SIGALRM signal. | |
Variables | |
emap | init_errors [] |
This is a list of the supported error codes. | |
volatile bool | lock_timeout = false |
typedef std::pair<lock::error_code,const char *> emap [static] |
void @7::alarm_handler | ( | int | ignore | ) | [static] |
Handle the SIGALRM signal.
ignore | the signal number. |
emap init_errors[] [static] |
Initial value:
{ emap(lock::TIMEOUT_HANDLER, N_("Failed to set timeout handler")), emap(lock::TIMEOUT_SET, N_("Failed to set timeout")), emap(lock::TIMEOUT_CANCEL, N_("Failed to cancel timeout")), emap(lock::LOCK, N_("Failed to acquire lock (timed out)")), emap(lock::LOCK_TIMEOUT, N_("Failed to acquire lock")), emap(lock::DEVICE_LOCK, N_("Failed to acquire device lock")), emap(lock::DEVICE_LOCK_TIMEOUT, N_("Failed to acquire device lock (timed out)")), emap(lock::DEVICE_TEST, N_("Failed to test device lock")), emap(lock::DEVICE_RELEASE, N_("Failed to release device lock")), emap(lock::DEVICE_RELEASE_TIMEOUT, N_("Failed to release device lock (timed out)")) }
It's used to construct the real error codes map.
volatile bool lock_timeout = false [static] |