Subversion Repositories Kolibri OS

Rev

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

Rev 8624 Rev 8628
Line 7... Line 7...
7
    unsigned bytes_read;
7
    unsigned bytes_read;
8
    char c;
8
    char c;
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
    unsigned status = _ksys_file_read_file(stream->name, stream->position, 1, &c, &bytes_read);
10
    unsigned status = _ksys_file_read_file(stream->name, stream->position, 1, &c, &bytes_read);
11
 
11
 
12
    if (status != _KOS_FS_ERR_SUCCESS) {
12
    if (status != KSYS_FS_ERR_SUCCESS) {
13
        switch (status) {
13
        switch (status) {
14
            case _KOS_FS_ERR_EOF:
14
            case KSYS_FS_ERR_EOF:
15
                stream->eof = 1;
15
                stream->eof = 1;
16
                break;
16
                break;
17
            case _KOS_FS_ERR_1:
17
            case KSYS_FS_ERR_1:
18
            case _KOS_FS_ERR_2:
18
            case KSYS_FS_ERR_2:
19
            case _KOS_FS_ERR_3:
19
            case KSYS_FS_ERR_3:
20
            case _KOS_FS_ERR_4:
20
            case KSYS_FS_ERR_4:
21
            case _KOS_FS_ERR_5:
21
            case KSYS_FS_ERR_5:
22
            case _KOS_FS_ERR_7:
22
            case KSYS_FS_ERR_7:
23
            case _KOS_FS_ERR_8:
23
            case KSYS_FS_ERR_8:
24
            case _KOS_FS_ERR_9:
24
            case KSYS_FS_ERR_9:
25
            case _KOS_FS_ERR_10:
25
            case KSYS_FS_ERR_10:
26
            case _KOS_FS_ERR_11:
26
            case KSYS_FS_ERR_11:
27
            default:
27
            default:
28
                // Just some IO error, who knows what exactly happened
28
                // Just some IO error, who knows what exactly happened
29
                errno = EIO;
29
                errno = EIO;