mail-custom-flags.c revision 2968c03063b4c0203a4ae6c8d4493ac4377460ff
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen/* Copyright (C) 2002 Timo Sirainen */
c0a708fa3f7b8f4fbca32052da5faf7a0125189dTimo Sirainen/* Header is simply a counter which is increased every time the file is
struct _MailCustomFlags {
char *filepath;
int fd;
int lock_type;
void *mmap_base;
const char *function)
return FALSE;
return TRUE;
int failed;
return FALSE;
if (pos < 0) {
return FALSE;
return !failed;
unsigned int num;
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++) {
data++;
data++;
num = 0;
data++;
data++;
num);
return TRUE;
return TRUE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
return TRUE;
return FALSE;
return FALSE;
return TRUE;
const char *path;
int fd;
return FALSE;
return FALSE;
return TRUE;
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++)
return TRUE;
const char *buf;
return FALSE;
if (pos < 0)
return FALSE;
buf++;
len--;
return FALSE;
return TRUE;
unsigned int num;
data++;
num = 0;
data++;
data++;
return FALSE;
return TRUE;
return FALSE;
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++) {
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++) {
used_flags = 0;
return used_flags;
int index_hint)
int i, first_empty;
return index_hint;
for (i = 0; i < MAIL_CUSTOM_FLAGS_COUNT; i++) {
return first_empty;
int idx;
return FALSE;
return TRUE;