Changeset 1c03c17 in mainline for uspace/lib/libc


Ignore:
Timestamp:
2008-06-06T23:16:37Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c05a50f
Parents:
b7b6753
Message:

uspace klog

Location:
uspace/lib/libc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/stream.c

    rb7b6753 r1c03c17  
    8383                return count;
    8484        } else
    85                 return __SYSCALL3(SYS_IO, 1, (sysarg_t) buf, count);
     85                return __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, count);
    8686}
    8787
     
    9595}
    9696
     97void klog_update(void)
     98{
     99        (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);
     100}
     101
    97102int get_cons_phone(void)
    98103{
  • uspace/lib/libc/include/io/stream.h

    rb7b6753 r1c03c17  
    4141
    4242extern void open_console(void);
     43extern void klog_update(void);
    4344
    4445extern ssize_t read_stdin(void *, size_t);
  • uspace/lib/libc/include/stdio.h

    rb7b6753 r1c03c17  
    5050        n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \
    5151        if (n > 0) \
    52                 (void) __SYSCALL3(SYS_IO, 1, (sysarg_t) buf, strlen(buf)); \
     52                (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, strlen(buf)); \
    5353}
    5454
Note: See TracChangeset for help on using the changeset viewer.