minix/commands/i386/mtools-3.9.7/plain_io.h

22 lines
490 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#ifndef MTOOLS_PLAINIO_H
#define MTOOLS_PLAINIO_H
#include "stream.h"
#include "msdos.h"
#ifdef __EMX__
#include <io.h>
#endif
/* plain io */
#define NO_PRIV 1
#define NO_OFFSET 2
Stream_t *SimpleFileOpen(struct device *dev, struct device *orig_dev,
const char *name, int mode, char *errmsg, int mode2,
int locked, mt_size_t *maxSize);
int check_parameters(struct device *ref, struct device *testee);
int get_fd(Stream_t *Stream);
void *get_extra_data(Stream_t *Stream);
#endif