Changeset 342 for asp3_tinet_ecnl_rx
- Timestamp:
- Apr 27, 2018, 2:26:14 PM (5 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk
- Files:
-
- 1 added
- 83 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/Debug/Makefile
r340 r342 391 391 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 392 392 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 394 394 395 395 # -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/DebugCitrus/Makefile
r340 r342 391 391 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 392 392 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 394 394 395 395 # -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/DebugEther/Makefile
r340 r342 391 391 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 392 392 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)393 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 394 394 395 395 # -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/client.c
r337 r342 245 245 FIL file; 246 246 FRESULT ret; 247 char fname[] = {" 0:/log/20160101000000.log"};247 char fname[] = {"1:/log/20160101000000.log"}; 248 248 249 249 get_logfname(fname); -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 #include "ff.h" 54 54 #include "diskio.h" … … 59 59 #include <net/ethernet.h> 60 60 #include <net/if_var.h> 61 #include "ntshell_main.h" 61 62 62 63 /* TODO: メーカーコードを設定 */ … … 504 505 505 506 /* 3ms後に7SEG表示を更新 */ 506 main_led_timer = 3 ;507 main_led_timer = 3 * 1000; 507 508 508 509 /* 10ms後にボタン状態を確認 */ 509 main_timer = 10 ;510 main_timer = 10 * 1000; 510 511 511 512 /* 12bitADC初期化 */ … … 520 521 521 522 /* 1秒後に表示を更新 */ 522 main_adv_timer = 1000; 523 main_adv_timer = 1000 * 1000; 524 525 ER ret = act_tsk(MAIN_TASK); 526 if (ret != E_OK) { 527 syslog(LOG_ERROR, "act_tsk"); 528 } 523 529 } 524 530 … … 759 765 760 766 if (electric_energy_meter_data[0].current_pos == 0) { 761 //act_tsk(CLIENT_TASK);767 cmd_execute("logupload", NULL); 762 768 } 763 769 } -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/main.c
r340 r342 77 77 #include "client.h" 78 78 #include "ntp_cli.h" 79 #include "netcmd.h" 79 80 80 81 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 83 84 #ifdef IF_ETHER_BTUSB 84 85 extern int bt_bnep_mode; 85 86 /* PANU向けリモートアドレス */ 86 87 // BUFFALLO 87 88 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 144 145 145 146 ntshell_t ntshell; 146 void _start_c(long *p);147 147 148 148 /* … … 150 150 */ 151 151 void main_task(intptr_t exinf) 152 {153 long args[] = {154 1,155 (long)"ntshell",156 };157 _start_c(args);158 }159 160 int main(int argc, char **argv)161 152 { 162 153 #ifdef IF_ETHER_BTUSB … … 170 161 ntshell_set_prompt(&ntshell, "NTShell>"); 171 162 ntshell_execute(&ntshell); 172 173 return 0;174 163 } 175 164 … … 187 176 fno.lfsize = _MAX_LFN + 1; 188 177 #endif 189 ER ret 2;178 ER ret; 190 179 191 180 //wolfSSL_Debugging_ON(); … … 247 236 #endif 248 237 249 ret 2= get_tim(&main_obj.now);250 if (ret 2!= E_OK) {238 ret = get_tim(&main_obj.now); 239 if (ret != E_OK) { 251 240 syslog(LOG_ERROR, "get_tim"); 252 241 ext_tsk(); … … 339 328 340 329 extern int curl_main(int argc, char **argv); 341 extern int usrcmd_ping(int argc, char **argv);342 extern int usrcmd_dhcp4c(int argc, char **argv);343 extern int usrcmd_dnsc(int argc, char **argv);344 extern int usrcmd_ntpc(int argc, char **argv);345 330 346 331 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app2_light/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app2_light/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app2_light/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app2_light/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 490 490 main_btn1_state = (btn1 & 0x80/*0x0x20*/) != 0; 491 491 main_btn2_state = (btn2 & 0x80) != 0; 492 493 ER ret = act_tsk(MAIN_TASK); 494 if (ret != E_OK) { 495 syslog(LOG_ERROR, "act_tsk"); 496 } 492 497 } 493 498 -
asp3_tinet_ecnl_rx/trunk/app2_light/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app2_light/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app2_light/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 378 378 main_btn1_state = (btn1 & 0x80) != 0; 379 379 main_btn2_state = (btn2 & 0x80) != 0; 380 381 ER ret = act_tsk(MAIN_TASK); 382 if (ret != E_OK) { 383 syslog(LOG_ERROR, "act_tsk"); 384 } 380 385 } 381 386 -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app4_aircon/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app4_aircon/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app4_aircon/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app4_aircon/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 513 513 main_btn1_state = (btn1 & 0x20) != 0; 514 514 main_btn2_state = (btn2 & 0x80) != 0; 515 516 ER ret = act_tsk(MAIN_TASK); 517 if (ret != E_OK) { 518 syslog(LOG_ERROR, "act_tsk"); 519 } 515 520 } 516 521 … … 1176 1181 /* 500msパルス出力 */ 1177 1182 main_rly_state = main_rly_state_on; 1178 main_rly_timer = 500 ;1183 main_rly_timer = 500 * 1000; 1179 1184 } 1180 1185 -
asp3_tinet_ecnl_rx/trunk/app4_aircon/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app4_aircon/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app4_aircon/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 403 403 main_btn1_state = (btn1 & 0x20) != 0; 404 404 main_btn2_state = (btn2 & 0x80) != 0; 405 406 ER ret = act_tsk(MAIN_TASK); 407 if (ret != E_OK) { 408 syslog(LOG_ERROR, "act_tsk"); 409 } 405 410 } 406 411 -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app5_temp_sensor/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 386 386 main_btn1_state = (btn1 & 0x80) != 0; 387 387 main_btn2_state = (btn2 & 0x80) != 0; 388 389 ER ret = act_tsk(MAIN_TASK); 390 if (ret != E_OK) { 391 syslog(LOG_ERROR, "act_tsk"); 392 } 388 393 } 389 394 -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app6_hot_water_pot/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/Debug/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/DebugCitrus/Makefile
r340 r342 382 382 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 383 383 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)384 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 385 385 386 386 # -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/DebugEther/Makefile
r340 r342 380 380 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 381 381 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)382 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 383 383 384 384 # -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/echonet_main.c
r340 r342 50 50 #include "echonet_main.h" 51 51 #include "echonet_cfg.h" 52 #include " rx630.h"52 #include "target_kernel_impl.h" 53 53 54 54 /* TODO: メーカーコードを設定 */ … … 378 378 main_state = main_state_search; 379 379 main_timer = 1000 * 1000; 380 381 ER ret = act_tsk(MAIN_TASK); 382 if (ret != E_OK) { 383 syslog(LOG_ERROR, "act_tsk"); 384 } 380 385 } 381 386 -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/main.c
r341 r342 76 76 #include <btstack/utils.h> 77 77 #include "ntp_cli.h" 78 #include "netcmd.h" 78 79 79 80 ID ws_api_mailboxid = MAIN_DATAQUEUE; … … 82 83 #ifdef IF_ETHER_BTUSB 83 84 extern int bt_bnep_mode; 84 85 /* PANU向けリモートアドレス */ 85 86 // BUFFALLO 86 87 //bd_addr_t remote_addr = { 0x00,0x1B,0xDC,0x04,0x5C,0x2D }; … … 143 144 144 145 ntshell_t ntshell; 145 void _start_c(long *p);146 146 147 147 /* … … 149 149 */ 150 150 void main_task(intptr_t exinf) 151 {152 long args[] = {153 1,154 (long)"ntshell",155 };156 _start_c(args);157 }158 159 int main(int argc, char **argv)160 151 { 161 152 #ifdef IF_ETHER_BTUSB … … 169 160 ntshell_set_prompt(&ntshell, "NTShell>"); 170 161 ntshell_execute(&ntshell); 171 172 return 0;173 162 } 174 163 … … 184 173 fno.lfsize = _MAX_LFN + 1; 185 174 #endif 186 ER ret 2;175 ER ret; 187 176 188 177 ntshell_task_init(); … … 239 228 #endif 240 229 241 ret 2= get_tim(&main_obj.now);242 if (ret 2!= E_OK) {230 ret = get_tim(&main_obj.now); 231 if (ret != E_OK) { 243 232 syslog(LOG_ERROR, "get_tim"); 244 233 ext_tsk(); … … 309 298 echonet_change_netif_link(link_up, up); 310 299 } 311 312 extern int usrcmd_ping(int argc, char **argv);313 extern int usrcmd_dhcp4c(int argc, char **argv);314 extern int usrcmd_dnsc(int argc, char **argv);315 extern int usrcmd_ntpc(int argc, char **argv);316 300 317 301 static const cmd_table_t cmdlist[] = { -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/main.cfg
r340 r342 84 84 INCLUDE("echonet_main.cfg"); 85 85 86 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });86 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 87 87 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/app7_buzzer/src/tinet_app_config.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: tinet_app_config.h 1505 2018-04-17 11:22:02Z coas-nagasima $ 32 32 */ 33 33 … … 624 624 /* DNS サーバの IP アドレス */ 625 625 626 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 627 627 628 628 #define IPV6_ADDR_DNS_INIT \ … … 632 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 633 633 634 #endif /* of #if !defined(DHCP6_CLI_CFG) */635 636 #if !defined(DHCP4_CLI_CFG)637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)638 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 639 639 640 640 /* DOMAIN 名 */ -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/Debug/Makefile
r337 r342 369 369 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 370 370 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 372 372 373 373 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/DebugCitrus/Makefile
r337 r342 369 369 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 370 370 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 372 372 373 373 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/prc_kernel_impl.c
r337 r342 39 39 * の責任を負わない. 40 40 * 41 * @(#) $Id $41 * @(#) $Id: prc_kernel_impl.c 1518 2018-04-24 00:37:16Z coas-nagasima $ 42 42 */ 43 43 … … 237 237 #endif /* OMIT_DEFAULT_EXC_HANDLER */ 238 238 239 void _start_c(char **args); 240 241 void 242 _sta_ker() 243 { 244 const char *const args[] = { 245 1, 246 "asp3", 247 0, 248 "TZ=JST-9", 249 0 250 }; 251 _start_c(args); 252 } 253 254 //#include <errno.h> 255 #define ENOSYS 38 256 257 __attribute__((weak)) 258 long SYS_poll() 259 { 260 return -ENOSYS; 261 } 262 263 __attribute__((weak)) 264 long SYS_open() 265 { 266 return -ENOSYS; 267 } 268 269 __attribute__((weak)) 270 void SYS_set_tid_address() 271 { 272 return 0;//-ENOSYS; 273 } 274 275 __attribute__((weak)) 276 void SYS_mmap2() 277 { 278 return 0;//-ENOSYS; 279 } 280 281 __attribute__((weak)) 282 void SYS_exit_group() 283 { 284 ext_ker(); 285 } 286 287 __attribute__((weak)) 288 void SYS_exit() 289 { 290 ext_ker(); 291 } -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/start.S
r337 r342 144 144 ; 145 145 kernel_link: 146 bra.a _ sta_ker ; -->_sta_ker()146 bra.a __sta_ker ; --> __sta_ker() 147 147 148 148 .end -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/include/t_syslog.h
r337 r342 140 140 141 141 #ifndef TOPPERS_OMIT_SYSLOG 142 #ifdef TOPPERS_OMIT_TECS143 #define tSysLog_eSysLog_write syslog_wri_log144 #endif145 142 146 143 /* -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/sample/Makefile
r337 r342 362 362 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 363 363 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 364 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)364 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 365 365 366 366 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tSerialPortMain.c
r337 r342 504 504 pk_rpor->reacnt = VAR_receiveCount; 505 505 pk_rpor->wricnt = VAR_sendCount; 506 pk_rpor->wbufsz = ATTR_sendBufferSize; 506 507 return(E_OK); 507 508 } -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.c
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: ethernet.c 1524 2018-04-25 13:48:23Z coas-nagasima $ 32 32 */ 33 33 … … 195 195 196 196 /** 197 * Called by a driver when its link goes up 198 */ 199 void ether_set_link_up() 200 { 201 if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) { 202 ether_ifnet.flags |= IF_FLAG_LINK_UP; 203 204 if (ether_ifnet.flags & IF_FLAG_UP) { 205 #if LWIP_ARP 206 /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ 207 if (ether_ifnet.flags & IF_FLAG_ETHARP) { 208 etharp_gratuitous(ðer_ifnet); 209 } 210 #endif /* LWIP_ARP */ 211 212 #if LWIP_IGMP 213 /* resend IGMP memberships */ 214 if (ether_ifnet._flags & IF_FLAG_IGMP) { 215 igmp_report_groups(ðer_ifnet); 216 } 217 #endif /* LWIP_IGMP */ 218 } 219 if (ether_ifnet.link_callback) { 220 (ether_ifnet.link_callback)(ðer_ifnet); 221 } 222 } 223 } 197 * ether_set_link_up -- リンクしたときにNICから呼び出される 198 */ 199 void 200 ether_set_link_up() 201 { 202 if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) { 203 ether_ifnet.flags |= IF_FLAG_LINK_UP; 204 205 if (ether_ifnet.flags & IF_FLAG_UP) { 206 #if defined(_IP4_CFG) && defined(SUPPORT_ETHER) 207 /* ARP再構築? */ 208 #endif /* #if defined(_IP4_CFG) && defined(SUPPORT_ETHER) */ 209 210 #ifdef SUPPORT_IGMP 211 /* IGMP参加 */ 212 #endif /* #ifdef SUPPORT_IGMP */ 213 } 214 if (ether_ifnet.link_callback) { 215 (ether_ifnet.link_callback)(ðer_ifnet); 216 } 217 } 218 } 224 219 225 220 /** 226 * Called by a driver when its link goes down 227 */ 228 void ether_set_link_down() 229 { 230 if (ether_ifnet.flags & IF_FLAG_LINK_UP) { 231 ether_ifnet.flags &= ~IF_FLAG_LINK_UP; 232 if (ether_ifnet.link_callback) { 233 (ether_ifnet.link_callback)(ðer_ifnet); 234 } 235 } 236 } 237 238 void ether_set_up() 239 { 240 if (!(ether_ifnet.flags & IF_FLAG_UP)) { 241 ether_ifnet.flags |= IF_FLAG_UP; 242 if (ether_ifnet.link_callback) { 243 (ether_ifnet.link_callback)(ðer_ifnet); 244 } 245 } 246 } 247 248 void ether_set_down() 249 { 250 if (ether_ifnet.flags & IF_FLAG_UP) { 251 ether_ifnet.flags &= ~IF_FLAG_UP; 252 if (ether_ifnet.link_callback) { 253 (ether_ifnet.link_callback)(ðer_ifnet); 254 } 255 } 256 } 257 258 /** 259 * Set callback to be called when link is brought up/down 260 */ 261 void ether_set_link_callback(ether_status_callback_fn link_callback) 221 * ether_set_link_up -- リンクが切断したときにNICから呼び出される 222 */ 223 void 224 ether_set_link_down() 225 { 226 if (ether_ifnet.flags & IF_FLAG_LINK_UP) { 227 ether_ifnet.flags &= ~IF_FLAG_LINK_UP; 228 if (ether_ifnet.link_callback) { 229 (ether_ifnet.link_callback)(ðer_ifnet); 230 } 231 } 232 } 233 234 /* 235 * ether_set_up -- DHCPでアドレスが設定されたとき呼び出される 236 */ 237 238 void 239 ether_set_up() 240 { 241 if (!(ether_ifnet.flags & IF_FLAG_UP)) { 242 ether_ifnet.flags |= IF_FLAG_UP; 243 if (ether_ifnet.link_callback) { 244 (ether_ifnet.link_callback)(ðer_ifnet); 245 } 246 } 247 } 248 249 /* 250 * ether_set_down -- DHCPでアドレスが解放されたとき呼び出される 251 */ 252 253 void 254 ether_set_down() 255 { 256 if (ether_ifnet.flags & IF_FLAG_UP) { 257 ether_ifnet.flags &= ~IF_FLAG_UP; 258 if (ether_ifnet.link_callback) { 259 (ether_ifnet.link_callback)(ðer_ifnet); 260 } 261 } 262 } 263 264 /* 265 * ether_set_link_callback -- リンク状態変化時のコールバック登録 266 */ 267 268 void 269 ether_set_link_callback(ether_status_callback_fn link_callback) 262 270 { 263 271 ether_ifnet.link_callback = link_callback; 264 } 272 if (ether_ifnet.link_callback) { 273 (ether_ifnet.link_callback)(ðer_ifnet); 274 } 275 } 265 276 266 277 /* -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: ethernet.h 1524 2018-04-25 13:48:23Z coas-nagasima $ 32 32 */ 33 33 … … 311 311 extern uint32_t ether_srand (void); 312 312 313 /** Function prototype for netif status- or link-callback functions. */314 313 typedef void (*ether_status_callback_fn)(T_IFNET *ether); 315 314 extern void ether_set_link_callback(ether_status_callback_fn link_callback); -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/netapp/dhcp4_cli_var.h
r340 r342 165 165 ER_UINT error; /* エラー・データ長 */ 166 166 ID tskid; /* タスクID */ 167 ID cepid; /* CEP ID */167 ID cepid; /* CEP ID */ 168 168 uint32_t xid; /* トランザクション ID */ 169 169 uint16_t flags; /* 各種フラグ */ -
asp3_tinet_ecnl_rx/trunk/bnep_bridge/Debug/Makefile
r340 r342 383 383 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 384 384 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 385 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)385 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 386 386 387 387 # -
asp3_tinet_ecnl_rx/trunk/bnep_bridge/src/main.c
r341 r342 143 143 144 144 ntshell_t ntshell; 145 #if !defined(_MSC_VER)146 void _start_c(long *p);147 145 148 146 /* … … 150 148 */ 151 149 void main_task(intptr_t exinf) 152 {153 long args[] = {154 1,155 (long)"ntshell",156 };157 _start_c(args);158 }159 160 int main(int argc, char **argv)161 150 { 162 151 // NAP mode … … 168 157 ntshell_set_prompt(&ntshell, "NTShell>"); 169 158 ntshell_execute(&ntshell); 170 171 return 0; 172 } 173 #else 174 void main_task(intptr_t exinf) 175 { 176 main_initialize(); 177 178 ntshell_init(&ntshell, uart_read, uart_write, cmd_execute, NULL); 179 ntshell_set_prompt(&ntshell, "NTShell>"); 180 ntshell_execute(&ntshell); 181 } 182 #endif 159 } 160 183 161 /* 184 162 * 初期化 … … 192 170 fno.lfsize = _MAX_LFN + 1; 193 171 #endif 194 ER ret 2;172 ER ret; 195 173 196 174 ntshell_task_init(); … … 226 204 usbhost_init(USBHOST_TASK); 227 205 228 ret 2= get_tim(&main_obj.now);229 if (ret 2!= E_OK) {206 ret = get_tim(&main_obj.now); 207 if (ret != E_OK) { 230 208 syslog(LOG_ERROR, "get_tim"); 231 209 ext_tsk(); -
asp3_tinet_ecnl_rx/trunk/bnep_bridge/src/main.cfg
r337 r342 48 48 INCLUDE("ntshell_main.cfg"); 49 49 50 CRE_TSK(MAIN_TASK, { TA_ ACT, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL });50 CRE_TSK(MAIN_TASK, { TA_NULL, 0, main_task, MAIN_PRIORITY, MAIN_STACK_SIZE, NULL }); 51 51 CRE_TSK(ETHER_INPUT_TASK, { TA_ACT, 0, ether_input_task, ETHER_INPUT_PRIORITY, ETHER_INPUT_STACK_SIZE, NULL }); 52 52 CRE_DTQ(MAIN_DATAQUEUE, { TA_TFIFO, NUM_MAIN_DATAQUEUE, NULL }); -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx/crt_arch.h
r337 r342 1 #define main sta_ker -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx/syscall_arch.h
r337 r342 85 85 86 86 __attribute__((visibility("hidden"))) 87 long __syscall (syscall_arg_t, ...);87 long __syscall_ret(unsigned long), __syscall_nr(long nr, ...); 88 88 89 static inline long __syscall0(long n)90 { 91 return __syscall(n); 92 } 89 #define __syscall(n, ...) n(__VA_ARGS__) 90 #define __syscall_cp(n, ...) n(__VA_ARGS__) 91 #define syscall(n, ...) __syscall_ret(__syscall(n, __VA_ARGS__)) 92 #define syscall_cp(n, ...) __syscall_ret(__syscall_cp(n, __VA_ARGS__)) 93 93 94 static inline long __syscall1(long n, long a) 95 { 96 return __syscall(n, a); 97 } 98 99 static inline long __syscall2(long n, long a, long b) 100 { 101 return __syscall(n, a, b); 102 } 103 104 static inline long __syscall3(long n, long a, long b, long c) 105 { 106 return __syscall(n, a, b, c); 107 } 108 109 static inline long __syscall4(long n, long a, long b, long c, long d) 110 { 111 return __syscall(n, a, b, c, d); 112 } 113 114 static inline long __syscall5(long n, long a, long b, long c, long d, long e) 115 { 116 return __syscall(n, a, b, c, d, e); 117 } 118 119 static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f) 120 { 121 return __syscall(n, a, b, c, d, e, f); 122 } 94 #define __syscall2(n, ...) n(__VA_ARGS__) 95 #define __syscall3(n, ...) n(__VA_ARGS__) 96 #define __syscall_cp2(n, ...) n(__VA_ARGS__) 97 #define __syscall_cp3(n, ...) n(__VA_ARGS__) 123 98 #endif -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/include/bits/syscall.h
r337 r342 358 358 #define __ARM_NR_set_tls 0x0f0005 359 359 360 #define SYS_restart_syscall 0 361 #define SYS_exit 1 362 #define SYS_fork 2 363 #define SYS_read 3 364 #define SYS_write 4 365 #define SYS_open 5 366 #define SYS_close 6 367 #define SYS_creat 8 368 #define SYS_link 9 369 #define SYS_unlink 10 370 #define SYS_execve 11 371 #define SYS_chdir 12 372 #define SYS_mknod 14 373 #define SYS_chmod 15 374 #define SYS_lchown 16 375 #define SYS_lseek 19 376 #define SYS_getpid 20 377 #define SYS_mount 21 378 #define SYS_setuid 23 379 #define SYS_getuid 24 380 #define SYS_ptrace 26 381 #define SYS_pause 29 382 #define SYS_access 33 383 #define SYS_nice 34 384 #define SYS_sync 36 385 #define SYS_kill 37 386 #define SYS_rename 38 387 #define SYS_mkdir 39 388 #define SYS_rmdir 40 389 #define SYS_dup 41 390 #define SYS_pipe 42 391 #define SYS_times 43 392 #define SYS_brk 45 393 #define SYS_setgid 46 394 #define SYS_getgid 47 395 #define SYS_geteuid 49 396 #define SYS_getegid 50 397 #define SYS_acct 51 398 #define SYS_umount2 52 399 #define SYS_ioctl 54 400 #define SYS_fcntl 55 401 #define SYS_setpgid 57 402 #define SYS_umask 60 403 #define SYS_chroot 61 404 #define SYS_ustat 62 405 #define SYS_dup2 63 406 #define SYS_getppid 64 407 #define SYS_getpgrp 65 408 #define SYS_setsid 66 409 #define SYS_sigaction 67 410 #define SYS_setreuid 70 411 #define SYS_setregid 71 412 #define SYS_sigsuspend 72 413 #define SYS_sigpending 73 414 #define SYS_sethostname 74 415 #define SYS_setrlimit 75 416 #define SYS_getrusage 77 417 #define SYS_gettimeofday 78 418 #define SYS_settimeofday 79 419 #define SYS_getgroups 80 420 #define SYS_setgroups 81 421 #define SYS_symlink 83 422 #define SYS_readlink 85 423 #define SYS_uselib 86 424 #define SYS_swapon 87 425 #define SYS_reboot 88 426 #define SYS_munmap 91 427 #define SYS_truncate 92 428 #define SYS_ftruncate 93 429 #define SYS_fchmod 94 430 #define SYS_fchown 95 431 #define SYS_getpriority 96 432 #define SYS_setpriority 97 433 #define SYS_statfs 99 434 #define SYS_fstatfs 100 435 #define SYS_syslog 103 436 #define SYS_setitimer 104 437 #define SYS_getitimer 105 438 #define SYS_stat 106 439 #define SYS_lstat 107 440 #define SYS_fstat 108 441 #define SYS_vhangup 111 442 #define SYS_wait4 114 443 #define SYS_swapoff 115 444 #define SYS_sysinfo 116 445 #define SYS_fsync 118 446 #define SYS_sigreturn 119 447 #define SYS_clone 120 448 #define SYS_setdomainname 121 449 #define SYS_uname 122 450 #define SYS_adjtimex 124 451 #define SYS_mprotect 125 452 #define SYS_sigprocmask 126 453 #define SYS_init_module 128 454 #define SYS_delete_module 129 455 #define SYS_quotactl 131 456 #define SYS_getpgid 132 457 #define SYS_fchdir 133 458 #define SYS_bdflush 134 459 #define SYS_sysfs 135 460 #define SYS_personality 136 461 #define SYS_setfsuid 138 462 #define SYS_setfsgid 139 463 #define SYS__llseek 140 464 #define SYS_getdents 141 465 #define SYS__newselect 142 466 #define SYS_flock 143 467 #define SYS_msync 144 468 #define SYS_readv 145 469 #define SYS_writev 146 470 #define SYS_getsid 147 471 #define SYS_fdatasync 148 472 #define SYS__sysctl 149 473 #define SYS_mlock 150 474 #define SYS_munlock 151 475 #define SYS_mlockall 152 476 #define SYS_munlockall 153 477 #define SYS_sched_setparam 154 478 #define SYS_sched_getparam 155 479 #define SYS_sched_setscheduler 156 480 #define SYS_sched_getscheduler 157 481 #define SYS_sched_yield 158 482 #define SYS_sched_get_priority_max 159 483 #define SYS_sched_get_priority_min 160 484 #define SYS_sched_rr_get_interval 161 485 #define SYS_nanosleep 162 486 #define SYS_mremap 163 487 #define SYS_setresuid 164 488 #define SYS_getresuid 165 489 #define SYS_poll 168 490 #define SYS_nfsservctl 169 491 #define SYS_setresgid 170 492 #define SYS_getresgid 171 493 #define SYS_prctl 172 494 #define SYS_rt_sigreturn 173 495 #define SYS_rt_sigaction 174 496 #define SYS_rt_sigprocmask 175 497 #define SYS_rt_sigpending 176 498 #define SYS_rt_sigtimedwait 177 499 #define SYS_rt_sigqueueinfo 178 500 #define SYS_rt_sigsuspend 179 501 #define SYS_pread64 180 502 #define SYS_pwrite64 181 503 #define SYS_chown 182 504 #define SYS_getcwd 183 505 #define SYS_capget 184 506 #define SYS_capset 185 507 #define SYS_sigaltstack 186 508 #define SYS_sendfile 187 509 #define SYS_vfork 190 510 #define SYS_ugetrlimit 191 511 #define SYS_mmap2 192 512 #define SYS_truncate64 193 513 #define SYS_ftruncate64 194 514 #define SYS_stat64 195 515 #define SYS_lstat64 196 516 #define SYS_fstat64 197 517 #define SYS_lchown32 198 518 #define SYS_getuid32 199 519 #define SYS_getgid32 200 520 #define SYS_geteuid32 201 521 #define SYS_getegid32 202 522 #define SYS_setreuid32 203 523 #define SYS_setregid32 204 524 #define SYS_getgroups32 205 525 #define SYS_setgroups32 206 526 #define SYS_fchown32 207 527 #define SYS_setresuid32 208 528 #define SYS_getresuid32 209 529 #define SYS_setresgid32 210 530 #define SYS_getresgid32 211 531 #define SYS_chown32 212 532 #define SYS_setuid32 213 533 #define SYS_setgid32 214 534 #define SYS_setfsuid32 215 535 #define SYS_setfsgid32 216 536 #define SYS_getdents64 217 537 #define SYS_pivot_root 218 538 #define SYS_mincore 219 539 #define SYS_madvise 220 540 #define SYS_fcntl64 221 541 #define SYS_gettid 224 542 #define SYS_readahead 225 543 #define SYS_setxattr 226 544 #define SYS_lsetxattr 227 545 #define SYS_fsetxattr 228 546 #define SYS_getxattr 229 547 #define SYS_lgetxattr 230 548 #define SYS_fgetxattr 231 549 #define SYS_listxattr 232 550 #define SYS_llistxattr 233 551 #define SYS_flistxattr 234 552 #define SYS_removexattr 235 553 #define SYS_lremovexattr 236 554 #define SYS_fremovexattr 237 555 #define SYS_tkill 238 556 #define SYS_sendfile64 239 557 #define SYS_futex 240 558 #define SYS_sched_setaffinity 241 559 #define SYS_sched_getaffinity 242 560 #define SYS_io_setup 243 561 #define SYS_io_destroy 244 562 #define SYS_io_getevents 245 563 #define SYS_io_submit 246 564 #define SYS_io_cancel 247 565 #define SYS_exit_group 248 566 #define SYS_lookup_dcookie 249 567 #define SYS_epoll_create 250 568 #define SYS_epoll_ctl 251 569 #define SYS_epoll_wait 252 570 #define SYS_remap_file_pages 253 571 #define SYS_set_tid_address 256 572 #define SYS_timer_create 257 573 #define SYS_timer_settime 258 574 #define SYS_timer_gettime 259 575 #define SYS_timer_getoverrun 260 576 #define SYS_timer_delete 261 577 #define SYS_clock_settime 262 578 #define SYS_clock_gettime 263 579 #define SYS_clock_getres 264 580 #define SYS_clock_nanosleep 265 581 #define SYS_statfs64 266 582 #define SYS_fstatfs64 267 583 #define SYS_tgkill 268 584 #define SYS_utimes 269 585 #define SYS_fadvise64_64 270 586 #define SYS_pciconfig_iobase 271 587 #define SYS_pciconfig_read 272 588 #define SYS_pciconfig_write 273 589 #define SYS_mq_open 274 590 #define SYS_mq_unlink 275 591 #define SYS_mq_timedsend 276 592 #define SYS_mq_timedreceive 277 593 #define SYS_mq_notify 278 594 #define SYS_mq_getsetattr 279 595 #define SYS_waitid 280 596 #define SYS_socket 281 597 #define SYS_bind 282 598 #define SYS_connect 283 599 #define SYS_listen 284 600 #define SYS_accept 285 601 #define SYS_getsockname 286 602 #define SYS_getpeername 287 603 #define SYS_socketpair 288 604 #define SYS_send 289 605 #define SYS_sendto 290 606 #define SYS_recv 291 607 #define SYS_recvfrom 292 608 #define SYS_shutdown 293 609 #define SYS_setsockopt 294 610 #define SYS_getsockopt 295 611 #define SYS_sendmsg 296 612 #define SYS_recvmsg 297 613 #define SYS_semop 298 614 #define SYS_semget 299 615 #define SYS_semctl 300 616 #define SYS_msgsnd 301 617 #define SYS_msgrcv 302 618 #define SYS_msgget 303 619 #define SYS_msgctl 304 620 #define SYS_shmat 305 621 #define SYS_shmdt 306 622 #define SYS_shmget 307 623 #define SYS_shmctl 308 624 #define SYS_add_key 309 625 #define SYS_request_key 310 626 #define SYS_keyctl 311 627 #define SYS_semtimedop 312 628 #define SYS_vserver 313 629 #define SYS_ioprio_set 314 630 #define SYS_ioprio_get 315 631 #define SYS_inotify_init 316 632 #define SYS_inotify_add_watch 317 633 #define SYS_inotify_rm_watch 318 634 #define SYS_mbind 319 635 #define SYS_get_mempolicy 320 636 #define SYS_set_mempolicy 321 637 #define SYS_openat 322 638 #define SYS_mkdirat 323 639 #define SYS_mknodat 324 640 #define SYS_fchownat 325 641 #define SYS_futimesat 326 642 #define SYS_fstatat64 327 643 #define SYS_unlinkat 328 644 #define SYS_renameat 329 645 #define SYS_linkat 330 646 #define SYS_symlinkat 331 647 #define SYS_readlinkat 332 648 #define SYS_fchmodat 333 649 #define SYS_faccessat 334 650 #define SYS_pselect6 335 651 #define SYS_ppoll 336 652 #define SYS_unshare 337 653 #define SYS_set_robust_list 338 654 #define SYS_get_robust_list 339 655 #define SYS_splice 340 656 #define SYS_sync_file_range2 341 657 #define SYS_tee 342 658 #define SYS_vmsplice 343 659 #define SYS_move_pages 344 660 #define SYS_getcpu 345 661 #define SYS_epoll_pwait 346 662 #define SYS_kexec_load 347 663 #define SYS_utimensat 348 664 #define SYS_signalfd 349 665 #define SYS_timerfd_create 350 666 #define SYS_eventfd 351 667 #define SYS_fallocate 352 668 #define SYS_timerfd_settime 353 669 #define SYS_timerfd_gettime 354 670 #define SYS_signalfd4 355 671 #define SYS_eventfd2 356 672 #define SYS_epoll_create1 357 673 #define SYS_dup3 358 674 #define SYS_pipe2 359 675 #define SYS_inotify_init1 360 676 #define SYS_preadv 361 677 #define SYS_pwritev 362 678 #define SYS_rt_tgsigqueueinfo 363 679 #define SYS_perf_event_open 364 680 #define SYS_recvmmsg 365 681 #define SYS_accept4 366 682 #define SYS_fanotify_init 367 683 #define SYS_fanotify_mark 368 684 #define SYS_prlimit64 369 685 #define SYS_name_to_handle_at 370 686 #define SYS_open_by_handle_at 371 687 #define SYS_clock_adjtime 372 688 #define SYS_syncfs 373 689 #define SYS_sendmmsg 374 690 #define SYS_setns 375 691 #define SYS_process_vm_readv 376 692 #define SYS_process_vm_writev 377 693 #define SYS_kcmp 378 694 #define SYS_finit_module 379 695 #define SYS_sched_setattr 380 696 #define SYS_sched_getattr 381 697 #define SYS_renameat2 382 698 #define SYS_seccomp 383 699 #define SYS_getrandom 384 700 #define SYS_memfd_create 385 701 #define SYS_bpf 386 702 #define SYS_execveat 387 703 #define SYS_userfaultfd 388 704 #define SYS_membarrier 389 705 #define SYS_mlock2 390 706 #define SYS_copy_file_range 391 707 #define SYS_preadv2 392 708 #define SYS_pwritev2 393 709 #define SYS_pkey_mprotect 394 710 #define SYS_pkey_alloc 395 711 #define SYS_pkey_free 396 360 #define SYS_restart_syscall SYS_restart_syscall 361 long SYS_restart_syscall(); 362 #define SYS_exit SYS_exit 363 long SYS_exit(); 364 #define SYS_fork SYS_fork 365 long SYS_fork(); 366 #define SYS_read SYS_read 367 long SYS_read(); 368 #define SYS_write SYS_write 369 long SYS_write(); 370 #define SYS_open SYS_open 371 long SYS_open(); 372 #define SYS_close SYS_close 373 long SYS_close(); 374 #define SYS_creat SYS_creat 375 long SYS_creat(); 376 #define SYS_link SYS_link 377 long SYS_link(); 378 #define SYS_unlink SYS_unlink 379 long SYS_unlink(); 380 #define SYS_execve SYS_execve 381 long SYS_execve(); 382 #define SYS_chdir SYS_chdir 383 long SYS_chdir(); 384 #define SYS_mknod SYS_mknod 385 long SYS_mknod(); 386 #define SYS_chmod SYS_chmod 387 long SYS_chmod(); 388 #define SYS_lchown SYS_lchown 389 long SYS_lchown(); 390 #define SYS_lseek SYS_lseek 391 long SYS_lseek(); 392 #define SYS_getpid SYS_getpid 393 long SYS_getpid(); 394 #define SYS_mount SYS_mount 395 long SYS_mount(); 396 #define SYS_setuid SYS_setuid 397 long SYS_setuid(); 398 #define SYS_getuid SYS_getuid 399 long SYS_getuid(); 400 #define SYS_ptrace SYS_ptrace 401 long SYS_ptrace(); 402 #define SYS_pause SYS_pause 403 long SYS_pause(); 404 #define SYS_access SYS_access 405 long SYS_access(); 406 #define SYS_nice SYS_nice 407 long SYS_nice(); 408 #define SYS_sync SYS_sync 409 long SYS_sync(); 410 #define SYS_kill SYS_kill 411 long SYS_kill(); 412 #define SYS_rename SYS_rename 413 long SYS_rename(); 414 #define SYS_mkdir SYS_mkdir 415 long SYS_mkdir(); 416 #define SYS_rmdir SYS_rmdir 417 long SYS_rmdir(); 418 #define SYS_dup SYS_dup 419 long SYS_dup(); 420 #define SYS_pipe SYS_pipe 421 long SYS_pipe(); 422 #define SYS_times SYS_times 423 long SYS_times(); 424 #define SYS_brk SYS_brk 425 long SYS_brk(); 426 #define SYS_setgid SYS_setgid 427 long SYS_setgid(); 428 #define SYS_getgid SYS_getgid 429 long SYS_getgid(); 430 #define SYS_geteuid SYS_geteuid 431 long SYS_geteuid(); 432 #define SYS_getegid SYS_getegid 433 long SYS_getegid(); 434 #define SYS_acct SYS_acct 435 long SYS_acct(); 436 #define SYS_umount2 SYS_umount2 437 long SYS_umount2(); 438 #define SYS_ioctl SYS_ioctl 439 long SYS_ioctl(); 440 #define SYS_fcntl SYS_fcntl 441 long SYS_fcntl(); 442 #define SYS_setpgid SYS_setpgid 443 long SYS_setpgid(); 444 #define SYS_umask SYS_umask 445 long SYS_umask(); 446 #define SYS_chroot SYS_chroot 447 long SYS_chroot(); 448 #define SYS_ustat SYS_ustat 449 long SYS_ustat(); 450 #define SYS_dup2 SYS_dup2 451 long SYS_dup2(); 452 #define SYS_getppid SYS_getppid 453 long SYS_getppid(); 454 #define SYS_getpgrp SYS_getpgrp 455 long SYS_getpgrp(); 456 #define SYS_setsid SYS_setsid 457 long SYS_setsid(); 458 #define SYS_sigaction SYS_sigaction 459 long SYS_sigaction(); 460 #define SYS_setreuid SYS_setreuid 461 long SYS_setreuid(); 462 #define SYS_setregid SYS_setregid 463 long SYS_setregid(); 464 #define SYS_sigsuspend SYS_sigsuspend 465 long SYS_sigsuspend(); 466 #define SYS_sigpending SYS_sigpending 467 long SYS_sigpending(); 468 #define SYS_sethostname SYS_sethostname 469 long SYS_sethostname(); 470 #define SYS_setrlimit SYS_setrlimit 471 long SYS_setrlimit(); 472 #define SYS_getrusage SYS_getrusage 473 long SYS_getrusage(); 474 #define SYS_gettimeofday SYS_gettimeofday 475 long SYS_gettimeofday(); 476 #define SYS_settimeofday SYS_settimeofday 477 long SYS_settimeofday(); 478 #define SYS_getgroups SYS_getgroups 479 long SYS_getgroups(); 480 #define SYS_setgroups SYS_setgroups 481 long SYS_setgroups(); 482 #define SYS_symlink SYS_symlink 483 long SYS_symlink(); 484 #define SYS_readlink SYS_readlink 485 long SYS_readlink(); 486 #define SYS_uselib SYS_uselib 487 long SYS_uselib(); 488 #define SYS_swapon SYS_swapon 489 long SYS_swapon(); 490 #define SYS_reboot SYS_reboot 491 long SYS_reboot(); 492 #define SYS_munmap SYS_munmap 493 long SYS_munmap(); 494 #define SYS_truncate SYS_truncate 495 long SYS_truncate(); 496 #define SYS_ftruncate SYS_ftruncate 497 long SYS_ftruncate(); 498 #define SYS_fchmod SYS_fchmod 499 long SYS_fchmod(); 500 #define SYS_fchown SYS_fchown 501 long SYS_fchown(); 502 #define SYS_getpriority SYS_getpriority 503 long SYS_getpriority(); 504 #define SYS_setpriority SYS_setpriority 505 long SYS_setpriority(); 506 #define SYS_statfs SYS_statfs 507 long SYS_statfs(); 508 #define SYS_fstatfs SYS_fstatfs 509 long SYS_fstatfs(); 510 #define SYS_syslog SYS_syslog 511 long SYS_syslog(); 512 #define SYS_setitimer SYS_setitimer 513 long SYS_setitimer(); 514 #define SYS_getitimer SYS_getitimer 515 long SYS_getitimer(); 516 #define SYS_stat SYS_stat 517 long SYS_stat(); 518 #define SYS_lstat SYS_lstat 519 long SYS_lstat(); 520 #define SYS_fstat SYS_fstat 521 long SYS_fstat(); 522 #define SYS_vhangup SYS_vhangup 523 long SYS_vhangup(); 524 #define SYS_wait4 SYS_wait4 525 long SYS_wait4(); 526 #define SYS_swapoff SYS_swapoff 527 long SYS_swapoff(); 528 #define SYS_sysinfo SYS_sysinfo 529 long SYS_sysinfo(); 530 #define SYS_fsync SYS_fsync 531 long SYS_fsync(); 532 #define SYS_sigreturn SYS_sigreturn 533 long SYS_sigreturn(); 534 #define SYS_clone SYS_clone 535 long SYS_clone(); 536 #define SYS_setdomainname SYS_setdomainname 537 long SYS_setdomainname(); 538 #define SYS_uname SYS_uname 539 long SYS_uname(); 540 #define SYS_adjtimex SYS_adjtimex 541 long SYS_adjtimex(); 542 #define SYS_mprotect SYS_mprotect 543 long SYS_mprotect(); 544 #define SYS_sigprocmask SYS_sigprocmask 545 long SYS_sigprocmask(); 546 #define SYS_init_module SYS_init_module 547 long SYS_init_module(); 548 #define SYS_delete_module SYS_delete_module 549 long SYS_delete_module(); 550 #define SYS_quotactl SYS_quotactl 551 long SYS_quotactl(); 552 #define SYS_getpgid SYS_getpgid 553 long SYS_getpgid(); 554 #define SYS_fchdir SYS_fchdir 555 long SYS_fchdir(); 556 #define SYS_bdflush SYS_bdflush 557 long SYS_bdflush(); 558 #define SYS_sysfs SYS_sysfs 559 long SYS_sysfs(); 560 #define SYS_personality SYS_personality 561 long SYS_personality(); 562 #define SYS_setfsuid SYS_setfsuid 563 long SYS_setfsuid(); 564 #define SYS_setfsgid SYS_setfsgid 565 long SYS_setfsgid(); 566 #define SYS__llseek SYS__llseek 567 long SYS__llseek(); 568 #define SYS_getdents SYS_getdents 569 long SYS_getdents(); 570 #define SYS__newselect SYS__newselect 571 long SYS__newselect(); 572 #define SYS_flock SYS_flock 573 long SYS_flock(); 574 #define SYS_msync SYS_msync 575 long SYS_msync(); 576 #define SYS_readv SYS_readv 577 long SYS_readv(); 578 #define SYS_writev SYS_writev 579 long SYS_writev(); 580 #define SYS_getsid SYS_getsid 581 long SYS_getsid(); 582 #define SYS_fdatasync SYS_fdatasync 583 long SYS_fdatasync(); 584 #define SYS__sysctl SYS__sysctl 585 long SYS__sysctl(); 586 #define SYS_mlock SYS_mlock 587 long SYS_mlock(); 588 #define SYS_munlock SYS_munlock 589 long SYS_munlock(); 590 #define SYS_mlockall SYS_mlockall 591 long SYS_mlockall(); 592 #define SYS_munlockall SYS_munlockall 593 long SYS_munlockall(); 594 #define SYS_sched_setparam SYS_sched_setparam 595 long SYS_sched_setparam(); 596 #define SYS_sched_getparam SYS_sched_getparam 597 long SYS_sched_getparam(); 598 #define SYS_sched_setscheduler SYS_sched_setscheduler 599 long SYS_sched_setscheduler(); 600 #define SYS_sched_getscheduler SYS_sched_getscheduler 601 long SYS_sched_getscheduler(); 602 #define SYS_sched_yield SYS_sched_yield 603 long SYS_sched_yield(); 604 #define SYS_sched_get_priority_max SYS_sched_get_priority_max 605 long SYS_sched_get_priority_max(); 606 #define SYS_sched_get_priority_min SYS_sched_get_priority_min 607 long SYS_sched_get_priority_min(); 608 #define SYS_sched_rr_get_interval SYS_sched_rr_get_interval 609 long SYS_sched_rr_get_interval(); 610 #define SYS_nanosleep SYS_nanosleep 611 long SYS_nanosleep(); 612 #define SYS_mremap SYS_mremap 613 long SYS_mremap(); 614 #define SYS_setresuid SYS_setresuid 615 long SYS_setresuid(); 616 #define SYS_getresuid SYS_getresuid 617 long SYS_getresuid(); 618 #define SYS_poll SYS_poll 619 long SYS_poll(); 620 #define SYS_nfsservctl SYS_nfsservctl 621 long SYS_nfsservctl(); 622 #define SYS_setresgid SYS_setresgid 623 long SYS_setresgid(); 624 #define SYS_getresgid SYS_getresgid 625 long SYS_getresgid(); 626 #define SYS_prctl SYS_prctl 627 long SYS_prctl(); 628 #define SYS_rt_sigreturn SYS_rt_sigreturn 629 long SYS_rt_sigreturn(); 630 #define SYS_rt_sigaction SYS_rt_sigaction 631 long SYS_rt_sigaction(); 632 #define SYS_rt_sigprocmask SYS_rt_sigprocmask 633 long SYS_rt_sigprocmask(); 634 #define SYS_rt_sigpending SYS_rt_sigpending 635 long SYS_rt_sigpending(); 636 #define SYS_rt_sigtimedwait SYS_rt_sigtimedwait 637 long SYS_rt_sigtimedwait(); 638 #define SYS_rt_sigqueueinfo SYS_rt_sigqueueinfo 639 long SYS_rt_sigqueueinfo(); 640 #define SYS_rt_sigsuspend SYS_rt_sigsuspend 641 long SYS_rt_sigsuspend(); 642 #define SYS_pread64 SYS_pread64 643 long SYS_pread64(); 644 #define SYS_pwrite64 SYS_pwrite64 645 long SYS_pwrite64(); 646 #define SYS_chown SYS_chown 647 long SYS_chown(); 648 #define SYS_getcwd SYS_getcwd 649 long SYS_getcwd(); 650 #define SYS_capget SYS_capget 651 long SYS_capget(); 652 #define SYS_capset SYS_capset 653 long SYS_capset(); 654 #define SYS_sigaltstack SYS_sigaltstack 655 long SYS_sigaltstack(); 656 #define SYS_sendfile SYS_sendfile 657 long SYS_sendfile(); 658 #define SYS_vfork SYS_vfork 659 long SYS_vfork(); 660 #define SYS_ugetrlimit SYS_ugetrlimit 661 long SYS_ugetrlimit(); 662 #define SYS_mmap2 SYS_mmap2 663 long SYS_mmap2(); 664 #define SYS_truncate64 SYS_truncate64 665 long SYS_truncate64(); 666 #define SYS_ftruncate64 SYS_ftruncate64 667 long SYS_ftruncate64(); 668 #define SYS_stat64 SYS_stat64 669 long SYS_stat64(); 670 #define SYS_lstat64 SYS_lstat64 671 long SYS_lstat64(); 672 #define SYS_fstat64 SYS_fstat64 673 long SYS_fstat64(); 674 #define SYS_lchown32 SYS_lchown32 675 long SYS_lchown32(); 676 #define SYS_getuid32 SYS_getuid32 677 long SYS_getuid32(); 678 #define SYS_getgid32 SYS_getgid32 679 long SYS_getgid32(); 680 #define SYS_geteuid32 SYS_geteuid32 681 long SYS_geteuid32(); 682 #define SYS_getegid32 SYS_getegid32 683 long SYS_getegid32(); 684 #define SYS_setreuid32 SYS_setreuid32 685 long SYS_setreuid32(); 686 #define SYS_setregid32 SYS_setregid32 687 long SYS_setregid32(); 688 #define SYS_getgroups32 SYS_getgroups32 689 long SYS_getgroups32(); 690 #define SYS_setgroups32 SYS_setgroups32 691 long SYS_setgroups32(); 692 #define SYS_fchown32 SYS_fchown32 693 long SYS_fchown32(); 694 #define SYS_setresuid32 SYS_setresuid32 695 long SYS_setresuid32(); 696 #define SYS_getresuid32 SYS_getresuid32 697 long SYS_getresuid32(); 698 #define SYS_setresgid32 SYS_setresgid32 699 long SYS_setresgid32(); 700 #define SYS_getresgid32 SYS_getresgid32 701 long SYS_getresgid32(); 702 #define SYS_chown32 SYS_chown32 703 long SYS_chown32(); 704 #define SYS_setuid32 SYS_setuid32 705 long SYS_setuid32(); 706 #define SYS_setgid32 SYS_setgid32 707 long SYS_setgid32(); 708 #define SYS_setfsuid32 SYS_setfsuid32 709 long SYS_setfsuid32(); 710 #define SYS_setfsgid32 SYS_setfsgid32 711 long SYS_setfsgid32(); 712 #define SYS_getdents64 SYS_getdents64 713 long SYS_getdents64(); 714 #define SYS_pivot_root SYS_pivot_root 715 long SYS_pivot_root(); 716 #define SYS_mincore SYS_mincore 717 long SYS_mincore(); 718 #define SYS_madvise SYS_madvise 719 long SYS_madvise(); 720 #define SYS_fcntl64 SYS_fcntl64 721 long SYS_fcntl64(); 722 #define SYS_gettid SYS_gettid 723 long SYS_gettid(); 724 #define SYS_readahead SYS_readahead 725 long SYS_readahead(); 726 #define SYS_setxattr SYS_setxattr 727 long SYS_setxattr(); 728 #define SYS_lsetxattr SYS_lsetxattr 729 long SYS_lsetxattr(); 730 #define SYS_fsetxattr SYS_fsetxattr 731 long SYS_fsetxattr(); 732 #define SYS_getxattr SYS_getxattr 733 long SYS_getxattr(); 734 #define SYS_lgetxattr SYS_lgetxattr 735 long SYS_lgetxattr(); 736 #define SYS_fgetxattr SYS_fgetxattr 737 long SYS_fgetxattr(); 738 #define SYS_listxattr SYS_listxattr 739 long SYS_listxattr(); 740 #define SYS_llistxattr SYS_llistxattr 741 long SYS_llistxattr(); 742 #define SYS_flistxattr SYS_flistxattr 743 long SYS_flistxattr(); 744 #define SYS_removexattr SYS_removexattr 745 long SYS_removexattr(); 746 #define SYS_lremovexattr SYS_lremovexattr 747 long SYS_lremovexattr(); 748 #define SYS_fremovexattr SYS_fremovexattr 749 long SYS_fremovexattr(); 750 #define SYS_tkill SYS_tkill 751 long SYS_tkill(); 752 #define SYS_sendfile64 SYS_sendfile64 753 long SYS_sendfile64(); 754 #define SYS_futex SYS_futex 755 long SYS_futex(); 756 #define SYS_sched_setaffinity SYS_sched_setaffinity 757 long SYS_sched_setaffinity(); 758 #define SYS_sched_getaffinity SYS_sched_getaffinity 759 long SYS_sched_getaffinity(); 760 #define SYS_io_setup SYS_io_setup 761 long SYS_io_setup(); 762 #define SYS_io_destroy SYS_io_destroy 763 long SYS_io_destroy(); 764 #define SYS_io_getevents SYS_io_getevents 765 long SYS_io_getevents(); 766 #define SYS_io_submit SYS_io_submit 767 long SYS_io_submit(); 768 #define SYS_io_cancel SYS_io_cancel 769 long SYS_io_cancel(); 770 #define SYS_exit_group SYS_exit_group 771 long SYS_exit_group(); 772 #define SYS_lookup_dcookie SYS_lookup_dcookie 773 long SYS_lookup_dcookie(); 774 #define SYS_epoll_create SYS_epoll_create 775 long SYS_epoll_create(); 776 #define SYS_epoll_ctl SYS_epoll_ctl 777 long SYS_epoll_ctl(); 778 #define SYS_epoll_wait SYS_epoll_wait 779 long SYS_epoll_wait(); 780 #define SYS_remap_file_pages SYS_remap_file_pages 781 long SYS_remap_file_pages(); 782 #define SYS_set_tid_address SYS_set_tid_address 783 long SYS_set_tid_address(); 784 #define SYS_timer_create SYS_timer_create 785 long SYS_timer_create(); 786 #define SYS_timer_settime SYS_timer_settime 787 long SYS_timer_settime(); 788 #define SYS_timer_gettime SYS_timer_gettime 789 long SYS_timer_gettime(); 790 #define SYS_timer_getoverrun SYS_timer_getoverrun 791 long SYS_timer_getoverrun(); 792 #define SYS_timer_delete SYS_timer_delete 793 long SYS_timer_delete(); 794 #define SYS_clock_settime SYS_clock_settime 795 long SYS_clock_settime(); 796 #define SYS_clock_gettime SYS_clock_gettime 797 long SYS_clock_gettime(); 798 #define SYS_clock_getres SYS_clock_getres 799 long SYS_clock_getres(); 800 #define SYS_clock_nanosleep SYS_clock_nanosleep 801 long SYS_clock_nanosleep(); 802 #define SYS_statfs64 SYS_statfs64 803 long SYS_statfs64(); 804 #define SYS_fstatfs64 SYS_fstatfs64 805 long SYS_fstatfs64(); 806 #define SYS_tgkill SYS_tgkill 807 long SYS_tgkill(); 808 #define SYS_utimes SYS_utimes 809 long SYS_utimes(); 810 #define SYS_fadvise64_64 SYS_fadvise64_64 811 long SYS_fadvise64_64(); 812 #define SYS_pciconfig_iobase SYS_pciconfig_iobase 813 long SYS_pciconfig_iobase(); 814 #define SYS_pciconfig_read SYS_pciconfig_read 815 long SYS_pciconfig_read(); 816 #define SYS_pciconfig_write SYS_pciconfig_write 817 long SYS_pciconfig_write(); 818 #define SYS_mq_open SYS_mq_open 819 long SYS_mq_open(); 820 #define SYS_mq_unlink SYS_mq_unlink 821 long SYS_mq_unlink(); 822 #define SYS_mq_timedsend SYS_mq_timedsend 823 long SYS_mq_timedsend(); 824 #define SYS_mq_timedreceive SYS_mq_timedreceive 825 long SYS_mq_timedreceive(); 826 #define SYS_mq_notify SYS_mq_notify 827 long SYS_mq_notify(); 828 #define SYS_mq_getsetattr SYS_mq_getsetattr 829 long SYS_mq_getsetattr(); 830 #define SYS_waitid SYS_waitid 831 long SYS_waitid(); 832 #define SYS_socket SYS_socket 833 long SYS_socket(); 834 #define SYS_bind SYS_bind 835 long SYS_bind(); 836 #define SYS_connect SYS_connect 837 long SYS_connect(); 838 #define SYS_listen SYS_listen 839 long SYS_listen(); 840 #define SYS_accept SYS_accept 841 long SYS_accept(); 842 #define SYS_getsockname SYS_getsockname 843 long SYS_getsockname(); 844 #define SYS_getpeername SYS_getpeername 845 long SYS_getpeername(); 846 #define SYS_socketpair SYS_socketpair 847 long SYS_socketpair(); 848 #define SYS_send SYS_send 849 long SYS_send(); 850 #define SYS_sendto SYS_sendto 851 long SYS_sendto(); 852 #define SYS_recv SYS_recv 853 long SYS_recv(); 854 #define SYS_recvfrom SYS_recvfrom 855 long SYS_recvfrom(); 856 #define SYS_shutdown SYS_shutdown 857 long SYS_shutdown(); 858 #define SYS_setsockopt SYS_setsockopt 859 long SYS_setsockopt(); 860 #define SYS_getsockopt SYS_getsockopt 861 long SYS_getsockopt(); 862 #define SYS_sendmsg SYS_sendmsg 863 long SYS_sendmsg(); 864 #define SYS_recvmsg SYS_recvmsg 865 long SYS_recvmsg(); 866 #define SYS_semop SYS_semop 867 long SYS_semop(); 868 #define SYS_semget SYS_semget 869 long SYS_semget(); 870 #define SYS_semctl SYS_semctl 871 long SYS_semctl(); 872 #define SYS_msgsnd SYS_msgsnd 873 long SYS_msgsnd(); 874 #define SYS_msgrcv SYS_msgrcv 875 long SYS_msgrcv(); 876 #define SYS_msgget SYS_msgget 877 long SYS_msgget(); 878 #define SYS_msgctl SYS_msgctl 879 long SYS_msgctl(); 880 #define SYS_shmat SYS_shmat 881 long SYS_shmat(); 882 #define SYS_shmdt SYS_shmdt 883 long SYS_shmdt(); 884 #define SYS_shmget SYS_shmget 885 long SYS_shmget(); 886 #define SYS_shmctl SYS_shmctl 887 long SYS_shmctl(); 888 #define SYS_add_key SYS_add_key 889 long SYS_add_key(); 890 #define SYS_request_key SYS_request_key 891 long SYS_request_key(); 892 #define SYS_keyctl SYS_keyctl 893 long SYS_keyctl(); 894 #define SYS_semtimedop SYS_semtimedop 895 long SYS_semtimedop(); 896 #define SYS_vserver SYS_vserver 897 long SYS_vserver(); 898 #define SYS_ioprio_set SYS_ioprio_set 899 long SYS_ioprio_set(); 900 #define SYS_ioprio_get SYS_ioprio_get 901 long SYS_ioprio_get(); 902 #define SYS_inotify_init SYS_inotify_init 903 long SYS_inotify_init(); 904 #define SYS_inotify_add_watch SYS_inotify_add_watch 905 long SYS_inotify_add_watch(); 906 #define SYS_inotify_rm_watch SYS_inotify_rm_watch 907 long SYS_inotify_rm_watch(); 908 #define SYS_mbind SYS_mbind 909 long SYS_mbind(); 910 #define SYS_get_mempolicy SYS_get_mempolicy 911 long SYS_get_mempolicy(); 912 #define SYS_set_mempolicy SYS_set_mempolicy 913 long SYS_set_mempolicy(); 914 #define SYS_openat SYS_openat 915 long SYS_openat(); 916 #define SYS_mkdirat SYS_mkdirat 917 long SYS_mkdirat(); 918 #define SYS_mknodat SYS_mknodat 919 long SYS_mknodat(); 920 #define SYS_fchownat SYS_fchownat 921 long SYS_fchownat(); 922 #define SYS_futimesat SYS_futimesat 923 long SYS_futimesat(); 924 #define SYS_fstatat64 SYS_fstatat64 925 long SYS_fstatat64(); 926 #define SYS_unlinkat SYS_unlinkat 927 long SYS_unlinkat(); 928 #define SYS_renameat SYS_renameat 929 long SYS_renameat(); 930 #define SYS_linkat SYS_linkat 931 long SYS_linkat(); 932 #define SYS_symlinkat SYS_symlinkat 933 long SYS_symlinkat(); 934 #define SYS_readlinkat SYS_readlinkat 935 long SYS_readlinkat(); 936 #define SYS_fchmodat SYS_fchmodat 937 long SYS_fchmodat(); 938 #define SYS_faccessat SYS_faccessat 939 long SYS_faccessat(); 940 #define SYS_pselect6 SYS_pselect6 941 long SYS_pselect6(); 942 #define SYS_ppoll SYS_ppoll 943 long SYS_ppoll(); 944 #define SYS_unshare SYS_unshare 945 long SYS_unshare(); 946 #define SYS_set_robust_list SYS_set_robust_list 947 long SYS_set_robust_list(); 948 #define SYS_get_robust_list SYS_get_robust_list 949 long SYS_get_robust_list(); 950 #define SYS_splice SYS_splice 951 long SYS_splice(); 952 #define SYS_sync_file_range2 SYS_sync_file_range2 953 long SYS_sync_file_range2(); 954 #define SYS_tee SYS_tee 955 long SYS_tee(); 956 #define SYS_vmsplice SYS_vmsplice 957 long SYS_vmsplice(); 958 #define SYS_move_pages SYS_move_pages 959 long SYS_move_pages(); 960 #define SYS_getcpu SYS_getcpu 961 long SYS_getcpu(); 962 #define SYS_epoll_pwait SYS_epoll_pwait 963 long SYS_epoll_pwait(); 964 #define SYS_kexec_load SYS_kexec_load 965 long SYS_kexec_load(); 966 #define SYS_utimensat SYS_utimensat 967 long SYS_utimensat(); 968 #define SYS_signalfd SYS_signalfd 969 long SYS_signalfd(); 970 #define SYS_timerfd_create SYS_timerfd_create 971 long SYS_timerfd_create(); 972 #define SYS_eventfd SYS_eventfd 973 long SYS_eventfd(); 974 #define SYS_fallocate SYS_fallocate 975 long SYS_fallocate(); 976 #define SYS_timerfd_settime SYS_timerfd_settime 977 long SYS_timerfd_settime(); 978 #define SYS_timerfd_gettime SYS_timerfd_gettime 979 long SYS_timerfd_gettime(); 980 #define SYS_signalfd4 SYS_signalfd4 981 long SYS_signalfd4(); 982 #define SYS_eventfd2 SYS_eventfd2 983 long SYS_eventfd2(); 984 #define SYS_epoll_create1 SYS_epoll_create1 985 long SYS_epoll_create1(); 986 #define SYS_dup3 SYS_dup3 987 long SYS_dup3(); 988 #define SYS_pipe2 SYS_pipe2 989 long SYS_pipe2(); 990 #define SYS_inotify_init1 SYS_inotify_init1 991 long SYS_inotify_init1(); 992 #define SYS_preadv SYS_preadv 993 long SYS_preadv(); 994 #define SYS_pwritev SYS_pwritev 995 long SYS_pwritev(); 996 #define SYS_rt_tgsigqueueinfo SYS_rt_tgsigqueueinfo 997 long SYS_rt_tgsigqueueinfo(); 998 #define SYS_perf_event_open SYS_perf_event_open 999 long SYS_perf_event_open(); 1000 #define SYS_recvmmsg SYS_recvmmsg 1001 long SYS_recvmmsg(); 1002 #define SYS_accept4 SYS_accept4 1003 long SYS_accept4(); 1004 #define SYS_fanotify_init SYS_fanotify_init 1005 long SYS_fanotify_init(); 1006 #define SYS_fanotify_mark SYS_fanotify_mark 1007 long SYS_fanotify_mark(); 1008 #define SYS_prlimit64 SYS_prlimit64 1009 long SYS_prlimit64(); 1010 #define SYS_name_to_handle_at SYS_name_to_handle_at 1011 long SYS_name_to_handle_at(); 1012 #define SYS_open_by_handle_at SYS_open_by_handle_at 1013 long SYS_open_by_handle_at(); 1014 #define SYS_clock_adjtime SYS_clock_adjtime 1015 long SYS_clock_adjtime(); 1016 #define SYS_syncfs SYS_syncfs 1017 long SYS_syncfs(); 1018 #define SYS_sendmmsg SYS_sendmmsg 1019 long SYS_sendmmsg(); 1020 #define SYS_setns SYS_setns 1021 long SYS_setns(); 1022 #define SYS_process_vm_readv SYS_process_vm_readv 1023 long SYS_process_vm_readv(); 1024 #define SYS_process_vm_writev SYS_process_vm_writev 1025 long SYS_process_vm_writev(); 1026 #define SYS_kcmp SYS_kcmp 1027 long SYS_kcmp(); 1028 #define SYS_finit_module SYS_finit_module 1029 long SYS_finit_module(); 1030 #define SYS_sched_setattr SYS_sched_setattr 1031 long SYS_sched_setattr(); 1032 #define SYS_sched_getattr SYS_sched_getattr 1033 long SYS_sched_getattr(); 1034 #define SYS_renameat2 SYS_renameat2 1035 long SYS_renameat2(); 1036 #define SYS_seccomp SYS_seccomp 1037 long SYS_seccomp(); 1038 #define SYS_getrandom SYS_getrandom 1039 long SYS_getrandom(); 1040 #define SYS_memfd_create SYS_memfd_create 1041 long SYS_memfd_create(); 1042 #define SYS_bpf SYS_bpf 1043 long SYS_bpf(); 1044 #define SYS_execveat SYS_execveat 1045 long SYS_execveat(); 1046 #define SYS_userfaultfd SYS_userfaultfd 1047 long SYS_userfaultfd(); 1048 #define SYS_membarrier SYS_membarrier 1049 long SYS_membarrier(); 1050 #define SYS_mlock2 SYS_mlock2 1051 long SYS_mlock2(); 1052 #define SYS_copy_file_range SYS_copy_file_range 1053 long SYS_copy_file_range(); 1054 #define SYS_preadv2 SYS_preadv2 1055 long SYS_preadv2(); 1056 #define SYS_pwritev2 SYS_pwritev2 1057 long SYS_pwritev2(); 1058 #define SYS_pkey_mprotect SYS_pkey_mprotect 1059 long SYS_pkey_mprotect(); 1060 #define SYS_pkey_alloc SYS_pkey_alloc 1061 long SYS_pkey_alloc(); 1062 #define SYS_pkey_free SYS_pkey_free 1063 long SYS_pkey_free(); 712 1064 713 #define SYS_set_thread_area 397 714 #define SYS_get_thread_area 398 1065 #define SYS_set_thread_area SYS_set_thread_area 1066 long SYS_set_thread_area(); 1067 #define SYS_get_thread_area SYS_get_thread_area 1068 long SYS_get_thread_area(); -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/internal/syscall.h
r337 r342 21 21 typedef long syscall_arg_t; 22 22 #endif 23 23 #if 0 24 24 __attribute__((visibility("hidden"))) 25 25 long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), … … 44 44 #endif 45 45 #define __syscall7(n,a,b,c,d,e,f,g) (__syscall)(n,__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f),__scc(g)) 46 46 #endif 47 47 #define __SYSCALL_NARGS_X(a,b,c,d,e,f,g,h,n,...) n 48 48 #define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0,) … … 50 50 #define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X(a,b) 51 51 #define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__) 52 52 #if 0 53 53 #define __syscall(...) __SYSCALL_DISP(__syscall,__VA_ARGS__) 54 54 #define syscall(...) __syscall_ret(__syscall(__VA_ARGS__)) 55 55 #endif 56 56 #define socketcall __socketcall 57 57 #define socketcall_cp __socketcall_cp 58 58 #if 0 59 59 #define __syscall_cp0(n) (__syscall_cp)(n,0,0,0,0,0,0) 60 60 #define __syscall_cp1(n,a) (__syscall_cp)(n,__scc(a),0,0,0,0,0) … … 67 67 #define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__) 68 68 #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__)) 69 #endif 69 70 70 71 #ifndef SYSCALL_USE_SOCKETCALL -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/misc/syscall.c
r337 r342 16 16 f=va_arg(ap, syscall_arg_t); 17 17 va_end(ap); 18 return __syscall_ret(__syscall (n,a,b,c,d,e,f));18 return __syscall_ret(__syscall_nr(n,a,b,c,d,e,f)); 19 19 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/__syscall_cp.c
r337 r342 2 2 #include "syscall.h" 3 3 4 #undef sccp 4 5 __attribute__((__visibility__("hidden"))) 5 6 long __syscall_cp_c(); … … 9 10 syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) 10 11 { 11 return (__syscall )(nr, u, v, w, x, y, z);12 return (__syscall_nr)(nr, u, v, w, x, y, z); 12 13 } 13 14 14 15 #ifndef __c2__ 15 16 weak_alias(sccp, __syscall_cp_c); 17 #else 18 long __syscall_cp_c(syscall_arg_t nr, 19 syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, 20 syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) 21 { 22 return sccp(nr, u, v, w, x, y, z); 23 } 16 24 #endif 17 25 -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/pthread_cancel.c
r337 r342 31 31 if ((st=(self=__pthread_self())->canceldisable) 32 32 && (st==PTHREAD_CANCEL_DISABLE || nr==SYS_close)) 33 return __syscall (nr, u, v, w, x, y, z);33 return __syscall_nr(nr, u, v, w, x, y, z); 34 34 35 35 r = __syscall_cp_asm(&self->cancel, nr, u, v, w, x, y, z); -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setegid.c
r337 r342 5 5 int setegid(gid_t egid) 6 6 { 7 return __setxid( SYS_setresgid, -1, egid, -1);7 return __setxid(__NR_setresgid, -1, egid, -1); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/seteuid.c
r337 r342 5 5 int seteuid(uid_t euid) 6 6 { 7 return __setxid( SYS_setresuid, -1, euid, -1);7 return __setxid(__NR_setresuid, -1, euid, -1); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setgid.c
r337 r342 5 5 int setgid(gid_t gid) 6 6 { 7 return __setxid( SYS_setgid, gid, 0, 0);7 return __setxid(__NR_setgid, gid, 0, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setregid.c
r337 r342 5 5 int setregid(gid_t rgid, gid_t egid) 6 6 { 7 return __setxid( SYS_setregid, rgid, egid, 0);7 return __setxid(__NR_setregid, rgid, egid, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setresgid.c
r337 r342 6 6 int setresgid(gid_t rgid, gid_t egid, gid_t sgid) 7 7 { 8 return __setxid( SYS_setresgid, rgid, egid, sgid);8 return __setxid(__NR_setresgid, rgid, egid, sgid); 9 9 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setresuid.c
r337 r342 6 6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) 7 7 { 8 return __setxid( SYS_setresuid, ruid, euid, suid);8 return __setxid(__NR_setresuid, ruid, euid, suid); 9 9 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setreuid.c
r337 r342 5 5 int setreuid(uid_t ruid, uid_t euid) 6 6 { 7 return __setxid( SYS_setreuid, ruid, euid, 0);7 return __setxid(__NR_setreuid, ruid, euid, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setuid.c
r337 r342 5 5 int setuid(uid_t uid) 6 6 { 7 return __setxid( SYS_setuid, uid, 0, 0);7 return __setxid(__NR_setuid, uid, 0, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setxid.c
r337 r342 14 14 struct ctx *c = p; 15 15 if (c->err>0) return; 16 int ret = -__syscall (c->nr, c->id, c->eid, c->sid);16 int ret = -__syscall_nr(c->nr, c->id, c->eid, c->sid); 17 17 if (ret && !c->err) { 18 18 /* If one thread fails to set ids after another has already -
asp3_tinet_ecnl_rx/trunk/ntshell/src/netcmd.c
r340 r342 73 73 extern void ping4(T_IN4_ADDR *addr, uint_t tmo, uint_t len); 74 74 75 /* 76 * str_num -- cons_printf の数値変換 77 */ 78 79 static void 80 str_chr(char *text, int *pos, int size, char c) 81 { 82 if (*pos >= size) 83 return; 84 text[*pos] = c; 85 *pos = *pos + 1; 86 } 87 88 /* 89 * str_num -- cons_printf の数値変換 90 */ 91 92 static int 93 str_num(char *text, int *pos, int size, ulong_t val, int radix, 94 const char *radchar, int width, bool_t minus, char padchar) 95 { 96 char digits[24]; 97 int ix, pad, pchars; 98 bool_t left; 99 100 if (width < 0) { 101 width = -width; 102 left = true; 103 } 104 else 105 left = false; 106 107 ix = 0; 108 do { 109 digits[ix ++] = radchar[val % radix]; 110 val /= radix; 111 } while (val != 0); 112 113 if (minus) 114 digits[ix ++] = '-'; 115 116 if (width > ix) 117 pchars = width; 118 else 119 pchars = ix; 120 121 pad = ix; 122 if (!left) /* 右詰め */ 123 for ( ; pad < width; pad ++) 124 str_chr(text, pos, size, padchar); 125 126 while (ix -- > 0) 127 str_chr(text, pos, size, digits[ix]); 128 129 if (left) /* 左詰め */ 130 for ( ; pad < width; pad ++) 131 str_chr(text, pos, size, padchar); 132 133 return pchars; 134 } 135 136 /* 137 * str_ipv4addr -- IPv4 アドレス出力 138 */ 139 140 int 141 str_ipv4addr (char *text, int size, T_IN4_ADDR *addr, int width) 142 { 143 int len = 3, pos = 0; /* 3 は '.' の文字数 */ 144 145 len += str_num(text, &pos, size, (*addr >> 24) & 0xff, 10, radhex, 0, false, ' '); 146 str_chr(text, &pos, size, '.'); 147 len += str_num(text, &pos, size, (*addr >> 16) & 0xff, 10, radhex, 0, false, ' '); 148 str_chr(text, &pos, size, '.'); 149 len += str_num(text, &pos, size, (*addr >> 8) & 0xff, 10, radhex, 0, false, ' '); 150 str_chr(text, &pos, size, '.'); 151 len += str_num(text, &pos, size, *addr & 0xff, 10, radhex, 0, false, ' '); 152 153 for ( ; len < width; len ++) 154 str_chr(text, &pos, size, ' '); 155 156 return len; 157 } 158 159 /* 160 * ipv6addr -- IPv6 アドレス出力 161 */ 162 163 int 164 str_ipv6addr (char *text, int size, const T_IN6_ADDR *addr, int width) 165 { 166 int len = 0, ix, len6, pos = 0; 167 bool_t omit = false, zero = false; 168 169 if (addr == NULL || IN6_IS_ADDR_UNSPECIFIED(addr)) { 170 str_chr(text, &pos, size, '0'); 171 str_chr(text, &pos, size, ':'); 172 str_chr(text, &pos, size, ':'); 173 str_chr(text, &pos, size, '0'); 174 len = 4; 175 } 176 else { 177 if (in6_is_addr_ipv4mapped(addr)) 178 len6 = sizeof(T_IN6_ADDR) / 2 - 2; 179 else 180 len6 = sizeof(T_IN6_ADDR) / 2; 181 for (ix = 0; ix < len6; ix ++) { 182 if (omit) { 183 len += str_num(text, &pos, size, ntohs(addr->s6_addr16[ix]), 16, radhex, 0, false, ' '); 184 if (ix < 7) { 185 str_chr(text, &pos, size, ':'); 186 len ++; 187 } 188 } 189 else if (ix > 0 && ix < 7 && addr->s6_addr16[ix] == 0) 190 zero = true; 191 else { 192 if (zero) { 193 omit = true; 194 str_chr(text, &pos, size, ':'); 195 len ++; 196 } 197 len += str_num(text, &pos, size, ntohs(addr->s6_addr16[ix]), 16, radhex, 0, false, ' '); 198 if (ix < 7) { 199 str_chr(text, &pos, size, ':'); 200 len ++; 201 } 202 } 203 } 204 205 if (len6 == sizeof(T_IN6_ADDR) / 2 - 2) { 206 T_IN4_ADDR ip4addr; 207 208 ip4addr = ntohl(addr->s6_addr32[3]); 209 len += str_ipv4addr(&text[len], size - len, &ip4addr, 0); 210 } 211 212 for ( ; len < width; len ++) 213 str_chr(text, &pos, size, ' '); 214 } 215 return len; 216 } 217 218 /* 219 * str_macaddr -- MAC アドレス出力 220 */ 221 222 int 223 str_macaddr (char *text, int size, uint8_t *mac, int width) 224 { 225 int oct, len, pos = 0; 226 227 for (oct = 5; oct -- > 0; ) { 228 str_num(text, &pos, size, *mac ++, 16, radhex, 2, false, '0'); 229 str_chr(text, &pos, size, ':'); 230 } 231 str_num(text, &pos, size, *mac, 16, radhex, 2, false, '0'); 232 233 for (len = 17; len < width; len ++) 234 str_chr(text, &pos, size, ' '); 235 236 return len; 237 } 238 75 239 int usrcmd_ping(int argc, char **argv) 76 240 { 77 int _ttmo, size;241 int tmo, size; 78 242 char apip = DEFAULT_API_PROTO; 79 243 char *line = argv[1]; … … 153 317 ER ret; 154 318 uint32_t expire, renew, rebind; 319 char temp[30]; 320 int pos; 155 321 156 322 if ((ret = dhcp4c_get_info(&svaddr, &expire, &renew, &rebind, &bind_start)) == E_OK) { 157 ntstdio_printf(&ntstdio, "DHCPv4 server: %hI,\n", &svaddr); 323 pos = str_ipv4addr(temp, sizeof(temp), &svaddr, 0); 324 temp[pos] = '\0'; 325 ntstdio_printf(&ntstdio, "DHCPv4 server: %s,\n", temp); 158 326 ntstdio_printf(&ntstdio, " Renew: %u:%02u:%02u,\n", 159 327 renew / 3600, (renew / 60) % 60, renew % 60); … … 279 447 int count, dcount, col; 280 448 T_IN6_ADDR in6_addr; 449 char temp[30]; 450 int pos; 281 451 282 452 ntstdio_printf(&ntstdio, "%10s section: %d\n", title, scount); … … 294 464 memcpy((void*)&in4_addr, (void*)(msg + rr.rdata_offset), sizeof(in4_addr)); 295 465 in4_addr = ntohl(in4_addr); 296 ntstdio_printf(&ntstdio, " IPv4 addr: %hI\n", &in4_addr); 466 pos = str_ipv4addr(temp, sizeof(temp), &in4_addr, 0); 467 temp[pos] = '\0'; 468 ntstdio_printf(&ntstdio, " IPv4 addr: %s\n", temp); 297 469 break; 298 470 case DNS_TYPE_NS: … … 316 488 case DNS_TYPE_AAAA: 317 489 memcpy((void*)&in6_addr, (void*)(msg + rr.rdata_offset), sizeof(in6_addr)); 318 ntstdio_printf(&ntstdio, " IPv6 addr: %lI\n", &in6_addr); 490 pos = str_ipv6addr(temp, sizeof(temp), &in6_addr, 0); 491 temp[pos] = '\0'; 492 ntstdio_printf(&ntstdio, " IPv6 addr: %s\n", temp); 319 493 break; 320 494 default: … … 347 521 T_IN4_ADDR in4_addr; 348 522 #endif 523 char temp[30]; 524 int pos; 349 525 350 526 #if defined(SUPPORT_INET6) … … 363 539 if (IN6_IS_ADDR_UNSPECIFIED(&in6_addr)) 364 540 ntstdio_printf(&ntstdio, "not available.\n"); 365 else 366 ntstdio_printf(&ntstdio, "%lI.\n", &in6_addr); 541 else { 542 pos = str_ipv6addr(temp, sizeof(temp), &in6_addr, 0); 543 temp[pos] = '\0'; 544 ntstdio_printf(&ntstdio, "%s.\n", temp); 545 } 367 546 #endif /* of #if defined(SUPPORT_INET6) */ 368 547 … … 372 551 if (in4_addr == IPV4_ADDRANY) 373 552 ntstdio_printf(&ntstdio, "not available.\n"); 374 else 375 ntstdio_printf(&ntstdio, "%hI.\n", &in4_addr); 553 else { 554 pos = str_ipv4addr(temp, sizeof(temp), &in4_addr, 0); 555 temp[pos] = '\0'; 556 ntstdio_printf(&ntstdio, "%s.\n", temp); 557 } 376 558 #endif /* of #if defined(SUPPORT_INET4) */ 377 559 } -
asp3_tinet_ecnl_rx/trunk/ntshell/src/ntshell_main.c
r340 r342 59 59 #include "ntshell_main.h" 60 60 #include "socket_stub.h" 61 #include "mbed_api.h"62 61 #include "usb_hbth.h" 63 62 … … 162 161 } 163 162 164 void shellif_into()165 {166 /* メインタスクの優先度より高くする */167 chg_pri(NTSHELL_PRIORITY, main_task_priority);168 }169 170 void shellif_outof()171 {172 /* ntshellタスクの優先度に戻す */173 chg_pri(NTSHELL_PRIORITY, NTSHELL_PRIORITY);174 }175 176 163 void shell_abort() 177 164 { -
asp3_tinet_ecnl_rx/trunk/ntshell/src/shellif.h
r340 r342 282 282 283 283 char *basename(char *); 284 void shellif_into();285 void shellif_outof();286 284 287 285 struct regs_t { … … 295 293 }; 296 294 297 voidno_implement(const char *text);295 long no_implement(const char *text); 298 296 void __mbedcall_cp_asm(); 299 297 -
asp3_tinet_ecnl_rx/trunk/ntshell/src/syscall.c
r340 r342 1 1 /* 2 2 * TOPPERS ECHONET Lite Communication Middleware 3 * 3 * 4 4 * Copyright (C) 2018 Cores Co., Ltd. Japan 5 * 5 * 6 6 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ 7 7 * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改 … … 26 26 * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを 27 27 * 免責すること. 28 * 28 * 29 29 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お 30 30 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的 … … 32 32 * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ 33 33 * の責任を負わない. 34 * 35 * @(#) $Id $34 * 35 * @(#) $Id: syscall.c 1530 2018-04-27 04:00:17Z coas-nagasima $ 36 36 */ 37 37 #include "bits/syscall.h" … … 42 42 void *tid_address; 43 43 44 voidno_implement(const char *text)44 long no_implement(const char *text) 45 45 { 46 46 syslog(LOG_ERROR, text); 47 47 DebugBreak(); 48 } 49 50 long __syscall(long n, ...) 48 return -ENOSYS; 49 } 50 51 long __syscall_nr(long n, ...) 51 52 { 52 53 long ret = -ENOSYS; 53 54 va_list ap; 54 int fd;55 56 shellif_into();57 55 58 56 va_start(ap, n); 59 57 60 58 switch (n) { 61 case SYS__llseek: 62 return shell_llseek(va_arg(ap, int), va_arg(ap, off_t), va_arg(ap, off_t *), va_arg(ap, int)); 63 case SYS__newselect: 64 ret = shell_select(va_arg(ap, int), va_arg(ap, fd_set *), va_arg(ap, fd_set *), va_arg(ap, fd_set *), va_arg(ap, struct timeval *)); 65 break; 66 case SYS_accept: 67 ret = shell_accept(va_arg(ap, int), va_arg(ap, struct sockaddr *), va_arg(ap, socklen_t *)); 68 break; 69 case SYS_access: 70 ret = shell_access(va_arg(ap, const char *), va_arg(ap, int)); 71 break; 72 case SYS_acct: 73 no_implement("acct\n"); 74 break; 75 case SYS_adjtimex: 76 no_implement("adjtimex\n"); 77 break; 78 #ifdef SYS_arch_prctl 79 case SYS_arch_prctl: 80 no_implement("arch_prctl\n"); 81 break; 59 case __NR_setresgid: 60 no_implement("setresgid"); 61 break; 62 case __NR_setresuid: 63 no_implement("setresuid"); 64 break; 65 case __NR_setgid: 66 no_implement("setgid"); 67 break; 68 case __NR_setregid: 69 no_implement("setregid"); 70 break; 71 case __NR_setreuid: 72 no_implement("setreuid"); 73 break; 74 case __NR_setuid: 75 no_implement("setuid"); 76 break; 77 default: 78 no_implement("syscall"); 79 break; 80 } 81 82 va_end(ap); 83 84 return ret; 85 } 86 87 long SYS__llseek(long a, long b, long c, long d, long e) { 88 return shell_llseek((int)a, ((off_t)b << 32) | (off_t)c, (off_t *)d, (int)e); 89 } 90 91 long SYS__newselect(long a, long b, long c, long d, long e) { 92 return shell_select((int)a, (fd_set *)b, (fd_set *)c, (fd_set *)d, (struct timeval *)e); 93 } 94 95 long SYS_accept(long a, long b, long c) { 96 return shell_accept((int)a, (struct sockaddr *)b, (socklen_t *)c); 97 } 98 99 long SYS_access(long a, long b) { 100 return shell_access((const char *)a, (int)b); 101 } 102 103 long SYS_bind(long a, long b, long c) { 104 return shell_bind((int)a, (const struct sockaddr *)b, (socklen_t)c); 105 } 106 107 long SYS_brk(long a) { 108 return (long)shell_brk((void *)a); 109 } 110 111 long SYS_chdir(long a) { 112 return shell_chdir((const char *)a); 113 } 114 115 long SYS_chmod(long a, long b) { 116 return shell_chmod((const char *)a, (mode_t)b); 117 } 118 119 long SYS_chroot(long a) { 120 return shell_chroot((const char *)a); 121 } 122 123 long SYS_clock_getres(long a, long b) { 124 return shell_clock_getres((clockid_t)a, (struct timespec *)b); 125 } 126 127 long SYS_clock_gettime(long a, long b) { 128 return shell_clock_gettime((clockid_t)a, (struct timespec *)b); 129 } 130 131 long SYS_clock_settime(long a, long b) { 132 return shell_clock_settime((clockid_t)a, (const struct timespec *)b); 133 } 134 135 long SYS_close(long a) { 136 return shell_close((int)a); 137 } 138 139 long SYS_connect(long a, long b, long c) { 140 return shell_connect((int)a, (const struct sockaddr *)b, (socklen_t)c); 141 } 142 143 long SYS_exit(long a) { 144 shell_exit((int)a); 145 return 0; 146 } 147 148 long SYS_exit_group(long a) { 149 shell_exit_group((int)a); 150 return 0; 151 } 152 153 long SYS_fcntl64(long a, long b, long c) { 154 return shell_fcntl((int)a, (int)b, (void *)c); 155 } 156 157 long SYS_fdatasync() { 158 return no_implement("fdatasync\n"); 159 } 160 161 long SYS_fstat64(long a, long b) { 162 return shell_fstat((int)a, (struct stat *)b); 163 } 164 165 long SYS_fsync(long a) { 166 return shell_fsync((int)a); 167 } 168 169 long SYS_ftruncate64(long a, long b, long c) { 170 return shell_ftruncate((int)a, ((off_t)b << 32) | (off_t)c); 171 } 172 173 long SYS_futex() { 174 int futex(int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3); 175 return no_implement("futex\n"); 176 } 177 178 long SYS_futimesat() { 179 return no_implement("futimesat\n"); 180 } 181 182 long SYS_getcwd(long a, long b) { 183 return (long)shell_getcwd((char *)a, (size_t)b); 184 } 185 186 long SYS_getdents64(long a, long b, long c) { 187 return shell_getdents((int)a, (struct dirent *)b, (size_t)c); 188 } 189 190 long SYS_getpeername(long a, long b, long c) { 191 return shell_getpeername((int)a, (struct sockaddr *)b, (socklen_t *)c); 192 } 193 194 long SYS_getsockname(long a, long b, long c) { 195 return shell_getsockname((int)a, (struct sockaddr *)b, (socklen_t *)c); 196 } 197 198 long SYS_getpid() { 199 return shell_getpid(); 200 } 201 202 long SYS_getsockopt(long a, long b, long c, long d, long e) { 203 return shell_getsockopt((int)a, (int)b, (int)c, (void *)d, (socklen_t *)e); 204 } 205 206 long SYS_gettid() { 207 return shell_gettid(); 208 } 209 210 long SYS_gettimeofday(long a, long b) { 211 return shell_gettimeofday((struct timeval *)a, (void *)b); 212 } 213 214 long SYS_getuid32() { 215 return no_implement("getuid\n"); 216 } 217 218 long SYS_ioctl(long a, long b, long c) { 219 return shell_ioctl((int)a, (int)b, (void *)c); 220 } 221 222 long SYS_kill(long a, long b) { 223 return shell_kill((int)a, (int)b); 224 } 225 226 long SYS_link(long a, long b) { 227 return shell_link((const char *)a, (const char *)b); 228 } 229 230 long SYS_listen(long a, long b) { 231 return shell_listen((int)a, (int)b); 232 } 233 234 long SYS_lstat64(long a, long b) { 235 return shell_lstat((const char *__restrict)a, (struct stat *__restrict)b); 236 } 237 238 long SYS_madvise(long a, long b, long c) { 239 return shell_madvise((void *)a, (size_t)b, (int)c); 240 } 241 242 long SYS_mkdir(long a, long b) { 243 return shell_mkdir((const char *)a, (mode_t)b); 244 } 245 246 long SYS_mmap2(long a, long b, long c, long d, long e, long f, long g) { 247 return (int)shell_mmap2((void *)a, (size_t)b, (int)c, (int)d, (int)e, ((off_t)f << 32) | (off_t)g); 248 } 249 250 long SYS_mprotect(long a, long b, long c) { 251 return shell_mprotect((void *)a, (size_t)b, (int)c); 252 } 253 254 long SYS_munmap() { 255 return no_implement("munmap\n"); 256 } 257 258 long SYS_open(long a, long b, long c) { 259 return shell_open((const char *)a, (int)b, (void *)c); 260 } 261 262 long SYS_poll(long a, long b, long c) { 263 return shell_poll((struct pollfd *)a, (nfds_t)b, (int)c); 264 } 265 266 long SYS_pread64() { 267 return no_implement("pread64\n"); 268 } 269 270 long SYS_pwrite64() { 271 return no_implement("pwrite64\n"); 272 } 273 274 long SYS_read(long a, long b, long c) { 275 return shell_read((int)a, (void *)b, (size_t)c); 276 } 277 278 long SYS_readv(long a, long b, long c) { 279 return shell_readv((int)a, (const struct iovec *)b, (int)c); 280 } 281 282 long SYS_recv(long a, long b, long c, long d) { 283 return shell_recv((int)a, (void *)b, (size_t)c, (int)d); 284 } 285 286 long SYS_recvfrom(long a, long b, long c, long d, long e, long f) { 287 if (a == 0) 288 return shell_recv(a, (void *)b, (size_t)c, (int)d); 289 else 290 return shell_recvfrom(a, (void *)b, (size_t)c, (int)d, (struct sockaddr *)e, (socklen_t *)f); 291 } 292 293 long SYS_recvmsg(long a, long b, long c) { 294 return shell_recvmsg((int)a, (struct msghdr *)b, (size_t)c); 295 } 296 297 long SYS_rename(long a, long b) { 298 return shell_rename((const char *)a, (const char *)b); 299 } 300 301 long SYS_rmdir(long a) { 302 return shell_rmdir((const char *)a); 303 } 304 305 long SYS_rt_sigaction(long a, long b, long c) { 306 return shell_sigaction((int)a, (const struct sigaction *)b, (struct sigaction *)c); 307 } 308 309 long SYS_rt_sigprocmask(long a, long b, long c) { 310 return shell_sigprocmask((int)a, (const sigset_t *)b, (sigset_t *)c); 311 } 312 313 long SYS_rt_sigqueueinfo() { 314 return no_implement("rt_sigqueueinfo\n"); 315 } 316 317 long SYS_send(long a, long b, long c, long d) { 318 return shell_send((int)a, (const void *)b, (size_t)c, (int)d); 319 } 320 321 long SYS_sendmsg(long a, long b, long c) { 322 return shell_sendmsg((int)a, (const struct msghdr *)b, (size_t)c); 323 } 324 325 long SYS_sendto(long a, long b, long c, long d, long e, long f) { 326 if (a == 0) 327 return shell_send(a, (const void *)b, (size_t)c, (int)d); 328 else 329 return shell_sendto(a, (const void *)b, (size_t)c, (int)d, (const struct sockaddr *)e, (socklen_t)f); 330 } 331 332 long SYS_setsockopt(long a, long b, long c, long d, long e) { 333 return shell_setsockopt((int)a, (int)b, (int)c, (const void *)d, (socklen_t)e); 334 } 335 336 long SYS_shutdown(long a, long b) { 337 return shell_shutdown((int)a, (int)b); 338 } 339 340 long SYS_sched_setscheduler() { 341 return no_implement("sched_setscheduler\n"); 342 } 343 344 long SYS_set_robust_list() { 345 return no_implement("set_robust_list\n"); 346 } 347 348 #ifdef SYS_set_thread_area 349 long SYS_set_thread_area(long a) { 350 thread_area = (void *)a; 351 return 0; 352 } 82 353 #endif 83 case SYS_bind: 84 ret = shell_bind(va_arg(ap, int), va_arg(ap, const struct sockaddr *), va_arg(ap, socklen_t)); 85 break; 86 case SYS_brk: 87 ret = (long)shell_brk(va_arg(ap, void *)); 88 break; 89 #ifdef SYS_cachectl 90 case SYS_cachectl: 91 no_implement("cachectl\n"); 92 break; 93 #endif 94 #ifdef SYS_cacheflush 95 case SYS_cacheflush: 96 no_implement("cacheflush\n"); 97 break; 98 #endif 99 case SYS_capget: 100 no_implement("capget\n"); 101 break; 102 case SYS_capset: 103 no_implement("capset\n"); 104 break; 105 case SYS_chdir: 106 ret = shell_chdir(va_arg(ap, const char *)); 107 break; 108 case SYS_chmod: 109 ret = shell_chmod(va_arg(ap, const char *), va_arg(ap, mode_t)); 110 break; 111 case SYS_chown32: 112 no_implement("chown\n"); 113 break; 114 case SYS_chroot: 115 ret = shell_chroot(va_arg(ap, const char *)); 116 break; 117 case SYS_clock_adjtime: 118 no_implement("clock_adjtime\n"); 119 break; 120 case SYS_clock_getres: 121 ret = shell_clock_getres(va_arg(ap, clockid_t), va_arg(ap, struct timespec *)); 122 break; 123 case SYS_clock_gettime: 124 ret = shell_clock_gettime(va_arg(ap, clockid_t), va_arg(ap, struct timespec *)); 125 break; 126 case SYS_clock_nanosleep: 127 no_implement("clock_nanosleep\n"); 128 break; 129 case SYS_clock_settime: 130 ret = shell_clock_settime(va_arg(ap, clockid_t), va_arg(ap, const struct timespec *)); 131 break; 132 case SYS_clone: 133 no_implement("clone\n"); 134 break; 135 case SYS_close: 136 ret = shell_close(va_arg(ap, int)); 137 break; 138 case SYS_connect: 139 ret = shell_connect(va_arg(ap, int), va_arg(ap, const struct sockaddr *), va_arg(ap, socklen_t)); 140 break; 141 case SYS_delete_module: 142 no_implement("delete_module\n"); 143 break; 144 case SYS_dup: 145 no_implement("dup\n"); 146 break; 147 case SYS_dup2: 148 no_implement("dup2\n"); 149 break; 150 case SYS_dup3: 151 no_implement("dup3\n"); 152 break; 153 case SYS_epoll_create: 154 no_implement("epoll_create\n"); 155 break; 156 case SYS_epoll_create1: 157 no_implement("epoll_create1\n"); 158 break; 159 case SYS_epoll_ctl: 160 no_implement("epoll_ctl\n"); 161 break; 162 case SYS_epoll_pwait: 163 no_implement("epoll_pwait\n"); 164 break; 165 case SYS_epoll_wait: 166 no_implement("epoll_wait\n"); 167 break; 168 case SYS_eventfd: 169 no_implement("eventfd\n"); 170 break; 171 case SYS_eventfd2: 172 no_implement("eventfd2\n"); 173 break; 174 case SYS_execve: 175 no_implement("execve\n"); 176 break; 177 case SYS_exit: 178 shell_exit(va_arg(ap, int)); 179 ret = 0; 180 break; 181 case SYS_exit_group: 182 shell_exit_group(va_arg(ap, int)); 183 ret = 0; 184 break; 185 case SYS_faccessat: 186 no_implement("faccessat\n"); 187 break; 188 case SYS_fadvise64_64: 189 no_implement("fadvise64_64\n"); 190 break; 191 case SYS_fallocate: 192 no_implement("fallocate\n"); 193 break; 194 case SYS_fanotify_init: 195 no_implement("fanotify_init\n"); 196 break; 197 case SYS_fanotify_mark: 198 no_implement("fanotify_mark\n"); 199 break; 200 case SYS_fchdir: 201 no_implement("fchdir\n"); 202 break; 203 case SYS_fchmod: 204 no_implement("fchmod\n"); 205 break; 206 case SYS_fchmodat: 207 no_implement("fchmodat\n"); 208 break; 209 case SYS_fchown32: 210 no_implement("fchown\n"); 211 break; 212 case SYS_fchownat: 213 no_implement("fchownat\n"); 214 break; 215 case SYS_fcntl64: 216 ret = shell_fcntl(va_arg(ap, int), va_arg(ap, int), va_arg(ap, void *)); 217 break; 218 case SYS_fdatasync: 219 no_implement("fdatasync\n"); 220 break; 221 case SYS_fgetxattr: 222 no_implement("fgetxattr\n"); 223 break; 224 case SYS_flistxattr: 225 no_implement("flistxattr\n"); 226 break; 227 case SYS_flock: 228 no_implement("flock\n"); 229 break; 230 case SYS_fork: 231 no_implement("fork\n"); 232 break; 233 case SYS_fremovexattr: 234 no_implement("fremovexattr\n"); 235 break; 236 case SYS_fsetxattr: 237 no_implement("fsetxattr\n"); 238 break; 239 case SYS_fstat64: 240 ret = shell_fstat(va_arg(ap, int), va_arg(ap, struct stat *)); 241 break; 242 case SYS_fstatat64: 243 no_implement("fstatat64\n"); 244 break; 245 case SYS_fstatfs: 246 no_implement("fstatfs\n"); 247 break; 248 case SYS_fstatfs64: 249 no_implement("fstatfs64\n"); 250 break; 251 case SYS_fsync: 252 ret = shell_fsync(va_arg(ap, int)); 253 break; 254 case SYS_ftruncate64: 255 ret = shell_ftruncate(va_arg(ap, int), va_arg(ap, off_t)); 256 break; 257 case SYS_futex: 258 no_implement("futex\n"); 259 break; 260 case SYS_futimesat: 261 no_implement("futimesat\n"); 262 break; 263 case SYS_getcpu: 264 no_implement("getcpu\n"); 265 break; 266 case SYS_getcwd: 267 ret = (long)shell_getcwd(va_arg(ap, char *), va_arg(ap, size_t)); 268 break; 269 case SYS_getdents64: 270 ret = shell_getdents(va_arg(ap, int), va_arg(ap, struct dirent *), va_arg(ap, size_t)); // TODO 271 break; 272 case SYS_getegid32: 273 no_implement("getegid\n"); 274 break; 275 case SYS_geteuid32: 276 no_implement("geteuid\n"); 277 break; 278 case SYS_getgid32: 279 no_implement("getgid\n"); 280 break; 281 case SYS_getgroups32: 282 no_implement("getgroups\n"); 283 break; 284 case SYS_getitimer: 285 no_implement("getitimer\n"); 286 break; 287 case SYS_getpeername: 288 ret = shell_getpeername(va_arg(ap, int), va_arg(ap, struct sockaddr *), va_arg(ap, socklen_t *)); 289 break; 290 case SYS_getsockname: 291 ret = shell_getsockname(va_arg(ap, int), va_arg(ap, struct sockaddr *), va_arg(ap, socklen_t *)); 292 break; 293 case SYS_getpgid: 294 no_implement("getpgid\n"); 295 break; 296 case SYS_getpid: 297 ret = shell_getpid(); 298 break; 299 case SYS_getppid: 300 no_implement("getppid\n"); 301 break; 302 case SYS_getpriority: 303 no_implement("getpriority\n"); 304 break; 305 case SYS_getresgid32: 306 no_implement("getresgid\n"); 307 break; 308 case SYS_getresuid32: 309 no_implement("getresuid\n"); 310 break; 311 #ifdef SYS_getrlimit 312 case SYS_getrlimit: 313 no_implement("getrlimit\n"); 314 break; 315 #endif 316 case SYS_getrusage: 317 no_implement("getrusage\n"); 318 break; 319 case SYS_getsid: 320 no_implement("getsid\n"); 321 break; 322 case SYS_getsockopt: 323 ret = shell_getsockopt(va_arg(ap, int), va_arg(ap, int), va_arg(ap, int), va_arg(ap, void *), va_arg(ap, socklen_t *)); 324 break; 325 case SYS_gettid: 326 ret = shell_gettid(); 327 break; 328 case SYS_gettimeofday: 329 ret = shell_gettimeofday(va_arg(ap, struct timeval *), va_arg(ap, void *)); 330 break; 331 case SYS_getuid32: 332 no_implement("getuid\n"); 333 break; 334 case SYS_getxattr: 335 no_implement("getxattr\n"); 336 break; 337 case SYS_init_module: 338 no_implement("init_module\n"); 339 break; 340 case SYS_inotify_add_watch: 341 no_implement("inotify_add_watch\n"); 342 break; 343 case SYS_inotify_init: 344 no_implement("inotify_init\n"); 345 break; 346 case SYS_inotify_init1: 347 no_implement("inotify_init1\n"); 348 break; 349 case SYS_inotify_rm_watch: 350 no_implement("inotify_rm_watch\n"); 351 break; 352 case SYS_ioctl: 353 ret = shell_ioctl(va_arg(ap, int), va_arg(ap, int), va_arg(ap, void *)); 354 break; 355 #ifdef SYS_ioperm 356 case SYS_ioperm: 357 no_implement("ioperm\n"); 358 break; 359 #endif 360 #ifdef SYS_iopl 361 case SYS_iopl: 362 no_implement("iopl\n"); 363 break; 364 #endif 365 #ifdef SYS_ipc 366 case SYS_ipc: 367 no_implement("ipc\n"); 368 break; 369 #endif 370 #ifdef SYS_ipc 371 case SYS_ipc: 372 no_implement("ipc\n"); 373 break; 374 #endif 375 case SYS_kill: 376 ret = shell_kill(va_arg(ap, int), va_arg(ap, int)); 377 break; 378 case SYS_lchown32: 379 no_implement("lchown\n"); 380 break; 381 case SYS_lgetxattr: 382 no_implement("lgetxattr\n"); 383 break; 384 case SYS_link: 385 ret = shell_link(va_arg(ap, const char *), va_arg(ap, const char *)); 386 break; 387 case SYS_linkat: 388 no_implement("linkat\n"); 389 break; 390 case SYS_listen: 391 ret = shell_listen(va_arg(ap, int), va_arg(ap, int)); 392 break; 393 case SYS_listxattr: 394 no_implement("listxattr\n"); 395 break; 396 case SYS_llistxattr: 397 no_implement("llistxattr\n"); 398 break; 399 case SYS_lremovexattr: 400 no_implement("lremovexattr\n"); 401 break; 402 case SYS_lsetxattr: 403 no_implement("lsetxattr\n"); 404 break; 405 case SYS_lstat64: 406 ret = shell_lstat(va_arg(ap, const char *__restrict), va_arg(ap, struct stat *__restrict)); 407 break; 408 case SYS_madvise: 409 ret = shell_madvise(va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int)); // TODO 410 break; 411 case SYS_mincore: 412 no_implement("mincore\n"); 413 break; 414 case SYS_mkdir: 415 ret = shell_mkdir(va_arg(ap, const char *), va_arg(ap, mode_t)); 416 break; 417 case SYS_mkdirat: 418 no_implement("mkdirat\n"); 419 break; 420 case SYS_mknod: 421 no_implement("mknod\n"); 422 break; 423 case SYS_mknodat: 424 no_implement("mknodat\n"); 425 break; 426 case SYS_mlock: 427 no_implement("mlock\n"); 428 break; 429 case SYS_mlockall: 430 no_implement("mlockall\n"); 431 break; 432 case SYS_mmap2: 433 ret = (int)shell_mmap2(va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int), va_arg(ap, int), va_arg(ap, int), va_arg(ap, off_t)); 434 break; 435 case SYS_mount: 436 no_implement("mount\n"); 437 break; 438 case SYS_mprotect: 439 return shell_mprotect(va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int)); 440 break; 441 case SYS_mq_getsetattr: 442 no_implement("mq_getsetattr\n"); 443 break; 444 case SYS_mq_notify: 445 no_implement("mq_notify\n"); 446 break; 447 case SYS_mq_open: 448 no_implement("mq_open\n"); 449 break; 450 case SYS_mq_timedreceive: 451 no_implement("mq_timedreceive\n"); 452 break; 453 case SYS_mq_timedsend: 454 no_implement("mq_timedsend\n"); 455 break; 456 case SYS_mq_unlink: 457 no_implement("mq_unlink\n"); 458 break; 459 case SYS_mremap: 460 no_implement("mremap\n"); 461 break; 462 case SYS_msgctl: 463 no_implement("msgctl\n"); 464 break; 465 case SYS_msgget: 466 no_implement("msgget\n"); 467 break; 468 case SYS_msgrcv: 469 no_implement("msgrcv\n"); 470 break; 471 case SYS_msgsnd: 472 no_implement("msgsnd\n"); 473 break; 474 case SYS_msync: 475 no_implement("msync\n"); 476 break; 477 case SYS_munlock: 478 no_implement("munlock\n"); 479 break; 480 case SYS_munlockall: 481 no_implement("munlockall\n"); 482 break; 483 case SYS_munmap: 484 no_implement("munmap\n"); 485 break; 486 case SYS_nanosleep: 487 no_implement("nanosleep\n"); 488 break; 489 case SYS_nice: 490 no_implement("nice\n"); 491 break; 492 case SYS_open: 493 ret = shell_open(va_arg(ap, const char *), va_arg(ap, int), va_arg(ap, void *)); 494 break; 495 case SYS_openat: 496 no_implement("openat\n"); 497 break; 498 case SYS_pause: 499 no_implement("pause\n"); 500 break; 501 case SYS_personality: 502 no_implement("personality\n"); 503 break; 504 case SYS_pipe: 505 no_implement("pipe\n"); 506 break; 507 case SYS_pipe2: 508 no_implement("pipe2\n"); 509 break; 510 case SYS_pivot_root: 511 no_implement("pivot_root\n"); 512 break; 513 case SYS_poll: 514 ret = shell_poll(va_arg(ap, struct pollfd *), va_arg(ap, nfds_t), va_arg(ap, int)); 515 break; 516 case SYS_ppoll: 517 no_implement("ppoll\n"); 518 break; 519 case SYS_prctl: 520 no_implement("prctl\n"); 521 break; 522 case SYS_pread64: 523 no_implement("pread64\n"); 524 break; 525 case SYS_preadv: 526 no_implement("preadv\n"); 527 break; 528 case SYS_prlimit64: 529 no_implement("prlimit64\n"); 530 break; 531 case SYS_process_vm_readv: 532 no_implement("process_vm_readv\n"); 533 break; 534 case SYS_process_vm_writev: 535 no_implement("process_vm_writev\n"); 536 break; 537 case SYS_pselect6: 538 no_implement("pselect6\n"); 539 break; 540 case SYS_ptrace: 541 no_implement("ptrace\n"); 542 break; 543 case SYS_pwrite64: 544 no_implement("pwrite64\n"); 545 break; 546 case SYS_pwritev: 547 no_implement("pwritev\n"); 548 break; 549 case SYS_quotactl: 550 no_implement("quotactl\n"); 551 break; 552 case SYS_read: 553 ret = shell_read(va_arg(ap, int), va_arg(ap, void *), va_arg(ap, size_t)); 554 break; 555 case SYS_readahead: 556 no_implement("readahead\n"); 557 break; 558 case SYS_readlink: 559 no_implement("readlink\n"); 560 break; 561 case SYS_readlinkat: 562 no_implement("readlinkat\n"); 563 break; 564 case SYS_readv: 565 ret = shell_readv(va_arg(ap, int), va_arg(ap, const struct iovec *), va_arg(ap, int)); 566 break; 567 case SYS_recv: 568 ret = shell_recv(va_arg(ap, int), va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int)); 569 break; 570 case SYS_recvfrom: 571 fd = va_arg(ap, int); 572 if (fd == 0) 573 ret = shell_recv(fd, va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int)); 574 else 575 ret = shell_recvfrom(fd, va_arg(ap, void *), va_arg(ap, size_t), va_arg(ap, int), va_arg(ap, struct sockaddr *), va_arg(ap, socklen_t *)); 576 break; 577 case SYS_recvmsg: 578 ret = shell_recvmsg(va_arg(ap, int), va_arg(ap, struct msghdr *), va_arg(ap, size_t)); 579 break; 580 case SYS_reboot: 581 no_implement("reboot\n"); 582 break; 583 case SYS_recvmmsg: 584 no_implement("recvmmsg\n"); 585 break; 586 case SYS_remap_file_pages: 587 no_implement("remap_file_pages\n"); 588 break; 589 case SYS_removexattr: 590 no_implement("removexattr\n"); 591 break; 592 case SYS_rename: 593 ret = shell_rename(va_arg(ap, const char *), va_arg(ap, const char *)); 594 break; 595 case SYS_renameat: 596 no_implement("renameat\n"); 597 break; 598 case SYS_rmdir: 599 ret = shell_rmdir(va_arg(ap, const char *)); 600 break; 601 case SYS_rt_sigaction: 602 ret = shell_sigaction(va_arg(ap, int), va_arg(ap, const struct sigaction *), va_arg(ap, struct sigaction *)); 603 break; 604 case SYS_rt_sigpending: 605 no_implement("rt_sigpending\n"); 606 break; 607 case SYS_rt_sigprocmask: 608 ret = shell_sigprocmask(va_arg(ap, int), va_arg(ap, const sigset_t *), va_arg(ap, sigset_t *)); 609 break; 610 case SYS_rt_sigqueueinfo: 611 no_implement("rt_sigqueueinfo\n"); 612 break; 613 case SYS_rt_sigsuspend: 614 no_implement("rt_sigsuspend\n"); 615 break; 616 case SYS_rt_sigtimedwait: 617 no_implement("rt_sigtimedwait\n"); 618 break; 619 case SYS_send: 620 ret = shell_send(va_arg(ap, int), va_arg(ap, const void *), va_arg(ap, size_t), va_arg(ap, int)); 621 break; 622 case SYS_sendmsg: 623 ret = shell_sendmsg(va_arg(ap, int), va_arg(ap, const struct msghdr *), va_arg(ap, size_t)); 624 break; 625 case SYS_sendto: 626 fd = va_arg(ap, int); 627 if (fd == 0) 628 ret = shell_send(fd, va_arg(ap, const void *), va_arg(ap, size_t), va_arg(ap, int)); 629 else 630 ret = shell_sendto(fd, va_arg(ap, const void *), va_arg(ap, size_t), va_arg(ap, int), va_arg(ap, const struct sockaddr *), va_arg(ap, socklen_t)); 631 break; 632 case SYS_setsockopt: 633 ret = shell_setsockopt(va_arg(ap, int), va_arg(ap, int), va_arg(ap, int), va_arg(ap, const void *), va_arg(ap, socklen_t)); 634 break; 635 case SYS_shutdown: 636 ret = shell_shutdown(va_arg(ap, int), va_arg(ap, int)); 637 break; 638 case SYS_sched_get_priority_max: 639 no_implement("sched_get_priority_max\n"); 640 break; 641 case SYS_sched_get_priority_min: 642 no_implement("sched_get_priority_min\n"); 643 break; 644 case SYS_sched_getaffinity: 645 no_implement("sched_getaffinity\n"); 646 break; 647 case SYS_sched_getparam: 648 no_implement("sched_getparam\n"); 649 break; 650 case SYS_sched_getscheduler: 651 no_implement("sched_getscheduler\n"); 652 break; 653 case SYS_sched_rr_get_interval: 654 no_implement("sched_rr_get_interval\n"); 655 break; 656 case SYS_sched_setaffinity: 657 no_implement("sched_setaffinity\n"); 658 break; 659 case SYS_sched_setparam: 660 no_implement("sched_setparam\n"); 661 break; 662 case SYS_sched_setscheduler: 663 no_implement("sched_setscheduler\n"); 664 break; 665 case SYS_sched_yield: 666 no_implement("sched_yield\n"); 667 break; 668 case SYS_semctl: 669 no_implement("semctl\n"); 670 break; 671 case SYS_semget: 672 no_implement("semget\n"); 673 break; 674 case SYS_semop: 675 no_implement("semop\n"); 676 break; 677 case SYS_semtimedop: 678 no_implement("semtimedop\n"); 679 break; 680 case SYS_sendfile64: 681 no_implement("sendfile\n"); 682 break; 683 case SYS_sendmmsg: 684 no_implement("sendmmsg\n"); 685 break; 686 case SYS_set_robust_list: 687 no_implement("set_robust_list\n"); 688 break; 689 #ifdef SYS_set_thread_area 690 case SYS_set_thread_area: 691 thread_area = va_arg(ap, void *); 692 ret = 0; 693 break; 694 #endif 695 case SYS_set_tid_address: 696 tid_address = va_arg(ap, void *); 697 ret = 0; 698 break; 699 case SYS_setdomainname: 700 no_implement("setdomainname\n"); 701 break; 702 case SYS_setfsgid32: 703 no_implement("setfsgid\n"); 704 break; 705 case SYS_setfsuid32: 706 no_implement("setfsuid\n"); 707 break; 708 case SYS_setgroups32: 709 no_implement("setgroups\n"); 710 break; 711 case SYS_sethostname: 712 no_implement("sethostname\n"); 713 break; 714 case SYS_setitimer: 715 no_implement("setitimer\n"); 716 break; 717 case SYS_setns: 718 no_implement("setns\n"); 719 break; 720 case SYS_setpgid: 721 no_implement("setpgid\n"); 722 break; 723 case SYS_setpriority: 724 no_implement("setpriority\n"); 725 break; 726 case SYS_setrlimit: 727 no_implement("setrlimit\n"); 728 break; 729 case SYS_setsid: 730 no_implement("setsid\n"); 731 break; 732 case SYS_settimeofday: 733 no_implement("settimeofday\n"); 734 break; 735 case SYS_setxattr: 736 no_implement("setxattr\n"); 737 break; 738 case SYS_shmat: 739 no_implement("shmat\n"); 740 break; 741 case SYS_shmctl: 742 no_implement("shmctl\n"); 743 break; 744 case SYS_shmdt: 745 no_implement("shmdt\n"); 746 break; 747 case SYS_shmget: 748 no_implement("shmget\n"); 749 break; 750 case SYS_sigaltstack: 751 no_implement("sigaltstack\n"); 752 break; 753 case SYS_signalfd: 754 no_implement("signalfd\n"); 755 break; 756 case SYS_signalfd4: 757 no_implement("signalfd4\n"); 758 break; 759 case SYS_socket: 760 ret = shell_socket(va_arg(ap, int), va_arg(ap, int), va_arg(ap, int)); 761 break; 762 case SYS_splice: 763 no_implement("splice\n"); 764 break; 765 case SYS_stat64: 766 ret = shell_stat(va_arg(ap, const char *), va_arg(ap, struct stat *)); 767 break; 768 case SYS_statfs64: 769 no_implement("statfs64\n"); 770 break; 771 case SYS_swapoff: 772 no_implement("swapoff\n"); 773 break; 774 case SYS_swapon: 775 no_implement("swapon\n"); 776 break; 777 case SYS_symlink: 778 no_implement("symlink\n"); 779 break; 780 case SYS_symlinkat: 781 no_implement("symlinkat\n"); 782 break; 783 case SYS_sync: 784 no_implement("sync\n"); 785 break; 786 #ifdef SYS_sync_file_range 787 case SYS_sync_file_range: 788 no_implement("sync_file_range\n"); 789 break; 790 #endif 791 case SYS_sync_file_range2: 792 no_implement("sync_file_range2\n"); 793 break; 794 case SYS_syncfs: 795 no_implement("syncfs\n"); 796 break; 797 case SYS_sysinfo: 798 no_implement("sysinfo\n"); 799 break; 800 case SYS_syslog: 801 no_implement("syslog\n"); 802 break; 803 case SYS_tee: 804 no_implement("tee\n"); 805 break; 806 case SYS_tgkill: 807 no_implement("tgkill\n"); 808 break; 809 case SYS_timer_create: 810 no_implement("timer_create\n"); 811 break; 812 case SYS_timer_delete: 813 no_implement("timer_delete\n"); 814 break; 815 case SYS_timer_getoverrun: 816 no_implement("timer_getoverrun\n"); 817 break; 818 case SYS_timer_gettime: 819 no_implement("timer_gettime\n"); 820 break; 821 case SYS_timer_settime: 822 no_implement("timer_settime\n"); 823 break; 824 case SYS_timerfd_create: 825 no_implement("timerfd_create\n"); 826 break; 827 case SYS_timerfd_gettime: 828 no_implement("timerfd_gettime\n"); 829 break; 830 case SYS_timerfd_settime: 831 no_implement("timerfd_settime\n"); 832 break; 833 case SYS_times: 834 no_implement("times\n"); 835 break; 836 case SYS_tkill: 837 ret = shell_tkill(va_arg(ap, int), va_arg(ap, int)); 838 break; 839 case SYS_truncate64: 840 no_implement("truncate\n"); 841 break; 842 case SYS_ugetrlimit: 843 no_implement("ugetrlimit\n"); 844 break; 845 case SYS_umask: 846 no_implement("umask\n"); 847 break; 848 case SYS_umount2: 849 no_implement("umount2\n"); 850 break; 851 case SYS_uname: 852 ret = shell_uname(va_arg(ap, struct utsname *)); 853 break; 854 case SYS_unlink: 855 ret = shell_unlink(va_arg(ap, const char *)); 856 break; 857 case SYS_unlinkat: 858 no_implement("unlinkat\n"); 859 break; 860 case SYS_unshare: 861 no_implement("unshare\n"); 862 break; 863 case SYS_utimensat: 864 no_implement("utimensat\n"); 865 break; 866 case SYS_utimes: 867 no_implement("utimes\n"); 868 break; 869 case SYS_vhangup: 870 no_implement("vhangup\n"); 871 break; 872 case SYS_vmsplice: 873 no_implement("vmsplice\n"); 874 break; 875 case SYS_wait4: 876 no_implement("wait4\n"); 877 break; 878 case SYS_waitid: 879 no_implement("waitid\n"); 880 break; 881 case SYS_write: 882 ret = shell_write(va_arg(ap, int), va_arg(ap, const void *), va_arg(ap, size_t)); 883 break; 884 case SYS_writev: 885 ret = shell_writev(va_arg(ap, int), va_arg(ap, const struct iovec *), va_arg(ap, size_t)); 886 break; 887 default: 888 DebugBreak(); 889 } 890 891 va_end(ap); 892 893 shellif_outof(); 894 895 return ret; 896 } 354 355 long SYS_set_tid_address(long a) { 356 tid_address = (void *)a; 357 return 0; 358 } 359 360 long SYS_socket(long a, long b, long c) { 361 return shell_socket((int)a, (int)b, (int)c); 362 } 363 364 long SYS_stat64(long a, long b) { 365 return shell_stat((const char *)a, (struct stat *)b); 366 } 367 368 long SYS_tkill(long a, long b) { 369 return shell_tkill((int)a, (int)b); 370 } 371 372 long SYS_uname(long a) { 373 return shell_uname((struct utsname *)a); 374 } 375 376 long SYS_unlink(long a) { 377 return shell_unlink((const char *)a); 378 } 379 380 long SYS_utimensat() { 381 return no_implement("utimensat\n"); 382 } 383 384 long SYS_utimes() { 385 return no_implement("utimes\n"); 386 } 387 388 long SYS_write(long a, long b, long c) { 389 return shell_write((int)a, (const void *)b, (size_t)c); 390 } 391 392 long SYS_writev(long a, long b, long c) { 393 return shell_writev((int)a, (const struct iovec *)b, (size_t)c); 394 }
Note:
See TracChangeset
for help on using the changeset viewer.