Ignore:
Timestamp:
2017-04-02T12:27:14Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4067a7
Parents:
163fc09
Message:

Rename read() to vfs_read() and write() to vfs_write()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    r163fc09 rce04ea44  
    413413        }
    414414
    415         while ((bytes = read(fd1, &posr, buff, blen)) > 0) {
    416                 if ((bytes = write(fd2, &posw, buff, bytes)) < 0)
     415        while ((bytes = vfs_read(fd1, &posr, buff, blen)) > 0) {
     416                if ((bytes = vfs_write(fd2, &posw, buff, bytes)) < 0)
    417417                        break;
    418418                copied += bytes;
     
    420420
    421421        if (bytes < 0) {
    422                 printf("\nError copying %s, (%d)\n", src, errno);
     422                printf("\nError copying %s, (%d)\n", src, bytes);
    423423                copied = bytes;
    424424        }
Note: See TracChangeset for help on using the changeset viewer.