Changeset e623197 in mainline
- Timestamp:
- 2008-06-03T15:09:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 271b540
- Parents:
- e00938c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/ns.c
re00938c re623197 51 51 #include <as.h> 52 52 53 #define NAME " NS"53 #define NAME "ns" 54 54 55 55 #define NS_HASH_TABLE_CHAINS 20 … … 105 105 int main(int argc, char **argv) 106 106 { 107 printf(NAME ": HelenOS IPC Naming Service\n"); 108 107 109 ipc_call_t call; 108 110 ipc_callid_t callid; … … 112 114 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, 113 115 &ns_hash_table_ops)) { 116 printf(NAME ": No memory available\n"); 114 117 return ENOMEM; 115 118 } 116 119 120 printf(NAME ": Accepting connections\n"); 117 121 while (1) { 118 122 callid = ipc_wait_for_call(&call); … … 157 161 } 158 162 } 163 164 /* Not reached */ 165 return 0; 159 166 } 160 167
Note:
See TracChangeset
for help on using the changeset viewer.