~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools-precise.sid-merge1

« back to all changes in this revision

Viewing changes to lib/include/fileIO.h

  • Committer: Evan Broder
  • Date: 2010-03-21 23:26:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: broder@mit.edu-20100321232653-5a57r7v7ch4o6byv
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
 * Flag the file as not to be backed up by Time Machine on Mac OS X.
170
170
 */
171
171
#define FILEIO_OPEN_NO_TIME_MACHINE      (1 << 15)
 
172
/*
 
173
 * Valid only for MacOS. It eventually results into O_EXLOCK flag passed to open
 
174
 * system call.
 
175
 *
 
176
 * O_EXLOCK, O_SHLOCK behavior is tested on Mac OS X Server 10.6, kernel 10.0.0.
 
177
 *
 
178
 * |                      | Block devices      | Regular files
 
179
 * |----------------------|--------------------|----------------
 
180
 * | Locking behavior     | mandatory          | advisory
 
181
 * |                      |                    |
 
182
 * | If O_NONBLOCK absent | open doesn't block | open blocks
 
183
 * |                      | on conflicts       | on conflicts
 
184
 */
 
185
#define FILEIO_OPEN_EXCLUSIVE_LOCK_MACOS (1 << 16)
172
186
 
173
187
/*
174
188
 * Flag passed to open() to not attempt to get the lun attributes as part of