Changeset ffa2c8ef in mainline for uspace/app
- Timestamp:
- 2011-01-29T11:36:08Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46b881c
- Parents:
- 64d2b10
- Location:
- uspace/app
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r64d2b10 rffa2c8ef 37 37 #include <stdio.h> 38 38 #include <unistd.h> 39 #include <ipc/ipc.h>40 39 #include <vfs/vfs.h> 41 40 #include <bool.h> -
uspace/app/klog/klog.c
r64d2b10 rffa2c8ef 36 36 37 37 #include <stdio.h> 38 #include <ipc/ipc.h>39 38 #include <ipc/ns.h> 40 39 #include <async.h> -
uspace/app/ping/ping.c
r64d2b10 rffa2c8ef 35 35 */ 36 36 37 #include <async.h> 37 38 #include <stdio.h> 38 39 #include <str.h> 39 40 #include <task.h> 40 41 #include <time.h> 41 #include <ipc/ipc.h>42 42 #include <ipc/services.h> 43 43 #include <str_error.h> … … 355 355 str_error(ret)); 356 356 357 ipc_hangup(icmp_phone);357 async_hangup(icmp_phone); 358 358 return ret; 359 359 } … … 370 370 str_error(ret)); 371 371 372 ipc_hangup(icmp_phone);372 async_hangup(icmp_phone); 373 373 return ret; 374 374 } … … 390 390 } 391 391 392 ipc_hangup(icmp_phone);392 async_hangup(icmp_phone); 393 393 394 394 return 0; -
uspace/app/taskdump/taskdump.c
r64d2b10 rffa2c8ef 33 33 */ 34 34 35 #include <async.h> 35 36 #include <stdio.h> 36 37 #include <stdlib.h> 37 38 #include <unistd.h> 38 #include <ipc/ipc.h>39 39 #include <errno.h> 40 40 #include <udebug.h> … … 105 105 106 106 udebug_end(phoneid); 107 ipc_hangup(phoneid);107 async_hangup(phoneid); 108 108 109 109 return 0; … … 114 114 int rc; 115 115 116 rc = ipc_connect_kbox(task_id);116 rc = async_connect_kbox(task_id); 117 117 118 118 if (rc == ENOTSUP) { … … 126 126 if (rc < 0) { 127 127 printf("Error connecting\n"); 128 printf(" ipc_connect_task(%" PRIu64 ") -> %d ", task_id, rc);128 printf("async_connect_kbox(%" PRIu64 ") -> %d ", task_id, rc); 129 129 return rc; 130 130 } -
uspace/app/tester/hw/misc/virtchar1.c
r64d2b10 rffa2c8ef 89 89 /* Clean-up. */ 90 90 TPRINTF(" Closing phones and file descriptors\n"); 91 ipc_hangup(phone);91 async_hangup(phone); 92 92 close(fd); 93 93 -
uspace/app/tester/hw/serial/serial1.c
r64d2b10 rffa2c8ef 39 39 #include <stdlib.h> 40 40 #include <stdio.h> 41 #include <ipc/ipc.h>42 41 #include <sys/types.h> 43 42 #include <async.h> … … 88 87 char *buf = (char *) malloc(cnt + 1); 89 88 if (buf == NULL) { 90 ipc_hangup(phone);89 async_hangup(phone); 91 90 devman_hangup_phone(DEVMAN_CLIENT); 92 91 return "Failed to allocate input buffer"; … … 98 97 sysarg_t old_word_size; 99 98 100 res = ipc_call_sync_0_4(phone, SERIAL_GET_COM_PROPS, &old_baud,99 res = async_req_0_4(phone, SERIAL_GET_COM_PROPS, &old_baud, 101 100 &old_par, &old_word_size, &old_stop); 102 101 if (res != EOK) { 103 102 free(buf); 104 ipc_hangup(phone);103 async_hangup(phone); 105 104 devman_hangup_phone(DEVMAN_CLIENT); 106 105 return "Failed to get old serial communication parameters"; 107 106 } 108 107 109 res = ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, 1200,108 res = async_req_4_0(phone, SERIAL_SET_COM_PROPS, 1200, 110 109 SERIAL_NO_PARITY, 8, 1); 111 110 if (EOK != res) { 112 111 free(buf); 113 ipc_hangup(phone);112 async_hangup(phone); 114 113 devman_hangup_phone(DEVMAN_CLIENT); 115 114 return "Failed to set serial communication parameters"; … … 124 123 125 124 if (read < 0) { 126 ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, old_baud,125 async_req_4_0(phone, SERIAL_SET_COM_PROPS, old_baud, 127 126 old_par, old_word_size, old_stop); 128 127 free(buf); 129 ipc_hangup(phone);128 async_hangup(phone); 130 129 devman_hangup_phone(DEVMAN_CLIENT); 131 130 return "Failed read from serial device"; … … 133 132 134 133 if ((size_t) read > cnt - total) { 135 ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, old_baud,134 async_req_4_0(phone, SERIAL_SET_COM_PROPS, old_baud, 136 135 old_par, old_word_size, old_stop); 137 136 free(buf); 138 ipc_hangup(phone);137 async_hangup(phone); 139 138 devman_hangup_phone(DEVMAN_CLIENT); 140 139 return "Read more data than expected"; … … 155 154 156 155 if (written < 0) { 157 ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, old_baud,156 async_req_4_0(phone, SERIAL_SET_COM_PROPS, old_baud, 158 157 old_par, old_word_size, old_stop); 159 158 free(buf); 160 ipc_hangup(phone);159 async_hangup(phone); 161 160 devman_hangup_phone(DEVMAN_CLIENT); 162 161 return "Failed write to serial device"; … … 164 163 165 164 if (written != read) { 166 ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, old_baud,165 async_req_4_0(phone, SERIAL_SET_COM_PROPS, old_baud, 167 166 old_par, old_word_size, old_stop); 168 167 free(buf); 169 ipc_hangup(phone);168 async_hangup(phone); 170 169 devman_hangup_phone(DEVMAN_CLIENT); 171 170 return "Written less data than read from serial device"; … … 183 182 ssize_t written = char_dev_write(phone, (void *) EOT, eot_size); 184 183 185 ipc_call_sync_4_0(phone, SERIAL_SET_COM_PROPS, old_baud,184 async_req_4_0(phone, SERIAL_SET_COM_PROPS, old_baud, 186 185 old_par, old_word_size, old_stop); 187 186 free(buf); 188 ipc_hangup(phone);187 async_hangup(phone); 189 188 devman_hangup_phone(DEVMAN_CLIENT); 190 189 -
uspace/app/tester/tester.h
r64d2b10 rffa2c8ef 38 38 #include <sys/types.h> 39 39 #include <bool.h> 40 #include <ipc/ipc.h>41 40 42 41 #define IPC_TEST_SERVICE 10240 -
uspace/app/tetris/screen.h
r64d2b10 rffa2c8ef 48 48 49 49 #include <sys/types.h> 50 #include <ipc/ipc.h>51 50 #include <async.h> 52 51 #include <bool.h> -
uspace/app/top/screen.c
r64d2b10 rffa2c8ef 37 37 38 38 #include <stdio.h> 39 #include <ipc/ipc.h>40 39 #include <io/console.h> 41 40 #include <io/style.h> -
uspace/app/trace/ipc_desc.c
r64d2b10 rffa2c8ef 33 33 */ 34 34 35 #include <ipc/common.h> 35 36 #include <stdlib.h> 36 #include <ipc/ipc.h>37 37 #include "ipc_desc.h" 38 38 -
uspace/app/trace/ipcp.h
r64d2b10 rffa2c8ef 36 36 #define IPCP_H_ 37 37 38 #include <ipc/ipc.h>39 38 #include "proto.h" 40 39 -
uspace/app/trace/proto.c
r64d2b10 rffa2c8ef 35 35 #include <stdio.h> 36 36 #include <stdlib.h> 37 #include <ipc/ipc.h>38 37 #include <adt/hash_table.h> 39 38 -
uspace/app/trace/proto.h
r64d2b10 rffa2c8ef 36 36 #define PROTO_H_ 37 37 38 #include <ipc/common.h> 38 39 #include <adt/hash_table.h> 39 #include <ipc/ipc.h>40 40 #include "trace.h" 41 41 -
uspace/app/trace/trace.c
r64d2b10 rffa2c8ef 36 36 #include <stdlib.h> 37 37 #include <unistd.h> 38 #include <ipc/ipc.h>39 38 #include <fibril.h> 40 39 #include <errno.h> … … 149 148 int rc; 150 149 151 rc = ipc_connect_kbox(task_id);150 rc = async_connect_kbox(task_id); 152 151 153 152 if (rc == ENOTSUP) { … … 745 744 abort_trace = true; 746 745 udebug_end(phoneid); 747 ipc_hangup(phoneid);746 async_hangup(phoneid); 748 747 749 748 ipcp_cleanup();
Note:
See TracChangeset
for help on using the changeset viewer.