Changeset eec616b in mainline for kernel/generic/include
- Timestamp:
- 2009-03-24T14:43:25Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f29e336
- Parents:
- 74c8da2c
- Location:
- kernel/generic/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r74c8da2c reec616b 72 72 typedef struct { 73 73 /** Write character to output. */ 74 void (* write)(struct outdev *, charc, bool silent);74 void (* write)(struct outdev *, wchar_t c, bool silent); 75 75 } outdev_operations_t; 76 76 -
kernel/generic/include/console/console.h
r74c8da2c reec616b 53 53 extern uint8_t _getc(indev_t *indev); 54 54 extern count_t gets(indev_t *indev, char *buf, size_t buflen); 55 extern void putchar(char c);56 55 extern unative_t sys_klog(int fd, const void * buf, size_t count); 57 56 -
kernel/generic/include/print.h
r74c8da2c reec616b 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 47 47 extern int puts(const char *s); 48 48 extern int printf(const char *fmt, ...); 49 extern int sprintf(char *str, const char *fmt, ...);50 49 extern int snprintf(char *str, size_t size, const char *fmt, ...); 51 50 52 51 extern int vprintf(const char *fmt, va_list ap); 53 extern int vsprintf(char *str, const char *fmt, va_list ap);54 52 extern int vsnprintf(char *str, size_t size, const char *fmt, va_list ap); 55 53 -
kernel/generic/include/printf/printf_core.h
r74c8da2c reec616b 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_PRINTF_CORE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <arch/arg.h> 40 40 41 41 /** Structure for specifying output methods for different printf clones. */ 42 struct printf_spec { 43 /* Output function, returns count of printed characters or EOF */ 44 int (*write)(void *, size_t, void *); 45 /* Support data - output stream specification, its state, locks,... */ 42 typedef struct { 43 /* UTF-8 output function, returns number of printed UTF-8 characters or EOF */ 44 int (*write_utf8)(const char *, size_t, void *); 45 46 /* UTF-32 output function, returns number of printed UTF-32 characters or EOF */ 47 int (*write_utf32)(const wchar_t *, size_t, void *); 48 49 /* User data - output stream specification, state, locks, etc. */ 46 50 void *data; 51 } printf_spec_t; 47 52 48 }; 49 50 int printf_core(const char *fmt, struct printf_spec *ps, va_list ap); 53 int printf_core(const char *fmt, printf_spec_t *ps, va_list ap); 51 54 52 55 #endif -
kernel/generic/include/putchar.h
r74c8da2c reec616b 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_PUTCHAR_H_ 37 37 38 extern void putchar(const charch);38 extern void putchar(const wchar_t ch); 39 39 40 40 #endif
Note:
See TracChangeset
for help on using the changeset viewer.