Changeset ab936440 in mainline for uspace/lib/c/generic/io/chardev.c


Ignore:
Timestamp:
2019-02-12T20:42:42Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/chardev.c

    r7f7817a9 rab936440  
    9191 * @param size Maximum number of bytes to read
    9292 * @param nread Place to store actual number of bytes read
     93 * @param flags @c chardev_f_nonblock to return immediately even if no
     94 *              bytes are available
    9395 *
    9496 * @return EOK on success or non-zero error code
    9597 */
    96 errno_t chardev_read(chardev_t *chardev, void *buf, size_t size, size_t *nread)
     98errno_t chardev_read(chardev_t *chardev, void *buf, size_t size, size_t *nread,
     99    chardev_flags_t flags)
    97100{
    98101        async_exch_t *exch = async_exchange_begin(chardev->sess);
     
    104107
    105108        ipc_call_t answer;
    106         aid_t req = async_send_0(exch, CHARDEV_READ, &answer);
     109        aid_t req = async_send_1(exch, CHARDEV_READ, flags, &answer);
    107110        errno_t rc = async_data_read_start(exch, buf, size);
    108111        async_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.