Changeset 7bdcc45 in mainline for uspace/lib/c/generic/io
- Timestamp:
- 2010-12-16T16:38:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7837101
- Parents:
- 8e58f94 (diff), eb221e5 (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. - Location:
- uspace/lib/c/generic/io
- Files:
-
- 4 edited
-
console.c (modified) (4 diffs)
-
klog.c (modified) (1 diff)
-
printf_core.c (modified) (5 diffs)
-
screenbuffer.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
r8e58f94 r7bdcc45 45 45 } 46 46 47 int console_get_size(int phone, ipcarg_t *cols, ipcarg_t *rows)47 int console_get_size(int phone, sysarg_t *cols, sysarg_t *rows) 48 48 { 49 49 return async_req_0_2(phone, CONSOLE_GET_SIZE, cols, rows); … … 71 71 } 72 72 73 int console_get_color_cap(int phone, ipcarg_t *ccap)73 int console_get_color_cap(int phone, sysarg_t *ccap) 74 74 { 75 75 return async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, ccap); … … 81 81 } 82 82 83 int console_get_pos(int phone, ipcarg_t *col, ipcarg_t *row)83 int console_get_pos(int phone, sysarg_t *col, sysarg_t *row) 84 84 { 85 85 return async_req_0_2(phone, CONSOLE_GET_POS, col, row); 86 86 } 87 87 88 void console_set_pos(int phone, ipcarg_t col, ipcarg_t row)88 void console_set_pos(int phone, sysarg_t col, sysarg_t row) 89 89 { 90 90 async_msg_2(phone, CONSOLE_GOTO, col, row); … … 93 93 bool console_get_event(int phone, console_event_t *event) 94 94 { 95 ipcarg_t type;96 ipcarg_t key;97 ipcarg_t mods;98 ipcarg_t c;95 sysarg_t type; 96 sysarg_t key; 97 sysarg_t mods; 98 sysarg_t c; 99 99 100 100 int rc = async_req_0_4(phone, CONSOLE_GET_EVENT, &type, &key, &mods, &c); -
uspace/lib/c/generic/io/klog.c
r8e58f94 r7bdcc45 52 52 void klog_update(void) 53 53 { 54 (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);54 (void) __SYSCALL3(SYS_KLOG, 1, (uintptr_t) NULL, 0); 55 55 } 56 56 -
uspace/lib/c/generic/io/printf_core.c
r8e58f94 r7bdcc45 82 82 PrintfQualifierLong, 83 83 PrintfQualifierLongLong, 84 PrintfQualifierPointer 84 PrintfQualifierPointer, 85 PrintfQualifierSize 85 86 } qualifier_t; 86 87 … … 552 553 * - "" Signed or unsigned int (default value).@n 553 554 * - "l" Signed or unsigned long int.@n 554 * If conversion is "c", the character is w char_t (wide character).@n555 * If conversion is "c", the character is wint_t (wide character).@n 555 556 * If conversion is "s", the string is wchar_t * (wide string).@n 556 557 * - "ll" Signed or unsigned long long int.@n 558 * - "z" Signed or unsigned ssize_t or site_t.@n 557 559 * 558 560 * CONVERSION:@n … … 736 738 } 737 739 break; 740 case 'z': 741 qualifier = PrintfQualifierSize; 742 i = nxt; 743 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 744 break; 738 745 default: 739 746 /* Default type */ … … 763 770 case 'c': 764 771 if (qualifier == PrintfQualifierLong) 765 retval = print_wchar(va_arg(ap, w char_t), width, flags, ps);772 retval = print_wchar(va_arg(ap, wint_t), width, flags, ps); 766 773 else 767 774 retval = print_char(va_arg(ap, unsigned int), width, flags, ps); … … 849 856 precision = size << 1; 850 857 number = (uint64_t) (uintptr_t) va_arg(ap, void *); 858 break; 859 case PrintfQualifierSize: 860 size = sizeof(size_t); 861 number = (uint64_t) va_arg(ap, size_t); 851 862 break; 852 863 default: -
uspace/lib/c/generic/io/screenbuffer.c
r8e58f94 r7bdcc45 67 67 * 68 68 */ 69 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, ipcarg_t size_x,70 ipcarg_t size_y)69 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, sysarg_t size_x, 70 sysarg_t size_y) 71 71 { 72 72 scr->buffer = (keyfield_t *) malloc(sizeof(keyfield_t) * size_x * size_y); … … 110 110 * 111 111 */ 112 void screenbuffer_clear_line(screenbuffer_t *scr, ipcarg_t line)112 void screenbuffer_clear_line(screenbuffer_t *scr, sysarg_t line) 113 113 { 114 ipcarg_t x;114 sysarg_t x; 115 115 116 116 for (x = 0; x < scr->size_x; x++) { … … 141 141 * 142 142 */ 143 void screenbuffer_goto(screenbuffer_t *scr, ipcarg_t x, ipcarg_t y)143 void screenbuffer_goto(screenbuffer_t *scr, sysarg_t x, sysarg_t y) 144 144 { 145 145 scr->position_x = x % scr->size_x;
Note:
See TracChangeset
for help on using the changeset viewer.
