rpm  5.2.1
About: RPM is a powerful and mature command-line driven package management system capable of installing, uninstalling, verifying, querying, and updating Unix software packages ("no longer Linux-centric"). Hint: The RPM homepage may offer newer releases (but in rpm format).
  Fossies Dox: rpm-5.2.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

brew_db.h File Reference
#include <AEEAppGen.h>
#include <AEEShell.h>
#include <AEEFile.h>
#include <AEEStdLib.h>
#include "errno.h"
#include "db.h"
#include "clib_port.h"
Include dependency graph for brew_db.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tm
 

Macros

#define EOF   (-1) /* Declare stdio's EOF. */
 
#define stderr   ((IFile *)1) /* Flag to call DBGPRINTF. */
 
#define stdout   ((IFile *)1)
 
#define BREW_EPOCH_OFFSET   (315964800L)
 
#define atoi(a)   ATOI(a)
 
#define free(a)   FREE(a)
 
#define malloc(a)   MALLOC(a)
 
#define memcmp(a, b, c)   MEMCMP(a, b, c)
 
#define memmove(a, b, c)   MEMMOVE(a, b, c)
 
#define memset(a, b, c)   MEMSET(a, b, c)
 
#define realloc(a, b)   REALLOC(a, b)
 
#define snprintf   SNPRINTF
 
#define sprintf   SPRINTF
 
#define strcat(a, b)   STRCAT(a, b)
 
#define strchr(a, b)   STRCHR(a, b)
 
#define strcmp(a, b)   STRCMP(a, b)
 
#define strcpy(a, b)   STRCPY(a, b)
 
#define strdup(a)   STRDUP(a)
 
#define strlen(a)   STRLEN(a)
 
#define strncmp(a, b, c)   STRNCMP(a, b, c)
 
#define strncpy(a, b, c)   STRNCPY(a, b, c)
 
#define strrchr(a, b)   STRRCHR(a, b)
 
#define strtoul(a, b, c)   STRTOUL(a, b, c)
 
#define vsnprintf(a, b, c, d)   VSNPRINTF(a, b, c, d)
 
#define memcpy   memmove
 
#define __os_fsync(a, b)   (0)
 
#define fflush(a)   (0)
 
#define FILE_MANAGER_CREATE(dbenv, mgr, ret)
 
#define FILE_MANAGER_ERR(dbenv, mgr, name, op, ret)
 

Functions

int __db_Cfclose (FILE *)
 
int __db_Cfgetc (FILE *)
 
char * __db_Cfgets (char *, int, FILE *)
 
FILE__db_Cfopen (const char *, const char *)
 
size_t __db_Cfwrite (const void *, size_t, size_t, FILE *)
 
char * __db_Cgetcwd (char *, size_t)
 
struct tm__db_Clocaltime (const time_t *)
 
time_t __db_Ctime (time_t *)
 

Macro Definition Documentation

◆ __os_fsync

#define __os_fsync (   a,
  b 
)    (0)

Definition at line 107 of file brew_db.h.

◆ atoi

#define atoi (   a)    ATOI(a)

Definition at line 67 of file brew_db.h.

◆ BREW_EPOCH_OFFSET

#define BREW_EPOCH_OFFSET   (315964800L)

Definition at line 62 of file brew_db.h.

◆ EOF

#define EOF   (-1) /* Declare stdio's EOF. */

Definition at line 20 of file brew_db.h.

◆ fflush

#define fflush (   a)    (0)

Definition at line 108 of file brew_db.h.

◆ FILE_MANAGER_CREATE

#define FILE_MANAGER_CREATE (   dbenv,
  mgr,
  ret 
)
Value:
do { \
AEEApplet *__app = (AEEApplet *)GETAPPINSTANCE(); \
int __ret; \
if ((__ret = ISHELL_CreateInstance(__app->m_pIShell, \
AEECLSID_FILEMGR, (void **)&(mgr))) == SUCCESS) \
ret = 0; \
else { \
__db_syserr(dbenv, __ret, "ISHELL_CreateInstance"); \
ret = __os_posix_err(__ret); \
} \
} while (0)

Definition at line 126 of file brew_db.h.

◆ FILE_MANAGER_ERR

#define FILE_MANAGER_ERR (   dbenv,
  mgr,
  name,
  op,
  ret 
)
Value:
do { \
int __ret; \
__ret = IFILEMGR_GetLastError(mgr); \
if ((name) == NULL) \
__db_syserr(dbenv, __ret, "%s", op); \
__db_syserr(dbenv, __ret, "%s: %s", name, op); \
(ret) = __os_posix_err(__ret); \
} while (0)

Definition at line 142 of file brew_db.h.

◆ free

#define free (   a)    FREE(a)

Definition at line 68 of file brew_db.h.

◆ malloc

#define malloc (   a)    MALLOC(a)

Definition at line 69 of file brew_db.h.

◆ memcmp

#define memcmp (   a,
  b,
  c 
)    MEMCMP(a, b, c)

Definition at line 70 of file brew_db.h.

◆ memcpy

#define memcpy   memmove

Definition at line 95 of file brew_db.h.

◆ memmove

#define memmove (   a,
  b,
  c 
)    MEMMOVE(a, b, c)

Definition at line 71 of file brew_db.h.

◆ memset

#define memset (   a,
  b,
  c 
)    MEMSET(a, b, c)

Definition at line 72 of file brew_db.h.

◆ realloc

#define realloc (   a,
  b 
)    REALLOC(a, b)

Definition at line 73 of file brew_db.h.

◆ snprintf

#define snprintf   SNPRINTF

Definition at line 74 of file brew_db.h.

◆ sprintf

#define sprintf   SPRINTF

Definition at line 75 of file brew_db.h.

◆ stderr

#define stderr   ((IFile *)1) /* Flag to call DBGPRINTF. */

Definition at line 21 of file brew_db.h.

◆ stdout

#define stdout   ((IFile *)1)

Definition at line 22 of file brew_db.h.

◆ strcat

#define strcat (   a,
  b 
)    STRCAT(a, b)

Definition at line 76 of file brew_db.h.

◆ strchr

#define strchr (   a,
  b 
)    STRCHR(a, b)

Definition at line 77 of file brew_db.h.

◆ strcmp

#define strcmp (   a,
  b 
)    STRCMP(a, b)

Definition at line 78 of file brew_db.h.

◆ strcpy

#define strcpy (   a,
  b 
)    STRCPY(a, b)

Definition at line 79 of file brew_db.h.

◆ strdup

#define strdup (   a)    STRDUP(a)

Definition at line 80 of file brew_db.h.

◆ strlen

#define strlen (   a)    STRLEN(a)

Definition at line 81 of file brew_db.h.

◆ strncmp

#define strncmp (   a,
  b,
  c 
)    STRNCMP(a, b, c)

Definition at line 82 of file brew_db.h.

◆ strncpy

#define strncpy (   a,
  b,
  c 
)    STRNCPY(a, b, c)

Definition at line 83 of file brew_db.h.

◆ strrchr

#define strrchr (   a,
  b 
)    STRRCHR(a, b)

Definition at line 84 of file brew_db.h.

◆ strtoul

#define strtoul (   a,
  b,
  c 
)    STRTOUL(a, b, c)

Definition at line 85 of file brew_db.h.

◆ vsnprintf

#define vsnprintf (   a,
  b,
  c,
  d 
)    VSNPRINTF(a, b, c, d)

Definition at line 86 of file brew_db.h.

Function Documentation

◆ __db_Cfclose()

int __db_Cfclose ( FILE )

◆ __db_Cfgetc()

int __db_Cfgetc ( FILE )

◆ __db_Cfgets()

char* __db_Cfgets ( char *  ,
int  ,
FILE  
)

◆ __db_Cfopen()

FILE* __db_Cfopen ( const char *  ,
const char *   
)

◆ __db_Cfwrite()

size_t __db_Cfwrite ( const void *  ,
size_t  ,
size_t  ,
FILE  
)

◆ __db_Cgetcwd()

char* __db_Cgetcwd ( char *  ,
size_t   
)

◆ __db_Clocaltime()

struct tm* __db_Clocaltime ( const time_t )

◆ __db_Ctime()

time_t __db_Ctime ( time_t )
NULL
#define NULL
Definition: defines.h:250
name
Definition: tar.h:112
GETAPPINSTANCE
#define GETAPPINSTANCE()
Definition: brew_posix.h:45
__db_syserr
void __db_syserr(ENV *env, int error, const char *fmt, va_alist) const
Definition: db_err.c:356
SUCCESS
#define SUCCESS
Definition: brew_posix.h:77
ISHELL_CreateInstance
#define ISHELL_CreateInstance(a, b, c)
Definition: brew_posix.h:68
__os_posix_err
int __os_posix_err(int error)
Definition: os_errno.c:125
IFILEMGR_GetLastError
#define IFILEMGR_GetLastError(a)
Definition: brew_posix.h:52
AEEApplet
Definition: brew_posix.h:18
AEECLSID_FILEMGR
#define AEECLSID_FILEMGR
Definition: brew_posix.h:39
dbenv
DB_ENV * dbenv
Definition: load_main.c:18