sbuild-auth-conv-tty.cc File Reference

#include <config.h>
#include "sbuild.h"
#include <iostream>
#include <termios.h>
#include <unistd.h>
#include <boost/format.hpp>

Include dependency graph for sbuild-auth-conv-tty.cc:


Functions

void reset_alarm (struct sigaction *orig_sa)
 Disable the alarm and signal handler.
void alarm_handler (int ignore)
 Handle the SIGALRM signal.
bool set_alarm (int delay, struct sigaction *orig_sa)
 Set the SIGALARM handler, and set the timeout to delay seconds.

Variables

volatile sig_atomic_t timer_expired = false

Function Documentation

void @0::alarm_handler int  ignore  )  [static]
 

Handle the SIGALRM signal.

Parameters:
ignore the signal number (unused).

void @0::reset_alarm struct sigaction *  orig_sa  )  [static]
 

Disable the alarm and signal handler.

Parameters:
orig_sa the signal handler to restore.

bool @0::set_alarm int  delay,
struct sigaction *  orig_sa
[static]
 

Set the SIGALARM handler, and set the timeout to delay seconds.

The old signal handler is stored in orig_sa.

Parameters:
delay the delay (in seconds) before SIGALRM is raised.
orig_sa the location to store the original signal handler.
Returns:
true on success, false on failure.


Variable Documentation

volatile sig_atomic_t timer_expired = false [static]
 


Generated on Sun Mar 19 12:07:57 2006 for schroot by  doxygen 1.4.6