Changeset 364 for asp3_tinet_ecnl_arm/trunk/ntshell/src/syscall.c
- Timestamp:
- Feb 1, 2019, 9:57:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/ntshell/src/syscall.c
r352 r364 201 201 202 202 long SYS_futex() { 203 int futex(int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3); 203 204 return no_implement("futex\n"); 204 205 } … … 309 310 310 311 long SYS_recv(long a, long b, long c, long d) { 311 return shell_recv ((int)a, (void *)b, (size_t)c, (int)d);312 return shell_recvfrom((int)a, (void *)b, (size_t)c, (int)d, NULL, NULL); 312 313 } 313 314 314 315 long SYS_recvfrom(long a, long b, long c, long d, long e, long f) { 315 if (a == 0) 316 return shell_recv(a, (void *)b, (size_t)c, (int)d); 317 else 318 return shell_recvfrom(a, (void *)b, (size_t)c, (int)d, (struct sockaddr *)e, (socklen_t *)f); 316 return shell_recvfrom(a, (void *)b, (size_t)c, (int)d, (struct sockaddr *)e, (socklen_t *)f); 319 317 } 320 318 … … 344 342 345 343 long SYS_send(long a, long b, long c, long d) { 346 return shell_send ((int)a, (const void *)b, (size_t)c, (int)d);344 return shell_sendto((int)a, (const void *)b, (size_t)c, (int)d, NULL, 0); 347 345 } 348 346 … … 352 350 353 351 long SYS_sendto(long a, long b, long c, long d, long e, long f) { 354 if (a == 0) 355 return shell_send(a, (const void *)b, (size_t)c, (int)d); 356 else 357 return shell_sendto(a, (const void *)b, (size_t)c, (int)d, (const struct sockaddr *)e, (socklen_t)f); 352 return shell_sendto(a, (const void *)b, (size_t)c, (int)d, (const struct sockaddr *)e, (socklen_t)f); 358 353 } 359 354 … … 422 417 } 423 418 419 long SYS_dup() 420 { 421 return no_implement("dup\n"); 422 } 423 424 long SYS_dup2() 425 { 426 return no_implement("dup2\n"); 427 } 428 429 long SYS_pipe() 430 { 431 return no_implement("pipe\n"); 432 } 433 434 long SYS_readlink() 435 { 436 return no_implement("readlink\n"); 437 } 438 439 long SYS_symlink() 440 { 441 return no_implement("symlink\n"); 442 } 443 444 long SYS_umask() 445 { 446 return no_implement("umask\n"); 447 } 448 449 long SYS_execve() 450 { 451 return no_implement("execve\n"); 452 } 453 454 long SYS_fork() 455 { 456 return no_implement("fork\n"); 457 } 458 459 long SYS_wait4() 460 { 461 return no_implement("wait4\n"); 462 } 463 464 long SYS_socketpair() 465 { 466 return no_implement("socketpair\n"); 467 } 468 469 long SYS_flock() 470 { 471 return no_implement("flock\n"); 472 } 473 424 474 long ARM_SYS_cacheflush() { 425 475 flash_access_cache_control();
Note:
See TracChangeset
for help on using the changeset viewer.