All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] bsd-user: Generate system call numbers
@ 2026-04-13 15:31 Warner Losh
  2026-04-13 15:31 ` [PATCH 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Warner Losh @ 2026-04-13 15:31 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Philippe Mathieu-Daudé, Warner Losh

FreeBSD has a system call number header, sys/syscall.h, that's installed
on every system that can compile qemu. Generate the system call numbers
from that table rather than re-regenerating it yet again.

To do this, I have to clean up a few stragglers for system calls we've
removed. But these returned not supported anyway, so there's no net
change.

I also tried to do this in a way that the other bsds can coexist with
should they show up again in the future. To that end, I moved the
definition of time_t into os-syscall.h, where I noticed it was wrong for
amd64 targets (which is little used and missing features, so it went
unnoticed for a long time).

More will be generated in the future, but this is the first steps.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
Warner Losh (5):
      bsd-user: Add syscall header generator for FreeBSD
      bsd-user: Generate the system call numbers in meson build.
      bsd-user: Conditionally use old system calls
      bsd-user: Create os-syscall.h
      bsd-user: Switch to generated syscall_nr.h

 bsd-user/bsd-mem.h             |   2 +
 bsd-user/freebsd/meson.build   |   4 +
 bsd-user/freebsd/os-syscall.c  |   4 +
 bsd-user/freebsd/os-syscall.h  |  21 ++
 bsd-user/freebsd/strace.list   |   4 +
 bsd-user/freebsd/syscall_nr.h  | 515 -----------------------------------------
 bsd-user/freebsd/syscallhdr.sh |   9 +
 bsd-user/syscall_defs.h        |  18 +-
 meson.build                    |   2 +
 9 files changed, 47 insertions(+), 532 deletions(-)
---
base-commit: becd22fdc2a071783d9e04421526633772b3b98c
change-id: 20260412-syscall-nr-a0a831fce9a0

Best regards,
-- 
Warner Losh <imp@bsdimp.com>



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-04-14 13:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-13 15:31 [PATCH 0/5] bsd-user: Generate system call numbers Warner Losh
2026-04-13 15:31 ` [PATCH 1/5] bsd-user: Add syscall header generator for FreeBSD Warner Losh
2026-04-13 22:20   ` Philippe Mathieu-Daudé
2026-04-14  2:44     ` Warner Losh
2026-04-14  9:16       ` Philippe Mathieu-Daudé
2026-04-13 15:31 ` [PATCH 2/5] bsd-user: Generate the system call numbers in meson build Warner Losh
2026-04-13 22:22   ` Philippe Mathieu-Daudé
2026-04-13 15:31 ` [PATCH 3/5] bsd-user: Conditionally use old system calls Warner Losh
2026-04-13 22:12   ` Philippe Mathieu-Daudé
2026-04-14  8:13   ` Daniel P. Berrangé
2026-04-14 13:56     ` Warner Losh
2026-04-13 15:31 ` [PATCH 4/5] bsd-user: Create os-syscall.h Warner Losh
2026-04-13 15:31 ` [PATCH 5/5] bsd-user: Switch to generated syscall_nr.h Warner Losh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.