[LTP] [PATCH v2 2/4] syscalls/pidfd_send_signal01
Cyril Hrubis
chrubis@suse.cz
Thu Jun 6 15:10:16 CEST 2019
Hi!
When I attempty to compile this code I get:
In file included from pidfd_send_signal.h:11:0,
from pidfd_send_signal01.c:17:
pidfd_send_signal.h: In function 'check_syscall_support':
pidfd_send_signal.h:16:14: error: '__NR_pidfd_send_signal' undeclared (first use in this function); did you mean '__NR_perf_event_open'?
tst_syscall(__NR_pidfd_send_signal);
^
../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
if (NR == __LTP__NR_INVALID_SYSCALL) { \
^~
pidfd_send_signal.h:16:14: note: each undeclared identifier is reported only once for each function it appears in
tst_syscall(__NR_pidfd_send_signal);
^
../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
if (NR == __LTP__NR_INVALID_SYSCALL) { \
^~
pidfd_send_signal.h: In function 'pidfd_send_signal':
pidfd_send_signal.h:23:21: error: '__NR_pidfd_send_signal' undeclared (first use in this function); did you mean 'pidfd_send_signal'?
return tst_syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags);
^
../../../../include/lapi/syscalls.h:39:6: note: in definition of macro 'tst_syscall'
if (NR == __LTP__NR_INVALID_SYSCALL) { \
^~
make: *** [<builtin>: pidfd_send_signal01] Error 1
Have you forgotten to git add the *.in files with syscall numbers?
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list