use setitimer function rather than syscall to implement alarm
authorRich Felker <dalias@aerifal.cx>
Mon, 5 Aug 2019 23:55:42 +0000 (19:55 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 6 Aug 2019 01:16:30 +0000 (21:16 -0400)
commitf522de81ac88dddb58266c15bcfaa044c4065e19
tree10897524ab4ccb86b729adaba8363df914b531c2
parent6818c31c9bc4bbad5357f1de14bedf781e5b349e
use setitimer function rather than syscall to implement alarm

otherwise alarm will break on 32-bit archs when time_t is changed to
64-bit. a second itimerval object is introduced for retrieving the old
value, since the setitimer function has restrict-qualified arguments.
src/unistd/alarm.c