~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/packages/base/httpd/httpd-2.0/apr/apr_signal.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{ Copyright 2000-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 }
 
16
 
 
17
{
 
18
 * @file apr_signal.h 
 
19
 * @brief APR Signal Handling
 
20
 }
 
21
 
 
22
{#include "apr.h"
 
23
#include "apr_pools.h"
 
24
 
 
25
#if APR_HAVE_SIGNAL_H
 
26
#include <signal.h>
 
27
#endif}
 
28
 
 
29
{
 
30
 * @defgroup apr_signal Handling
 
31
 * @ingroup APR 
 
32
 }
 
33
 
 
34
{$if defined(APR_HAVE_SIGACTION) or defined(DOXYGEN)}
 
35
 
 
36
{$ifdef DARWIN}
 
37
{ work around Darwin header file bugs
 
38
 *   http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2657228.html
 
39
 }
 
40
#undef SIG_DFL
 
41
#undef SIG_IGN
 
42
#undef SIG_ERR
 
43
#define SIG_DFL (void ( *)(int))0
 
44
#define SIG_IGN (void ( *)(int))1
 
45
#define SIG_ERR (void ( *)(int))-1
 
46
{$endif}
 
47
 
 
48
{ Function prototype for signal handlers }
 
49
type apr_sigfunc_t = procedure(para: cint);
 
50
 
 
51
{
 
52
 * Set the signal handler function for a given signal
 
53
 * @param signo The signal (eg... SIGWINCH)
 
54
 * @param func the function to get called
 
55
 }
 
56
function apr_signal(signo: Integer; func: apr_sigfunc_t): Papr_sigfunc_t;
 
57
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
58
 external LibAPR name LibNamePrefix + 'apr_signal' + LibSuff8;
 
59
 
 
60
{if defined(SIG_IGN) && !defined(SIG_ERR)
 
61
#define SIG_ERR ((apr_sigfunc_t *) -1)
 
62
#endif
 
63
 
 
64
#else} { !APR_HAVE_SIGACTION }
 
65
{#define apr_signal(a, b) signal(a, b)
 
66
#endif}
 
67
 
 
68
 
 
69
{
 
70
 * Get the description for a specific signal number
 
71
 * @param signum The signal number
 
72
 * @return The description of the signal
 
73
 }
 
74
function apr_signal_description_get(signo: Integer): PChar;
 
75
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
76
 external LibAPR name LibNamePrefix + 'apr_signal_description_get' + LibSuff4;
 
77
 
 
78
{ @deprecated @see apr_signal_description_get }
 
79
function apr_signal_get_description(signo: Integer): PChar;
 
80
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
81
 external LibAPR name LibNamePrefix + 'apr_signal_get_description' + LibSuff4;
 
82
 
 
83
{
 
84
 * APR-private function for initializing the signal package
 
85
 * @internal
 
86
 * @param pglobal The internal, global pool
 
87
 }
 
88
//void apr_signal_init(apr_pool_t *pglobal);
 
89
 
 
90
{$endif}