Make chan->flag 32 bits
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 8 Jan 2017 20:29:54 +0000 (15:29 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
16 bits isn't enough to support the various open flags we want to store.
Flags like O_REMCLO were silently getting dropped.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h

index 8e94995..516ed8b 100644 (file)
@@ -404,7 +404,7 @@ struct chan {
        int type;
        uint32_t dev;
        uint16_t mode;                          /* read/write */
-       uint16_t flag;
+       int flag;
        struct qid qid;
        int fid;                                        /* for devmnt */
        uint32_t iounit;                        /* chunk size for i/o; 0==default */