NAME

Genezzo::RawIO - Genezzo Raw IO

SYNOPSIS Additional file read and write routines for Genezzo.

DESCRIPTION sysread and syswrite are wrapped by genread and genwrite so raw devices (via rawread and rawwrite) may optionally be used.

ARGUMENTS

FUNCTIONS

setUseRaw BOOL
Set to 1 to enable aligned I/O for raw devices.  Set to 0 
to disable.
getUseRaw
Returns 1 if aligned I/O for raw devices is enabled.  Returns 0 
if disabled.
genread FILEHANDLE, SCALAR, LENGTH
Performs read identical to sysread, except uses aligned buffer 
suitable for raw I/O if setUseRaw was previously called.
genwrite FILEHANDLE, SCALAR, LENGTH
Performs write identical to syswrite, except uses aligned buffer 
suitable for raw I/O if setUseRaw was previously called.

EXPORT

getUseRaw, setUseRaw, genread, genwrite

LIMITATIONS

Relies on Perl Inline::C module.  Code may gracefully compile to 
empty stubs on non-raw (non-Linux) platforms, but this has not 
been thoroughly tested.

#TODO

AUTHOR

Eric Rollins, rollins@acm.org

SEE ALSO

perl(1).

Copyright (c) 2005 Eric Rollins. All rights reserved.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Address bug reports and comments to rollins@acm.org