Logo Search packages:      
Sourcecode: yafc version File versions  Download package


/* $Id: ftpsigs.h,v 1.3 2001/05/12 18:44:04 mhe Exp $
 * ftpsigs.h -- handles signals
 * Yet Another FTP Client
 * Copyright (C) 1998-2001, Martin Hedenfalk <mhe@stacken.kth.se>
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. See COPYING for more details.

#ifndef _ftpsigs_h_
#define _ftpsigs_h_

#include "syshdr.h"

void ftp_set_signal(int signum, sighandler_t handler);

void ftp_initsigs(void);
void ftp_sigint_close_reset(void);
void ftp_set_sigint(void);
void ftp_unset_sigint(void);
unsigned int ftp_sigints(void);

int ftp_longjmp(
                        sigjmp_buf restart_jmp
                        jmp_buf restart_jmp
                        , int arg);

RETSIGTYPE sigint_jmp_handler(int signum);
RETSIGTYPE sigint_close_handler(int signum);
RETSIGTYPE sigint_abort_handler(int signum);

void ftp_set_close_handler(void);
void ftp_set_abort_handler(void);


Generated by  Doxygen 1.6.0   Back to index