From: Cristiano Giuffrida Date: Tue, 11 Mar 2014 23:34:54 +0000 (+0100) Subject: include: Add sys flags definitions. X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F3075%2F2;p=minix.git include: Add sys flags definitions. Change-Id: I8ecbe636641467efea058a9527416fc25d954daf --- diff --git a/minix/include/minix/rs.h b/minix/include/minix/rs.h index 36dcf06ef..e6a7870c6 100644 --- a/minix/include/minix/rs.h +++ b/minix/include/minix/rs.h @@ -140,6 +140,23 @@ struct rprocpub { */ #define IS_RPUB_BOOT_USR(rpub) ((rpub)->endpoint == INIT_PROC_NR) +/* Sys flag values. */ +#define SF_CORE_SRV 0x001 /* set for core system services */ +#define SF_SYNCH_BOOT 0X002 /* set when process needs synch boot init */ +#define SF_NEED_COPY 0x004 /* set when process needs copy to start */ +#define SF_USE_COPY 0x008 /* set when process has a copy in memory */ +#define SF_NEED_REPL 0x010 /* set when process needs replica to start */ +#define SF_USE_REPL 0x020 /* set when process has a replica */ +#define SF_VM_UPDATE 0x040 /* set when process needs vm update */ +#define SF_VM_ROLLBACK 0x080 /* set when vm update is a rollback */ +#define SF_VM_NOMMAP 0x100 /* set when vm update ignores mmapped regions */ +#define SF_USE_SCRIPT 0x200 /* set when process has restart script */ +#define SF_DET_RESTART 0x400 /* set when process detaches on restart */ +#define SF_NORESTART 0x800 /* set when process should not be restarted */ + +#define IMM_SF \ + (SF_CORE_SRV | SF_SYNCH_BOOT | SF_NEED_COPY | SF_NEED_REPL) /* immutable */ + int minix_rs_lookup(const char *name, endpoint_t *value); #endif diff --git a/minix/servers/rs/const.h b/minix/servers/rs/const.h index e1ed8ff77..6063c9d0f 100644 --- a/minix/servers/rs/const.h +++ b/minix/servers/rs/const.h @@ -43,8 +43,6 @@ #define SF_NEED_REPL 0x010 /* set when process needs replica to start */ #define SF_USE_REPL 0x020 /* set when process has a replica */ #define SF_NO_BIN_EXP 0x040 /* set when we should ignore binary exp. offset */ -#define IMM_SF \ - (SF_NO_BIN_EXP | SF_CORE_SRV | SF_SYNCH_BOOT | SF_NEED_COPY | SF_NEED_REPL) /* immutable */ /* Constants determining RS period and binary exponential backoff. */ #define RS_INIT_T (system_hz * 10) /* allow T ticks for init */