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:

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

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

Home | Main Index | Thread Index | Old Index