~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools-august.merge

« back to all changes in this revision

Viewing changes to lib/include/fileIO.h

  • Committer: Bazaar Package Importer
  • Author(s): Nate Muench
  • Date: 2011-07-22 16:41:03 UTC
  • mfrom: (1.4.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110722164103-xci04yu18mjvhr1j
Tags: 2011.07.19-450511-0ubuntu1
* Merge latest upstream git tag. Fixes Building on Oneiric
  (LP: #776103, LP: #807903)

* The Toolbox (GUI) has been removed.
* Changes in debian folder:
  - Contents of open-vm-toolbox.lintian-overrides have been moved to
    open-vm-tools.lintian-overrides.
  - The contents of open-vm-toolbox.manpages (excluding the first line,
    which relates to the Toolbox) have been moved to open-vm-tools.manpages.
* Changes in debian/control:
  - Convert open-vm-toolbox into a transitional package.
  - All dependencies for toolbox have been moved to open-vm-tools package.
  - Changed architecture for open-vm-toolbox package to all.
  - Added Replaces and Breaks fields to open-vm-tools.
* Changes in debian/rules:
  - Commented out references to the Toolbox (GUI), that no longer exist
    in the package itself.
  - Remaining references changed from open-vm-toolbox to open-vm-tools.
  - Added -Wno-unused-but-set-variable to CFLAGS to suppress remaining
    issues with GCC 4.6.0 or later.
* Files removed in debian/manpages:
  - vmmemctl.9 (Component no longer in package)
  - vmware-toolbox.1 (Component removed in this release)
  - vmxnet3.9 (vmxnet3 is now included in kernel itself)

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
# include <windows.h>
60
60
 
61
61
typedef struct FileIODescriptor {
62
 
   HANDLE win32;
63
 
   uint32 flags;
64
 
   Unicode fileName;
 
62
   HANDLE                win32;
 
63
   uint32                flags;
 
64
   Unicode               fileName;
65
65
   struct FileLockToken *lockToken;
66
66
} FileIODescriptor;
67
67
 
68
68
#else
69
69
 
70
70
typedef struct FileIODescriptor {
71
 
   int posix;
72
 
   int flags;
73
 
   Unicode fileName;
 
71
   int                   posix;
 
72
   int                   flags;
 
73
   Unicode               fileName;
74
74
   struct FileLockToken *lockToken;
75
75
} FileIODescriptor;
76
76
 
161
161
 * |                      | on conflicts       | on conflicts
162
162
 */
163
163
#define FILEIO_OPEN_EXCLUSIVE_LOCK_MACOS (1 << 16)
 
164
/*
 
165
 * Open file in APPEND-only mode.  All writes go to the current end of file,
 
166
 * not to the current file pointer location.
 
167
 */
 
168
#define FILEIO_OPEN_APPEND               (1 << 17)
 
169
/*
 
170
 * Valid only on POSIXen. Don't follow a symbolic link.
 
171
 */
 
172
#define FILEIO_OPEN_ACCESS_NOFOLLOW (1 << 18)
 
173
/*
 
174
 * Valid only on Windows. Set FILE_SHARE_DELETE.
 
175
 */
 
176
#define FILEIO_OPEN_SHARE_DELETE (1 << 19)
164
177
 
165
178
/*
166
179
 * Flag passed to open() to not attempt to get the lun attributes as part of
247
260
} FileIOResult;
248
261
 
249
262
const char *FileIO_MsgError(FileIOResult status);
 
263
 
250
264
void FileIO_Invalidate(FileIODescriptor *file);
 
265
 
251
266
Bool FileIO_IsValid(const FileIODescriptor *fd);
252
267
 
253
268
FileIOResult FileIO_Create(FileIODescriptor *file,
324
339
 
325
340
int64   FileIO_GetAllocSize(const FileIODescriptor *fd);
326
341
 
327
 
Bool    FileIO_SetAllocSize(const FileIODescriptor *fd, uint64 size);
 
342
Bool    FileIO_SetAllocSize(const FileIODescriptor *fd,
 
343
                            uint64 size);
328
344
 
329
345
int64   FileIO_GetSizeByPath(ConstUnicode pathName);
330
346
 
340
356
 
341
357
int64   FileIO_GetModTime(const FileIODescriptor *fd);
342
358
 
343
 
FileIOResult FileIO_Lock(FileIODescriptor *file,  // IN/OUT
344
 
                         int access);             // IN
 
359
FileIOResult FileIO_Lock(FileIODescriptor *file,
 
360
                         int access);
345
361
 
346
362
FileIOResult FileIO_Unlock(FileIODescriptor *file);
347
363