Subversion Repositories Kolibri OS

Rev

Rev 8623 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8623 Rev 8628
Line 8... Line 8...
8
#include 
8
#include 
Line 9... Line 9...
9
 
9
 
10
#define asm_inline __asm__ __volatile__
10
#define asm_inline __asm__ __volatile__
Line 11... Line 11...
11
#define not_optimized __attribute__((optimize("O0")))
11
#define not_optimized __attribute__((optimize("O0")))
12
 
12
 
13
#define _KOS_FS_ERR_SUCCESS 0  // Success
13
#define KSYS_FS_ERR_SUCCESS 0  // Success
14
#define _KOS_FS_ERR_1       1  // Base and/or partition of a hard disk is not defined (fn21.7 & fn21.8)
14
#define KSYS_FS_ERR_1       1  // Base and/or partition of a hard disk is not defined (fn21.7 & fn21.8)
15
#define _KOS_FS_ERR_2       2  // Function is not supported for the given file system
15
#define KSYS_FS_ERR_2       2  // Function is not supported for the given file system
16
#define _KOS_FS_ERR_3       3  // Unknown file system
16
#define KSYS_FS_ERR_3       3  // Unknown file system
17
#define _KOS_FS_ERR_4       4  // Reserved, is never returned in the current implementation
17
#define KSYS_FS_ERR_4       4  // Reserved, is never returned in the current implementation
18
#define _KOS_FS_ERR_5       5  // File not found
18
#define KSYS_FS_ERR_5       5  // File not found
19
#define _KOS_FS_ERR_EOF     6  // End of file, EOF
19
#define KSYS_FS_ERR_EOF     6  // End of file, EOF
20
#define _KOS_FS_ERR_7       7  // Pointer lies outside of application memory
20
#define KSYS_FS_ERR_7       7  // Pointer lies outside of application memory
21
#define _KOS_FS_ERR_8       8  // Disk is full
21
#define KSYS_FS_ERR_8       8  // Disk is full
22
#define _KOS_FS_ERR_9       9  // FAT table is destroyed
22
#define KSYS_FS_ERR_9       9  // FAT table is destroyed
Line 23... Line 23...
23
#define _KOS_FS_ERR_10      10 // Access denied
23
#define KSYS_FS_ERR_10      10 // Access denied
24
#define _KOS_FS_ERR_11      11 // Device error
24
#define KSYS_FS_ERR_11      11 // Device error
25
 
25
 
26
typedef struct {
26
typedef struct {
Line 182... Line 182...
182
    KSYS_CLIP_TEXT = 0,
182
    KSYS_CLIP_TEXT = 0,
183
    KSYS_CLIP_IMAGE = 1,
183
    KSYS_CLIP_IMAGE = 1,
184
    KSYS_CLIP_RAW = 2
184
    KSYS_CLIP_RAW = 2
185
};
185
};
Line -... Line 186...
-
 
186
 
-
 
187
enum KSYS_MOUSE_POS{
-
 
188
    KSYS_MOUSE_SCREEN_POS = 0,
-
 
189
    KSYS_MOUSE_WINDOW_POS = 1
-
 
190
};
186
 
191
 
187
static inline 
192
static inline 
188
int _ksys_strcmp(const char * s1, const char * s2 )
193
int _ksys_strcmp(const char * s1, const char * s2 )
189
{
194
{
190
    while ((*s1) && (*s1 == *s2)){
195
    while ((*s1) && (*s1 == *s2)){