~ubuntu-branches/ubuntu/maverick/bacula/maverick

« back to all changes in this revision

Viewing changes to src/win32/compat/compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-01-10 04:57:41 UTC
  • mfrom: (3.1.4 lenny)
  • Revision ID: james.westby@ubuntu.com-20090110045741-s6k86vdrivghtfyd
Tags: 2.4.4-1ubuntu1
* Upload fixes LP #269251, LP: #308903 and LP: #293515
* debian/rules:
  - added bat_icon.png and bat.desktop for bacula-console-qt (LP: #314746)
  - added bacula-tray-monitor.xpm icon, fix Exec path in .desktop
* debian/bacula-traymonitor.install
  - remove bacula-tray-monitor.xpm, add bacula-tray-monitor.desktop
* Merge from debian unstable, remaining changes:
  * Store sd|fd|director passwords in debconf (LP: #222558)
    - added debian/bacula-common.templates
    - modified debian/bacula-common.postinst:
      + generate random passwords and store them in debconf
    - modified debian/bacula-[sd|fd|director-mysql|director-pgsql].postinst
      + read and set passwords from debconf
  * Daemons listen on all interfaces (LP: #286643)
  * Start daemons on installation
  * Build with generic XXX_*_XXX username, password and database name
    and replace it with dbconfig's settings in postinstall scripts
  * Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528)
  * debian/rules: Disable fortify source since it was causing
    bacula-director to segfault.
  * debian/control:
    - Added libdbi-perl and libdb-mysql-perl to depends for
      bacula-director-mysql
      due to new postinst configuration.
    - Cleaned up bacula-director-pgsql dependenices and recommends.
    - Made mysql the default director to install bacula-director-{mysql|pgsql}
      added database handling to postinstall scripts and templates, modifiied
      postinstall script's sed expressions.
    - Removed libwgtk-2.6-dev as a build dependency; as a result
      bacula-console-wx isn't built anymore.
    - Install gawk if not installed. (LP: #207527)
  * debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]:
    - New scripts for catalog backup. (CVE-2007-5626)
  * debian/bacula-console-wx:
    - Dropped since we are not building them anymore.
  * debian/bacula-director-common.bacula-director.init,
    debian/bacula-fd.init, debian/bacula-sd.init
    - Made more LSB specific.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
   Bacula® - The Network Backup Solution
3
3
 
4
 
   Copyright (C) 2004-2007 Free Software Foundation Europe e.V.
 
4
   Copyright (C) 2004-2008 Free Software Foundation Europe e.V.
5
5
 
6
6
   The main author of Bacula is Kern Sibbald, with contributions from
7
7
   many others, a complete list can be found in the file AUTHORS.
20
20
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
21
   02110-1301, USA.
22
22
 
23
 
   Bacula® is a registered trademark of John Walker.
 
23
   Bacula® is a registered trademark of Kern Sibbald.
24
24
   The licensor of Bacula is the Free Software Foundation Europe
25
25
   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
26
26
   Switzerland, email:ftf@fsfeurope.org.
37
37
 * Last Modified By: Thorsten Engel
38
38
 * Last Modified On: Fri Apr 22 19:30:00 2004
39
39
 * Update Count    : 218
40
 
 * $Id: compat.h 4992 2007-06-07 14:46:43Z kerns $
 
40
 * $Id: compat.h 8202 2008-12-20 13:22:14Z kerns $
41
41
 */
42
42
 
43
43
 
106
106
typedef UINT32 gid_t;
107
107
typedef UINT32 mode_t;
108
108
typedef INT32  ssize_t;
 
109
typedef UINT32 size_t;
109
110
#define HAVE_SSIZE_T 1
110
111
 
111
112
#endif /* HAVE_MINGW */
307
308
#define mkdir(p, m) win32_mkdir(p)
308
309
#define unlink win32_unlink
309
310
#define chdir win32_chdir
 
311
#define chmod win32_chmod
310
312
extern "C" void syslog(int type, const char *fmt, ...);
311
313
#if !defined(LOG_DAEMON)
312
314
#define LOG_DAEMON 0
333
335
 
334
336
#define getcwd win32_getcwd
335
337
#define chdir win32_chdir
 
338
#define chmod win32_chmod
336
339
#define fputs win32_fputs
337
340
char *win32_getcwd(char *buf, int maxlen);
338
341
int win32_chdir(const char *buf);
339
342
int win32_mkdir(const char *buf);
340
343
int win32_fputs(const char *string, FILE *stream);
341
344
int win32_unlink(const char *filename);
 
345
int win32_chmod(const char *, mode_t);
 
346
 
342
347
 
343
348
char* win32_cgets (char* buffer, int len);
344
349