2
* $Id: arjtypes.h,v 1.1.1.1 2002/03/28 00:01:28 andrew_belov Exp $
3
* ---------------------------------------------------------------------------
4
* OS-independent types are to be declared here.
8
#ifndef ARJTYPES_INCLUDED
9
#define ARJTYPES_INCLUDED
14
typedef char FAR FMSG;
15
typedef FMSG * FAR FMSGP;
16
typedef FMSG * FAR NMSGP;
23
/* File access mode record */
27
int dos; /* For internals of ARJ (-hb, etc.) */
31
/* Timestamp record */
35
unsigned long dos; /* Local */
36
unsigned long unixtime; /* GMT */
39
/* A handy macro for verifying the validity of timestamps */
41
#define ts_valid(t) (t.dos!=0L)
45
void fm_store(struct file_mode *dest, int host_os, int mode);
46
unsigned int fm_native(struct file_mode *fm, int host_os);
47
void ts_store(struct timestamp *dest, int host_os, unsigned long value);
48
unsigned long ts_native(struct timestamp *ts, int host_os);
49
int ts_cmp(struct timestamp *ts1, struct timestamp *ts2);
50
void make_timestamp(struct timestamp *dest, int y, int m, int d, int hh, int mm, int ss);
51
void timestamp_to_str(char *str, struct timestamp *ts);