~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/System/Signals.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===- llvm/System/Signals.h - Signal Handling support ----------*- C++ -*-===//
 
2
//
 
3
//                     The LLVM Compiler Infrastructure
 
4
//
 
5
// This file is distributed under the University of Illinois Open Source
 
6
// License. See LICENSE.TXT for details.
 
7
//
 
8
//===----------------------------------------------------------------------===//
 
9
//
 
10
// This file defines some helpful functions for dealing with the possibility of
 
11
// unix signals occuring while your program is running.
 
12
//
 
13
//===----------------------------------------------------------------------===//
 
14
 
 
15
#ifndef LLVM_SYSTEM_SIGNALS_H
 
16
#define LLVM_SYSTEM_SIGNALS_H
 
17
 
 
18
#include "llvm/System/Path.h"
 
19
 
 
20
namespace llvm {
 
21
namespace sys {
 
22
 
 
23
  /// This function registers signal handlers to ensure that if a signal gets
 
24
  /// delivered that the named file is removed.
 
25
  /// @brief Remove a file if a fatal signal occurs.
 
26
  bool RemoveFileOnSignal(const Path &Filename, std::string* ErrMsg = 0);
 
27
 
 
28
  /// When an error signal (such as SIBABRT or SIGSEGV) is delivered to the
 
29
  /// process, print a stack trace and then exit.
 
30
  /// @brief Print a stack trace if a fatal signal occurs.
 
31
  void PrintStackTraceOnErrorSignal();
 
32
 
 
33
  /// AddSignalHandler - Add a function to be called when an abort/kill signal
 
34
  /// is delivered to the process.  The handler can have a cookie passed to it
 
35
  /// to identify what instance of the handler it is.
 
36
  void AddSignalHandler(void (*FnPtr)(void *), void *Cookie);
 
37
 
 
38
  /// This function registers a function to be called when the user "interrupts"
 
39
  /// the program (typically by pressing ctrl-c).  When the user interrupts the
 
40
  /// program, the specified interrupt function is called instead of the program
 
41
  /// being killed, and the interrupt function automatically disabled.  Note
 
42
  /// that interrupt functions are not allowed to call any non-reentrant
 
43
  /// functions.  An null interrupt function pointer disables the current
 
44
  /// installed function.  Note also that the handler may be executed on a
 
45
  /// different thread on some platforms.
 
46
  /// @brief Register a function to be called when ctrl-c is pressed.
 
47
  void SetInterruptFunction(void (*IF)());
 
48
} // End sys namespace
 
49
} // End llvm namespace
 
50
 
 
51
#endif