#include <config.h>#include "schroot-releaselock-main.h"#include <cerrno>#include <cstdlib>#include <ctime>#include <iostream>#include <locale>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <boost/format.hpp>#include <lockdev.h>Include dependency graph for schroot-releaselock-main.cc:

Typedefs | |
| typedef std::pair< main::error_code, const char * > | emap |
Variables | |
| emap | init_errors [] |
| This is a list of the supported error codes. | |
typedef std::pair<main::error_code,const char *> emap [static] |
emap init_errors[] [static] |
Initial value:
{
emap(main::DEVICE_NOTBLOCK, N_("File is not a block device")),
emap(main::DEVICE_OWNED, N_("Failed to release device lock (lock held by PID %4%)")),
emap(main::DEVICE_RELEASE, N_("Failed to release device lock")),
emap(main::DEVICE_STAT, N_("Failed to stat device"))
}
It's used to construct the real error codes map.
1.4.7