~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/include/fileIO.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
#include "iovector.h"        // for struct iovec
54
54
 
 
55
struct FileLockToken;
 
56
 
55
57
#if defined(_WIN32)
56
58
 
57
59
# include <windows.h>
60
62
   HANDLE win32;
61
63
   uint32 flags;
62
64
   Unicode fileName;
63
 
   void *lockToken;
 
65
   struct FileLockToken *lockToken;
64
66
} FileIODescriptor;
65
67
 
66
68
#else
69
71
   int posix;
70
72
   int flags;
71
73
   Unicode fileName;
72
 
   void *lockToken;
 
74
   struct FileLockToken *lockToken;
73
75
} FileIODescriptor;
74
76
 
75
77
#endif
146
148
 */
147
149
#define FILEIO_OPEN_MULTIWRITER_LOCK     (1 << 14)
148
150
/*
149
 
 * Flag the file as not to be backed up by Time Machine on Mac OS X.
150
 
 */
151
 
#define FILEIO_OPEN_NO_TIME_MACHINE      (1 << 15)
152
 
/*
153
151
 * Valid only for MacOS. It eventually results into O_EXLOCK flag passed to open
154
152
 * system call.
155
153
 *
377
375
/*
378
376
 *-------------------------------------------------------------------------
379
377
 * 
380
 
 * FileIO_Success --
 
378
 * FileIO_IsSuccess --
381
379
 *
382
380
 *      Returns TRUE if the error code is success.
383
381
 *
406
404
Bool FileIO_IsSuccess(FileIOResult res);
407
405
#endif
408
406
 
409
 
#if defined(__APPLE__)
410
 
EXTERN Bool FileIO_ResetExcludedFromTimeMachine(char const *pathName);
411
 
EXTERN Bool FileIO_SetExcludedFromTimeMachine(char const *pathName,
412
 
                                              Bool isExcluded);
413
 
#endif
414
 
 
415
407
Bool FileIO_SupportsPrealloc(const char *pathName, Bool fsCheck);
416
408
 
417
409
#endif // _FILEIO_H_