aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR/TEST-SUITE-OSLIB/chconf.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-06-01 07:45:27 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-06-01 07:45:27 +0000
commitbe1abb574de27de5bd60124ff18cab96ca649413 (patch)
tree33b7d2e9827c141f82d3b99504ef29274efb0d75 /demos/AVR/TEST-SUITE-OSLIB/chconf.h
parentc51e4071c27eb376ef05957498ff54c608bf7d5f (diff)
downloadChibiOS-be1abb574de27de5bd60124ff18cab96ca649413.tar.gz
ChibiOS-be1abb574de27de5bd60124ff18cab96ca649413.tar.bz2
ChibiOS-be1abb574de27de5bd60124ff18cab96ca649413.zip
Fixed bug #953.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12062 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'demos/AVR/TEST-SUITE-OSLIB/chconf.h')
0 files changed, 0 insertions, 0 deletions
f='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
#ifndef __TDB_H__
#define __TDB_H__

/* 
   Unix SMB/CIFS implementation.

   trivial database library

   Copyright (C) Andrew Tridgell 1999-2004
   
     ** NOTE! The following LGPL license applies to the tdb
     ** library. This does NOT imply that all of Samba is released
     ** under the LGPL
   
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library 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
   Lesser General Public License for more details.

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

#ifdef  __cplusplus
extern "C" {
#endif


/* flags to tdb_store() */
#define TDB_REPLACE 1
#define TDB_INSERT 2
#define TDB_MODIFY 3

/* flags for tdb_open() */
#define TDB_DEFAULT 0 /* just a readability place holder */
#define TDB_CLEAR_IF_FIRST 1
#define TDB_INTERNAL 2 /* don't store on disk */
#define TDB_NOLOCK   4 /* don't do any locking */
#define TDB_NOMMAP   8 /* don't use mmap */
#define TDB_CONVERT 16 /* convert endian (internal use) */
#define TDB_BIGENDIAN 32 /* header is big-endian (internal use) */

#define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)

/* error codes */