Changeset 26e7d6d in mainline for uspace/lib/posix/ctype.h
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/ctype.h
r3842a955 r26e7d6d 1 1 /* 2 * Copyright (c) 2008 Pavel Rimsky 2 * Copyright (c) 2011 Jiri Zarevucky 3 * Copyright (c) 2011 Petr Koupy 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 /** 30 * @defgroup serial Serial console 31 * @brief Serial console services (putc, puts, clear screen, cursor goto,...) 30 /** @addtogroup libposix 32 31 * @{ 33 32 */ 34 35 /** @file 33 /** @file Character classification. 36 34 */ 37 35 38 #ifndef FB_SERIAL_CONSOLE_H_39 #define FB_SERIAL_CONSOLE_H_36 #ifndef POSIX_CTYPE_H_ 37 #define POSIX_CTYPE_H_ 40 38 41 #include <sys/types.h> 42 #include <ipc/common.h> 39 #include "libc/ctype.h" 43 40 44 typedef void (*putc_function_t)(char); 41 /* Classification of Characters */ 42 extern int posix_isxdigit(int c); 43 extern int posix_isblank(int c); 44 extern int posix_iscntrl(int c); 45 extern int posix_isgraph(int c); 46 extern int posix_isprint(int c); 47 extern int posix_ispunct(int c); 45 48 46 extern void serial_puts(const char *); 47 extern void serial_goto(const sysarg_t, const sysarg_t); 48 extern void serial_clrscr(void); 49 extern void serial_scroll(ssize_t); 50 extern void serial_cursor_disable(void); 51 extern void serial_cursor_enable(void); 52 extern void serial_set_scroll_region(sysarg_t); 53 extern void serial_console_init(putc_function_t, sysarg_t, sysarg_t); 54 extern void serial_client_connection(ipc_callid_t, ipc_call_t *, void *arg); 49 /* Obsolete Functions and Macros */ 50 extern int posix_isascii(int c); 51 extern int posix_toascii(int c); 52 #undef _tolower 53 #define _tolower(c) ((c) - 'A' + 'a') 54 #undef _toupper 55 #define _toupper(c) ((c) - 'a' + 'A') 55 56 57 58 #ifndef LIBPOSIX_INTERNAL 59 #define isxdigit posix_isxdigit 60 #define isblank posix_isblank 61 #define iscntrl posix_iscntrl 62 #define isgraph posix_isgraph 63 #define isprint posix_isprint 64 #define ispunct posix_ispunct 65 66 #define isascii posix_isascii 67 #define toascii posix_toascii 56 68 #endif 69 70 #endif /* POSIX_CTYPE_H_ */ 71 72 /** @} 73 */
Note:
See TracChangeset
for help on using the changeset viewer.