13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Lgrp.pm provides procedural and object-oriented interface to the Solaris
29 # liblgrp(3LIB) library.
30 #
31
32
33 require 5.8.4;
34 use strict;
35 use warnings;
36 use Carp;
37
38 package Sun::Solaris::Lgrp;
39
40 our $VERSION = '1.1';
41 use XSLoader;
42 XSLoader::load(__PACKAGE__, $VERSION);
43
44 require Exporter;
45
46 our @ISA = qw(Exporter);
47
48 our (@EXPORT_OK, %EXPORT_TAGS);
49
50 # Things to export
51 my @lgrp_constants = qw(LGRP_AFF_NONE LGRP_AFF_STRONG LGRP_AFF_WEAK
52 LGRP_CONTENT_DIRECT LGRP_CONTENT_HIERARCHY
53 LGRP_MEM_SZ_FREE LGRP_MEM_SZ_INSTALLED LGRP_VER_CURRENT
|
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Lgrp.pm provides procedural and object-oriented interface to the Solaris
29 # liblgrp(3LIB) library.
30 #
31
32
33 require 5.0010;
34 use strict;
35 use warnings;
36 use Carp;
37
38 package Sun::Solaris::Lgrp;
39
40 our $VERSION = '1.1';
41 use XSLoader;
42 XSLoader::load(__PACKAGE__, $VERSION);
43
44 require Exporter;
45
46 our @ISA = qw(Exporter);
47
48 our (@EXPORT_OK, %EXPORT_TAGS);
49
50 # Things to export
51 my @lgrp_constants = qw(LGRP_AFF_NONE LGRP_AFF_STRONG LGRP_AFF_WEAK
52 LGRP_CONTENT_DIRECT LGRP_CONTENT_HIERARCHY
53 LGRP_MEM_SZ_FREE LGRP_MEM_SZ_INSTALLED LGRP_VER_CURRENT
|