Provided by: libbfio-dev_20130507-1ubuntu1_amd64 

NAME
libbfio.h — Library to support (abstracted) basic file input/output (IO)
LIBRARY
library “libbfio”
SYNOPSIS
#include <libbfio.h>
Support functions
const char *
libbfio_get_version(void);
int
libbfio_get_codepage(int *codepage, libbfio_error_t **error);
int
libbfio_set_codepage(int codepage, libbfio_error_t **error);
Error functions
void
libbfio_error_free(libbfio_error_t **error);
int
libbfio_error_fprint(libbfio_error_t *error, FILE *stream);
int
libbfio_error_sprint(libbfio_error_t *error, char *string, size_t size);
int
libbfio_error_backtrace_fprint(libbfio_error_t *error, FILE *stream);
int
libbfio_error_backtrace_sprint(libbfio_error_t *error, char *string, size_t size);
Handle functions
int
libbfio_handle_initialize(libbfio_h**a*i*fnhnirdatoelnp_eedthn__ratite_o,td_lhi**ean*c,ntildpoolt_inerhine)_bt_(tnbidfoli_eo)hi*,_,an*e*ntdredperrltsorertro)__(tntat(i*oei*n(xni_o*itoiifslisp_obfewintthl*_*sb6ehbtsraiihnsif4keb)_bsato(*szi_f(tdbi_npua(ls*i*ubieo)toi*cilfnon*dtrc*i*iswniiuz,_,fniieo)eitptilrc(i*ccnibirtonfee*ftoon,_,,oepoe_*nielto(i*sbzip_tf_esp_fte*_t_,t_tosop_s*niifettho8etrrethffree*))rhl*ipp_slisthisrto*szi_ran_ortrafsrrr*,(_igoethn_nerabiep_bieo)t)_st,ro)_6eorretnbe_inratfbt)_bzathiuz,_,(tdt_(td4troordbithin)_lb(tdfedranfee*ltl__rrlfn_abt(tdafli__tf_eeett_eitsn*nblgieo)t(td8etrr,,tr,oitidfeso),_,l_or_poli,,_,e*et,roe*)et_eo)e*re,_r*,)rhsl,_,rerrtre(_i*ie*rrorortnzsbreorrorrdeiblrrro__l6zfior_ttre4eibrot,_ob_t_te*)ir*,ore_ore*rrr*_retrorrr_tr);
int
libbfio_handle_free(libbfio_handle_t **handle, libbfio_error_t **error);
int
libbfio_handle_clone(libbfio_handle_t**destination_handle,libbfio_handle_tsource_handlel,ibbfio_error_t*error);
int
libbfio_handle_open(libbfio_handle_t *handle, int access_flags, libbfio_error_t **error);
int
libbfio_handle_reopen(libbfio_handle_t *handle, int access_flags, libbfio_error_t **error);
int
libbfio_handle_close(libbfio_handle_t *handle, libbfio_error_t **error);
ssize_t
libbfio_handle_read_buffer(libbfio_handle_t*handle,uint8_t*buffer, size_t size, libbfio_error_t **error);
ssize_t
libbfio_handle_write_buffer(libbfio_handle_t*handle,constuint8_t*buffer,size_tsize,libbfio_error_t**error);
off64_t
libbfio_handle_seek_offset(libbfio_handle_t*handle, off64_t offset, int whence, libbfio_error_t **error);
int
libbfio_handle_exists(libbfio_handle_t *handle, libbfio_error_t **error);
int
libbfio_handle_is_open(libbfio_handle_t *handle, libbfio_error_t **error);
int
libbfio_handle_get_io_handle(libbfio_handle_t *handle, intptr_t **io_handle, libbfio_error_t **error);
int
libbfio_handle_get_access_flags(libbfio_handle_t *handle, int *access_flags, libbfio_error_t **error);
int
libbfio_handle_set_access_flags(libbfio_handle_t *handle, int access_flags, libbfio_error_t **error);
int
libbfio_handle_get_size(libbfio_handle_t *handle, size64_t *size, libbfio_error_t **error);
int
libbfio_handle_get_offset(libbfio_handle_t *handle, off64_t *offset, libbfio_error_t **error);
int
libbfio_handle_set_open_on_demand(libbfio_handle_t *handle,uint8_topen_on_demand,libbfio_error_t**error);
int
libbfio_handle_set_track_offsets_read(libbfio_handle_thandleu,int8_ttrack_offsets_read,libbfio_error_t**error);
int
libbfio_handle_get_number_of_offsets_read(libbfio_handle_thandlei,n*tnumber_of_read_offsetlsi,bbfio_error*_terror);
int
libbfio_handle_get_offset_read(libbfio_handle_thandlei,nitndex,off64_t*offset,size64_t*size,libbfio_error_t**error);
File functions
int
libbfio_file_initialize(libbfio_handle_t **handle, libbfio_error_t **error);
int
libbfio_file_get_name_size(libbfio_handle_t *handle, size_t *name_size, libbfio_error_t **error);
int
libbfio_file_get_name(libbfio_handle_t *handle, char *name, size_t name_size, libbfio_error_t **error);
int
libbfio_file_set_name(libbfio_handle_t *handle, constchar*name,size_tname_length,libbfio_error_t**error);
Available when compiled with wide character string support:
int
libbfio_file_get_name_size_wide(libbfio_handle_t *handle, size_t *name_size, libbfio_error_t **error);
int
libbfio_file_get_name_wide(libbfio_handle_t*handle,wchar_t*name,size_tname_size,libbfio_error_t **error);
int
libbfio_file_set_name_wide(libbfio_handle_t*handle,constwchar_t*name,size_tname_length,libbfio_error_t**error);
File range functions
int
libbfio_file_range_initialize(libbfio_handle_t **handle, libbfio_error_t **error);
int
libbfio_file_range_get_name_size(libbfio_handle_t *handle, size_t *name_size, libbfio_error_t **error);
int
libbfio_file_range_get_name(libbfio_handle_t*handle,char*name,size_t name_size, libbfio_error_t **error);
int
libbfio_file_range_set_name(libbfio_handle_t*handle,constchar*name,size_tname_length,libbfio_error_t**error);
int
libbfio_file_range_get(libbfio_handle_t*handle,off64_t*range_offset,size64_t*range_size,libbfio_error_t**error);
int
libbfio_file_range_set(libbfio_handle_t*handle,off64_trange_offset,size64_trange_size,libbfio_error_t**error);
Available when compiled with wide character string support:
int
libbfio_file_range_get_name_size_wide(libbfio_handle_t*handle,size_t*name_size, libbfio_error_t **error);
int
libbfio_file_range_get_name_wide(libbfio_handle_t*handle,wchar_t*name,size_tname_size,libbfio_error_t**error);
int
libbfio_file_range_set_name_wide(libbfio_handle_thandlec,onswtchar_tname,size_tname_length,libbfio_error_t**error);
Memory range functions
int
libbfio_memory_range_initialize(libbfio_handle_t **handle, libbfio_error_t **error);
int
libbfio_memory_range_get(libbfio_handle_t *handle, uint8_t **start, size_t *size,libbfio_error_t**error);
int
libbfio_memory_range_set(libbfio_handle_t *handle, uint8_t *start, size_t size, libbfio_error_t **error);
Pool functions
int
libbfio_pool_initialize(libbfio_pool*_tpooinlnu,tmber_of_handleimsna,tximum_number_of_open_handlesl,ibbfio_error_t*error);
int
libbfio_pool_free(libbfio_pool_t **pool, libbfio_error_t **error);
int
libbfio_pool_clone(libbfio_pool_t **destination_pool, libbfio_pool_t*source_pool,libbfio_error_t**error);
int
libbfio_pool_resize(libbfio_pool_t *pool, int number_of_handles, libbfio_error_t **error);
int
libbfio_pool_get_number_of_handles(libbfio_pool_t*pool, int *number_of_handles, libbfio_error_t **error);
int
libbfio_pool_get_handle(libbfio_pool_t *pool, int entry,libbfio_handle_t**handle,libbfio_error_t**error);
int
libbfio_pool_append_handle(libbfio_pool_tpooli,n*tentryl,ibbfio_handle_thandlei,natccess_flags,libbfio_error_t**error);
int
libbfio_pool_set_handle(libbfio_pool_t*pool,intentry,libbfio_handle_t*handle,inatccess_flagsl,ibbfio_error_t*error);
int
libbfio_pool_open libbfio_pool_t *pool, int entry, int access_flags, libbfio_error_t **error
int
libbfio_pool_reopen libbfio_pool_t *pool, int entry, int access_flags, libbfio_error_t **error
int
libbfio_pool_close libbfio_pool_t *pool, int entry, libbfio_error_t **error
int
libbfio_pool_close_all libbfio_pool_t *pool, libbfio_error_t **error
ssize_t
libbfio_pool_read_buffer libbfio_pool_t *pool, int entry, uint8_t *buffer, size_t size, libbfio_error_t
**error
ssize_t
libbfio_pool_write_buffer libbfio_pool_t *pool, int entry, const uint8_t *buffer, size_t size,
libbfio_error_t **error
off64_t
libbfio_pool_seek_offset(libbfio_pool_t*pool,intentry,off64_toffset,int whence, libbfio_error_t **error);
int
libbfio_pool_get_size(libbfio_pool_t *pool, int entry, size64_t *size, libbfio_error_t **error);
int
libbfio_pool_get_offset(libbfio_pool_t *pool, int entry, off64_t *offset, libbfio_error_t **error);
int
libbfio_pool_get_maximum_number_of_open_handles(libbfio_poo*lp*_imtonaltx,imum_number_of_open_handlliebsb,fio_err*o*re_tror);
int
libbfio_pool_set_maximum_number_of_open_handles(libbfio_po*opmloia_nxtlti,mum_number_of_open_handlleisb,bfio_erro*r*_trror);
File pool functions
int
libbfio_file_pool_append_handles_for_names(libbfio_poo*cl*of_nitoc*slohtelan,ramensiu[nm]tb,er_of_filenaamicencste,ss_flalgisb,bfio_erro*r*_trror);
Available when compiled with wide character string support:
int
libbfio_file_pool_append_handles_for_names_wide(libbfio_po*cfo*oilpwnl_csetoh*tnlaan,rmu_imtsnb[te]r,_of_filenaaicmncetess,s_flalgisb,bfio_erro*r*_trror);
DESCRIPTION
The libbfio_get_version() function is used to retrieve the library version.
RETURN VALUES
Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return
values refer to libbfio.h
ENVIRONMENT
None
FILES
None
NOTES
libbfio allows to be compiled with wide character support. To compile libbfio with wide character
support use ./configure --enable-wide-character-type=yes or pass the definition _UNICODE
or UNICODE
to the compiler (i.e. in case of Microsoft Visual Studio (MSVS) C++).
To have other code to determine if libbfio was compiled with wide character support it defines
LIBPFF_WIDE_CHARACTER_TYPE
in libbfio/features.h.
BUGS
Please report bugs of any kind to <joachim.metz@gmail.com> or on the project website:
http://code.google.com/p/libbfio/
AUTHOR
These man pages were written by Joachim Metz.
COPYRIGHT
Copyright 2009-2013, Joachim Metz <joachim.metz@gmail.com>. This is free software; see the source for
copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
SEE ALSO
the libbfio.h include file
libbfio April 6, 2013 libbfio(3)