[osv-dev] [PATCH] syscall: implement getdents64

2022-05-18 Thread Waldemar Kozaczuk
It looks like the golang apps that need to iterate over entries in a directory use a system call getdents64 which is documented in https://man7.org/linux/man-pages/man2/getdents.2.html. Normally this functionality is provided by the libc functions like opendir(), readdir(), etc which actually do de

Re: [osv-dev] [PATCH] vfs: refactor the *at() functions

2022-05-18 Thread Waldek Kozaczuk
Thanks for the review. On Wednesday, May 18, 2022 at 2:45:34 AM UTC-4 Nadav Har'El wrote: > On Wed, May 18, 2022 at 6:25 AM Waldemar Kozaczuk > wrote: > >> The VFS functions like openat(), faccessat() and others alike >> take a directory descriptor argument intended to make a filesystem >> acti

[osv-dev] [COMMIT osv master] syscall: support getgid, getuid, lseek and statfs

2022-05-18 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master syscall: support getgid, getuid, lseek and statfs This patch adds 4 new syscalls that map one-to-one to the four functions listed in the title above. These are required to run SeaweedFS on OSv. Refs #1188 Signed-off-by: Waldemar K

Re: [osv-dev] [PATCH] vfs: implement symlinkat

2022-05-18 Thread Nadav Har'El
On Wed, May 18, 2022 at 6:26 AM Waldemar Kozaczuk wrote: > This patch implements the symlinkat() function and enhances > tst-symlink.cc to unit test it. > > Signed-off-by: Waldemar Kozaczuk > --- > exported_symbols/osv_ld-musl.so.1.symbols | 1 + > exported_symbols/osv_libc.so.6.symbols|