A second round of mostly BSD-independent filesystem calls: mount, unmount, nmount, symlink, symlinkat, readlink, readlinkat, chmod, fchmod, lchmod, fchmodat, freebsd11_mknod, freebsd11_monodat, mknodat, chown, fchown, lchown, fchownat, chflags, lchflags, fchflags, chroot, flock, mkfifo, mkfifoat, pathconf, lpathconf, fpathconf, undelete.
These are all non-reentrant system calls, so these wrappers are pretty simple and no safe_* versions need to be created. Warner Losh (10): bsd-user: Implement mount, umount and nmount bsd-user: Implement symlink, symlinkat, readlink and readlinkat bsd-user: implement chmod, fchmod, lchmod and fchmodat bsd-user: Implement freebsd11_mknod, freebsd11_mknodat and mknodat bsd-user: Implement chown, fchown, lchown and fchownat bsd-user: Implement chflags, lchflags and fchflags bsd-user: Implement chroot and flock bsd-user: Implement mkfifo and mkfifoat bsd-user: Implement pathconf, lpathconf and fpathconf bsd-user: Implement undelete bsd-user/bsd-file.h | 403 ++++++++++++++++++++++++++++++++++ bsd-user/freebsd/os-syscall.c | 120 ++++++++++ 2 files changed, 523 insertions(+) -- 2.33.1