ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

file.h
Go to the documentation of this file.
00001 /* file.h  -  Additional file attributes */
00002 
00003 /* Written 1993 by Werner Almesberger */
00004 
00005 
00006 #ifndef _FILE_H
00007 #define _FILE_H
00008 
00009 typedef enum { fdt_none,fdt_drop,fdt_undelete } FD_TYPE;
00010 
00011 typedef struct _fptr {
00012     char name[MSDOS_NAME];
00013     FD_TYPE type;
00014     struct _fptr *first; /* first entry */
00015     struct _fptr *next; /* next file in directory */
00016 } FDSC;
00017 
00018 
00019 extern FDSC *fp_root;
00020 
00021 
00022 char *file_name(unsigned char *fixed);
00023 
00024 /* Returns a pointer to a pretty-printed representation of a fixed MS-DOS file
00025    name. */
00026 
00027 int file_cvt(unsigned char *name,unsigned char *fixed);
00028 
00029 /* Converts a pretty-printed file name to the fixed MS-DOS format. Returns a
00030    non-zero integer on success, zero on failure. */
00031 
00032 void file_add(char *path,FD_TYPE type);
00033 
00034 /* Define special attributes for a path. TYPE can be either FDT_DROP or
00035    FDT_UNDELETE. */
00036 
00037 FDSC **file_cd(FDSC **curr,char *fixed);
00038 
00039 /* Returns a pointer to the directory descriptor of the subdirectory FIXED of
00040    CURR, or NULL if no such subdirectory exists. */
00041 
00042 FD_TYPE file_type(FDSC **curr,char *fixed);
00043 
00044 /* Returns the attribute of the file FIXED in directory CURR or FDT_NONE if no
00045    such file exists or if CURR is NULL. */
00046 
00047 void file_modify(FDSC **curr,unsigned char *fixed);
00048 
00049 /* Performs the necessary operation on the entry of CURR that is named FIXED. */
00050 
00051 void file_unused(void);
00052 
00053 /* Displays warnings for all unused file attributes. */
00054 
00055 #endif

Generated on Fri May 25 2012 04:28:26 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.