47 Commits

Author SHA1 Message Date
SEProblem
3d5f42c106 Implement sys_faccessat (call: 307) 2018-10-29 15:17:52 -07:00
Theodore Dubois
25441d10cc Implement pread 2018-10-22 11:05:26 -07:00
Theodore Dubois
2e66513306 Implement chown32 2018-10-08 14:26:48 -07:00
Theodore Dubois
93aa315524 Log the data for a write call 2018-10-08 11:44:06 -07:00
Theodore Dubois
e170446cc4 Store the adhoc stat info in the fd 2018-10-08 11:43:54 -07:00
Theodore Dubois
31d703a486 Handle NULL path for utimensat 2018-10-05 12:48:21 -07:00
Theodore Dubois
c95327fcc3 Pass arguments to strace for mkdirat 2018-10-01 16:32:46 -07:00
Theodore Dubois
c38ee23ce3 Implement fsync 2018-09-28 13:02:09 -07:00
Theodore Dubois
dc7b3f0068 Add strace for symlinkat 2018-09-28 11:16:04 -07:00
Theodore Dubois
998b68e5d9 Add a bunch of strace messages 2018-09-27 14:38:45 -07:00
Theodore Dubois
b1e34968e8 Implement readlinkat 2018-09-26 09:24:15 -07:00
Theodore Dubois
c16e7e0190 Unfuck rmdir 2018-08-12 20:39:15 -07:00
Theodore Dubois
b1ff0a31fc Implement futimens 2018-08-12 20:35:00 -07:00
Theodore Dubois
3cf7619de7 Merge branch 'jit' 2018-08-12 19:35:43 -07:00
Theodore Dubois
39174168c3 Break out of readv/writev as soon as a buffer is incompletely read/written 2018-06-16 16:44:48 -07:00
Theodore Dubois
c83d07c092 Fix some file descriptor leaks 2018-04-20 18:32:56 -07:00
Theodore Dubois
ab6374df55 Stop passing NULL to path_normalize 2018-02-04 20:23:01 -08:00
Theodore Dubois
eddf023669 Move pwd, root, uname out into its own struct 2018-01-21 17:24:32 -08:00
Theodore Dubois
6a907425e6 Rename process to task 2018-01-21 12:44:55 -08:00
Theodore Dubois
728ca235c0 Replace files array with fdtable structure 2018-01-15 19:18:38 -08:00
Theodore Dubois
cb1329d9c9 Implement rmdir 2018-01-14 15:09:48 -08:00
Theodore Dubois
cb46f04643 Implement chmod 2018-01-10 15:43:01 -08:00
Theodore Dubois
d4002fd655 Add stub for fsetxattr 2018-01-09 14:32:58 -08:00
Theodore Dubois
1ed7a5da79 Implement hardlinks 2018-01-09 14:13:44 -08:00
Theodore Dubois
f60c9276f9 Use thread-safe reference counting on fds 2017-12-26 19:45:05 -08:00
Theodore Dubois
0767d5411e Call fd_close from sys_close 2017-12-17 19:19:18 -08:00
Theodore Dubois
fd88906165 Implement /dev/null 2017-12-15 15:55:53 -08:00
Theodore Dubois
5def3fe279 Add strace to a few calls 2017-12-15 14:19:45 -08:00
Theodore Dubois
5e886c5dbd Return ESPIPE for lseek on non-seekable files 2017-12-14 18:20:31 -08:00
Theodore Dubois
6f407c286f Return _EINVAL if ioctl is not implemented for a file 2017-12-14 18:03:59 -08:00
Theodore Dubois
9d8e14ddc3 Implement chroot 2017-11-29 17:33:23 -08:00
Theodore Dubois
8fea4297f7 Fix NULL check in sys_fchdir 2017-11-29 16:58:46 -08:00
Theodore Dubois
52e7bd66a9 Improve strace messages 2017-11-29 16:58:12 -08:00
Theodore Dubois
ce80cd402b Only apply umask & 0777 2017-11-29 16:57:44 -08:00
Theodore Dubois
bbd6a69833 Add umount2 stub 2017-11-29 16:26:43 -08:00
Theodore Dubois
aeda183a3d Fix fallocate to actually work 2017-11-29 16:20:47 -08:00
Theodore Dubois
d6dbc8487b Implement fchdir 2017-11-28 18:45:00 -08:00
Theodore Dubois
592fd48a59 Implement fchmodat 2017-11-28 18:32:17 -08:00
Theodore Dubois
bcfc41aa82 Implement mkdir 2017-11-28 18:25:25 -08:00
Theodore Dubois
f34a8ebaf1 Implement fallocate 2017-11-28 17:26:27 -08:00
Theodore Dubois
433472b4d1 Implement ftruncate and truncate 2017-11-28 17:12:24 -08:00
Theodore Dubois
9a5202ebec Replace fchown, chown, fchmod, chmod with setattr 2017-11-27 17:15:58 -08:00
Theodore Dubois
b16f41bd4f Implement fchownat 2017-11-20 15:43:49 -08:00
Theodore Dubois
bd70020673 Implement symlink system call 2017-11-19 20:41:05 -08:00
Theodore Dubois
44967f21b7 Implement rename 2017-11-18 20:43:09 -08:00
Theodore Dubois
3fa4a8da03 Declare mounts as extern in header file 2017-10-18 15:58:46 -07:00
Theodore Dubois
f1e63c43e0 Rename sys directory to kernel
A number of the headers in it were conflicting with macOS system
headers.
2017-10-13 16:54:11 -07:00