Guest User

Untitled

a guest
Jul 10th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. diff --git a/lib/tst_clocks.c b/lib/tst_clocks.c
  2. index 7b465b1f62d6..13d2f31953dd 100644
  3. --- a/lib/tst_clocks.c
  4. +++ b/lib/tst_clocks.c
  5. @@ -11,12 +11,14 @@
  6. #include "tst_clocks.h"
  7. #include "lapi/syscalls.h"
  8. #include "lapi/posix_clocks.h"
  9. +#include "tst_sig_proc.h"
  10.  
  11. typedef int (*mysyscall)(clockid_t clk_id, void *ts);
  12.  
  13. int syscall_supported_by_kernel(long sysnr)
  14. {
  15. int ret;
  16. + create_sig_proc(0, 0, 0);
  17.  
  18. ret = syscall(sysnr, 0, NULL);
  19. if (ret == -1 && errno == ENOSYS)
Add Comment
Please, Sign In to add comment