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


Ignore:
Timestamp:
2017-03-24T20:31:54Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e9b2534
Parents:
c9e3692
Message:

Remove VFS_IN_SEEK from VFS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/stdio.c

    rc9e3692 r58898d1d  
    344344static int _dprintf_str_write(const char *str, size_t size, void *fd)
    345345{
    346         ssize_t wr = write(*(int *) fd, str, size);
     346        const int fildes = *(int *) fd;
     347        ssize_t wr = write(fildes, &posix_pos[fildes], str, size);
    347348        if (wr < 0)
    348349                return errno;
     
    371372                }
    372373               
    373                 if (write(*(int *) fd, buf, sz) != (ssize_t) sz) {
     374                const int fildes = *(int *) fd;
     375                if (write(fildes, &posix_pos[fildes], buf, sz) != (ssize_t) sz)
    374376                        break;
    375                 }
    376377               
    377378                chars++;
Note: See TracChangeset for help on using the changeset viewer.