Subversion Repositories HelenOS

Rev

Rev 3474 | Rev 3569 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3474 Rev 3535
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#include <ipc/ipc.h>
35
#include <ipc/ipc.h>
36
#include <ipc/loader.h>
36
#include <ipc/loader.h>
37
#include <libc.h>
37
#include <libc.h>
-
 
38
#include <task.h>
38
#include <string.h>
39
#include <string.h>
39
#include <stdlib.h>
40
#include <stdlib.h>
40
#include <async.h>
41
#include <async.h>
41
#include <errno.h>
42
#include <errno.h>
42
#include <vfs/vfs.h>
43
#include <vfs/vfs.h>
Line 91... Line 92...
91
    int rc;
92
    int rc;
92
    ipcarg_t retval;
93
    ipcarg_t retval;
93
 
94
 
94
    /* Get task ID. */
95
    /* Get task ID. */
95
    req = async_send_0(ldr->phone_id, LOADER_GET_TASKID, &answer);
96
    req = async_send_0(ldr->phone_id, LOADER_GET_TASKID, &answer);
96
    rc = ipc_data_read_start(ldr->phone_id, task_id, sizeof(task_id));
97
    rc = ipc_data_read_start(ldr->phone_id, task_id, sizeof(task_id_t));
97
    if (rc != EOK) {
98
    if (rc != EOK) {
98
        async_wait_for(req, NULL);
99
        async_wait_for(req, NULL);
99
        return rc;
100
        return rc;
100
    }
101
    }
101
 
102