From f908665187ce6611c7004ac651337b1af1dd912e Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 15 May 2021 20:20:24 +0200 Subject: [PATCH] s390_pci_mmio_write.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too This function doesn't use any flags or special types, so there's no reason to include ; remove it. Add the includes needed for syscall(2) only. Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/s390_pci_mmio_write.2 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/man2/s390_pci_mmio_write.2 b/man2/s390_pci_mmio_write.2 index 57eb54601..4e34889db 100644 --- a/man2/s390_pci_mmio_write.2 +++ b/man2/s390_pci_mmio_write.2 @@ -28,16 +28,19 @@ s390_pci_mmio_write, s390_pci_mmio_read \- transfer data to/from PCI MMIO memory page .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int s390_pci_mmio_write(unsigned long " mmio_addr , +.BI "int syscall(SYS_s390_pci_mmio_write, unsigned long " mmio_addr , .BI " const void *" user_buffer ", size_t " length ); -.BI "int s390_pci_mmio_read(unsigned long " mmio_addr , +.BI "int syscall(SYS_s390_pci_mmio_read, unsigned long " mmio_addr , .BI " void *" user_buffer ", size_t " length ); .fi .PP .IR Note : -There are no glibc wrappers for these system calls; see NOTES. +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR s390_pci_mmio_write () @@ -102,8 +105,5 @@ These system calls are available since Linux 3.19. .SH CONFORMING TO This Linux-specific system call is available only on the s390 architecture. The required PCI support is available beginning with System z EC12. -.SH NOTES -Glibc does not provide wrappers for these system calls; call them using -.BR syscall (2) .SH SEE ALSO .BR syscall (2)