Changeset 364 for asp3_tinet_ecnl_rx/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_rx/trunk/ntshell/src/syscall.c
r359 r364 172 172 173 173 long SYS_futex() { 174 int futex(int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3); 174 175 return no_implement("futex\n"); 175 176 } … … 280 281 281 282 long SYS_recv(long a, long b, long c, long d) { 282 return shell_recv ((int)a, (void *)b, (size_t)c, (int)d);283 return shell_recvfrom((int)a, (void *)b, (size_t)c, (int)d, NULL, NULL); 283 284 } 284 285 285 286 long SYS_recvfrom(long a, long b, long c, long d, long e, long f) { 286 if (a == 0) 287 return shell_recv(a, (void *)b, (size_t)c, (int)d); 288 else 289 return shell_recvfrom(a, (void *)b, (size_t)c, (int)d, (struct sockaddr *)e, (socklen_t *)f); 287 return shell_recvfrom(a, (void *)b, (size_t)c, (int)d, (struct sockaddr *)e, (socklen_t *)f); 290 288 } 291 289 … … 315 313 316 314 long SYS_send(long a, long b, long c, long d) { 317 return shell_send ((int)a, (const void *)b, (size_t)c, (int)d);315 return shell_sendto((int)a, (const void *)b, (size_t)c, (int)d, NULL, 0); 318 316 } 319 317 … … 323 321 324 322 long SYS_sendto(long a, long b, long c, long d, long e, long f) { 325 if (a == 0) 326 return shell_send(a, (const void *)b, (size_t)c, (int)d); 327 else 328 return shell_sendto(a, (const void *)b, (size_t)c, (int)d, (const struct sockaddr *)e, (socklen_t)f); 323 return shell_sendto(a, (const void *)b, (size_t)c, (int)d, (const struct sockaddr *)e, (socklen_t)f); 329 324 } 330 325 … … 392 387 return shell_writev((int)a, (const struct iovec *)b, (size_t)c); 393 388 } 389 390 long SYS_dup() 391 { 392 return no_implement("dup\n"); 393 } 394 395 long SYS_dup2() 396 { 397 return no_implement("dup2\n"); 398 } 399 400 long SYS_pipe() 401 { 402 return no_implement("pipe\n"); 403 } 404 405 long SYS_readlink() 406 { 407 return no_implement("readlink\n"); 408 } 409 410 long SYS_symlink() 411 { 412 return no_implement("symlink\n"); 413 } 414 415 long SYS_umask() 416 { 417 return no_implement("umask\n"); 418 } 419 420 long SYS_execve() 421 { 422 return no_implement("execve\n"); 423 } 424 425 long SYS_fork() 426 { 427 return no_implement("fork\n"); 428 } 429 430 long SYS_wait4() 431 { 432 return no_implement("wait4\n"); 433 } 434 435 long SYS_socketpair() 436 { 437 return no_implement("socketpair\n"); 438 } 439 440 long SYS_flock() 441 { 442 return no_implement("flock\n"); 443 }
Note:
See TracChangeset
for help on using the changeset viewer.