Changeset 22d990c in mainline
- Timestamp:
- 2020-01-11T00:36:26Z (5 years ago)
- Children:
- 06599a1
- Parents:
- 8a74512
- Location:
- uspace
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/proc/common.h
r8a74512 r22d990c 44 44 #define STR_JOB_OK "job-ok" 45 45 46 #define DUMMY_TASK "/ root/app/tester"46 #define DUMMY_TASK "/app/tester" 47 47 #define DUMMY_TASK_ARG "proc_dummy_task" 48 48 -
uspace/app/vlaunch/vlaunch.c
r8a74512 r22d990c 76 76 int retval; 77 77 rc = task_wait(&wait, NULL, &retval); 78 if ( (rc != EOK)) {78 if (rc != EOK) { 79 79 printf("%s: Error retrieving retval from %s (%s)\n", NAME, 80 80 app, str_error(rc)); -
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); -
uspace/lib/gui/window.c
r8a74512 r22d990c 626 626 async_sess_t *reg_sess = 627 627 loc_service_connect(reg_dsid, INTERFACE_COMPOSITOR, ipc_flags); 628 629 628 if (reg_sess == NULL) { 630 629 free(win); … … 642 641 643 642 win->osess = loc_service_connect(out_dsid, INTERFACE_COMPOSITOR, ipc_flags); 644 645 643 if (win->osess == NULL) { 646 644 free(win); … … 649 647 650 648 win->isess = loc_service_connect(in_dsid, INTERFACE_COMPOSITOR, ipc_flags); 651 652 649 if (win->isess == NULL) { 653 650 async_hangup(win->osess); -
uspace/srv/devman/driver.c
r8a74512 r22d990c 36 36 #include <io/log.h> 37 37 #include <vfs/vfs.h> 38 #include <dirent.h>39 38 #include <loc.h> 39 #include <str_error.h> 40 40 #include <stdio.h> 41 #include <str_error.h>42 41 #include <sysman/ctl.h> 43 42 #include <task.h> -
uspace/srv/devman/drv_conn.c
r8a74512 r22d990c 36 36 37 37 #include <assert.h> 38 #include <ipc/services.h> 39 #include <ns.h> 38 40 #include <async.h> 41 #include <stdio.h> 39 42 #include <errno.h> 43 #include <str_error.h> 44 #include <stdbool.h> 40 45 #include <fibril_synch.h> 46 #include <stdlib.h> 47 #include <str.h> 41 48 #include <io/log.h> 42 49 #include <ipc/devman.h> 43 #include <ipc/services.h>44 50 #include <loc.h> 45 #include <ns.h>46 #include <stdbool.h>47 #include <stdio.h>48 #include <stdlib.h>49 #include <str.h>50 #include <str_error.h>51 51 #include <sysman/broker.h> 52 52 -
uspace/srv/hid/compositor/compositor.c
r8a74512 r22d990c 2267 2267 if (!list_empty(&viewport_list)) 2268 2268 input_activate(input); 2269 2269 2270 ret: 2270 2271 fibril_mutex_unlock(&discovery_mtx); -
uspace/srv/loader/main.c
r8a74512 r22d990c 39 39 * loader. 40 40 * 41 * The apparent caller uses his phone to send the pathname and various other41 * The apparent caller uses its phone to send the pathname and various other 42 42 * information to the loader. This is normally done by the C library 43 43 * and completely hidden from applications. … … 49 49 #include <stddef.h> 50 50 #include <ipc/services.h> 51 #include <ipc/loader.h> 52 #include <ns.h> 53 #include <loader/pcb.h> 54 #include <entry_point.h> 55 #include <errno.h> 56 #include <async.h> 57 #include <str.h> 51 58 #include <as.h> 52 #include <async.h>53 59 #include <elf/elf.h> 54 60 #include <elf/elf_load.h> 55 #include <entry_point.h>56 #include <errno.h>57 61 #include <fibril_synch.h> 58 #include <ipc/loader.h>59 #include <loader/pcb.h>60 #include <ns.h>61 #include <str.h>62 62 #include <task.h> 63 63 #include <taskman.h> -
uspace/srv/locsrv/locsrv.c
r8a74512 r22d990c 36 36 */ 37 37 38 #include <assert.h> 38 #include <ipc/services.h> 39 #include <ns.h> 39 40 #include <async.h> 41 #include <stdio.h> 40 42 #include <errno.h> 41 #include <ipc/loc.h> 42 #include <ipc/services.h> 43 #include <stdbool.h> 43 44 #include <fibril_synch.h> 44 45 #include <macros.h> 45 #include <ns.h>46 #include <stdbool.h>47 #include <stdio.h>48 46 #include <stdlib.h> 49 47 #include <str.h> 50 48 #include <str_error.h> 49 #include <ipc/loc.h> 50 #include <assert.h> 51 51 #include <sysman/broker.h> 52 52 #include <sysman/ctl.h> -
uspace/srv/logger/main.c
r8a74512 r22d990c 83 83 84 84 printf("%s: Accepting connections\n", NAME); 85 86 85 task_retval(EOK); 87 86 async_manager(); -
uspace/srv/ns/ns.c
r8a74512 r22d990c 132 132 return rc; 133 133 } 134 134 135 task_retval(0); 135 136 136 printf("%s: Accepting connections\n", NAME); 137 138 137 async_manager(); 139 138 -
uspace/srv/taskman/task.h
r8a74512 r22d990c 69 69 /* Link to listeners list. */ 70 70 link_t listeners; 71 /* Session for notifications to task. */71 /* Session for sending event notifications to registrar. */ 72 72 async_sess_t *sess; 73 73 } task_t; -
uspace/srv/vfs/Makefile
r8a74512 r22d990c 30 30 USPACE_PREFIX = ../.. 31 31 LIBS = sysman 32 EXTRA_CFLAGS += -I$(USPACE_PREFIX)/lib/sysman/include33 32 BINARY = vfs 34 33 STATIC_NEEDED = y -
uspace/srv/vfs/vfs.c
r8a74512 r22d990c 41 41 #include <abi/ipc/methods.h> 42 42 #include <ns.h> 43 #include <as.h>44 43 #include <async.h> 45 44 #include <stdatomic.h> … … 48 47 #include <stdio.h> 49 48 #include <ipc/services.h> 50 #include <macros.h>51 49 #include <stdbool.h> 52 50 #include <stdio.h> 53 51 #include <str.h> 52 #include <as.h> 53 #include <macros.h> 54 54 #include <sysman/broker.h> 55 55 56 #include "vfs.h" 56 57 -
uspace/srv/vfs/vfs.h
r8a74512 r22d990c 178 178 extern fs_handle_t fs_name_to_handle(const char *, unsigned int instance, bool); 179 179 extern vfs_info_t *fs_handle_to_info(fs_handle_t); 180 extern int vfs_get_fstypes(vfs_fstypes_t *);180 extern errno_t vfs_get_fstypes(vfs_fstypes_t *); 181 181 extern errno_t fs_unit_name(const char *, unsigned int, char **); 182 182 -
uspace/srv/vfs/vfs_register.c
r8a74512 r22d990c 36 36 */ 37 37 38 #include <ipc/services.h> 39 #include <async.h> 40 #include <fibril.h> 41 #include <fibril_synch.h> 42 #include <errno.h> 43 #include <stdio.h> 44 #include <stdlib.h> 45 #include <str.h> 46 #include <ctype.h> 47 #include <stdbool.h> 38 48 #include <adt/list.h> 39 49 #include <as.h> 40 50 #include <assert.h> 41 #include <async.h>42 51 #include <stdatomic.h> 43 #include <ctype.h>44 #include <errno.h>45 #include <fibril.h>46 #include <fibril_synch.h>47 #include <ipc/services.h>48 #include <stdbool.h>49 #include <stdio.h>50 #include <stdlib.h>51 #include <str.h>52 52 #include <sysman/broker.h> 53 53 #include "vfs.h"
Note:
See TracChangeset
for help on using the changeset viewer.