STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
217
NAME
streams_untimeout () – Cancel pending timeout request scheduled through streams_timeout().
SYNOPSIS
#include <sys/stream.h>
#include <sys/strenv.h>
int streams_untimeout(toid_t id);
PARAMETERS
id
Non-zero identifier returned from a prior call to streams_timeout().
DESCRIPTION
The streams_untimeout() cancels the pending timeout request specified by
id
, scheduled through a call to
streams_timeout() earlier.
RETURN VALUES
This function returns a non-zero value indicating the time (in ticks) remaining on the timer on successfully
cancelling the request and returns a -1 if the timeout request is not found.
CONSTRAINTS
streams_untimeout() can be called from thread or interrupt context. Only spinlocks of STREAMS/UX user
lock order can be held across this call.