midl.c(3)
β¨ midl.c β bestie edition β¨
okay so this is midl.c(3), from the Library Functions Manual β it's the ldap bdb back-end ID List functions and honestly? it's giving infrastructure. it's the plumbing that holds the vibes together. let's go π«Ά
π NAME π
midl.c β the ldap bdb back-end ID List functions. that's it, that's the whole name. short, sweet, iconic. π
πΈ SYNOPSIS πΈ
first you gotta pull in the girlies (the headers):
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <'midl.h'>
ngl the 'midl.h' with the single quotes is exactly how it's written up top, we don't question the ancestors π
π Macros
#define CMP(x, y)β the comparison macro, no cap#define SMALL 8β the small-ness constant, it's literally8#define MIDL_SWAP(a, b)β the swap macro, we love a switcheroo
π¦ Functions
unsigned mdb_midl_search (MDB_IDL ids, MDB_ID id)
MDB_IDL mdb_midl_alloc (int num)
void mdb_midl_free (MDB_IDL ids)
void mdb_midl_shrink (MDB_IDL *idp)
static int mdb_midl_grow (MDB_IDL *idp, int num)
int mdb_midl_need (MDB_IDL *idp, unsigned num)
int mdb_midl_append (MDB_IDL *idp, MDB_ID id)
int mdb_midl_append_list (MDB_IDL *idp, MDB_IDL app)
int mdb_midl_append_range (MDB_IDL *idp, MDB_ID id, unsigned n)
void mdb_midl_xmerge (MDB_IDL idl, MDB_IDL merge)
void mdb_midl_sort (MDB_IDL ids)
unsigned mdb_mid2l_search (MDB_ID2L ids, MDB_ID id)
int mdb_mid2l_insert (MDB_ID2L ids, MDB_ID2 *id)
int mdb_mid2l_append (MDB_ID2L ids, MDB_ID2 *id)
look at that list. fourteen functions. search, alloc, free, shrink, grow, need, append, append_list, append_range, xmerge, sort β and then the mid2l trio: search, insert, append. every single one accounted for, periodt. π₯
π₯ Detailed Description π₯
ldap bdb back-end ID List functions.
that's the vibe. this is the file where the ID lists live and the functions that handle them live. iykyk. π
π Author π
Generated automatically by Doxygen for LMDB from the source code. (so like, not a human author β the machine did this one, and honestly, good for it β)
that's the whole page bestie!! this was midl.c(3) from the LMDB library functions manual, and it's gonna be here whenever you need a little list-management moment. mwah, go slay ππ
π
π¦ where this page comes from
- ubuntu resolute: lmdb-doc 0.9.31-1build2 Β· OpenLDAP-2.8
- ubuntu stonking: lmdb-doc 0.9.35-1 Β· OpenLDAP-2.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms