[BACK]Return to cdbr.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / cdb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/cdb/cdbr.3 between version 1.3 and 1.4

version 1.3, 2013/07/20 21:39:56 version 1.4, 2013/12/05 21:17:23
Line 28 
Line 28 
 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF  .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.  .\" SUCH DAMAGE.
 .Dd March 3, 2010  .Dd December 5, 2013
 .Dt CDBR 3  .Dt CDBR 3
 .Os  .Os
 .Sh NAME  .Sh NAME
 .Nm cdbr  .Nm cdbr
 .Nm cdbr_open ,  .Nm cdbr_open ,
   .Nm cdbr_open_mem ,
 .Nm cdbr_entries ,  .Nm cdbr_entries ,
 .Nm cdbr_get ,  .Nm cdbr_get ,
 .Nm cdbr_find ,  .Nm cdbr_find ,
Line 43 
Line 44 
 .Sh SYNOPSIS  .Sh SYNOPSIS
 .Ft "struct cdbr *"  .Ft "struct cdbr *"
 .Fn cdbr_open "const char *path" "int flags"  .Fn cdbr_open "const char *path" "int flags"
   .Ft "struct cdbr *"
   .Fo cdbr_open_mem
   .Fa "void *base"
   .Fa "size_t size"
   .Fa "void (*unmap)(void *, void *, size_t)"
   .Fa "void *cookie"
   .Fc
 .Ft uint32_t  .Ft uint32_t
 .Fn cdbr_entries "struct cdbr *cdbr"  .Fn cdbr_entries "struct cdbr *cdbr"
 .Ft int  .Ft int
Line 78  returned by
Line 86  returned by
 and  and
 .Fn cdbr_find  .Fn cdbr_find
 is invalidated.  is invalidated.
   .Fn cdbr_open_mem
   works like
   .Fn cdbr_open ,
   but takes a memory reference to the content of the database file.
   If
   .Va unmap
   is not
   .Dv NULL ,
   it is called by
   .Fn cdbr_close
   with
   .Va cookie ,
   .Va base
   and
   .Va size
   as arguments.
   It is not called by
   .Fn cdbr_open_mem
   on error.
 .Pp  .Pp
 The number of records in the database can be obtained by calling  The number of records in the database can be obtained by calling
 .Fn cdbr_entries .  .Fn cdbr_entries .

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>