view src/interface/file.dg @ 133:ae25a4e76377

fix gen_context.pl
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 11 Dec 2019 17:10:43 +0900
parents c690327cabc8
children 2fc7ed85e76c
line wrap: on
line source

typedef struct file <Impl> {
    enum { FD_NONE, FD_PIPE, FD_INODE } type;
    int          ref;   // reference count
    char         readable;
    char         writable;
    struct pipe  *pipe;
    struct inode *ip;
    unsigned int off;
} file;