No longer uses syscalls instead of POSIX calls.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-09-03 11:43:53 +00:00
parent 0dbc4bef49
commit f8db8b97a8

View File

@ -56,7 +56,7 @@ install_handler(int sig, beos_signal_func_ptr handler)
newa.sa_flags = SA_NOMASK | SA_RESTART;
newa.sa_userdata = "test!";
if (sys_sigaction(sig, &newa, &olda) < 0) {
if (sigaction(sig, &newa, &olda) < 0) {
printf("Failed installing handler for sig #%d!\n", sig);
}
}
@ -107,7 +107,7 @@ main(int argc, char **argv)
break;
case '3':
install_handler(SIGALRM, alarm_handler);
sys_set_alarm(5000000, B_PERIODIC_ALARM);
set_alarm(5000000, B_PERIODIC_ALARM);
break;
}
printf("Done. Entering sleep mode...\n");