Subversion Repositories HelenOS

Rev

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

Rev 4153 Rev 4581
Line 85... Line 85...
85
{
85
{
86
    int fd, bytes = 0, count = 0, reads = 0;
86
    int fd, bytes = 0, count = 0, reads = 0;
87
    off_t total = 0;
87
    off_t total = 0;
88
    char *buff = NULL;
88
    char *buff = NULL;
89
 
89
 
90
    if (-1 == (fd = open(fname, O_RDONLY))) {
90
    fd = open(fname, O_RDONLY);
-
 
91
    if (fd < 0) {
91
        printf("Unable to open %s\n", fname);
92
        printf("Unable to open %s\n", fname);
92
        return 1;
93
        return 1;
93
    }
94
    }
94
 
95
 
95
    total = lseek(fd, 0, SEEK_END);
96
    total = lseek(fd, 0, SEEK_END);