-/* $Id: entropy_disk.c,v 1.3 2006/09/07 07:25:53 mmondor Exp $ */
+/* $Id: entropy_disk.c,v 1.4 2006/09/07 08:08:13 mmondor Exp $ */
/*
* Copyright (c) 2006, Matthew Mondor
typedef struct drive_entry {
SLIST_ENTRY(drive_entry) chain;
- char *name;
- off_t max, pos;
- int fd;
- int dir, dircnt;
+ char *name;
+ off_t max, pos;
+ int fd;
+ int dir, dircnt;
} disk_t;
SLIST_HEAD(slisthead, drive_entry);
-int main(int, char **);
+int main(int, char **);
-static int prng_init(void);
-static void prng_reseed(void);
-static void prng_close(void);
-static void signal_handler(int);
-static int detach(const char *);
-static void disk_open(const char *);
-static int disks_open(void);
-static void disks_close(void);
-static void *buffer_alloc(size_t);
-static void buffer_free(void *, size_t);
+static int prng_init(void);
+static void prng_reseed(void);
+static void prng_close(void);
+static void signal_handler(int);
+static int detach(const char *);
+static void disk_open(const char *);
+static int disks_open(void);
+static void disks_close(void);
+static void *buffer_alloc(size_t);
+static void buffer_free(void *, size_t);