From: miod Date: Mon, 24 Jul 2023 19:32:23 +0000 (+0000) Subject: Fix prototype of getlogin_r syscall to match userland prototype (use size_t X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=558ce0a28947891342c5e228381b7904d87c05d9;p=openbsd Fix prototype of getlogin_r syscall to match userland prototype (use size_t for the length argument). Fortunately, this only affects 64-bit platforms and all of those would pass the argument in registers, so there is no BE64 regression to expect and no need to renumber that system call. Found with afresh1@ as part of his perl syscall emulator. --- diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 34bef2ba6a0..d6278aeb703 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.248 2023/05/18 10:23:19 mvs Exp $ +; $OpenBSD: syscalls.master,v 1.249 2023/07/24 19:32:23 miod Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -279,7 +279,7 @@ 139 OBSOL 4.2 sigreturn 140 STD NOLOCK { int sys_adjtime(const struct timeval *delta, \ struct timeval *olddelta); } -141 STD { int sys_getlogin_r(char *namebuf, u_int namelen); } +141 STD { int sys_getlogin_r(char *namebuf, size_t namelen); } 142 STD { int sys_getthrname(pid_t tid, char *name, size_t len); } 143 STD { int sys_setthrname(pid_t tid, const char *name); } 144 OBSOL ogetrlimit