Alien-Libjio
view release on metacpan or search on metacpan
#!/usr/bin/perl
# Build.PL
# Script to build and install this distribution
#
# $Id$
use strict;
use warnings;
use lib 'inc';
use My::Builder;
use Env '@PATH';
my $builder = My::Builder->new(
module_name => 'Alien::Libjio',
license => 'unrestricted',
dist_author => 'Jonathan Yu <jawnsy@cpan.org>',
dist_version_from => 'lib/Alien/Libjio.pm',
dynamic_config => 1,
'Module::Build' => '0.2808_01'
},
'requires' => {
'perl' => '5.006'
},
add_to_cleanup => [ 'Alien-Libjio-*' ],
);
# Use Alien::Libjio to see if it's already installed
use lib 'lib';
use Alien::Libjio;
my $jio = Alien::Libjio->new();
unless ($jio->installed) {
# Ask the user if they'd like to install this; if not, then exit
$builder->y_n('libjio was not found on your system. Install it now?', 'y')
or exit;
$builder->notes(build_libjio => 1);
libjio/bindings/preload/libjio_preload.c view on Meta::CPAN
/*
* libjio C preloader
* Alberto Bertogli (albertito@blitiri.com.ar)
*
* This generates a shared object that, when prelinked, can be used to make an
* existing application to use libjio for UNIX I/O.
* It's not nice or pretty, and does some nasty tricks to work both with and
* without LFS. I don't think it builds or works without glibc.
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
( run in 0.297 second using v1.01-cache-2.11-cpan-87723dcf8b7 )