Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
548 serge 1
/****************************************************************************
2
*
3
*                            Open Watcom Project
4
*
5
*    Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
6
*
7
*  ========================================================================
8
*
9
*    This file contains Original Code and/or Modifications of Original
10
*    Code as defined in and that are subject to the Sybase Open Watcom
11
*    Public License version 1.0 (the 'License'). You may not use this file
12
*    except in compliance with the License. BY USING THIS FILE YOU AGREE TO
13
*    ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
14
*    provided with the Original Code and Modifications, and is also
15
*    available at www.sybase.com/developer/opensource.
16
*
17
*    The Original Code and all software distributed under the License are
18
*    distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
19
*    EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
20
*    ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
21
*    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
22
*    NON-INFRINGEMENT. Please see the License for the specific language
23
*    governing rights and limitations under the License.
24
*
25
*  ========================================================================
26
*
27
* Description:  WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
28
*               DESCRIBE IT HERE!
29
*
30
****************************************************************************/
31
 
32
 
33
#ifndef _OPENMODE_H_INCLUDED
34
#define _OPENMODE_H_INCLUDED
35
enum {
36
        FILEATTR_MASK       = 0x003f,
37
        FILEATTR_NORMAL     = 0x0000,
38
        FILEATTR_READONLY   = 0x0001,
39
        FILEATTR_HIDDEN     = 0x0002,
40
        FILEATTR_SYSTEM     = 0x0004,
41
        FILEATTR_DIRECTORY  = 0x0010,
42
        FILEATTR_ARCHIVED   = 0x0020
43
};
44
 
45
enum {
46
        OPENFLAG_FAIL_IF_EXISTS         = 0x0000,
47
        OPENFLAG_OPEN_IF_EXISTS         = 0x0001,
48
        OPENFLAG_REPLACE_IF_EXISTS      = 0x0002,
49
        OPENFLAG_FAIL_IF_NOT_EXISTS     = 0x0000,
50
        OPENFLAG_CREATE_IF_NOT_EXISTS   = 0x0010
51
};
52
 
53
enum {
54
        OPENMODE_DASD                   = 0x8000,
55
        OPENMODE_WRITE_THROUGH          = 0x4000,
56
        OPENMODE_FAIL_ERRORS            = 0x2000,
57
        OPENMODE_NO_CACHE               = 0x1000,
58
        OPENMODE_LOCALITY_MASK          = 0x0700,
59
        OPENMODE_LOCALITY_RANDSEQ       = 0x0300,
60
        OPENMODE_LOCALITY_RANDOM        = 0x0200,
61
        OPENMODE_LOCALITY_SEQUENTIAL    = 0x0100,
62
        OPENMODE_LOCALITY_NONE          = 0x0000,
63
        OPENMODE_INHERITANCE            = 0x0080,
64
        OPENMODE_SHARE_MASK             = 0x0070,
65
        OPENMODE_DENY_COMPAT            = 0x0000,
66
        OPENMODE_DENY_ALL               = 0x0010,
67
        OPENMODE_DENY_WRITE             = 0x0020,
68
        OPENMODE_DENY_READ              = 0x0030,
69
        OPENMODE_DENY_NONE              = 0x0040,
70
        OPENMODE_ACCESS_MASK            = 0x0007,
71
        OPENMODE_ACCESS_RDONLY          = 0x0000,
72
        OPENMODE_ACCESS_WRONLY          = 0x0001,
73
        OPENMODE_ACCESS_RDWR            = 0x0002
74
};
75
#endif