~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

Viewing changes to ntop/ntop_darwin.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (C) 2001  Luca Deri <deri@ntop.org>
3
 
 *
4
 
 *                      http://www.ntop.org/
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
 
 */
20
 
 
21
 
/* 
22
 
   This file contains some compatibility functions that are needed for
23
 
   ntop to run on Darwin/MacOS X
24
 
*/
25
 
 
26
 
#ifdef DARWIN
27
 
 
28
 
/* ***************************************************************** */
29
 
 
30
 
/*
31
 
 * This file was modified by Christoph Pfisterer <cp@chrisp.de>
32
 
 * on Sat, May 5 2001. See the file "ChangeLog" for details of what
33
 
 * was changed.
34
 
 *
35
 
 *
36
 
 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
37
 
 *
38
 
 * @APPLE_LICENSE_HEADER_START@
39
 
 * 
40
 
 * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
41
 
 * Reserved.  This file contains Original Code and/or Modifications of
42
 
 * Original Code as defined in and that are subject to the Apple Public
43
 
 * Source License Version 1.1 (the "License").  You may not use this file
44
 
 * except in compliance with the License.  Please obtain a copy of the
45
 
 * License at http://www.apple.com/publicsource and read it before using
46
 
 * this file.
47
 
 * 
48
 
 * The Original Code and all software distributed under the License are
49
 
 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
50
 
 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
51
 
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
52
 
 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
53
 
 * License for the specific language governing rights and limitations
54
 
 * under the License.
55
 
 * 
56
 
 * @APPLE_LICENSE_HEADER_END@
57
 
 */
58
 
 
59
 
#ifdef __cplusplus
60
 
extern "C" {
61
 
#endif
62
 
 
63
 
extern void * dlopen(
64
 
    const char *path,
65
 
    int mode);
66
 
extern void * dlsym(
67
 
    void * handle,
68
 
    const char *symbol);
69
 
extern const char * dlerror(
70
 
    void);
71
 
extern int dlclose(
72
 
    void * handle);
73
 
 
74
 
#define RTLD_LAZY       0x1
75
 
#define RTLD_NOW        0x2
76
 
#define RTLD_LOCAL      0x4
77
 
#define RTLD_GLOBAL     0x8
78
 
#define RTLD_NOLOAD     0x10
79
 
#define RTLD_SHARED     0x20    /* not used, the default */
80
 
#define RTLD_UNSHARED   0x40
81
 
#define RTLD_NODELETE   0x80
82
 
#define RTLD_LAZY_UNDEF 0x100
83
 
 
84
 
#ifdef __cplusplus
85
 
}
86
 
#endif
87
 
 
88
 
/* ***************************************************************** */
89
 
 
90
 
#endif /* DARWIN */