~ubuntu-branches/debian/sid/ppp/sid

« back to all changes in this revision

Viewing changes to solaris/ppp_comp_mod.c

  • Committer: Bazaar Package Importer
  • Author(s): Eddy Petrișor
  • Date: 2007-03-17 22:31:45 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070317223145-felzh5yrmh8fwi8t
Tags: 2.4.4rel-8
* urgency high since fixes an RC bug
* make sure the /etc/resolv.conf file is world readable (Closes: #415077)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * ppp_comp_mod.c - modload support for PPP compression STREAMS module.
3
 
 *
4
 
 * Copyright (c) 1994 The Australian National University.
5
 
 * All rights reserved.
6
 
 *
7
 
 * Permission to use, copy, modify, and distribute this software and its
8
 
 * documentation is hereby granted, provided that the above copyright
9
 
 * notice appears in all copies.  This software is provided without any
10
 
 * warranty, express or implied. The Australian National University
11
 
 * makes no representations about the suitability of this software for
12
 
 * any purpose.
13
 
 *
14
 
 * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
15
 
 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
16
 
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
17
 
 * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
18
 
 * OF SUCH DAMAGE.
19
 
 *
20
 
 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
21
 
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22
 
 * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
23
 
 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
24
 
 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
25
 
 * OR MODIFICATIONS.
26
 
 *
27
 
 * $Id: ppp_comp_mod.c,v 1.1 2000/04/18 23:51:29 masputra Exp $
28
 
 */
29
 
 
30
 
/*
31
 
 * This file is used under Solaris 2.
32
 
 */
33
 
#include <sys/types.h>
34
 
#include <sys/param.h>
35
 
#include <sys/conf.h>
36
 
#include <sys/modctl.h>
37
 
#include <sys/sunddi.h>
38
 
 
39
 
extern struct streamtab ppp_compinfo;
40
 
 
41
 
static struct fmodsw fsw = {
42
 
    "ppp_comp",
43
 
    &ppp_compinfo,
44
 
    D_NEW | D_MP | D_MTQPAIR
45
 
};
46
 
 
47
 
extern struct mod_ops mod_strmodops;
48
 
 
49
 
static struct modlstrmod modlstrmod = {
50
 
    &mod_strmodops,
51
 
    "PPP compression module",
52
 
    &fsw
53
 
};
54
 
 
55
 
static struct modlinkage modlinkage = {
56
 
    MODREV_1,
57
 
    (void *) &modlstrmod,
58
 
    NULL
59
 
};
60
 
 
61
 
/*
62
 
 * Entry points for modloading.
63
 
 */
64
 
int
65
 
_init(void)
66
 
{
67
 
    return mod_install(&modlinkage);
68
 
}
69
 
 
70
 
int
71
 
_fini(void)
72
 
{
73
 
    return mod_remove(&modlinkage);
74
 
}
75
 
 
76
 
int
77
 
_info(mip)
78
 
    struct modinfo *mip;
79
 
{
80
 
    return mod_info(&modlinkage, mip);
81
 
}