view src/interface/file.dg @ 125:f103beea19f4

tweak
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 03 Dec 2019 09:32:33 +0900
parents 83aadf17d3d0
children c690327cabc8
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;
    uint         off;
} file;