Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenio.h
Go to the documentation of this file.
00001 /* io.h - Virtual disk input/output */ 00002 00003 /* Written 1993 by Werner Almesberger */ 00004 00005 /* FAT32, VFAT, Atari format support, and various fixes additions May 1998 00006 * by Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> */ 00007 00008 00009 #ifndef _IO_H 00010 #define _IO_H 00011 00012 //#include <sys/types.h> /* for loff_t */ 00013 #include "dosfsck.h" 00014 00015 /* In earlier versions, an own llseek() was used, but glibc lseek() is 00016 * sufficient (or even better :) for 64 bit offsets in the meantime */ 00017 #define llseek lseek 00018 00019 void fs_open(PUNICODE_STRING DriveRoot,int rw); 00020 00021 /* Opens the file system PATH. If RW is zero, the file system is opened 00022 read-only, otherwise, it is opened read-write. */ 00023 00024 BOOLEAN fs_isdirty(void); 00025 00026 /* Checks if filesystem is dirty */ 00027 00028 void fs_read(loff_t pos,int size,void *data); 00029 00030 /* Reads SIZE bytes starting at POS into DATA. Performs all applicable 00031 changes. */ 00032 00033 int fs_test(loff_t pos,int size); 00034 00035 /* Returns a non-zero integer if SIZE bytes starting at POS can be read without 00036 errors. Otherwise, it returns zero. */ 00037 00038 void fs_write(loff_t pos,int size,void *data); 00039 00040 /* If write_immed is non-zero, SIZE bytes are written from DATA to the disk, 00041 starting at POS. If write_immed is zero, the change is added to a list in 00042 memory. */ 00043 00044 int fs_close(int write); 00045 00046 /* Closes the file system, performs all pending changes if WRITE is non-zero 00047 and removes the list of changes. Returns a non-zero integer if the file 00048 system has been changed since the last fs_open, zero otherwise. */ 00049 00050 int fs_changed(void); 00051 00052 /* Determines whether the file system has changed. See fs_close. */ 00053 00054 NTSTATUS fs_lock(BOOLEAN LockVolume); 00055 00056 /* Lock or unlocks the volume */ 00057 00058 void fs_dismount(void); 00059 00060 /* Dismounts the volume */ 00061 00062 extern unsigned device_no; 00063 00064 /* Major number of device (0 if file) and size (in 512 byte sectors) */ 00065 00066 #endif Generated on Sat May 26 2012 04:28:27 for ReactOS by
1.7.6.1
|