imap/src/osdep/unix/env_unix.c
/* Default block notify routine
 * Accepts: reason for calling
 *	    data
 * Returns: data
 */
Default block notify routine
Accepts: reason for calling
data
Returns: data
Default block notify routine Accepts : reason for calling data Returns : data
void *mm_blocknotify (int reason,void *data)
{
  void *ret = data;
  switch (reason) {
  case BLOCK_SENSITIVE:		
    ret = (void *) alarm (0);
    break;
  case BLOCK_NONSENSITIVE:	
    if ((unsigned int) data) alarm ((unsigned int) data);
    break;
  default:			
    break;
  }
  return ret;
}
void * mm_blocknotify ( int reason , void * data ) { void * ret = data ; switch ( reason ) { case BLOCK_SENSITIVE : ret = ( void * ) alarm ( 0 ) ; break ; case BLOCK_NONSENSITIVE : if ( ( unsigned int ) data ) alarm ( ( unsigned int ) data ) ; break ; default : break ; } return ret ; }
Default block notify routine
 Accepts: reason for calling
          data
 Returns: data
Default block notify routine Accepts : reason for calling data Returns : data
/* entering sensitive code */ /* exiting sensitive code */ /* ignore all other reasons */