| 1197 | } |
| 1198 | |
| 1199 | int __syscall_fchmod(int fd, mode_t mode) { |
| 1200 | auto openFile = wasmFS.getFileTable().locked().getEntry(fd); |
| 1201 | if (!openFile) { |
| 1202 | return -EBADF; |
| 1203 | } |
| 1204 | auto lockedFile = openFile->locked().getFile()->locked(); |
| 1205 | lockedFile.setMode(mode); |
| 1206 | lockedFile.updateCTime(); |
| 1207 | return 0; |
| 1208 | } |
| 1209 | |
| 1210 | int __syscall_fchownat( |
| 1211 | int dirfd, const char* path, uid_t owner, gid_t group, int flags) { |
no test coverage detected