void InitWinAPIWrapper();
#define OSDependentInit() InitWinAPIWrapper()
+#define tape_open win32_tape_open
+#define tape_ioctl win32_tape_ioctl
+#define tape_read win32_tape_read
+#define tape_write win32_tape_write
+#define tape_close win32_tape_close
+
#define sbrk(x) 0
#define CATS_IMP_EXP
#define OSDependentInit()
-#define tape_open open
-#define tape_ioctl ioctl
+#define tape_open ::open
+#define tape_ioctl ::ioctl
#define tape_read ::read
#define tape_write ::write
#define tape_close ::close
block_num = file = 0;
file_size = 0;
file_addr = 0;
- if (is_fifo() || is_prog()) {
+ if (is_fifo()) {
return true;
}
if (!is_tape()) {
}
switch (dev_type) {
+ case B_VTL_DEV:
case B_TAPE_DEV:
unlock_door();
tape_close(m_fd);
Dmsg1(100, "truncate %s\n", print_name());
switch (dev_type) {
+ case B_VTL_DEV:
case B_TAPE_DEV:
/* maybe we should rewind and write and eof ???? */
return true; /* we don't really truncate tapes */
B_TAPE_DEV,
B_DVD_DEV,
B_FIFO_DEV,
- B_PROG_DEV
+ B_VTL_DEV
};
/* Generic status bits returned from status_dev() */
int is_file() const { return dev_type == B_FILE_DEV; }
int is_fifo() const { return dev_type == B_FIFO_DEV; }
int is_dvd() const { return dev_type == B_DVD_DEV; }
- int is_prog() const { return dev_type == B_PROG_DEV; }
+ int is_vtl() const { return dev_type == B_VTL_DEV; }
int is_open() const { return m_fd >= 0; }
int is_offline() const { return state & ST_OFFLINE; }
int is_labeled() const { return state & ST_LABEL; }
{"tape", B_TAPE_DEV},
{"dvd", B_DVD_DEV},
{"fifo", B_FIFO_DEV},
+ {"vtl", B_VTL_DEV},
{NULL, 0}
};
#undef VERSION
#define VERSION "2.3.12"
-#define BDATE "06 March 2008"
-#define LSMDATE "06Mar08"
+#define BDATE "08 March 2008"
+#define LSMDATE "08Mar08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
Technical notes on version 2.3
General:
+08Mar08
+kes Start implementation of VTL code
+kes Fix Win32 build after adding new cats subroutine.
06Mar08
kes First cut at Duplicate Job implementation.
05Mar08