-/* $Id: bfile.h,v 1.11 2006-11-08 22:08:26 adam Exp $
- Copyright (C) 1995-2006
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) Index Data
Zebra 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
Zebra 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
/** \brief closes an extended Block file handle..
\param bf extended block file opened with bf_xopen
\param version version to be put in a file
\param more_info more information to be stored in file (header)
/** \brief closes an extended Block file handle..
\param bf extended block file opened with bf_xopen
\param version version to be put in a file
\param more_info more information to be stored in file (header)
/** \brief opens and returns a Block file handle
\param bfs block files
\param name filename
\param block_size block size in bytes
\param wflag 1=opened for read&write, 0=read only
/** \brief opens and returns a Block file handle
\param bfs block files
\param name filename
\param block_size block size in bytes
\param wflag 1=opened for read&write, 0=read only
-BFile bf_open (BFiles bfs, const char *name, int block_size, int wflag);
+BFile bf_open(BFiles bfs, const char *name, int block_size, int wflag);
-int bf_read2(BFile bf, zint no, int offset, int nbytes, void *buf);
+int bf_read2(BFile bf, zint no, int offset, int nbytes, void *buf)
+ ZEBRA_GCC_ATTR((warn_unused_result));
-int bf_write2(BFile bf, zint no, int offset, int nbytes, const void *buf);
-
+int bf_write2(BFile bf, zint no, int offset, int nbytes, const void *buf)
+ ZEBRA_GCC_ATTR((warn_unused_result));
on same platform depending on whether 64-bit is enabled or not.
Note that if a shadow area has unlimited size, that is represented
as max_bytes = -1.
on same platform depending on whether 64-bit is enabled or not.
Note that if a shadow area has unlimited size, that is represented
as max_bytes = -1.
YAZ_EXPORT
int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory,
double *used_bytes, double *max_bytes);
YAZ_EXPORT
int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory,
double *used_bytes, double *max_bytes);