Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2231651/?format=api
{ "id": 2231651, "url": "http://patchwork.ozlabs.org/api/patches/2231651/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430-syscall-nr-v3-4-4b1b2445e28f@bsdimp.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260430-syscall-nr-v3-4-4b1b2445e28f@bsdimp.com>", "list_archive_url": null, "date": "2026-05-01T02:59:33", "name": "[v3,4/4] bsd-user: Switch to generated syscall_nr.h", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "87435dea32afe062e8147cfd2c20ec8ca1c00c78", "submitter": { "id": 1896, "url": "http://patchwork.ozlabs.org/api/people/1896/?format=api", "name": "Warner Losh", "email": "imp@bsdimp.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430-syscall-nr-v3-4-4b1b2445e28f@bsdimp.com/mbox/", "series": [ { "id": 502416, "url": "http://patchwork.ozlabs.org/api/series/502416/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502416", "date": "2026-05-01T02:59:32", "name": "bsd-user: Generate system call numbers", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/502416/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231651/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231651/checks/", "tags": {}, "related": [], "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=l4kND8bL;\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 4g6G8T1kkhz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 13:03:53 +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 1wIe9I-0001G5-Nv; Thu, 30 Apr 2026 23:02:40 -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 1wIe9H-0001Fx-Mk\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 23:02:39 -0400", "from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f])\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 1wIe9E-0005YC-I0\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 23:02:39 -0400", "by mail-oa1-x2f.google.com with SMTP id\n 586e51a60fabf-41708f6c3feso1033560fac.3\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 20:02:36 -0700 (PDT)", "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-43454cbc3c7sm1550875fac.12.2026.04.30.20.02.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 20:02:33 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1777604555; x=1778209355;\n darn=nongnu.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=FtXI8XidpXd+wsTnsE67djjYxwevyUBoRXDVIaasqZk=;\n b=l4kND8bLuQH2x1EDeYZ46cYQ/cU/lmvvnoiiDgEuNT3FlthVAaqFjMAKW+64PXofhz\n SPEpLJJ6jVJ9E1z2s9BAuDxe8hF9oMnCM/bVAC78pzQ5W8vqB/HUN6vnkq1SUMB0nveF\n hQxisFk+QiSse1Rwht7+g7B2rBqasuEh0AYxT5e43ik5bqsDUQcL3KWSgjbSjXfLQIgx\n oBqUIzA3HRFFaNfnOb/MLlbhRnR+2GzUVuw+Kyl4iPz0nuNIc+H/x9bPImvs5Wak+BAc\n U0jPR5LF14DQ0ZmMLnNYF/Vq65suot95ETlXz2zwUrDiBvSlelGkTh8g22L/HAPRNofp\n bQvQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777604555; x=1778209355;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=FtXI8XidpXd+wsTnsE67djjYxwevyUBoRXDVIaasqZk=;\n b=d6IXRKY9cNB1gyuVkncvdUNL8T2Sejjbrd97PD22qhByAQfyU09cjNi9V3obAf1HoL\n 4dCakUT/CWYJxGqi5dwvjpRM6ichD3VrofguomCFcV7yrCXxM+insQN8Jr2IVRwaI+Sn\n ljE0xsf3KPqA52XB78rWLOQTmL4LyXJ+HhazZrTLVn5DouPHjOjdNs0rSKkLABE7hbRj\n bPykV8AQxmoUY36w2bgMdrq9t53S78tr7CT/pk1Qwrqw4TvNyShW4AsPMb8xdOONRuup\n puShOK61RNjIKq52oWdk4MBflY1vDFOCaBuBJV99uzVtCn+XvPSuXfRs/EWCkIBU7ZcZ\n HYmQ==", "X-Gm-Message-State": "AOJu0Yxo547KVdH4rEsnfgiLW91qcqep/uQRLgUdOCF2i+8byEyC3P7d\n HjaaGJfNaAKlmSxER0d0LZvWxiQ1mZHe/rY/qYbwHwRhCdTBPry6Mzl4+1O4+6vUS4o=", "X-Gm-Gg": "AeBDiev5wELVhMh2jNjRSUHGHmQIaaVl4A0NLeW9Tt8Re8FmWpk/gFMtkfum/4MUseq\n USOA1Ve5Z9u2jnGG7+fixgV4wSubM2FV7yDUnyEmlOp7zoi+LxedGj9PzH/vrqXBu6WR8YqBYTt\n sLM6PqJwXUYYcdiI1AzHS/zOoi/4CcGG+c7HRQd81pQjCbxhisE0opkStSVJwjFenBKv26h+JQC\n mNYR+h2M2VpFsA1fUWLdFeWU84NZeho9ZtGZnw1FRJeJiRvJ+4UTXMsaCrChvnCVHOriXrCeOIv\n lf3MfHa+Wbggz0WbSB/7syWBz7YRkU7s1vdemZbd9Xq6/fSS3Qyb6iJ7rimm7BpKCH0pCXPRfad\n d7z6FGytUaL1r/HzC+J3JbZHPdCtaji/gcrrfdIMsjiZPkBytDNKLKb3+nJKg2MvJPqcgkunkPF\n XRM7doQeupS8Vp0Ai/cGdB", "X-Received": "by 2002:a05:6870:a550:b0:42f:d5c1:dcc4 with SMTP id\n 586e51a60fabf-43434007e2cmr3422404fac.26.1777604554610;\n Thu, 30 Apr 2026 20:02:34 -0700 (PDT)", "From": "Warner Losh <imp@bsdimp.com>", "Date": "Thu, 30 Apr 2026 20:59:33 -0600", "Subject": "[PATCH v3 4/4] bsd-user: Switch to generated syscall_nr.h", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260430-syscall-nr-v3-4-4b1b2445e28f@bsdimp.com>", "References": "<20260430-syscall-nr-v3-0-4b1b2445e28f@bsdimp.com>", "In-Reply-To": "<20260430-syscall-nr-v3-0-4b1b2445e28f@bsdimp.com>", "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 Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Warner Losh <imp@bsdimp.com>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=27257; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=+YwW2552jI8duSfMS9ZsB83yImbkJG2213GKDm2xXIA=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBp9BdiNpEjipLPOM0X5xvghkVCPPSVS7zEiwUu9\n eJV9lHnYc6JAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCafQXYgAKCRBsHNEofbAR\n AFXPD/9dvO0c4tGG2ZxrqZ+k3YMk1cxMwvY6Br1UKQnXT4dp/z8OqohwAOyTET7O1uPyWvylws6\n T6ylGptub6w1EJWx2lT7fUvlZtc3TXqxXmvqLcdH9z9BLCMoT4HTL1wSntYZqhercLOWWiToyMC\n tYRXdZh85j0qxh3ZTAwgkqKybwvCbNgu7iNYIoMJEJlL9TXZwN5eZwxqxo4Enx4Ok2bn/1waHcZ\n BeLi9rOSDyNBdHlCpyjflIJpi4Il7gvJHatj7mKVK8cx69VuoCGaNs1F4EmLEn33mSoo0BoPp2D\n MVcys+Re1GaFHWp+TGKHqP6o/tfPaNEsuMWBEAL4qqmyTYqwmIstw8Snz7Ryt2OOpGj4QgJv5sU\n oj8KG4avTXGSesOG/5eb+4BpF4WJ9jnTutncO7LA9eGdh/f0PdyYN+snS/fc8PIGKMBmbFjBp4b\n sRUmmgPSVteVPUqku1LfBunBDEhScGLn0eGArtaAOuGQJm7yBH2+59Qq7UR6GMjHW57+QNczK0E\n V5JhFZsGfx0CMFpFBrMxtjXDwvKHQ7YnS/Fn5L7uALM0Hr66vV7nuV0InGW3+oxoYE8IOrrtWTv\n CTgnaYFx9AtztcUHnOGmTpjw2MgHjaN8Rs/jRikqckSpQ/6dh2PbQ/3NIs+Stv24EvQBYS8reoe\n DiEr9jYAKrOls4w==", "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100", "Received-SPF": "none client-ip=2001:4860:4864:20::2f;\n envelope-from=imp@bsdimp.com; helo=mail-oa1-x2f.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": "Now that this will build and work, remove the old syscall_nr.h and\nswitch the include over to the generated file in syscall_defs.h.\n\nTo do this, I had to delete the old, wrong definition of time_t for\nFreeBSD on amd64 since it stumbled over the fact that TARGET_i386 is\ndefined for both 32-bit and 64-bit builds (the new os-syscall.h had the\nrigth definition). Rather than modify this file twice to fix it, rolled\nthe fix into using os-syscall.h since it's still easy enough to review.\n\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\n bsd-user/freebsd/syscall_nr.h | 515 ------------------------------------------\n bsd-user/syscall_defs.h | 18 +-\n 2 files changed, 1 insertion(+), 532 deletions(-)", "diff": "diff --git a/bsd-user/freebsd/syscall_nr.h b/bsd-user/freebsd/syscall_nr.h\ndeleted file mode 100644\nindex 7f73a6d0f1..0000000000\n--- a/bsd-user/freebsd/syscall_nr.h\n+++ /dev/null\n@@ -1,515 +0,0 @@\n-/*\n- * System call numbers.\n- *\n- * DO NOT EDIT-- this file is automatically @generated.\n- * $FreeBSD$\n- */\n-\n-#define TARGET_FREEBSD_NR_syscall 0\n-#define TARGET_FREEBSD_NR_exit 1\n-#define TARGET_FREEBSD_NR_fork 2\n-#define TARGET_FREEBSD_NR_read 3\n-#define TARGET_FREEBSD_NR_write 4\n-#define TARGET_FREEBSD_NR_open 5\n-#define TARGET_FREEBSD_NR_close 6\n-#define TARGET_FREEBSD_NR_wait4 7\n- /* 8 is old creat */\n-#define TARGET_FREEBSD_NR_link 9\n-#define TARGET_FREEBSD_NR_unlink 10\n- /* 11 is obsolete execv */\n-#define TARGET_FREEBSD_NR_chdir 12\n-#define TARGET_FREEBSD_NR_fchdir 13\n-#define TARGET_FREEBSD_NR_freebsd11_mknod 14\n-#define TARGET_FREEBSD_NR_chmod 15\n-#define TARGET_FREEBSD_NR_chown 16\n-#define TARGET_FREEBSD_NR_break 17\n- /* 18 is freebsd4 getfsstat */\n- /* 19 is old lseek */\n-#define TARGET_FREEBSD_NR_getpid 20\n-#define TARGET_FREEBSD_NR_mount 21\n-#define TARGET_FREEBSD_NR_unmount 22\n-#define TARGET_FREEBSD_NR_setuid 23\n-#define TARGET_FREEBSD_NR_getuid 24\n-#define TARGET_FREEBSD_NR_geteuid 25\n-#define TARGET_FREEBSD_NR_ptrace 26\n-#define TARGET_FREEBSD_NR_recvmsg 27\n-#define TARGET_FREEBSD_NR_sendmsg 28\n-#define TARGET_FREEBSD_NR_recvfrom 29\n-#define TARGET_FREEBSD_NR_accept 30\n-#define TARGET_FREEBSD_NR_getpeername 31\n-#define TARGET_FREEBSD_NR_getsockname 32\n-#define TARGET_FREEBSD_NR_access 33\n-#define TARGET_FREEBSD_NR_chflags 34\n-#define TARGET_FREEBSD_NR_fchflags 35\n-#define TARGET_FREEBSD_NR_sync 36\n-#define TARGET_FREEBSD_NR_kill 37\n- /* 38 is old stat */\n-#define TARGET_FREEBSD_NR_getppid 39\n- /* 40 is old lstat */\n-#define TARGET_FREEBSD_NR_dup 41\n-#define TARGET_FREEBSD_NR_freebsd10_pipe 42\n-#define TARGET_FREEBSD_NR_getegid 43\n-#define TARGET_FREEBSD_NR_profil 44\n-#define TARGET_FREEBSD_NR_ktrace 45\n- /* 46 is old sigaction */\n-#define TARGET_FREEBSD_NR_getgid 47\n- /* 48 is old sigprocmask */\n-#define TARGET_FREEBSD_NR_getlogin 49\n-#define TARGET_FREEBSD_NR_setlogin 50\n-#define TARGET_FREEBSD_NR_acct 51\n- /* 52 is old sigpending */\n-#define TARGET_FREEBSD_NR_sigaltstack 53\n-#define TARGET_FREEBSD_NR_ioctl 54\n-#define TARGET_FREEBSD_NR_reboot 55\n-#define TARGET_FREEBSD_NR_revoke 56\n-#define TARGET_FREEBSD_NR_symlink 57\n-#define TARGET_FREEBSD_NR_readlink 58\n-#define TARGET_FREEBSD_NR_execve 59\n-#define TARGET_FREEBSD_NR_umask 60\n-#define TARGET_FREEBSD_NR_chroot 61\n- /* 62 is old fstat */\n- /* 63 is old getkerninfo */\n- /* 64 is old getpagesize */\n-#define TARGET_FREEBSD_NR_msync 65\n-#define TARGET_FREEBSD_NR_vfork 66\n- /* 67 is obsolete vread */\n- /* 68 is obsolete vwrite */\n-#define TARGET_FREEBSD_NR_sbrk 69\n-#define TARGET_FREEBSD_NR_sstk 70\n- /* 71 is old mmap */\n-#define TARGET_FREEBSD_NR_freebsd11_vadvise 72\n-#define TARGET_FREEBSD_NR_munmap 73\n-#define TARGET_FREEBSD_NR_mprotect 74\n-#define TARGET_FREEBSD_NR_madvise 75\n- /* 76 is obsolete vhangup */\n- /* 77 is obsolete vlimit */\n-#define TARGET_FREEBSD_NR_mincore 78\n-#define TARGET_FREEBSD_NR_getgroups 79\n-#define TARGET_FREEBSD_NR_setgroups 80\n-#define TARGET_FREEBSD_NR_getpgrp 81\n-#define TARGET_FREEBSD_NR_setpgid 82\n-#define TARGET_FREEBSD_NR_setitimer 83\n- /* 84 is old wait */\n-#define TARGET_FREEBSD_NR_swapon 85\n-#define TARGET_FREEBSD_NR_getitimer 86\n- /* 87 is old gethostname */\n- /* 88 is old sethostname */\n-#define TARGET_FREEBSD_NR_getdtablesize 89\n-#define TARGET_FREEBSD_NR_dup2 90\n-#define TARGET_FREEBSD_NR_fcntl 92\n-#define TARGET_FREEBSD_NR_select 93\n-#define TARGET_FREEBSD_NR_fsync 95\n-#define TARGET_FREEBSD_NR_setpriority 96\n-#define TARGET_FREEBSD_NR_socket 97\n-#define TARGET_FREEBSD_NR_connect 98\n- /* 99 is old accept */\n-#define TARGET_FREEBSD_NR_getpriority 100\n- /* 101 is old send */\n- /* 102 is old recv */\n- /* 103 is old sigreturn */\n-#define TARGET_FREEBSD_NR_bind 104\n-#define TARGET_FREEBSD_NR_setsockopt 105\n-#define TARGET_FREEBSD_NR_listen 106\n- /* 107 is obsolete vtimes */\n- /* 108 is old sigvec */\n- /* 109 is old sigblock */\n- /* 110 is old sigsetmask */\n- /* 111 is old sigsuspend */\n- /* 112 is old sigstack */\n- /* 113 is old recvmsg */\n- /* 114 is old sendmsg */\n- /* 115 is obsolete vtrace */\n-#define TARGET_FREEBSD_NR_gettimeofday 116\n-#define TARGET_FREEBSD_NR_getrusage 117\n-#define TARGET_FREEBSD_NR_getsockopt 118\n-#define TARGET_FREEBSD_NR_readv 120\n-#define TARGET_FREEBSD_NR_writev 121\n-#define TARGET_FREEBSD_NR_settimeofday 122\n-#define TARGET_FREEBSD_NR_fchown 123\n-#define TARGET_FREEBSD_NR_fchmod 124\n- /* 125 is old recvfrom */\n-#define TARGET_FREEBSD_NR_setreuid 126\n-#define TARGET_FREEBSD_NR_setregid 127\n-#define TARGET_FREEBSD_NR_rename 128\n- /* 129 is old truncate */\n- /* 130 is old ftruncate */\n-#define TARGET_FREEBSD_NR_flock 131\n-#define TARGET_FREEBSD_NR_mkfifo 132\n-#define TARGET_FREEBSD_NR_sendto 133\n-#define TARGET_FREEBSD_NR_shutdown 134\n-#define TARGET_FREEBSD_NR_socketpair 135\n-#define TARGET_FREEBSD_NR_mkdir 136\n-#define TARGET_FREEBSD_NR_rmdir 137\n-#define TARGET_FREEBSD_NR_utimes 138\n- /* 139 is obsolete 4.2 sigreturn */\n-#define TARGET_FREEBSD_NR_adjtime 140\n- /* 141 is old getpeername */\n- /* 142 is old gethostid */\n- /* 143 is old sethostid */\n- /* 144 is old getrlimit */\n- /* 145 is old setrlimit */\n- /* 146 is old killpg */\n-#define TARGET_FREEBSD_NR_setsid 147\n-#define TARGET_FREEBSD_NR_quotactl 148\n- /* 149 is old quota */\n- /* 150 is old getsockname */\n-#define TARGET_FREEBSD_NR_nlm_syscall 154\n-#define TARGET_FREEBSD_NR_nfssvc 155\n- /* 156 is old getdirentries */\n- /* 157 is freebsd4 statfs */\n- /* 158 is freebsd4 fstatfs */\n-#define TARGET_FREEBSD_NR_lgetfh 160\n-#define TARGET_FREEBSD_NR_getfh 161\n- /* 162 is freebsd4 getdomainname */\n- /* 163 is freebsd4 setdomainname */\n- /* 164 is freebsd4 uname */\n-#define TARGET_FREEBSD_NR_sysarch 165\n-#define TARGET_FREEBSD_NR_rtprio 166\n-#define TARGET_FREEBSD_NR_semsys 169\n-#define TARGET_FREEBSD_NR_msgsys 170\n-#define TARGET_FREEBSD_NR_shmsys 171\n- /* 173 is freebsd6 pread */\n- /* 174 is freebsd6 pwrite */\n-#define TARGET_FREEBSD_NR_setfib 175\n-#define TARGET_FREEBSD_NR_ntp_adjtime 176\n-#define TARGET_FREEBSD_NR_setgid 181\n-#define TARGET_FREEBSD_NR_setegid 182\n-#define TARGET_FREEBSD_NR_seteuid 183\n- /* 184 is obsolete lfs_bmapv */\n- /* 185 is obsolete lfs_markv */\n- /* 186 is obsolete lfs_segclean */\n- /* 187 is obsolete lfs_segwait */\n-#define TARGET_FREEBSD_NR_freebsd11_stat 188\n-#define TARGET_FREEBSD_NR_freebsd11_fstat 189\n-#define TARGET_FREEBSD_NR_freebsd11_lstat 190\n-#define TARGET_FREEBSD_NR_pathconf 191\n-#define TARGET_FREEBSD_NR_fpathconf 192\n-#define TARGET_FREEBSD_NR_getrlimit 194\n-#define TARGET_FREEBSD_NR_setrlimit 195\n-#define TARGET_FREEBSD_NR_freebsd11_getdirentries 196\n- /* 197 is freebsd6 mmap */\n-#define TARGET_FREEBSD_NR___syscall 198\n- /* 199 is freebsd6 lseek */\n- /* 200 is freebsd6 truncate */\n- /* 201 is freebsd6 ftruncate */\n-#define TARGET_FREEBSD_NR___sysctl 202\n-#define TARGET_FREEBSD_NR_mlock 203\n-#define TARGET_FREEBSD_NR_munlock 204\n-#define TARGET_FREEBSD_NR_undelete 205\n-#define TARGET_FREEBSD_NR_futimes 206\n-#define TARGET_FREEBSD_NR_getpgid 207\n-#define TARGET_FREEBSD_NR_poll 209\n-#define TARGET_FREEBSD_NR_freebsd7___semctl 220\n-#define TARGET_FREEBSD_NR_semget 221\n-#define TARGET_FREEBSD_NR_semop 222\n- /* 223 is obsolete semconfig */\n-#define TARGET_FREEBSD_NR_freebsd7_msgctl 224\n-#define TARGET_FREEBSD_NR_msgget 225\n-#define TARGET_FREEBSD_NR_msgsnd 226\n-#define TARGET_FREEBSD_NR_msgrcv 227\n-#define TARGET_FREEBSD_NR_shmat 228\n-#define TARGET_FREEBSD_NR_freebsd7_shmctl 229\n-#define TARGET_FREEBSD_NR_shmdt 230\n-#define TARGET_FREEBSD_NR_shmget 231\n-#define TARGET_FREEBSD_NR_clock_gettime 232\n-#define TARGET_FREEBSD_NR_clock_settime 233\n-#define TARGET_FREEBSD_NR_clock_getres 234\n-#define TARGET_FREEBSD_NR_ktimer_create 235\n-#define TARGET_FREEBSD_NR_ktimer_delete 236\n-#define TARGET_FREEBSD_NR_ktimer_settime 237\n-#define TARGET_FREEBSD_NR_ktimer_gettime 238\n-#define TARGET_FREEBSD_NR_ktimer_getoverrun 239\n-#define TARGET_FREEBSD_NR_nanosleep 240\n-#define TARGET_FREEBSD_NR_ffclock_getcounter 241\n-#define TARGET_FREEBSD_NR_ffclock_setestimate 242\n-#define TARGET_FREEBSD_NR_ffclock_getestimate 243\n-#define TARGET_FREEBSD_NR_clock_nanosleep 244\n-#define TARGET_FREEBSD_NR_clock_getcpuclockid2 247\n-#define TARGET_FREEBSD_NR_ntp_gettime 248\n-#define TARGET_FREEBSD_NR_minherit 250\n-#define TARGET_FREEBSD_NR_rfork 251\n- /* 252 is obsolete openbsd_poll */\n-#define TARGET_FREEBSD_NR_issetugid 253\n-#define TARGET_FREEBSD_NR_lchown 254\n-#define TARGET_FREEBSD_NR_aio_read 255\n-#define TARGET_FREEBSD_NR_aio_write 256\n-#define TARGET_FREEBSD_NR_lio_listio 257\n-#define TARGET_FREEBSD_NR_freebsd11_getdents 272\n-#define TARGET_FREEBSD_NR_lchmod 274\n- /* 275 is obsolete netbsd_lchown */\n-#define TARGET_FREEBSD_NR_lutimes 276\n- /* 277 is obsolete netbsd_msync */\n-#define TARGET_FREEBSD_NR_freebsd11_nstat 278\n-#define TARGET_FREEBSD_NR_freebsd11_nfstat 279\n-#define TARGET_FREEBSD_NR_freebsd11_nlstat 280\n-#define TARGET_FREEBSD_NR_preadv 289\n-#define TARGET_FREEBSD_NR_pwritev 290\n- /* 297 is freebsd4 fhstatfs */\n-#define TARGET_FREEBSD_NR_fhopen 298\n-#define TARGET_FREEBSD_NR_freebsd11_fhstat 299\n-#define TARGET_FREEBSD_NR_modnext 300\n-#define TARGET_FREEBSD_NR_modstat 301\n-#define TARGET_FREEBSD_NR_modfnext 302\n-#define TARGET_FREEBSD_NR_modfind 303\n-#define TARGET_FREEBSD_NR_kldload 304\n-#define TARGET_FREEBSD_NR_kldunload 305\n-#define TARGET_FREEBSD_NR_kldfind 306\n-#define TARGET_FREEBSD_NR_kldnext 307\n-#define TARGET_FREEBSD_NR_kldstat 308\n-#define TARGET_FREEBSD_NR_kldfirstmod 309\n-#define TARGET_FREEBSD_NR_getsid 310\n-#define TARGET_FREEBSD_NR_setresuid 311\n-#define TARGET_FREEBSD_NR_setresgid 312\n- /* 313 is obsolete signanosleep */\n-#define TARGET_FREEBSD_NR_aio_return 314\n-#define TARGET_FREEBSD_NR_aio_suspend 315\n-#define TARGET_FREEBSD_NR_aio_cancel 316\n-#define TARGET_FREEBSD_NR_aio_error 317\n- /* 318 is freebsd6 aio_read */\n- /* 319 is freebsd6 aio_write */\n- /* 320 is freebsd6 lio_listio */\n-#define TARGET_FREEBSD_NR_yield 321\n- /* 322 is obsolete thr_sleep */\n- /* 323 is obsolete thr_wakeup */\n-#define TARGET_FREEBSD_NR_mlockall 324\n-#define TARGET_FREEBSD_NR_munlockall 325\n-#define TARGET_FREEBSD_NR___getcwd 326\n-#define TARGET_FREEBSD_NR_sched_setparam 327\n-#define TARGET_FREEBSD_NR_sched_getparam 328\n-#define TARGET_FREEBSD_NR_sched_setscheduler 329\n-#define TARGET_FREEBSD_NR_sched_getscheduler 330\n-#define TARGET_FREEBSD_NR_sched_yield 331\n-#define TARGET_FREEBSD_NR_sched_get_priority_max 332\n-#define TARGET_FREEBSD_NR_sched_get_priority_min 333\n-#define TARGET_FREEBSD_NR_sched_rr_get_interval 334\n-#define TARGET_FREEBSD_NR_utrace 335\n- /* 336 is freebsd4 sendfile */\n-#define TARGET_FREEBSD_NR_kldsym 337\n-#define TARGET_FREEBSD_NR_jail 338\n-#define TARGET_FREEBSD_NR_nnpfs_syscall 339\n-#define TARGET_FREEBSD_NR_sigprocmask 340\n-#define TARGET_FREEBSD_NR_sigsuspend 341\n- /* 342 is freebsd4 sigaction */\n-#define TARGET_FREEBSD_NR_sigpending 343\n- /* 344 is freebsd4 sigreturn */\n-#define TARGET_FREEBSD_NR_sigtimedwait 345\n-#define TARGET_FREEBSD_NR_sigwaitinfo 346\n-#define TARGET_FREEBSD_NR___acl_get_file 347\n-#define TARGET_FREEBSD_NR___acl_set_file 348\n-#define TARGET_FREEBSD_NR___acl_get_fd 349\n-#define TARGET_FREEBSD_NR___acl_set_fd 350\n-#define TARGET_FREEBSD_NR___acl_delete_file 351\n-#define TARGET_FREEBSD_NR___acl_delete_fd 352\n-#define TARGET_FREEBSD_NR___acl_aclcheck_file 353\n-#define TARGET_FREEBSD_NR___acl_aclcheck_fd 354\n-#define TARGET_FREEBSD_NR_extattrctl 355\n-#define TARGET_FREEBSD_NR_extattr_set_file 356\n-#define TARGET_FREEBSD_NR_extattr_get_file 357\n-#define TARGET_FREEBSD_NR_extattr_delete_file 358\n-#define TARGET_FREEBSD_NR_aio_waitcomplete 359\n-#define TARGET_FREEBSD_NR_getresuid 360\n-#define TARGET_FREEBSD_NR_getresgid 361\n-#define TARGET_FREEBSD_NR_kqueue 362\n-#define TARGET_FREEBSD_NR_freebsd11_kevent 363\n- /* 364 is obsolete __cap_get_proc */\n- /* 365 is obsolete __cap_set_proc */\n- /* 366 is obsolete __cap_get_fd */\n- /* 367 is obsolete __cap_get_file */\n- /* 368 is obsolete __cap_set_fd */\n- /* 369 is obsolete __cap_set_file */\n-#define TARGET_FREEBSD_NR_extattr_set_fd 371\n-#define TARGET_FREEBSD_NR_extattr_get_fd 372\n-#define TARGET_FREEBSD_NR_extattr_delete_fd 373\n-#define TARGET_FREEBSD_NR___setugid 374\n- /* 375 is obsolete nfsclnt */\n-#define TARGET_FREEBSD_NR_eaccess 376\n-#define TARGET_FREEBSD_NR_afs3_syscall 377\n-#define TARGET_FREEBSD_NR_nmount 378\n- /* 379 is obsolete kse_exit */\n- /* 380 is obsolete kse_wakeup */\n- /* 381 is obsolete kse_create */\n- /* 382 is obsolete kse_thr_interrupt */\n- /* 383 is obsolete kse_release */\n-#define TARGET_FREEBSD_NR___mac_get_proc 384\n-#define TARGET_FREEBSD_NR___mac_set_proc 385\n-#define TARGET_FREEBSD_NR___mac_get_fd 386\n-#define TARGET_FREEBSD_NR___mac_get_file 387\n-#define TARGET_FREEBSD_NR___mac_set_fd 388\n-#define TARGET_FREEBSD_NR___mac_set_file 389\n-#define TARGET_FREEBSD_NR_kenv 390\n-#define TARGET_FREEBSD_NR_lchflags 391\n-#define TARGET_FREEBSD_NR_uuidgen 392\n-#define TARGET_FREEBSD_NR_sendfile 393\n-#define TARGET_FREEBSD_NR_mac_syscall 394\n-#define TARGET_FREEBSD_NR_freebsd11_getfsstat 395\n-#define TARGET_FREEBSD_NR_freebsd11_statfs 396\n-#define TARGET_FREEBSD_NR_freebsd11_fstatfs 397\n-#define TARGET_FREEBSD_NR_freebsd11_fhstatfs 398\n-#define TARGET_FREEBSD_NR_ksem_close 400\n-#define TARGET_FREEBSD_NR_ksem_post 401\n-#define TARGET_FREEBSD_NR_ksem_wait 402\n-#define TARGET_FREEBSD_NR_ksem_trywait 403\n-#define TARGET_FREEBSD_NR_ksem_init 404\n-#define TARGET_FREEBSD_NR_ksem_open 405\n-#define TARGET_FREEBSD_NR_ksem_unlink 406\n-#define TARGET_FREEBSD_NR_ksem_getvalue 407\n-#define TARGET_FREEBSD_NR_ksem_destroy 408\n-#define TARGET_FREEBSD_NR___mac_get_pid 409\n-#define TARGET_FREEBSD_NR___mac_get_link 410\n-#define TARGET_FREEBSD_NR___mac_set_link 411\n-#define TARGET_FREEBSD_NR_extattr_set_link 412\n-#define TARGET_FREEBSD_NR_extattr_get_link 413\n-#define TARGET_FREEBSD_NR_extattr_delete_link 414\n-#define TARGET_FREEBSD_NR___mac_execve 415\n-#define TARGET_FREEBSD_NR_sigaction 416\n-#define TARGET_FREEBSD_NR_sigreturn 417\n-#define TARGET_FREEBSD_NR_getcontext 421\n-#define TARGET_FREEBSD_NR_setcontext 422\n-#define TARGET_FREEBSD_NR_swapcontext 423\n-#define TARGET_FREEBSD_NR_swapoff 424\n-#define TARGET_FREEBSD_NR___acl_get_link 425\n-#define TARGET_FREEBSD_NR___acl_set_link 426\n-#define TARGET_FREEBSD_NR___acl_delete_link 427\n-#define TARGET_FREEBSD_NR___acl_aclcheck_link 428\n-#define TARGET_FREEBSD_NR_sigwait 429\n-#define TARGET_FREEBSD_NR_thr_create 430\n-#define TARGET_FREEBSD_NR_thr_exit 431\n-#define TARGET_FREEBSD_NR_thr_self 432\n-#define TARGET_FREEBSD_NR_thr_kill 433\n-#define TARGET_FREEBSD_NR_jail_attach 436\n-#define TARGET_FREEBSD_NR_extattr_list_fd 437\n-#define TARGET_FREEBSD_NR_extattr_list_file 438\n-#define TARGET_FREEBSD_NR_extattr_list_link 439\n- /* 440 is obsolete kse_switchin */\n-#define TARGET_FREEBSD_NR_ksem_timedwait 441\n-#define TARGET_FREEBSD_NR_thr_suspend 442\n-#define TARGET_FREEBSD_NR_thr_wake 443\n-#define TARGET_FREEBSD_NR_kldunloadf 444\n-#define TARGET_FREEBSD_NR_audit 445\n-#define TARGET_FREEBSD_NR_auditon 446\n-#define TARGET_FREEBSD_NR_getauid 447\n-#define TARGET_FREEBSD_NR_setauid 448\n-#define TARGET_FREEBSD_NR_getaudit 449\n-#define TARGET_FREEBSD_NR_setaudit 450\n-#define TARGET_FREEBSD_NR_getaudit_addr 451\n-#define TARGET_FREEBSD_NR_setaudit_addr 452\n-#define TARGET_FREEBSD_NR_auditctl 453\n-#define TARGET_FREEBSD_NR__umtx_op 454\n-#define TARGET_FREEBSD_NR_thr_new 455\n-#define TARGET_FREEBSD_NR_sigqueue 456\n-#define TARGET_FREEBSD_NR_kmq_open 457\n-#define TARGET_FREEBSD_NR_kmq_setattr 458\n-#define TARGET_FREEBSD_NR_kmq_timedreceive 459\n-#define TARGET_FREEBSD_NR_kmq_timedsend 460\n-#define TARGET_FREEBSD_NR_kmq_notify 461\n-#define TARGET_FREEBSD_NR_kmq_unlink 462\n-#define TARGET_FREEBSD_NR_abort2 463\n-#define TARGET_FREEBSD_NR_thr_set_name 464\n-#define TARGET_FREEBSD_NR_aio_fsync 465\n-#define TARGET_FREEBSD_NR_rtprio_thread 466\n-#define TARGET_FREEBSD_NR_sctp_peeloff 471\n-#define TARGET_FREEBSD_NR_sctp_generic_sendmsg 472\n-#define TARGET_FREEBSD_NR_sctp_generic_sendmsg_iov 473\n-#define TARGET_FREEBSD_NR_sctp_generic_recvmsg 474\n-#define TARGET_FREEBSD_NR_pread 475\n-#define TARGET_FREEBSD_NR_pwrite 476\n-#define TARGET_FREEBSD_NR_mmap 477\n-#define TARGET_FREEBSD_NR_lseek 478\n-#define TARGET_FREEBSD_NR_truncate 479\n-#define TARGET_FREEBSD_NR_ftruncate 480\n-#define TARGET_FREEBSD_NR_thr_kill2 481\n-#define TARGET_FREEBSD_NR_freebsd12_shm_open 482\n-#define TARGET_FREEBSD_NR_shm_unlink 483\n-#define TARGET_FREEBSD_NR_cpuset 484\n-#define TARGET_FREEBSD_NR_cpuset_setid 485\n-#define TARGET_FREEBSD_NR_cpuset_getid 486\n-#define TARGET_FREEBSD_NR_cpuset_getaffinity 487\n-#define TARGET_FREEBSD_NR_cpuset_setaffinity 488\n-#define TARGET_FREEBSD_NR_faccessat 489\n-#define TARGET_FREEBSD_NR_fchmodat 490\n-#define TARGET_FREEBSD_NR_fchownat 491\n-#define TARGET_FREEBSD_NR_fexecve 492\n-#define TARGET_FREEBSD_NR_freebsd11_fstatat 493\n-#define TARGET_FREEBSD_NR_futimesat 494\n-#define TARGET_FREEBSD_NR_linkat 495\n-#define TARGET_FREEBSD_NR_mkdirat 496\n-#define TARGET_FREEBSD_NR_mkfifoat 497\n-#define TARGET_FREEBSD_NR_freebsd11_mknodat 498\n-#define TARGET_FREEBSD_NR_openat 499\n-#define TARGET_FREEBSD_NR_readlinkat 500\n-#define TARGET_FREEBSD_NR_renameat 501\n-#define TARGET_FREEBSD_NR_symlinkat 502\n-#define TARGET_FREEBSD_NR_unlinkat 503\n-#define TARGET_FREEBSD_NR_posix_openpt 504\n-#define TARGET_FREEBSD_NR_gssd_syscall 505\n-#define TARGET_FREEBSD_NR_jail_get 506\n-#define TARGET_FREEBSD_NR_jail_set 507\n-#define TARGET_FREEBSD_NR_jail_remove 508\n-#define TARGET_FREEBSD_NR_freebsd12_closefrom 509\n-#define TARGET_FREEBSD_NR___semctl 510\n-#define TARGET_FREEBSD_NR_msgctl 511\n-#define TARGET_FREEBSD_NR_shmctl 512\n-#define TARGET_FREEBSD_NR_lpathconf 513\n- /* 514 is obsolete cap_new */\n-#define TARGET_FREEBSD_NR___cap_rights_get 515\n-#define TARGET_FREEBSD_NR_cap_enter 516\n-#define TARGET_FREEBSD_NR_cap_getmode 517\n-#define TARGET_FREEBSD_NR_pdfork 518\n-#define TARGET_FREEBSD_NR_pdkill 519\n-#define TARGET_FREEBSD_NR_pdgetpid 520\n-#define TARGET_FREEBSD_NR_pselect 522\n-#define TARGET_FREEBSD_NR_getloginclass 523\n-#define TARGET_FREEBSD_NR_setloginclass 524\n-#define TARGET_FREEBSD_NR_rctl_get_racct 525\n-#define TARGET_FREEBSD_NR_rctl_get_rules 526\n-#define TARGET_FREEBSD_NR_rctl_get_limits 527\n-#define TARGET_FREEBSD_NR_rctl_add_rule 528\n-#define TARGET_FREEBSD_NR_rctl_remove_rule 529\n-#define TARGET_FREEBSD_NR_posix_fallocate 530\n-#define TARGET_FREEBSD_NR_posix_fadvise 531\n-#define TARGET_FREEBSD_NR_wait6 532\n-#define TARGET_FREEBSD_NR_cap_rights_limit 533\n-#define TARGET_FREEBSD_NR_cap_ioctls_limit 534\n-#define TARGET_FREEBSD_NR_cap_ioctls_get 535\n-#define TARGET_FREEBSD_NR_cap_fcntls_limit 536\n-#define TARGET_FREEBSD_NR_cap_fcntls_get 537\n-#define TARGET_FREEBSD_NR_bindat 538\n-#define TARGET_FREEBSD_NR_connectat 539\n-#define TARGET_FREEBSD_NR_chflagsat 540\n-#define TARGET_FREEBSD_NR_accept4 541\n-#define TARGET_FREEBSD_NR_pipe2 542\n-#define TARGET_FREEBSD_NR_aio_mlock 543\n-#define TARGET_FREEBSD_NR_procctl 544\n-#define TARGET_FREEBSD_NR_ppoll 545\n-#define TARGET_FREEBSD_NR_futimens 546\n-#define TARGET_FREEBSD_NR_utimensat 547\n- /* 548 is obsolete numa_getaffinity */\n- /* 549 is obsolete numa_setaffinity */\n-#define TARGET_FREEBSD_NR_fdatasync 550\n-#define TARGET_FREEBSD_NR_fstat 551\n-#define TARGET_FREEBSD_NR_fstatat 552\n-#define TARGET_FREEBSD_NR_fhstat 553\n-#define TARGET_FREEBSD_NR_getdirentries 554\n-#define TARGET_FREEBSD_NR_statfs 555\n-#define TARGET_FREEBSD_NR_fstatfs 556\n-#define TARGET_FREEBSD_NR_getfsstat 557\n-#define TARGET_FREEBSD_NR_fhstatfs 558\n-#define TARGET_FREEBSD_NR_mknodat 559\n-#define TARGET_FREEBSD_NR_kevent 560\n-#define TARGET_FREEBSD_NR_cpuset_getdomain 561\n-#define TARGET_FREEBSD_NR_cpuset_setdomain 562\n-#define TARGET_FREEBSD_NR_getrandom 563\n-#define TARGET_FREEBSD_NR_getfhat 564\n-#define TARGET_FREEBSD_NR_fhlink 565\n-#define TARGET_FREEBSD_NR_fhlinkat 566\n-#define TARGET_FREEBSD_NR_fhreadlink 567\n-#define TARGET_FREEBSD_NR_funlinkat 568\n-#define TARGET_FREEBSD_NR_copy_file_range 569\n-#define TARGET_FREEBSD_NR___sysctlbyname 570\n-#define TARGET_FREEBSD_NR_shm_open2 571\n-#define TARGET_FREEBSD_NR_shm_rename 572\n-#define TARGET_FREEBSD_NR_sigfastblock 573\n-#define TARGET_FREEBSD_NR___realpathat 574\n-#define TARGET_FREEBSD_NR_close_range 575\n-#define TARGET_FREEBSD_NR_rpctls_syscall 576\n-#define TARGET_FREEBSD_NR_MAXSYSCALL 577\ndiff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h\nindex 4dbd90c2f1..30b0270faa 100644\n--- a/bsd-user/syscall_defs.h\n+++ b/bsd-user/syscall_defs.h\n@@ -25,29 +25,13 @@\n \n #include \"errno_defs.h\"\n \n-#include \"freebsd/syscall_nr.h\"\n+#include \"os-syscalls.h\"\n \n /*\n * machine/_types.h\n * or x86/_types.h\n */\n \n-/*\n- * time_t seems to be very inconsistly defined for the different *BSD's...\n- *\n- * FreeBSD uses a 64bits time_t except on i386\n- * so we have to add a special case here.\n- *\n- * On NetBSD time_t is always defined as an int64_t. On OpenBSD time_t\n- * is always defined as an int.\n- *\n- */\n-#if (!defined(TARGET_I386))\n-typedef int64_t target_time_t;\n-#else\n-typedef int32_t target_time_t;\n-#endif\n-\n struct target_iovec {\n abi_long iov_base; /* Starting address */\n abi_long iov_len; /* Number of bytes */\n", "prefixes": [ "v3", "4/4" ] }