Changeset ce04ea44 in mainline for uspace/lib/posix/source/stdio.c


Ignore:
Timestamp:
2017-04-02T12:27:14Z (8 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/lib/posix/source/stdio.c

    r163fc09 rce04ea44  
    344344{
    345345        const int fildes = *(int *) fd;
    346         ssize_t wr = write(fildes, &posix_pos[fildes], str, size);
     346        ssize_t wr = vfs_write(fildes, &posix_pos[fildes], str, size);
    347347        if (wr < 0)
    348                 return errno;
     348                return wr;
    349349        return str_nlength(str, wr);
    350350}
     
    372372               
    373373                const int fildes = *(int *) fd;
    374                 if (write(fildes, &posix_pos[fildes], buf, sz) != (ssize_t) sz)
     374                if (vfs_write(fildes, &posix_pos[fildes], buf, sz) < 0)
    375375                        break;
    376376               
Note: See TracChangeset for help on using the changeset viewer.