From f686092664ee6c2c287f77f716db4d72e451c780 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Fri, 6 May 2022 19:58:53 +0300 Subject: [PATCH] linux(4): Call semop directly. As the Linux semop syscall is not defined in i386, and as it is equal to the native semop syscall, call it directly. Fix semop definition to match Linux actual one - nsops is size_t type. MFC after: 2 weeks --- sys/amd64/linux/syscalls.master | 8 ++++---- sys/arm64/linux/syscalls.master | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master index 2c61a29a2a4..9cb2a899d88 100644 --- a/sys/amd64/linux/syscalls.master +++ b/sys/amd64/linux/syscalls.master @@ -472,11 +472,11 @@ l_int semflg ); } -65 AUE_NULL STD { - int linux_semop( +65 AUE_NULL NOPROTO { + int semop( l_int semid, - struct l_sembuf *tsops, - l_uint nsops + struct sembuf *sops, + l_size_t nsops ); } 66 AUE_NULL STD { diff --git a/sys/arm64/linux/syscalls.master b/sys/arm64/linux/syscalls.master index 80271533527..efdc98771e0 100644 --- a/sys/arm64/linux/syscalls.master +++ b/sys/arm64/linux/syscalls.master @@ -1137,11 +1137,11 @@ 192 AUE_NULL STD { int linux_semtimedop(void); } -193 AUE_NULL STD { - int linux_semop( +193 AUE_NULL NOPROTO { + int semop( l_int semid, - struct l_sembuf *tsops, - l_uint nsops + struct sembuf *sops, + l_size_t nsops ); } 194 AUE_NULL STD {