Re: [PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-17 Thread Pavel Emelyanov
On 02/17/2013 05:42 PM, Jann Horn wrote: > On Thu, Feb 14, 2013 at 08:19:45PM +0400, Pavel Emelyanov wrote: >> +struct sigevent event; > [...] >> +event.sigev_notify = timer->it_sigev_notify; >> +event.sigev_signo = timer->sigq->info.si_signo; >> +event.sigev_value =

Re: [PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-17 Thread Jann Horn
On Thu, Feb 14, 2013 at 08:19:45PM +0400, Pavel Emelyanov wrote: > + struct sigevent event; [...] > + event.sigev_notify = timer->it_sigev_notify; > + event.sigev_signo = timer->sigq->info.si_signo; > + event.sigev_value = timer->sigq->info.si_value; > +

Re: [PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-17 Thread Jann Horn
On Thu, Feb 14, 2013 at 08:19:45PM +0400, Pavel Emelyanov wrote: + struct sigevent event; [...] + event.sigev_notify = timer-it_sigev_notify; + event.sigev_signo = timer-sigq-info.si_signo; + event.sigev_value = timer-sigq-info.si_value; + event.sigev_notify_thread_id =

Re: [PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-17 Thread Pavel Emelyanov
On 02/17/2013 05:42 PM, Jann Horn wrote: On Thu, Feb 14, 2013 at 08:19:45PM +0400, Pavel Emelyanov wrote: +struct sigevent event; [...] +event.sigev_notify = timer-it_sigev_notify; +event.sigev_signo = timer-sigq-info.si_signo; +event.sigev_value = timer-sigq-info.si_value;

[PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-14 Thread Pavel Emelyanov
The intention is to make a syscall, that works like sigaction but on a posix timer. I.e. -- puts (if provided) new sigevent on the timer and reports the previous value (if requested). That said, the syscall accepts timer id to work on, a pointer to the new sigevent (may be NULL, meaning that the

[PATCH 3/3] posix timers: Add syscall that works on timer sigevent

2013-02-14 Thread Pavel Emelyanov
The intention is to make a syscall, that works like sigaction but on a posix timer. I.e. -- puts (if provided) new sigevent on the timer and reports the previous value (if requested). That said, the syscall accepts timer id to work on, a pointer to the new sigevent (may be NULL, meaning that the