~ubuntu-branches/ubuntu/edgy/lynx/edgy

« back to all changes in this revision

Viewing changes to src/LYSignal.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef LYSIGNAL_H
 
3
#define LYSIGNAL_H
 
4
 
 
5
#include <signal.h>
 
6
 
 
7
#ifdef VMS
 
8
extern void VMSsignal PARAMS((int sig, void (*func)()));
 
9
#ifdef signal
 
10
#undef signal
 
11
#endif /* signal */
 
12
#define signal(a,b) VMSsignal(a,b) /* use LYCurses.c routines for interrupts */
 
13
#endif /* VMS */
 
14
 
 
15
#ifdef HAVE_SIGACTION
 
16
typedef void LYSigHandlerFunc_t PARAMS((int));
 
17
/* implementation in LYUtils.c */
 
18
extern void LYExtSignal PARAMS((int sig, LYSigHandlerFunc_t * handler));
 
19
#else
 
20
#define LYExtSignal(sig,h) signal(sig, h)
 
21
#endif
 
22
 
 
23
#endif /* LYSIGNAL_H */