[6/6] setjmp.3: SYNOPSIS: Use 'noreturn' in prototypes
Commit Message
POSIX specifies that [sig]longjmp() shall not return,
transferring control back to the caller of [sig]setjmp().
Glibc uses __attribute__((__noreturn__)) for [sig]longjmp().
Let's use standard C11 'noreturn' in the manual page.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
man3/setjmp.3 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -31,8 +31,8 @@ setjmp, sigsetjmp, longjmp, siglongjmp \- performing a nonlocal goto
.BI "int setjmp(jmp_buf " env );
.BI "int sigsetjmp(sigjmp_buf " env ", int " savesigs );
.PP
-.BI "void longjmp(jmp_buf " env ", int " val );
-.BI "void siglongjmp(sigjmp_buf " env ", int " val );
+.BI "noreturn void longjmp(jmp_buf " env ", int " val );
+.BI "noreturn void siglongjmp(sigjmp_buf " env ", int " val );
.fi
.PP
.RS -4