user277465
user277465

Reputation:

rt_sigreturn and linux kernels

I see that some linux kernels use sys_sigreturn, some have sys_rt_sigreturn and some have support for both. What is the fundamental difference between the two? Why are there 2 system calls that do the same thing?

Upvotes: 0

Views: 1857

Answers (1)

Tsyvarev
Tsyvarev

Reputation: 66061

According to sigreturn man page, rt_sigreturn is advanced variant of sigreturn which supports enlarged signal type:

The original Linux system call was named sigreturn(). However, with the addition of real-time signals in Linux 2.2, a new system call, rt_sigreturn() was added to support an enlarged sigset_t type. The GNU C library hides these details from us, transparently employing rt_sigreturn() when the kernel provides it.

Upvotes: 4

Related Questions