Changeset 2595dab in mainline for uspace/lib/libc/generic/io/klog.c
- Timestamp:
- 2009-06-03T19:26:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d00ae4c
- Parents:
- ca3ba3a
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/io/klog.c
rca3ba3a r2595dab 1 1 /* 2 2 * Copyright (c) 2006 Josef Cejka 3 * Copyright (c) 2006 Jakub Vana 3 4 * All rights reserved. 4 5 * … … 33 34 */ 34 35 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> 37 41 38 #include <sys/types.h> 42 size_t klog_write(const void *buf, size_t size) 43 { 44 return (size_t) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, size); 45 } 39 46 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 47 void klog_update(void) 48 { 49 (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0); 50 } 46 51 47 52 /** @} 48 53 */ 49 50
Note:
See TracChangeset
for help on using the changeset viewer.