Changeset 19b28b0 in mainline for uspace/lib/libc/generic/console.c


Ignore:
Timestamp:
2009-03-02T17:31:05Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8026731
Parents:
97c9da8
Message:

add IPC_FLAG_BLOCKING for generic IPC blocking operations
add ipc_connect_me_to_blocking() for blocking connections
mount() has new flags argument
get_cons_phone() → get_console_phone()
add common console_wait()
simplify vfs_connect() using blocking connection
add blocking support for device_get_handle()
swap VFS_MOUNT arguments, and blocking mount support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/console.c

    r97c9da8 r19b28b0  
    4040void console_clear(void)
    4141{
    42         int cons_phone = get_cons_phone();
     42        int cons_phone = get_console_phone();
    4343        async_msg_0(cons_phone, CONSOLE_CLEAR);
    4444}
     
    4646void console_goto(int row, int col)
    4747{
    48         int cons_phone = get_cons_phone();
     48        int cons_phone = get_console_phone();
    4949        async_msg_2(cons_phone, CONSOLE_GOTO, row, col);
    5050}
     
    5252void console_flush(void)
    5353{
    54         int cons_phone = get_cons_phone();
     54        int cons_phone = get_console_phone();
    5555        async_msg_0(cons_phone, CONSOLE_FLUSH);
    5656}
     
    5858int console_get_size(int *rows, int *cols)
    5959{
    60         int cons_phone = get_cons_phone();
     60        int cons_phone = get_console_phone();
    6161        ipcarg_t r, c;
    6262        int rc;
     
    7272void console_set_style(int style)
    7373{
    74         int cons_phone = get_cons_phone();
     74        int cons_phone = get_console_phone();
    7575        async_msg_1(cons_phone, CONSOLE_SET_STYLE, style);
    7676}
     
    7878void console_set_color(int fg_color, int bg_color, int flags)
    7979{
    80         int cons_phone = get_cons_phone();
     80        int cons_phone = get_console_phone();
    8181        async_msg_3(cons_phone, CONSOLE_SET_COLOR, fg_color, bg_color, flags);
    8282}
     
    8484void console_set_rgb_color(int fg_color, int bg_color)
    8585{
    86         int cons_phone = get_cons_phone();
     86        int cons_phone = get_console_phone();
    8787        async_msg_2(cons_phone, CONSOLE_SET_RGB_COLOR, fg_color, bg_color);
    8888}
     
    9090void console_cursor_visibility(int show)
    9191{
    92         int cons_phone = get_cons_phone();
     92        int cons_phone = get_console_phone();
    9393        async_msg_1(cons_phone, CONSOLE_CURSOR_VISIBILITY, show != 0);
    9494}
Note: See TracChangeset for help on using the changeset viewer.