Changeset 47b7006 in mainline for uspace/lib/c/generic/async_sess.c


Ignore:
Timestamp:
2011-01-29T23:02:39Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
197ef43
Parents:
fd483ce
Message:

improve run-time termination

  • get rid of exit()
  • get rid of _exit(), use the common exit()
  • get rid of core(), use the common abort()
  • make main() more fail-safe (call abort() on unhealthy conditions), call async_sess_init() explicitly
  • add several libc-private headers for cleaner environment
  • use SYS_TASK_EXIT in exit() and abort()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async_sess.c

    rfd483ce r47b7006  
    105105#include <errno.h>
    106106#include <assert.h>
     107#include "private/async_sess.h"
    107108
    108109/** An inactive open connection. */
     
    137138 *
    138139 * Needs to be called prior to any other interface in this file.
    139  */
    140 void _async_sess_init(void)
     140 *
     141 */
     142void __async_sess_init(void)
    141143{
    142144        fibril_mutex_initialize(&async_sess_mutex);
Note: See TracChangeset for help on using the changeset viewer.