Changeset 22d990c in mainline for uspace/lib/c
- Timestamp:
- 2020-01-11T00:36:26Z (6 years ago)
- Children:
- 06599a1
- Parents:
- 8a74512
- Location:
- uspace/lib/c
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
r8a74512 r22d990c 191 191 192 192 return session; 193 }194 195 cap_phone_handle_t async_session_phone(async_sess_t *sess)196 {197 return sess->phone;198 193 } 199 194 -
uspace/lib/c/generic/async/server.c
r8a74512 r22d990c 390 390 * calls routed through that phone. 391 391 * @param in_task_id Identification of the incoming connection. 392 * @param call Call data of the opening call. If call is NULL, it's 393 * either a callback connection that was opened by 394 * accepting the IPC_M_CONNECT_TO_ME call. 392 * @param call Call data of the opening call. If call is NULL, the 393 * connection was opened by accepting the 394 * IPC_M_CONNECT_TO_ME call and this function is called 395 * directly by the server. 395 396 * @param handler Connection handler. 396 397 * @param data Client argument to pass to the connection handler. … … 967 968 968 969 // TODO: Log the error. 970 969 971 if (call->cap_handle != CAP_NIL) 970 972 /* Unknown call from unknown phone - hang it up */ … … 1740 1742 async_sess_t *sess = create_session(phandle, mgmt, 0, 0, 0); 1741 1743 if (sess == NULL) { 1742 ipc_hangup(phandle); 1743 async_answer_0(&call, errno); 1744 async_answer_0(&call, ENOMEM); 1744 1745 } else { 1745 1746 /* Acknowledge the connected phone */ -
uspace/lib/c/generic/inetping.c
r8a74512 r22d990c 60 60 inetping_sess = loc_service_connect(inetping_svc, INTERFACE_INETPING, 61 61 IPC_AUTOSTART); 62 63 62 if (inetping_sess == NULL) 64 63 return ENOENT; -
uspace/lib/c/generic/libc.c
r8a74512 r22d990c 51 51 #include "private/libc.h" 52 52 #include "private/async.h" 53 #include "private/malloc.h" 53 54 #include "private/io.h" 54 55 #include "private/fibril.h" 55 #include "private/malloc.h"56 56 #include "private/task.h" 57 57 #include "private/taskman.h" -
uspace/lib/c/generic/loader.c
r8a74512 r22d990c 33 33 */ 34 34 35 #include <async.h>36 #include <errno.h>37 35 #include <ipc/loader.h> 38 36 #include <ipc/services.h> 39 37 #include <ipc/taskman.h> 38 #include <ns.h> 39 #include <task.h> 40 #include <str.h> 40 41 #include <libc.h> 42 #include <stdlib.h> 43 #include <async.h> 44 #include <errno.h> 45 #include <vfs/vfs.h> 41 46 #include <loader/loader.h> 42 #include <ns.h>43 #include <stdlib.h>44 #include <str.h>45 #include <task.h>46 #include <vfs/vfs.h>47 47 48 48 #include "private/loader.h" -
uspace/lib/c/generic/loc.c
r8a74512 r22d990c 325 325 async_exch_t *exch; 326 326 327 if ( (flags & IPC_FLAG_BLOCKING))327 if (flags & IPC_FLAG_BLOCKING) 328 328 exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 329 329 else { -
uspace/lib/c/generic/private/async.h
r8a74512 r22d990c 42 42 #include <time.h> 43 43 #include <stdbool.h> 44 #include <stdatomic.h>45 44 46 45 /** Session data */ … … 109 108 extern async_sess_t *create_session(cap_phone_handle_t, exch_mgmt_t, 110 109 sysarg_t, sysarg_t, sysarg_t); 111 extern cap_phone_handle_t async_session_phone(async_sess_t *);112 110 113 111 #endif -
uspace/lib/c/generic/task.c
r8a74512 r22d990c 35 35 /** @file 36 36 */ 37 37 #include <task.h> 38 #include <loader/loader.h> 39 #include <stdarg.h> 40 #include <str.h> 41 #include <macros.h> 38 42 #include <assert.h> 39 43 #include <async.h> … … 43 47 #include <ipc/taskman.h> 44 48 #include <libc.h> 45 #include <loader/loader.h>46 #include <macros.h>47 #include <malloc.h>48 #include <stdarg.h>49 #include <str.h>50 #include <task.h>51 49 #include <taskman.h> 52 50 #include <vfs/vfs.h> … … 424 422 wait.flags = flags; 425 423 errno_t rc = task_setup_wait(id, &wait); 426 427 424 if (rc != EOK) 428 425 return rc; -
uspace/lib/c/include/async.h
r8a74512 r22d990c 131 131 extern void *async_get_client_data_by_id(task_id_t); 132 132 extern void async_put_client_data_by_id(task_id_t); 133 134 extern void async_set_implicit_connection(async_port_handler_t);135 133 136 134 extern errno_t async_create_port(iface_t, async_port_handler_t, void *, -
uspace/lib/c/include/ipc/taskman.h
r8a74512 r22d990c 39 39 40 40 typedef enum { 41 TASKMAN_NEW_TASK = IPC_FIRST_USER_METHOD, 42 TASKMAN_CONNECT_TO_NS, 43 TASKMAN_CONNECT_TO_LOADER 44 } taskman_connection_t; 45 46 typedef enum { 41 47 TASKMAN_WAIT = IPC_FIRST_USER_METHOD, 42 48 TASKMAN_RETVAL, 43 49 TASKMAN_EVENT_CALLBACK, 44 TASKMAN_NEW_TASK,45 46 50 TASKMAN_I_AM_NS, 47 TASKMAN_I_AM_LOADER, 48 49 TASKMAN_CONNECT_TO_NS, 50 TASKMAN_CONNECT_TO_LOADER 51 TASKMAN_I_AM_LOADER 51 52 } taskman_request_t; 52 53 -
uspace/lib/c/include/task.h
r8a74512 r22d990c 68 68 __attribute__((sentinel)); 69 69 70 extern void task_cancel_wait(task_wait_t *); 70 71 extern errno_t task_wait(task_wait_t *, task_exit_t *, int *); 71 72 extern errno_t task_wait_task_id(task_id_t, int, task_exit_t *, int *); 72 73 extern void task_cancel_wait(task_wait_t *);74 73 75 74 extern errno_t task_retval(int);
Note:
See TracChangeset
for help on using the changeset viewer.