Skip to contentSkip to conversation

epoll_wait.2: epoll_pwait2(2) prototype

DISCUSSION Alejandro Colomar (man-pages) 2 participants 3 messages Mar 13, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Willem,

I checked that the prototype of the kernel epoll_pwait2() syscall is different from the one we recently merged; it has one more parameter 'size_t sigsetsize':

$ grep_syscall epoll_pwait2
fs/eventpoll.c:2272:
SYSCALL_DEFINE6(epoll_pwait2, int, epfd, struct epoll_event __user *, events,
		int, maxevents, const struct __kernel_timespec __user *, timeout,
		const sigset_t __user *, sigmask, size_t, sigsetsize)
fs/eventpoll.c:2326:
COMPAT_SYSCALL_DEFINE6(epoll_pwait2, int, epfd,
		       struct epoll_event __user *, events,
		       int, maxevents,
		       const struct __kernel_timespec __user *, timeout,
		       const compat_sigset_t __user *, sigmask,
		       compat_size_t, sigsetsize)
include/linux/compat.h:540:
asmlinkage long compat_sys_epoll_pwait2(int epfd,
			struct epoll_event __user *events,
			int maxevents,
			const struct __kernel_timespec __user *timeout,
			const compat_sigset_t __user *sigmask,
			compat_size_t sigsetsize);
include/linux/syscalls.h:389:
asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user *events,
				 int maxevents,
				 const struct __kernel_timespec __user *timeout,
				 const sigset_t __user *sigmask,
				 size_t sigsetsize);

I'm could fix the prototype, but maybe there are more changes needed for the manual page.

Would you mind fixing it?

Thanks,

Alex

Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
#1 lore raw

Hi Alex,

Quoted 34 lines · Alejandro Colomar (man-pages)

Hi Willem,

I checked that the prototype of the kernel epoll_pwait2() syscall is different from the one we recently merged; it has one more parameter 'size_t sigsetsize':

$ grep_syscall epoll_pwait2
fs/eventpoll.c:2272:
SYSCALL_DEFINE6(epoll_pwait2, int, epfd, struct epoll_event __user *, 
events,
		int, maxevents, const struct __kernel_timespec __user *, timeout,
		const sigset_t __user *, sigmask, size_t, sigsetsize)
fs/eventpoll.c:2326:
COMPAT_SYSCALL_DEFINE6(epoll_pwait2, int, epfd,
		       struct epoll_event __user *, events,
		       int, maxevents,
		       const struct __kernel_timespec __user *, timeout,
		       const compat_sigset_t __user *, sigmask,
		       compat_size_t, sigsetsize)
include/linux/compat.h:540:
asmlinkage long compat_sys_epoll_pwait2(int epfd,
			struct epoll_event __user *events,
			int maxevents,
			const struct __kernel_timespec __user *timeout,
			const compat_sigset_t __user *sigmask,
			compat_size_t sigsetsize);
include/linux/syscalls.h:389:
asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user 
*events,
				 int maxevents,
				 const struct __kernel_timespec __user *timeout,
				 const sigset_t __user *sigmask,
				 size_t sigsetsize);
Quoted 4 lines

I'm could fix the prototype, but maybe there are more changes needed for the manual page.

Would you mind fixing it?

Looks like the 6th argument of epoll_pwait and epoll_pwait2 syscalls is already described in "C library/kernel differences" subsection of epoll_pwait2(2).

Signature · 1 line
ldv
#2 lore raw

Hi Dmitry,

Quoted 8 lines · Dmitry V. Levin

Hi Alex,

Quoted 5 lines · Alejandro Colomar (man-pages)

Hi Willem,

I checked that the prototype of the kernel epoll_pwait2() syscall is different from the one we recently merged; it has one more parameter 'size_t sigsetsize':

[...]

Quoted 9 lines
Quoted 5 lines

I'm could fix the prototype, but maybe there are more changes needed for the manual page.

Would you mind fixing it?

Looks like the 6th argument of epoll_pwait and epoll_pwait2 syscalls is already described in "C library/kernel differences" subsection of epoll_pwait2(2).

Ahhh, I didn't see it, ok. That's in BUGS by mistake. I'll move it to NOTES, where it should be.

Thanks,

Alex

Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/