comparison src/data_gear/file.dg @ 346:36ed64fea8c1

emit context.h
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Mon, 02 Mar 2020 14:19:49 +0900
parents
children
comparison
equal deleted inserted replaced
345:efef0767b1bc 346:36ed64fea8c1
1 typedef struct file <DATA> {
2 enum { FD_NONE, FD_PIPE, FD_INODE } type;
3 int ref; // reference count
4 char readable;
5 char writable;
6 struct pipe *pipe;
7 struct inode *ip;
8 uint off;
9 } file;