def.h revision 0732ef7acf37473847992888bcb6446726d9d877
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#pragma once
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen/***
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen This file is part of systemd.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen Copyright 2010 Lennart Poettering
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen systemd is free software; you can redistribute it and/or modify it
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen under the terms of the GNU Lesser General Public License as published by
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen the Free Software Foundation; either version 2.1 of the License, or
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen (at your option) any later version.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen systemd is distributed in the hope that it will be useful, but
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen WITHOUT ANY WARRANTY; without even the implied warranty of
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen Lesser General Public License for more details.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen You should have received a copy of the GNU Lesser General Public License
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen along with systemd; If not, see <http://www.gnu.org/licenses/>.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen***/
ff734080aa02cd70b13bc0fdeec4a5886166163aTom Gundersen
be077570f779664ed87b50f60608df9fbe258821Tom Gundersen#include "util.h"
ff734080aa02cd70b13bc0fdeec4a5886166163aTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DEFAULT_TIMEOUT_USEC (90*USEC_PER_SEC)
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC)
ff734080aa02cd70b13bc0fdeec4a5886166163aTom Gundersen#define DEFAULT_CONFIRM_USEC (30*USEC_PER_SEC)
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC)
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DEFAULT_START_LIMIT_BURST 5
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DEFAULT_EXIT_USEC (5*USEC_PER_MINUTE)
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define SYSTEMD_CGROUP_CONTROLLER "name=systemd"
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define SIGNALS_IGNORE SIGPIPE
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define DIGITS "0123456789"
ff734080aa02cd70b13bc0fdeec4a5886166163aTom Gundersen#define LOWERCASE_LETTERS "abcdefghijklmnopqrstuvwxyz"
ff734080aa02cd70b13bc0fdeec4a5886166163aTom Gundersen#define UPPERCASE_LETTERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define LETTERS LOWERCASE_LETTERS UPPERCASE_LETTERS
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define REBOOT_PARAM_FILE "/run/systemd/reboot-param"
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#ifdef HAVE_SPLIT_USR
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#define KBD_KEYMAP_DIRS \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/usr/share/keymaps/\0" \
3a864fe4a894745ac61f1ecabd7cadf04139a284Tom Gundersen "/usr/share/kbd/keymaps/\0" \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/usr/lib/kbd/keymaps/\0" \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/lib/kbd/keymaps/\0"
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#else
3a864fe4a894745ac61f1ecabd7cadf04139a284Tom Gundersen#define KBD_KEYMAP_DIRS \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/usr/share/keymaps/\0" \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/usr/share/kbd/keymaps/\0" \
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen "/usr/lib/kbd/keymaps/\0"
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen#endif
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen