]> Zhao Yanbai Git Server - minix.git/commitdiff
New DMAP_BABY flag in <minix/dmap.h> and to be printed by IS in dmap dump.
authorBen Gras <ben@minix3.org>
Thu, 20 Oct 2005 19:40:44 +0000 (19:40 +0000)
committerBen Gras <ben@minix3.org>
Thu, 20 Oct 2005 19:40:44 +0000 (19:40 +0000)
include/minix/dmap.h
servers/is/dmp_fs.c

index 5e84aff763edcd6b2f4dcc3dae4bd9e6581440f6..1ac9dcd10ce357a42cd6e50007c5c98b502d4a5c 100644 (file)
@@ -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 };
 
index b3eb3d96425d118e892391cb1beac2235cd90788..01946537d25c6287ad03298ace3cf31c994812e9 100644 (file)
@@ -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;
 }