Changeset 19b28b0 in mainline for uspace/lib/libc/generic/io/stream.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/io/stream.c

    r97c9da8 r19b28b0  
    116116}
    117117
    118 int get_cons_phone(void)
     118int get_console_phone(void)
    119119{
    120         open_console();
     120        if (console_phone < 0)
     121                console_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_CONSOLE, 0, 0);
     122       
    121123        return console_phone;
     124}
     125
     126void console_wait(void)
     127{
     128        while (console_phone < 0)
     129                get_console_phone();
    122130}
    123131
Note: See TracChangeset for help on using the changeset viewer.