File: ilist.h

package info (click to toggle)
cowdancer 0.73
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 752 kB
  • ctags: 269
  • sloc: ansic: 3,822; sh: 481; makefile: 191; cpp: 6
file content (26 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* 
   define ilist common struct, shared between cowdancer, and cow-shell.
 */

#define ILISTREVISION 2
/* 'COWD' in the host-order */
#define ILISTSIG 0x4f434457

struct ilist_header
{
  int ilistsig;
  int revision;
  int ilist_struct_size;
  int dummy;
};

struct ilist_struct
{
  dev_t dev;
  ino_t inode;
};

void ilist_outofmemory(const char* msg);
int ilistcreate(const char* ilistpath, const char* findcommandline);
int compare_ilist (const void *a, const void *b);
extern const char* ilist_PRGNAME;