Added definition for HUGE_VAL.
[wine] / include / file.h
1 /*
2  * File handling declarations
3  *
4  * Copyright 1996 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_FILE_H
22 #define __WINE_FILE_H
23
24 #include <stdarg.h>
25 #include <windef.h>
26 #include <winbase.h>
27
28 #define MAX_PATHNAME_LEN   1024
29
30 /* Definition of a full DOS file name */
31 typedef struct
32 {
33     char  long_name[MAX_PATHNAME_LEN];  /* Long pathname in Unix format */
34     WCHAR short_name[MAX_PATHNAME_LEN]; /* Short pathname in DOS 8.3 format */
35     int   drive;
36 } DOS_FULL_NAME;
37
38 /* files/file.c */
39 extern mode_t FILE_umask;
40 extern void FILE_SetDosError(void);
41 extern BOOL FILE_Stat( LPCSTR unixName, BY_HANDLE_FILE_INFORMATION *info, BOOL *is_symlink );
42 extern HANDLE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
43                                LPSECURITY_ATTRIBUTES sa, DWORD creation,
44                                DWORD attributes, HANDLE template );
45
46 /* files/directory.c */
47 extern int DIR_Init(void);
48
49 /* files/dos_fs.c */
50 extern BOOL DOSFS_GetFullName( LPCWSTR name, BOOL check_last, DOS_FULL_NAME *full );
51
52 /* drive.c */
53 extern int DRIVE_Init(void);
54 extern int DRIVE_IsValid( int drive );
55 extern int DRIVE_GetCurrentDrive(void);
56 extern int DRIVE_FindDriveRoot( const char **path );
57 extern int DRIVE_FindDriveRootW( LPCWSTR *path );
58 extern const char * DRIVE_GetRoot( int drive );
59 extern LPCWSTR DRIVE_GetDosCwd( int drive );
60 extern const char * DRIVE_GetUnixCwd( int drive );
61 extern const char * DRIVE_GetDevice( int drive );
62 extern int DRIVE_Chdir( int drive, LPCWSTR path );
63 extern WCHAR *DRIVE_BuildEnv(void);
64
65 /* vxd.c */
66 extern HANDLE VXD_Open( LPCWSTR filename, DWORD access, LPSECURITY_ATTRIBUTES sa );
67
68 #endif  /* __WINE_FILE_H */