tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

alarm(3) bug?



i was trying to replace bionic's hacked alarm.c with the current
NetBSD alarm.c, but noticed that you return -1 on error, unlike glibc
and bionic, and apparently contrary to POSIX:

  http://pubs.opengroup.org/onlinepubs/009695399/functions/alarm.html

"The alarm() function is always successful, and no return value is
reserved to indicate an error."

-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
NIO, JNI, or bionic questions? Mail me/drop by/add me as a reviewer.


Home | Main Index | Thread Index | Old Index