Skip to content

bsd-user: Next round of syscalls

Warner Losh qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 1 replyIn review
  2. v111 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11bsd-user: Implement open, openat and closebsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c bsd-user/syscall_defs.h+69 -00 replies
2/11bsd-user: Implement fdatasync, fsync and close_frombsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+31 -00 replies
3/11bsd-user: Implement revoke, access, eaccess and faccessatbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+69 -00 replies
4/11bsd-user: Implement chdir and fchdirbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+27 -00 replies
5/11bsd-user: Implement rename and renameatbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+53 -00 replies
6/11bsd-user: Implement link, linkat, unlink and unlinkatbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+70 -00 replies
7/11bsd-user: Implement mkdir and mkdiratbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+35 -00 replies
8/11bsd-user: Implement rmdir and undocumented __getcwdbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+37 -01 reply
9/11bsd-user: Implement dup and dup2bsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+20 -00 replies
10/11bsd-user: Implement trunctate and ftruncatebsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+37 -00 replies
11/11bsd-user: Implement acct and syncbsd-user/bsd-file.h bsd-user/freebsd/os-syscall.c+31 -00 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] bsd-user: Next round of syscalls

Implement the next round of system calls. These are open, openat, close, fdatasync, fsync, close_from, revoke, access, eacccess, facccessat, chdir, fchdir, rename, renameat, mkdir, mkdirat, rmdir, _getcwd, dup, dup2, truncate, ftruncate, acct and sync. In addition, the helper functions needed for these to work are included. With the helper functions, all of these system calls are the 'obvious' wrapper...

V2: Delete extra blank lines
Use safe_syscall(SYS___getcwd,...) instead of __getcwd.

Only part 8 (bsd-user: Implement rmdir and undocumented __getcwd) needs to be reviewed.

Warner Losh (11):
bsd-user: Implement open, openat and close
bsd-user: Implement fdatasync, fsync and close_from
bsd-user: Implement revoke, access, eaccess and faccessat
bsd-user: Implement chdir and fchdir
bsd-user: Implement rename and renameat
bsd-user: Implement link, linkat, unlink and unlinkat
bsd-user: Implement mkdir and mkdirat
bsd-user: Implement rmdir and undocumented __getcwd
bsd-user: Implement dup and dup2
bsd-user: Implement trunctate and ftruncate
bsd-user: Implement acct and sync

 bsd-user/bsd-file.h           | 359 ++++++++++++++++++++++++++++++++++
 bsd-user/freebsd/os-syscall.c | 116 +++++++++++
 bsd-user/syscall_defs.h       |   4 +
 3 files changed, 479 insertions(+)
Signature · 1 line
2.33.1