{"id":2222768,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2222768/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20260413-syscall-nr-v1-0-f70408d042ea@bsdimp.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260413-syscall-nr-v1-0-f70408d042ea@bsdimp.com>","date":"2026-04-13T15:31:42","name":"[0/5] bsd-user: Generate system call numbers","submitter":{"id":1896,"url":"http://patchwork.ozlabs.org/api/1.1/people/1896/?format=json","name":"Warner Losh","email":"imp@bsdimp.com"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20260413-syscall-nr-v1-0-f70408d042ea@bsdimp.com/mbox/","series":[{"id":499724,"url":"http://patchwork.ozlabs.org/api/1.1/series/499724/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499724","date":"2026-04-13T15:31:42","name":"bsd-user: Generate system call numbers","version":1,"mbox":"http://patchwork.ozlabs.org/series/499724/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2222768/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bsdimp-com.20251104.gappssmtp.com\n header.i=@bsdimp-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=02E6RK03;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvWfc2Y84z1yDG\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 01:34:14 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wCJIF-0006K9-Jf; Mon, 13 Apr 2026 11:33:43 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wCJHQ-0006Fu-Bj\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 11:32:55 -0400","from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wCJHL-0002x0-6O\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 11:32:50 -0400","by mail-ot1-x32c.google.com with SMTP id\n 46e09a7af769-7d86eb7c854so2224989a34.3\n for <qemu-devel@nongnu.org>; Mon, 13 Apr 2026 08:32:46 -0700 (PDT)","from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7dc2696c463sm8659192a34.23.2026.04.13.08.32.44\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 Apr 2026 08:32:44 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1776094365; x=1776699165;\n darn=nongnu.org;\n h=cc:to:content-transfer-encoding:mime-version:message-id:date\n :subject:from:from:to:cc:subject:date:message-id:reply-to;\n bh=6HIYnL74G9vWKIG7UY01i+b0GPOrTKuUyV9x38ekQzQ=;\n b=02E6RK03p++3S84XwJSqv+xYuNpkRlFt2mB6Tb1GiN9TdwyqjaWawWEImLok+iahvE\n G6J0SFs2i0WFPBIEGXjxddBs4f62VidyaY5I9RHABJdRdCxKXIj1A61oWCWD9lizYjeA\n RGIug59yX8nIXaSztNskyLNRCbP2lMGEDyMAUwFK2/LdboIRxY/uFX6KEmsDM24CUY8W\n Xs9QyoTw3kWYniNBwDQchHaKhRxnYpnMUPjmij4RuMmbTlkhPh4ZTilGpai/XPl/awnx\n 25RFcVezs90PYZl1x64MeLgfgWmyugC3h0AimX+XIugjPyAxaZTPu9QhXqlBkt6jEKmE\n FjVQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776094365; x=1776699165;\n h=cc:to:content-transfer-encoding:mime-version:message-id:date\n :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=6HIYnL74G9vWKIG7UY01i+b0GPOrTKuUyV9x38ekQzQ=;\n b=Zd4wToiTX/L5udQLDPP6tUziLYvQhHmKkJjyok7Q3v/0gMAN0jt3g/iF7+hKUABjCn\n X7GoYRw9r9svn0yZmMcbOBUuMJZ4DJ/IwY24tLu8wqVoy6MbQWU4H9jP8xW9eaCeM3Am\n chdjquWZT59zx+e6oRIIx+51waiX0oorfxhNFdVxtPVOe09eZgrlQwksMff6gXNumNBA\n 3ybDHGd/sB2nyHJ3y1fVfZAiR8v8w1xeHw3IVhvWes6Qikg3B+2dCEkNDvXdmIs5ynkx\n CzuInhbV67KOjWRmMhtYONB8JSODV4FrkfYRBUId/0R/ybUfhAQxtGIVtPAQHbgNUlri\n SvrA==","X-Gm-Message-State":"AOJu0Yx+ZFRJuIZNEpIBwhZGxGUlpBf27njK4hm+T8EvkoJ/6bKNIJ4A\n ar5lE8EA7E+W1tUNvWSBmeze9LNQjz1PSmfSKtQl7iVdShrmpQirjHjd2EglTqan4jE=","X-Gm-Gg":"AeBDietjMPmB4m8RExF5pw+E0vb2JFUD+Zv7YhQgz9sLDnM2/fX4zRaNIC1/fMMPVRD\n E2+6YXNcJ3cxOiSUMTEIrHUaLK4ehe6FziKoIUYfeSV3aRLAtUV/ASu3rnIK3hIAjuL9Rm0uO53\n 1yxF2TcKtG1vJXHXISoOUv2/LO3li6rKTm+496kiVwV783l7lHOrDVbomkMcnJF+74Ex8HZKMrH\n eRHVbcOIY8FHKaz+z70GltYEaAIWlh9kQdZuaU2i2/RkPX5M5ofGm+s7tdVa5eNvUCGqkzVSZMd\n Tpf0Gh057few2NWwAdQVrmW/TmN7uqgVkyMPz5b5CNfX07rKo/xuIcWwlo5U6NRn2Fp45OPVQwy\n 6+yMqZWjT1WlQVgjvfiodAq/mxVXzzKTA38QqaYI9dQsGeIhOZqWugaLNtDEo+9dh8i3raJWtVP\n EuCcGrY1nI3DbddJe2Llsi","X-Received":"by 2002:a05:6830:6d54:b0:7d7:ea9f:c0f9 with SMTP id\n 46e09a7af769-7dc27a236f3mr7911178a34.0.1776094365383;\n Mon, 13 Apr 2026 08:32:45 -0700 (PDT)","From":"Warner Losh <imp@bsdimp.com>","Subject":"[PATCH 0/5] bsd-user: Generate system call numbers","Date":"Mon, 13 Apr 2026 09:31:42 -0600","Message-Id":"<20260413-syscall-nr-v1-0-f70408d042ea@bsdimp.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","X-B4-Tracking":"v=1; b=H4sIAF4M3WkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE\n vPSU3UzU4B8JSMDIzMDE0Mj3eLK4uTEnBzdvCLdRINEC2PDtORUy0QDJaCGgqLUtMwKsGHRsbW\n 1AIRL4atcAAAA","X-Change-ID":"20260412-syscall-nr-a0a831fce9a0","To":"qemu-devel@nongnu.org","Cc":"Kyle Evans <kevans@freebsd.org>, Paolo Bonzini <pbonzini@redhat.com>,\n\t=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phil?=\n\t=?utf-8?q?ippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n  Warner Losh <imp@bsdimp.com>","X-Mailer":"b4 0.14.3","X-Developer-Signature":"v=1; a=openpgp-sha256; l=1698; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=vtDT9NtU71NG/2MazN8rwck6GlVgWWz7UFUcQjK2czQ=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBp3Qxib9AajzRyGuia1/rZp77i/OWIwVi8iY+4f\n 59oIj5Vx7qJAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCad0MYgAKCRBsHNEofbAR\n ABvFEADMmneTEHKHz03rFfN+/GfVvqOHxMvka6DVI26aalZHddvfqf7JpIJSRf0rEsiq8d0vCxO\n jea2YbuZC21WcNA1Yxu7RmjSFwqJjWl/YpqEuIOgv+tkt0rjjDsrXly/7zYzzrAwJneczyWLFo0\n /zo8AAmR5HYgZLaXB3dHJQYuHninE7M/Jto3uxsSmmNgLHlvVjws91oA+MZGkHosg5FHcg7s+7O\n RDCIXkYLYPsxIDLmzz6k+eSfcFrR7TfOo9Axf+ytCCM4AM8z/m7omYwgqLOg+jP5CFT7mzYty0t\n i6pMFHuIRrFn714NOCRJ/oQCN6AjKznrVS5Ou2Cg41LrKSyA77opo0ly9GvLMND5U+/6uhim3OC\n 9PpnXJ5fHHKZgeNqZ1JWmp3KjSq2o9K7NkoVR11HdksaEbCtqHTjvL75nDa4kbYFygiQPZYAjnB\n c/yv67eey+1/IJJU6DFD/u0JWq3T4euSgsOM7/SEmWoOdMaXRcBL145w9mlhtk9vHN1sca8a7e8\n gePeqA5wGOhkWu0Ua/Kq5nT0fPjETEm8WLMZnDuIJ8bZgZzlul53JFjO3xYazO9eU/PPmXcxJJV\n A/pciVHGXEAeYlh08PzfDEdPx6cq6TJD+duSwP4oc502eIwbut7J3b8/v/vUYblBmVh9A2vyne+\n tIT1rKtSgV4ikIA==","X-Developer-Key":"i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100","Received-SPF":"none client-ip=2607:f8b0:4864:20::32c;\n envelope-from=imp@bsdimp.com; helo=mail-ot1-x32c.google.com","X-Spam_score_int":"-18","X-Spam_score":"-1.9","X-Spam_bar":"-","X-Spam_report":"(-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_NONE=0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"FreeBSD has a system call number header, sys/syscall.h, that's installed\non every system that can compile qemu. Generate the system call numbers\nfrom that table rather than re-regenerating it yet again.\n\nTo do this, I have to clean up a few stragglers for system calls we've\nremoved. But these returned not supported anyway, so there's no net\nchange.\n\nI also tried to do this in a way that the other bsds can coexist with\nshould they show up again in the future. To that end, I moved the\ndefinition of time_t into os-syscall.h, where I noticed it was wrong for\namd64 targets (which is little used and missing features, so it went\nunnoticed for a long time).\n\nMore will be generated in the future, but this is the first steps.\n\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\nWarner Losh (5):\n      bsd-user: Add syscall header generator for FreeBSD\n      bsd-user: Generate the system call numbers in meson build.\n      bsd-user: Conditionally use old system calls\n      bsd-user: Create os-syscall.h\n      bsd-user: Switch to generated syscall_nr.h\n\n bsd-user/bsd-mem.h             |   2 +\n bsd-user/freebsd/meson.build   |   4 +\n bsd-user/freebsd/os-syscall.c  |   4 +\n bsd-user/freebsd/os-syscall.h  |  21 ++\n bsd-user/freebsd/strace.list   |   4 +\n bsd-user/freebsd/syscall_nr.h  | 515 -----------------------------------------\n bsd-user/freebsd/syscallhdr.sh |   9 +\n bsd-user/syscall_defs.h        |  18 +-\n meson.build                    |   2 +\n 9 files changed, 47 insertions(+), 532 deletions(-)\n---\nbase-commit: becd22fdc2a071783d9e04421526633772b3b98c\nchange-id: 20260412-syscall-nr-a0a831fce9a0\n\nBest regards,"}