siginterrupt(3) Library Functions Manual siginterrupt(3) siginterrupt - LIBRARY Standard C library (libc, -lc) #include [[deprecated]] int siginterrupt(int sig, int flag); glibc (. feature_test_macros(7)): siginterrupt(): _XOPEN_SOURCE >= 500 || /* glibc 2.12: */ _POSIX_C_SOURCE >= 200809L || /* glibc <= 2.19: */ _BSD_SOURCE siginterrupt() sig. flag (0), , sig. Linux . flag (1) , , sig -1 errno EINTR. flag (1) , . The siginterrupt() function returns 0 on success. It returns -1 if the signal number sig is invalid, with errno set to indicate the error. EINVAL . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |siginterrupt() | | MT-Unsafe const:sigintr | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. 4.3BSD, POSIX.1-2001. Obsolete in POSIX.1-2008, recommending the use of sigaction(2) with the SA_RESTART flag instead. . signal(2) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . siginterrupt(3)