mail-index.c revision 3c24d47ad5ff02ea00684233bef314ef2eefda4a
2605N/A#include "file-lock.h"
2605N/A#include "mmap-util.h"
2605N/A#include "read-full.h"
2605N/A#include "write-full.h"
2605N/A#include "mail-index-private.h"
2605N/A#include "mail-transaction-log.h"
#ifndef WORDS_BIGENDIAN
(int)sizeof(keywords_mask_t));
unsigned int records_count;
if (ret > 0)
if (ret < 0) {
if (ret == 0) {
int i, ret;
for (i = 0; i < MAIL_INDEX_ESTALE_RETRY_COUNT; i++) {
if (ret != 0)
return ret;
if (ret <= 0) {
if (ret == 0) {
int ret;
return ret;
if (ret < 0) {
if (ret == 0)
struct mail_index_map *
return map;
return mem_map;
unsigned int lock_id;
int ret;
*lock_id_r = 0;
if (ret <= 0)
return ret;
if (ret == 0) {
*lock_id_r = 0;
return ret;
const char *path;
int fd;
return fd;
const char *path;
int ret;
if (ret != 0) {
return ret;
/* create it fully in index.tmp first */
if (ret == 0) {
if (ret < 0) {
return ret;
#ifndef WORDS_BIGENDIAN
unsigned int lock_id = 0;
int ret;
if (ret > 0)
else if (ret == 0) {
} else if (ret < 0)
if (lock_id != 0)
int i = 0, ret;
if (ret <= 0)
if (ret == 0) {
if (ret <= 0)
return ret;
ret = 0;
if (ret > 0)
else if (ret == 0) {
if (ret == 0) {
if (lock_id != 0)
if (ret == 0) {
return ret;
const char *function)
const char *filepath,
const char *function)
return MAIL_INDEX_ERROR_DISKSPACE;
return MAIL_INDEX_ERROR_INTERNAL;
return MAIL_INDEX_ERROR_NONE;