When waitfd() was added, NR_syscalls was never incremented, so
the syscall always unconditionally returned -ENOSYS on SPARC.
Wire it up by incrementing NR_syscalls correctly.
(The syscall has been tested, but, it turns out, only on x86 and
on SPARC in the 4.0 kernel. Testing on SPARC with its single
user, DTrace, suggests that all is still well here.)
Orabug:
22390316
Reviewed-by: Todd Vierling <todd.vierling@oracle.com>
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
#define __NR_execveat 350
#define __NR_waitfd 351
-#define NR_syscalls 351
+#define NR_syscalls 352
/* Bitmask values returned from kern_features system call. */
#define KERN_FEATURE_MIXED_MODE_STACK 0x00000001