File src/iroffer_statefile.c

* iroffer by David Johnson (PMG) * Copyright (C) 1998-2005 David Johnson * * By using this file, you agree to the terms and conditions set * forth in the GNU General Public License. More information is * available in the LICENSE file. * * If you received this file without documentation, it can be * downloaded from http://iroffer.org/ * * @(#) iroffer_statefile.c 1.23@(#) * pmg@wellington.i202.centerclick.org|src/iroffer_statefile.c|20050313183435|62320 *


Included Files

include the headers


Preprocessor definitions

#define _LONGLONG 1

#define STATEFILE_MAGIC

#define STATEFILE_OLD_VERSION 1U

#define STATEFILE_VERSION 2U


Typedef statefile_tag_t

* ****** FILE FORMAT ****** * * Word size: 4 Bytes * Byte order: Network Order * * == OVERALL == * Word 0: Magic * Word 1: Version * Word 2..n-4: TLV Data * Word n-3..n: md5sum * * == TLV Format == * Word 0: Tag * Word 1: Length in Bytes (Tag+Length+Value, but not Padding) * Word 2..n-1: Value * Word n: Value + Zero Padding * * Some tags are compound, some are not. Compound tags contain TLV * data of their own. *

typedef enum {...} statefile_tag_t

enum  
   {  
      STATEFILE_TAG_IROFFER_VERSION;  
      STATEFILE_TAG_TIMESTAMP;  
      STATEFILE_TAG_XFR_RECORD;  
      STATEFILE_TAG_SENT_RECORD;  
      STATEFILE_TAG_TOTAL_SENT;  
      STATEFILE_TAG_TOTAL_UPTIME;  
      STATEFILE_TAG_LAST_LOGROTATE;  
      STATEFILE_TAG_IGNORE; compound
      STATEFILE_TAG_IGNORE_FLAGS;  
      STATEFILE_TAG_IGNORE_BUCKET;  
      STATEFILE_TAG_IGNORE_LASTCONTACT;  
      STATEFILE_TAG_IGNORE_HOSTMASK;  
      STATEFILE_TAG_MSGLOG; compound
      STATEFILE_TAG_MSGLOG_WHEN;  
      STATEFILE_TAG_MSGLOG_HOSTMASK;  
      STATEFILE_TAG_MSGLOG_MESSAGE;  
      STATEFILE_TAG_XDCCS; compound
      STATEFILE_TAG_XDCCS_FILE;  
      STATEFILE_TAG_XDCCS_DESC;  
      STATEFILE_TAG_XDCCS_NOTE;  
      STATEFILE_TAG_XDCCS_GETS;  
      STATEFILE_TAG_XDCCS_MINSPEED;  
      STATEFILE_TAG_XDCCS_MAXSPEED;  
      STATEFILE_TAG_XDCCS_MD5SUM_INFO;  
      STATEFILE_TAG_XDCCS_GROUP;  
      STATEFILE_TAG_XDCCS_GROUP_DESC;  
      STATEFILE_TAG_XDCCS_LOCK;  
      STATEFILE_TAG_XDCCS_DLIMIT_MAX;  
      STATEFILE_TAG_XDCCS_DLIMIT_USED;  
      STATEFILE_TAG_XDCCS_DLIMIT_DESC;  
      STATEFILE_TAG_XDCCS_CRC32;  
      STATEFILE_TAG_XDCCS_TRIGGER;  
      STATEFILE_TAG_XDCCS_XTIME;  
      STATEFILE_TAG_XDCCS_COLOR;  
      STATEFILE_TAG_TLIMIT_DAILY_USED;  
      STATEFILE_TAG_TLIMIT_DAILY_ENDS;  
      STATEFILE_TAG_TLIMIT_WEEKLY_USED;  
      STATEFILE_TAG_TLIMIT_WEEKLY_ENDS;  
      STATEFILE_TAG_TLIMIT_MONTHLY_USED;  
      STATEFILE_TAG_TLIMIT_MONTHLY_ENDS;  
      STATEFILE_TAG_QUEUE;  
      STATEFILE_TAG_QUEUE_PACK;  
      STATEFILE_TAG_QUEUE_NICK;  
      STATEFILE_TAG_QUEUE_HOST;  
      STATEFILE_TAG_QUEUE_TIME;  
      STATEFILE_TAG_QUEUE_NET;  
   }  

Typedef statefile_hdr_t

typedef struct {...} statefile_hdr_t
struct  
   {  
      statefile_tag_t tag;  
      ir_uint32 length; includes header
   }  

Typedef statefile_uint64_t

typedef struct {...} statefile_uint64_t
struct  
   {  
      ir_uint32 upper;  
      ir_uint32 lower;  
   }  

Typedef statefile_item_generic_int_t

typedef struct {...} statefile_item_generic_int_t
struct  
   {  
      statefile_hdr_t hdr;  
      ir_int32 g_int;  
   }  

Typedef statefile_item_generic_uint_t

typedef struct {...} statefile_item_generic_uint_t
struct  
   {  
      statefile_hdr_t hdr;  
      ir_uint32 g_uint;  
   }  

Typedef statefile_item_generic_time_t

typedef struct {...} statefile_item_generic_time_t
See: Typedef statefile_item_generic_uint_t

Typedef statefile_item_generic_llint_t

typedef struct {...} statefile_item_generic_llint_t
struct  
   {  
      statefile_hdr_t hdr;  
      statefile_uint64_t g_llint;  
   }  

Typedef statefile_item_generic_float_t

typedef struct {...} statefile_item_generic_float_t
struct  
   {  
      statefile_hdr_t hdr;  
      float g_float;  
   }  

Typedef statefile_item_md5sum_info32_t

typedef struct {...} statefile_item_md5sum_info32_t
struct  
   {  
      statefile_hdr_t hdr;  
      statefile_uint64_t st_size;  
      statefile_uint64_t st_dev;  
      statefile_uint64_t st_ino;  
      ir_int32 mtime;  
      MD5Digest md5sum;  
   }  

Typedef statefile_item_md5sum_info64_t

typedef struct {...} statefile_item_md5sum_info64_t
struct  
   {  
      statefile_hdr_t hdr;  
      statefile_uint64_t st_size;  
      statefile_uint64_t st_dev;  
      statefile_uint64_t st_ino;  
      statefile_uint64_t mtime;  
      MD5Digest md5sum;  
   }  

Global Function read_statefile()

unsigned int read_statefile ( void )
Prototyped in: src/iroffer_headers.h
Calls: MD5Final() src/plumb_md5.c
  MD5Init() src/plumb_md5.c
  MD5Update() src/plumb_md5.c
  backup_statefile() src/dinoex_jobs.c
  getfilename() src/dinoex_utilities.c
  getuptime() src/iroffer_utilities.c
  ioutput() src/iroffer_utilities.c
  irlist_add2() src/iroffer_utilities.c
  irlist_delete() src/iroffer_utilities.c
  irlist_size() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  mystrdup2() src/dinoex_utilities.c
  number_of_pack() src/dinoex_misc.c
  outerror() src/iroffer_utilities.c
  read_statefile_bad_tag() src/iroffer_statefile.c
  read_statefile_float() src/iroffer_statefile.c
  read_statefile_float_set() src/iroffer_statefile.c
  read_statefile_incomplete_tag() src/iroffer_statefile.c
  read_statefile_int() src/iroffer_statefile.c
  read_statefile_item() src/iroffer_statefile.c
  read_statefile_llint() src/iroffer_statefile.c
  read_statefile_long() src/iroffer_statefile.c
  read_statefile_md5info() src/iroffer_statefile.c
  read_statefile_queue() src/iroffer_statefile.c
  read_statefile_string() src/iroffer_statefile.c
  read_statefile_time() src/iroffer_statefile.c
  read_statefile_unknown_tag() src/iroffer_statefile.c
  updatecontext_f() src/iroffer_utilities.c
  __bswap32(), __error(), close(), fstat(), memcmp(), memset(), open(), read(), snprintf(), stat(), strcmp(), strerror()
Called by: startupiroffer() src/iroffer_misc.c
References Variables: gdata src/dinoex_main.c

Global Function write_statefile()

void write_statefile ( void )
Prototyped in: src/iroffer_headers.h
Calls: create_statefile_hdr() src/iroffer_statefile.c
  get_time_in_ms() src/dinoex_utilities.c
  ioutput() src/iroffer_utilities.c
  ir_moutput_get_md5sum() src/iroffer_statefile.c
  ir_moutput_init() src/iroffer_statefile.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  mystrsuffix2() src/dinoex_utilities.c
  outerror() src/iroffer_utilities.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile_dinoex() src/iroffer_statefile.c
  write_statefile_direct() src/iroffer_statefile.c
  write_statefile_item() src/iroffer_statefile.c
  write_statefile_raw() src/iroffer_statefile.c
  __error(), bzero(), close(), link(), open(), rename(), snprintf(), strerror(), unlink()
Called by: a_bann_hostmask() src/dinoex_admin.c
  a_bannnick() src/dinoex_admin.c
  a_ignore() src/dinoex_admin.c
  add_msg_statefile() src/dinoex_user.c
  check_ignore() src/dinoex_irc.c
  isrotatelog() src/iroffer_misc.c
  mainloop() src/iroffer_main.c
  shutdowniroffer() src/iroffer_misc.c
  startupiroffer() src/iroffer_misc.c
  t_check_duplicateip() src/dinoex_transfer.c
  t_checkminspeed() src/iroffer_transfer.c
  u_msgdel() src/iroffer_admin.c
  u_unignore() src/iroffer_admin.c
  write_files() src/dinoex_jobs.c
References Variables: gdata src/dinoex_main.c

Local Function create_statefile_float()

static void create_statefile_float ( statefile_item_generic_float_t* g_float, statefile_tag_t tag, float val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_hdr() src/iroffer_statefile.c
Called by: prepare_statefile_float() src/iroffer_statefile.c
  write_statefile_float() src/iroffer_statefile.c

Local Function create_statefile_hdr()

static void create_statefile_hdr ( statefile_hdr_t* hdr, statefile_tag_t tag, size_t len )
Included from: src/dinoex_statefile.c
Calls: __bswap32()
Called by: create_statefile_float() src/iroffer_statefile.c
  create_statefile_int() src/iroffer_statefile.c
  prepare_statefile_string() src/iroffer_statefile.c
  start_statefile_hdr() src/iroffer_statefile.c
  write_statefile() src/iroffer_statefile.c
  write_statefile_llint() src/iroffer_statefile.c

Local Function create_statefile_int()

static void create_statefile_int ( statefile_item_generic_uint_t* g_int, statefile_tag_t tag, ir_uint32 val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_hdr() src/iroffer_statefile.c
  __bswap32()
Called by: prepare_statefile_int() src/iroffer_statefile.c
  write_statefile_int() src/iroffer_statefile.c

Local Function fix_time64()

static time_t fix_time64 ( statefile_uint64_t* val64 )
Included from: src/dinoex_statefile.c
Calls: __bswap32()
Called by: read_statefile_md5info() src/iroffer_statefile.c
  read_statefile_time() src/iroffer_statefile.c

Local Function fix_uint64()

static void fix_uint64 ( statefile_uint64_t* val64, ir_int64 val )
Included from: src/dinoex_statefile.c
Calls: __bswap32()
Called by: write_statefile_llint() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c

Local Function ir_moutput_get_md5sum()

static void ir_moutput_get_md5sum ( ir_moutput_t* bout, MD5Digest digest )
Included from: src/dinoex_statefile.c
Calls: MD5Final() src/plumb_md5.c
  mydelete2() src/iroffer_utilities.c
Called by: write_statefile() src/iroffer_statefile.c

Local Function ir_moutput_init()

static void ir_moutput_init ( ir_moutput_t* bout, int fd )
Included from: src/dinoex_statefile.c
Calls: MD5Init() src/plumb_md5.c
  mymalloc2() src/iroffer_utilities.c
Called by: write_statefile() src/iroffer_statefile.c

Local Function prepare_statefile_float()

static unsigned char* prepare_statefile_float ( unsigned char* next, statefile_tag_t tag, float val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_float() src/iroffer_statefile.c
Called by: write_statefile_xdccs() src/iroffer_statefile.c

Local Function prepare_statefile_int()

static unsigned char* prepare_statefile_int ( unsigned char* next, statefile_tag_t tag, ir_uint32 val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_int() src/iroffer_statefile.c
Called by: write_statefile_ignore() src/iroffer_statefile.c
  write_statefile_msglog() src/iroffer_statefile.c
  write_statefile_queue() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c

Local Function prepare_statefile_string()

static unsigned char* prepare_statefile_string ( unsigned char* next, statefile_tag_t tag, const char* str )
Included from: src/dinoex_statefile.c
Calls: create_statefile_hdr() src/iroffer_statefile.c
  strcpy(), strlen()
Called by: write_statefile_ignore() src/iroffer_statefile.c
  write_statefile_msglog() src/iroffer_statefile.c
  write_statefile_queue() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c

Local Function read_statefile_bad_tag()

static void read_statefile_bad_tag ( statefile_hdr_t* hdr, const char* tag )
Included from: src/dinoex_statefile.c
Calls: outerror() src/iroffer_utilities.c
Called by: read_statefile() src/iroffer_statefile.c
  read_statefile_float() src/iroffer_statefile.c
  read_statefile_float_set() src/iroffer_statefile.c
  read_statefile_int() src/iroffer_statefile.c
  read_statefile_llint() src/iroffer_statefile.c
  read_statefile_long() src/iroffer_statefile.c
  read_statefile_md5info() src/iroffer_statefile.c
  read_statefile_string() src/iroffer_statefile.c
  read_statefile_time() src/iroffer_statefile.c

Local Function read_statefile_float()

static void read_statefile_float ( statefile_hdr_t* hdr, const char* tag, float* pval, const char* debug )
Included from: src/dinoex_statefile.c
Calls: ioutput() src/iroffer_utilities.c
  read_statefile_bad_tag() src/iroffer_statefile.c
Called by: read_statefile() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function read_statefile_float_set()

static void read_statefile_float_set ( statefile_hdr_t* hdr, const char* tag, float* pval )
Included from: src/dinoex_statefile.c
Calls: read_statefile_bad_tag() src/iroffer_statefile.c
Called by: read_statefile() src/iroffer_statefile.c

Local Function read_statefile_incomplete_tag()

static void read_statefile_incomplete_tag ( const char* tag )
Included from: src/dinoex_statefile.c
Calls: outerror() src/iroffer_utilities.c
Called by: read_statefile() src/iroffer_statefile.c

Local Function read_statefile_int()

static void read_statefile_int ( statefile_hdr_t* hdr, const char* tag, unsigned int* pval )
Included from: src/dinoex_statefile.c
Calls: read_statefile_bad_tag() src/iroffer_statefile.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c
  read_statefile_queue() src/iroffer_statefile.c

Local Function read_statefile_item()

static statefile_hdr_t* read_statefile_item ( ir_uint32** buffer, ir_uint32* buffer_len )
Calls: outerror() src/iroffer_utilities.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c

Local Function read_statefile_llint()

static void read_statefile_llint ( statefile_hdr_t* hdr, const char* tag, ir_int64* pval, const char* debug )
Included from: src/dinoex_statefile.c
Calls: ioutput() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  read_statefile_bad_tag() src/iroffer_statefile.c
  sizestr() src/dinoex_utilities.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function read_statefile_long()

static void read_statefile_long ( statefile_hdr_t* hdr, const char* tag, long* pval )
Included from: src/dinoex_statefile.c
Calls: read_statefile_bad_tag() src/iroffer_statefile.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c

Local Function read_statefile_md5info()

static void read_statefile_md5info ( statefile_hdr_t* hdr, const char* tag, xdcc* xd )
Included from: src/dinoex_statefile.c
Calls: fix_time64() src/iroffer_statefile.c
  read_statefile_bad_tag() src/iroffer_statefile.c
  __bswap32(), memcpy()
Called by: read_statefile() src/iroffer_statefile.c

Local Function read_statefile_queue()

static void read_statefile_queue ( statefile_hdr_t* hdr )
Included from: src/dinoex_statefile.c
Calls: get_xdcc_pack() src/dinoex_misc.c
  irlist_add2() src/iroffer_utilities.c
  irlist_delete() src/iroffer_utilities.c
  irlist_size() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  outerror() src/iroffer_utilities.c
  read_statefile_int() src/iroffer_statefile.c
  read_statefile_string() src/iroffer_statefile.c
  read_statefile_time() src/iroffer_statefile.c
  read_statefile_unknown_tag() src/iroffer_statefile.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function read_statefile_string()

static void read_statefile_string ( statefile_hdr_t* hdr, const char* tag, char** pval )
Included from: src/dinoex_statefile.c
Calls: mystrdup2() src/dinoex_utilities.c
  read_statefile_bad_tag() src/iroffer_statefile.c
Called by: read_statefile() src/iroffer_statefile.c
  read_statefile_queue() src/iroffer_statefile.c

Local Function read_statefile_time()

static void read_statefile_time ( statefile_hdr_t* hdr, const char* tag, time_t* pval, const char* debug )
Included from: src/dinoex_statefile.c
Calls: fix_time64() src/iroffer_statefile.c
  getdatestr() src/iroffer_utilities.c
  ioutput() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  read_statefile_bad_tag() src/iroffer_statefile.c
  __bswap32()
Called by: read_statefile() src/iroffer_statefile.c
  read_statefile_queue() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function read_statefile_unknown_tag()

static void read_statefile_unknown_tag ( statefile_hdr_t* hdr, const char* tag )
Included from: src/dinoex_statefile.c
Calls: outerror() src/iroffer_utilities.c
Called by: read_statefile() src/iroffer_statefile.c
  read_statefile_queue() src/iroffer_statefile.c

Local Function start_statefile_hdr()

static unsigned char* start_statefile_hdr ( unsigned char* next, statefile_tag_t tag, size_t len )
Included from: src/dinoex_statefile.c
Calls: create_statefile_hdr() src/iroffer_statefile.c
Called by: write_statefile_ignore() src/iroffer_statefile.c
  write_statefile_msglog() src/iroffer_statefile.c
  write_statefile_queue() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c

Local Function write_statefile_dinoex()

static void write_statefile_dinoex ( ir_moutput_t* bout )
Included from: src/dinoex_statefile.c
Calls: write_statefile_globals() src/iroffer_statefile.c
  write_statefile_ignore() src/iroffer_statefile.c
  write_statefile_llint() src/iroffer_statefile.c
  write_statefile_msglog() src/iroffer_statefile.c
  write_statefile_queue() src/iroffer_statefile.c
  write_statefile_time() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c
Called by: write_statefile() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function write_statefile_direct()

static void write_statefile_direct ( ir_moutput_t* bout, ir_uint32 val )
Included from: src/dinoex_statefile.c
Calls: write_statefile_md5() src/iroffer_statefile.c
  __bswap32()
Called by: write_statefile() src/iroffer_statefile.c

Local Function write_statefile_float()

static void write_statefile_float ( ir_moutput_t* bout, statefile_tag_t tag, float val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_float() src/iroffer_statefile.c
  write_statefile_item() src/iroffer_statefile.c
Called by: write_statefile_globals() src/iroffer_statefile.c

Local Function write_statefile_globals()

static void write_statefile_globals ( ir_moutput_t* bout )
Included from: src/dinoex_statefile.c
Calls: write_statefile_float() src/iroffer_statefile.c
  write_statefile_int() src/iroffer_statefile.c
  write_statefile_llint() src/iroffer_statefile.c
  write_statefile_time() src/iroffer_statefile.c
Called by: write_statefile_dinoex() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function write_statefile_ignore()

static void write_statefile_ignore ( ir_moutput_t* bout )
Included from: src/dinoex_statefile.c
Calls: irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  prepare_statefile_int() src/iroffer_statefile.c
  prepare_statefile_string() src/iroffer_statefile.c
  start_statefile_hdr() src/iroffer_statefile.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile_item() src/iroffer_statefile.c
  strlen()
Called by: write_statefile_dinoex() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function write_statefile_int()

static void write_statefile_int ( ir_moutput_t* bout, statefile_tag_t tag, ir_uint32 val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_int() src/iroffer_statefile.c
  write_statefile_item() src/iroffer_statefile.c
Called by: write_statefile_globals() src/iroffer_statefile.c
  write_statefile_time() src/iroffer_statefile.c

Local Function write_statefile_item()

static void write_statefile_item ( ir_moutput_t* bout, void* item )
Included from: src/dinoex_statefile.c
Calls: write_statefile_md5() src/iroffer_statefile.c
  __bswap32()
Called by: write_statefile() src/iroffer_statefile.c
  write_statefile_float() src/iroffer_statefile.c
  write_statefile_ignore() src/iroffer_statefile.c
  write_statefile_int() src/iroffer_statefile.c
  write_statefile_llint() src/iroffer_statefile.c
  write_statefile_msglog() src/iroffer_statefile.c
  write_statefile_queue() src/iroffer_statefile.c
  write_statefile_xdccs() src/iroffer_statefile.c

Local Function write_statefile_llint()

static void write_statefile_llint ( ir_moutput_t* bout, statefile_tag_t tag, ir_int64 val )
Included from: src/dinoex_statefile.c
Calls: create_statefile_hdr() src/iroffer_statefile.c
  fix_uint64() src/iroffer_statefile.c
  write_statefile_item() src/iroffer_statefile.c
Called by: write_statefile_dinoex() src/iroffer_statefile.c
  write_statefile_globals() src/iroffer_statefile.c

Local Function write_statefile_md5()

static void write_statefile_md5 ( ir_moutput_t* bout, const void* buf, size_t nbytes )
Included from: src/dinoex_statefile.c
Calls: MD5Update() src/plumb_md5.c
  write_statefile_raw() src/iroffer_statefile.c
Called by: write_statefile_direct() src/iroffer_statefile.c
  write_statefile_item() src/iroffer_statefile.c

Local Function write_statefile_msglog()

static void write_statefile_msglog ( ir_moutput_t* bout )
Included from: src/dinoex_statefile.c
Calls: irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  prepare_statefile_int() src/iroffer_statefile.c
  prepare_statefile_string() src/iroffer_statefile.c
  start_statefile_hdr() src/iroffer_statefile.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile_item() src/iroffer_statefile.c
  strlen()
Called by: write_statefile_dinoex() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c

Local Function write_statefile_queue()

static void write_statefile_queue ( ir_moutput_t* bout, irlist_t* list )
Included from: src/dinoex_statefile.c
Calls: irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  number_of_pack() src/dinoex_misc.c
  prepare_statefile_int() src/iroffer_statefile.c
  prepare_statefile_string() src/iroffer_statefile.c
  start_statefile_hdr() src/iroffer_statefile.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile_item() src/iroffer_statefile.c
  strlen()
Called by: write_statefile_dinoex() src/iroffer_statefile.c

Local Function write_statefile_raw()

static void write_statefile_raw ( ir_moutput_t* bout, const void* buf, size_t nbytes )
Included from: src/dinoex_statefile.c
Calls: outerror() src/iroffer_utilities.c
  __error(), strerror(), write()
Called by: write_statefile() src/iroffer_statefile.c
  write_statefile_md5() src/iroffer_statefile.c

Local Function write_statefile_time()

static void write_statefile_time ( ir_moutput_t* bout, statefile_tag_t tag, time_t val )
Included from: src/dinoex_statefile.c
Calls: write_statefile_int() src/iroffer_statefile.c
Called by: write_statefile_dinoex() src/iroffer_statefile.c
  write_statefile_globals() src/iroffer_statefile.c

Local Function write_statefile_xdccs()

static void write_statefile_xdccs ( ir_moutput_t* bout )
Included from: src/dinoex_statefile.c
Calls: fix_uint64() src/iroffer_statefile.c
  getfilename() src/dinoex_utilities.c
  irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  prepare_statefile_float() src/iroffer_statefile.c
  prepare_statefile_int() src/iroffer_statefile.c
  prepare_statefile_string() src/iroffer_statefile.c
  start_statefile_hdr() src/iroffer_statefile.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile_item() src/iroffer_statefile.c
  __bswap32(), memcpy(), strcmp(), strlen()
Called by: write_statefile_dinoex() src/iroffer_statefile.c
References Variables: gdata src/dinoex_main.c