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; }