Skip to content

Commit 6318038

Browse files
committed
More ESECT declarations
1 parent 110fba2 commit 6318038

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

libraries/liblmdb/mdb.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ static int mdb_sec_inited;
13151315
#endif
13161316

13171317
/** Return the library version info. */
1318-
char *
1318+
char * ESECT
13191319
mdb_version(int *major, int *minor, int *patch)
13201320
{
13211321
if (major) *major = MDB_VERSION_MAJOR;
@@ -1407,7 +1407,7 @@ mdb_strerror(int err)
14071407
# define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
14081408
mdb_assert_fail(env, expr_txt, mdb_func_, __FILE__, __LINE__))
14091409

1410-
static void
1410+
static void ESECT
14111411
mdb_assert_fail(MDB_env *env, const char *expr_txt,
14121412
const char *func, const char *file, int line)
14131413
{
@@ -4350,7 +4350,7 @@ mdb_hash_val(MDB_val *val, mdb_hash_t hval)
43504350
*/
43514351
static const char mdb_a85[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~";
43524352

4353-
static void
4353+
static void ESECT
43544354
mdb_pack85(unsigned long l, char *out)
43554355
{
43564356
int i;
@@ -4361,7 +4361,7 @@ mdb_pack85(unsigned long l, char *out)
43614361
}
43624362
}
43634363

4364-
static void
4364+
static void ESECT
43654365
mdb_hash_enc(MDB_val *val, char *encbuf)
43664366
{
43674367
mdb_hash_t h = mdb_hash_val(val, MDB_HASH_INIT);
@@ -9368,7 +9368,8 @@ int mdb_dbi_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *db
93689368
return rc;
93699369
}
93709370

9371-
int mdb_stat(MDB_txn *txn, MDB_dbi dbi, MDB_stat *arg)
9371+
int ESECT
9372+
mdb_stat(MDB_txn *txn, MDB_dbi dbi, MDB_stat *arg)
93729373
{
93739374
if (!arg || !TXN_DBI_EXIST(txn, dbi, DB_VALID))
93749375
return EINVAL;
@@ -9681,7 +9682,8 @@ mdb_reader_check(MDB_env *env, int *dead)
96819682
}
96829683

96839684
/** As #mdb_reader_check(). rlocked = <caller locked the reader mutex>. */
9684-
static int mdb_reader_check0(MDB_env *env, int rlocked, int *dead)
9685+
static int ESECT
9686+
mdb_reader_check0(MDB_env *env, int rlocked, int *dead)
96859687
{
96869688
mdb_mutexref_t rmutex = rlocked ? NULL : env->me_rmutex;
96879689
unsigned int i, j, rdrs;
@@ -9740,7 +9742,8 @@ static int mdb_reader_check0(MDB_env *env, int rlocked, int *dead)
97409742
* @param[in] rc LOCK_MUTEX0() error (nonzero)
97419743
* @return 0 on success with the mutex locked, or an error code on failure.
97429744
*/
9743-
static int mdb_mutex_failed(MDB_env *env, mdb_mutexref_t mutex, int rc)
9745+
static int ESECT
9746+
mdb_mutex_failed(MDB_env *env, mdb_mutexref_t mutex, int rc)
97449747
{
97459748
int toggle, rlocked, rc2;
97469749

0 commit comments

Comments
 (0)