Changeset b7fd2a0 in mainline for uspace/srv/ns
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/srv/ns
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/clonable.c
r36f0738 rb7fd2a0 55 55 static list_t cs_req; 56 56 57 int clonable_init(void)57 errno_t clonable_init(void) 58 58 { 59 59 list_initialize(&cs_req); … … 128 128 129 129 /* Spawn a loader. */ 130 int rc = loader_spawn("loader");130 errno_t rc = loader_spawn("loader"); 131 131 132 132 if (rc != EOK) { -
uspace/srv/ns/clonable.h
r36f0738 rb7fd2a0 39 39 #include <stdbool.h> 40 40 41 extern int clonable_init(void);41 extern errno_t clonable_init(void); 42 42 43 43 extern bool service_clonable(service_t); -
uspace/srv/ns/ns.c
r36f0738 rb7fd2a0 80 80 81 81 task_id_t id; 82 int retval;82 errno_t retval; 83 83 84 84 service_t service; … … 131 131 printf("%s: HelenOS IPC Naming Service\n", NAME); 132 132 133 int rc = service_init();133 errno_t rc = service_init(); 134 134 if (rc != EOK) 135 135 return rc; -
uspace/srv/ns/service.c
r36f0738 rb7fd2a0 95 95 static list_t pending_conn; 96 96 97 int service_init(void)97 errno_t service_init(void) 98 98 { 99 99 if (!hash_table_create(&service_hash_table, 0, 0, … … 139 139 * 140 140 */ 141 int register_service(service_t service, sysarg_t phone, ipc_call_t *call)141 errno_t register_service(service_t service, sysarg_t phone, ipc_call_t *call) 142 142 { 143 143 if (hash_table_find(&service_hash_table, &service)) … … 173 173 sysarg_t arg3 = IPC_GET_ARG3(*call); 174 174 sysarg_t flags = IPC_GET_ARG4(*call); 175 int retval;175 errno_t retval; 176 176 177 177 ht_link_t *link = hash_table_find(&service_hash_table, &service); -
uspace/srv/ns/service.h
r36f0738 rb7fd2a0 38 38 #include <abi/ipc/interfaces.h> 39 39 40 extern int service_init(void);40 extern errno_t service_init(void); 41 41 extern void process_pending_conn(void); 42 42 43 extern int register_service(service_t, sysarg_t, ipc_call_t *);43 extern errno_t register_service(service_t, sysarg_t, ipc_call_t *); 44 44 extern void connect_to_service(service_t, iface_t, ipc_call_t *, ipc_callid_t); 45 45 -
uspace/srv/ns/task.c
r36f0738 rb7fd2a0 151 151 static list_t pending_wait; 152 152 153 int task_init(void)153 errno_t task_init(void) 154 154 { 155 155 if (!hash_table_create(&task_hash_table, 0, 0, &task_hash_table_ops)) { … … 225 225 } 226 226 227 int ns_task_id_intro(ipc_call_t *call)227 errno_t ns_task_id_intro(ipc_call_t *call) 228 228 { 229 229 task_id_t id = MERGE_LOUP32(IPC_GET_ARG1(*call), IPC_GET_ARG2(*call)); … … 264 264 } 265 265 266 static int get_id_by_phone(sysarg_t phone_hash, task_id_t *id)266 static errno_t get_id_by_phone(sysarg_t phone_hash, task_id_t *id) 267 267 { 268 268 ht_link_t *link = hash_table_find(&phone_to_id, &phone_hash); … … 276 276 } 277 277 278 int ns_task_retval(ipc_call_t *call)278 errno_t ns_task_retval(ipc_call_t *call) 279 279 { 280 280 task_id_t id = call->in_task_id; … … 296 296 } 297 297 298 int ns_task_disconnect(ipc_call_t *call)298 errno_t ns_task_disconnect(ipc_call_t *call) 299 299 { 300 300 task_id_t id; 301 int rc = get_id_by_phone(call->in_phone_hash, &id);301 errno_t rc = get_id_by_phone(call->in_phone_hash, &id); 302 302 if (rc != EOK) 303 303 return rc; -
uspace/srv/ns/task.h
r36f0738 rb7fd2a0 37 37 #include <abi/proc/task.h> 38 38 39 extern int task_init(void);39 extern errno_t task_init(void); 40 40 extern void process_pending_wait(void); 41 41 42 42 extern void wait_for_task(task_id_t, ipc_call_t *, ipc_callid_t); 43 43 44 extern int ns_task_id_intro(ipc_call_t *);45 extern int ns_task_disconnect(ipc_call_t *);46 extern int ns_task_retval(ipc_call_t *);44 extern errno_t ns_task_id_intro(ipc_call_t *); 45 extern errno_t ns_task_disconnect(ipc_call_t *); 46 extern errno_t ns_task_retval(ipc_call_t *); 47 47 48 48
Note:
See TracChangeset
for help on using the changeset viewer.
