Skip to content

Instantly share code, notes, and snippets.

@heronyang
Created August 3, 2019 21:02
Show Gist options
  • Save heronyang/eded16413480b2a5f40b6d8df1ad913c to your computer and use it in GitHub Desktop.
Save heronyang/eded16413480b2a5f40b6d8df1ad913c to your computer and use it in GitHub Desktop.
// The UNIX operating system requires that every IO device driver provide five
// standard functions: open, close, read, write, seek.
struct FILE {
void (*open)(char *name, int mode);
void (*close)();
int (*read)();
void (*write)(char);
void (*seek)(long index, int mode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment