Changeset b74959bd in mainline for uspace/lib/libc/generic/async.c


Ignore:
Timestamp:
2007-11-20T21:33:32Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8498915
Parents:
3209923
Message:

Modify ipc_answer_*() to make use of all six syscall arguments. The recommended
means of answering calls is via the ipc_answer_m() macros (where m denotes the
number of return arguments) that automatically decide between the fast register
version or the slow universal version of ipc_answer().

File:
1 edited

Legend:

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

    r3209923 rb74959bd  
    7676 * {
    7777 *      if (want_refuse) {
    78  *              ipc_answer_fast(icallid, ELIMIT, 0, 0);
     78 *              ipc_answer_0(icallid, ELIMIT);
    7979 *              return;
    8080 *      }
    81  *      ipc_answer_fast(icallid, EOK, 0, 0);
     81 *      ipc_answer_0(icallid, EOK);
    8282 *
    8383 *      callid = async_get_call(&call);
    8484 *      handle_call(callid, call);
    85  *      ipc_answer_fast(callid, 1, 2, 3);
     85 *      ipc_answer_2(callid, 1, 2, 3);
    8686 *
    8787 *      callid = async_get_call(&call);
     
    396396static void default_client_connection(ipc_callid_t callid, ipc_call_t *call)
    397397{
    398         ipc_answer_fast(callid, ENOENT, 0, 0);
     398        ipc_answer_0(callid, ENOENT);
    399399}
    400400
     
    441441                if (msg->callid == FIBRIL_connection->close_callid)
    442442                        close_answered = 1;
    443                 ipc_answer_fast(msg->callid, EHANGUP, 0, 0);
     443                ipc_answer_0(msg->callid, EHANGUP);
    444444                free(msg);
    445445        }
    446446        if (FIBRIL_connection->close_callid)
    447                 ipc_answer_fast(FIBRIL_connection->close_callid, 0, 0, 0);
     447                ipc_answer_0(FIBRIL_connection->close_callid, EOK);
    448448       
    449449        return 0;
     
    476476        if (!conn) {
    477477                if (callid)
    478                         ipc_answer_fast(callid, ENOMEM, 0, 0);
     478                        ipc_answer_0(callid, ENOMEM);
    479479                return NULL;
    480480        }
     
    492492                free(conn);
    493493                if (callid)
    494                         ipc_answer_fast(callid, ENOMEM, 0, 0);
     494                        ipc_answer_0(callid, ENOMEM);
    495495                return NULL;
    496496        }
     
    537537
    538538        /* Unknown call from unknown phone - hang it up */
    539         ipc_answer_fast(callid, EHANGUP, 0, 0);
     539        ipc_answer_0(callid, EHANGUP);
    540540}
    541541
Note: See TracChangeset for help on using the changeset viewer.