| 737 | } |
| 738 | |
| 739 | int __syscall_fchdir(int fd) { |
| 740 | auto openFile = wasmFS.getFileTable().locked().getEntry(fd); |
| 741 | if (!openFile) { |
| 742 | return -EBADF; |
| 743 | } |
| 744 | return doChdir(openFile->locked().getFile()); |
| 745 | } |
| 746 | |
| 747 | int __syscall_getcwd(char* buf, size_t size) { |
| 748 | // Check if buf points to a bad address. |