Changeset 2595dab in mainline for uspace/lib/libc/generic/io/klog.c


Ignore:
Timestamp:
2009-06-03T19:26:28Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d00ae4c
Parents:
ca3ba3a
Message:

I/O subsystem overhaul:

  • add more POSIX-like file and stream functions (with real functionality of stdin, stdout, stderr)
  • cleanup console access methods (now generic to any console-like device)
  • remove unsafe stream functions
  • add special open_node(), fd_node(), fd_phone() (file) and fopen_node(), fnode(), fphone() (stream) functions for HelenOS-specific I/O operations
File:
1 moved

Legend:

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

    rca3ba3a r2595dab  
    11/*
    22 * Copyright (c) 2006 Josef Cejka
     3 * Copyright (c) 2006 Jakub Vana
    34 * All rights reserved.
    45 *
     
    3334 */
    3435
    35 #ifndef LIBC_IO_H_
    36 #define LIBC_IO_H_
     36#include <libc.h>
     37#include <string.h>
     38#include <sys/types.h>
     39#include <unistd.h>
     40#include <io/klog.h>
    3741
    38 #include <sys/types.h>
     42size_t klog_write(const void *buf, size_t size)
     43{
     44        return (size_t) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, size);
     45}
    3946
    40 int putnchars(const char * buf, size_t count);
    41 int putstr(const char * str);
    42 int putchar(int c);
    43 int getchar(void);
    44 
    45 #endif
     47void klog_update(void)
     48{
     49        (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);
     50}
    4651
    4752/** @}
    4853 */
    49  
    50  
Note: See TracChangeset for help on using the changeset viewer.