• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/procd/jail-status.h

  1 /*
  2  * Copyright (C) 2026 Daniel Golle <daniel@makrotopia.org>
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU Lesser General Public License version 2.1
  6  * as published by the Free Software Foundation
  7  *
  8  * This program is distributed in the hope that it will be useful,
  9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 11  * GNU General Public License for more details.
 12  */
 13 
 14 #ifndef __JAIL_STATUS_H
 15 #define __JAIL_STATUS_H
 16 
 17 #include <stdint.h>
 18 
 19 #define JAIL_STATUS_FD 3
 20 
 21 enum jail_status_type {
 22         JAIL_STATUS_CREATED = 1,
 23         JAIL_STATUS_RUNNING,
 24         JAIL_STATUS_STOPPED,
 25 };
 26 
 27 #define JAIL_STATUS_F_REAPED            (1 << 0)
 28 #define JAIL_STATUS_F_REQUESTED         (1 << 1)
 29 #define JAIL_STATUS_F_STARTED           (1 << 2)
 30 #define JAIL_STATUS_F_ESCALATED         (1 << 3)
 31 #define JAIL_STATUS_F_RESTARTING        (1 << 4)
 32 #define JAIL_STATUS_F_REGISTERED        (1 << 5)
 33 
 34 struct jail_status {
 35         uint32_t type;
 36         uint32_t flags;
 37         int32_t exit_status;
 38         uint32_t runtime;
 39 };
 40 
 41 #endif
 42 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt