.
D 2003-10-12T01:38:01
J icomment Logged\sIn:\sYES\s\nuser_id=68433\n\nFull\scontext:\n\s\s\s\sif\s(alarm(sec)\s<\s0)\s{\n\s\s\s\s\s\s\s\sTcl_AppendResult(interp,\s"alarm:\s",\nTcl_PosixError(interp),\sNULL);\n\s\s\s\s\s\s\s\sreturn\sTCL_ERROR;\n\s\s\s\s}\n\nHowever,\saccording\sto\salarm(2):\n\nunsigned\sint\salarm(unsigned\sint\sseconds);\n...\nRETURN\sVALUE\n\s\s\s\s\s\s\salarm\sreturns\sthe\snumber\sof\s\sseconds\s\sremaining\s\nuntil\s\sany\spreviously\sscheduled\salarm\swas\sdue\sto\sbe\ndelivered,\sor\szero\sif\sthere\swas\sno\spreviously\sscheduled\salarm.\n\nIOW,\sthere\sare\sno\serror\sconditions;\salarm()\salways\ssucceeds.\n\s(manpages\son\sHP-UX,\sAIX,\sIRIX,\sand\sLinux\sall\ssay\ssomething\nsimilar.\s\sAlso,\sthis\sinterface\sgoes\sall\sthe\sway\sback\sto\sSVID2).\n\nIt\sshould\sbe\ssafe\sto\sjust\ssay:\n\n\s\s\s\s\s(void)alarm(sec);\n\ninstead.\n\n\n
J login jenglish
J mimetype text/plain
J username jenglish
K 664755ffffffffffffffffffffffffffffffffff
U jenglish
Z 3849883d773418c0735b3aa05399a2c2