From: Ben Gras Date: Thu, 20 Oct 2005 19:40:44 +0000 (+0000) Subject: New DMAP_BABY flag in and to be printed by IS in dmap dump. X-Git-Tag: v3.1.2a~600 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=f6bdd6a4a9f920067972be43b792c07a3174fa96;p=minix.git New DMAP_BABY flag in and to be printed by IS in dmap dump. --- diff --git a/include/minix/dmap.h b/include/minix/dmap.h index 5e84aff76..1ac9dcd10 100644 --- a/include/minix/dmap.h +++ b/include/minix/dmap.h @@ -15,6 +15,7 @@ */ #define DMAP_MUTABLE 0x01 /* mapping can be overtaken */ #define DMAP_BUSY 0x02 /* driver busy with request */ +#define DMAP_BABY 0x04 /* driver exec() not done yet */ enum dev_style { STYLE_DEV, STYLE_NDEV, STYLE_TTY, STYLE_CLONE }; diff --git a/servers/is/dmp_fs.c b/servers/is/dmp_fs.c index b3eb3d964..01946537d 100644 --- a/servers/is/dmp_fs.c +++ b/servers/is/dmp_fs.c @@ -54,9 +54,10 @@ PUBLIC void fproc_dmp() PRIVATE char * dmap_flags(int flags) { static char fl[10]; - fl[0] = '-'; + strcpy(fl, "---"); if(flags & DMAP_MUTABLE) fl[0] = 'M'; - fl[1] = '\0'; + if(flags & DMAP_BUSY) fl[1] = 'S'; + if(flags & DMAP_BABY) fl[2] = 'B'; return fl; }