22 lines
490 B
C
22 lines
490 B
C
|
#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
|