#define _GNU_SOURCE #include #include "syscall.h" int close_range(unsigned int first, unsigned int last, int flags) { return syscall(SYS_close_range, first, last, (unsigned int)flags); }