File: ftpsigs.h

package info (click to toggle)
yafc 1.1.1.dfsg.1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,248 kB
  • ctags: 1,679
  • sloc: ansic: 19,338; sh: 10,365; makefile: 155; perl: 38; ruby: 33
file content (42 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* $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(
#ifdef HAVE_POSIX_SIGSETJMP
				sigjmp_buf restart_jmp
#else
				jmp_buf restart_jmp
#endif
				, 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);

#endif