kes Integrate client-only fixes for bsys (initgroups) and conio from
Sergey Svishchev <svs@ropnet.ru> for the AIX platform.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5149
91ce42f0-d328-0410-95d8-
f526ca767f89
General:
12Jul07
+kes Fix client-only build.
+kes Integrate client-only fixes for bsys (initgroups) and conio from
+ Sergey Svishchev <svs@ropnet.ru> for the AIX platform.
kes Make arguments to get_scratch_volume() in same order as other
such calls.
kes Rework the prune_volumes() subroutine so that after purging and
#define DB_CLIENT_FILENAME "client.db"
#define DB_FILESET_FILENAME "fileset.db"
+dbid_list::dbid_list()
+{
+ memset(this, 0, sizeof(dbid_list));
+ max_ids = 1000;
+ DBId = (DBId_t *)malloc(max_ids * sizeof(DBId_t));
+ num_ids = num_seen = tot_ids = 0;
+ PurgedFiles = NULL;
+}
+
+dbid_list::~dbid_list()
+{
+ free(DBId);
+}
+
static POOLMEM *make_filename(B_DB *mdb, char *name)
{
char sep;
* -----------------------------------------------------------------------
*/
-int db_create_file_attributes_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
+bool db_create_file_attributes_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
{
/* *****FIXME***** implement this */
- return 1;
+ return true;
}
int db_create_file_item(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
int db_create_counter_record(JCR *jcr, B_DB *mdb, COUNTER_DBR *cr)
{ return 0; }
+bool db_write_batch_file_records(JCR *jcr) { return false; }
+bool my_batch_start(JCR *jcr, B_DB *mdb) { return false; }
+bool my_batch_end(JCR *jcr, B_DB *mdb, const char *error) { return false; }
+bool my_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar) { return false; }
+
#endif /* HAVE_BACULA_DB */
extern "C" char *tgoto (const char *, int, int);
#elif HAVE_HPUX_OS
#include <term.h>
+#elif HAVE_AIX_OS
+#include <curses.h>
+#include <term.h>
#elif defined (__digital__) && defined (__unix__)
extern "C" int tgetent(void *, const char *);
extern "C" int tgetnum(const char *);
/* From termios library */
-#ifdef HAVE_HPUX_OS
+#if defined(HAVE_HPUX_OS) || defined(HAVE_AIX_OS)
static char *BC;
static char *UP;
#else
#include <grp.h>
#endif
+#ifdef HAVE_AIX_OS
+extern "C" int initgroups(char *,int);
+#endif
+
+
static pthread_mutex_t timer_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t timer = PTHREAD_COND_INITIALIZER;
Technical notes on version 2.1
General:
+Release 2.1.26 beta
12Jul07
+kes Fix client-only build.
+kes Integrate client-only fixes for bsys (initgroups) and conio from
+ Sergey Svishchev <svs@ropnet.ru> for the AIX platform.
kes Make arguments to get_scratch_volume() in same order as other
such calls.
kes Rework the prune_volumes() subroutine so that after purging and