]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/fcntl.h
xnu-344.tar.gz
[apple/xnu.git] / bsd / sys / fcntl.h
index d1af6af91b7d1dada4a8e655c1cb32fcb68ef22c..6e274f663ab3f26c4e5cd99ef7163eddde4efca3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2001 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
 #define        O_EXLOCK        0x0020          /* open with exclusive file lock */
 #define        O_ASYNC         0x0040          /* signal pgrp when data ready */
 #define        O_FSYNC         0x0080          /* synchronous writes */
+#define O_NOFOLLOW  0x0100      /* don't follow symlinks */
 #endif
 #define        O_CREAT         0x0200          /* create if nonexistant */
 #define        O_TRUNC         0x0400          /* truncate to zero length */
 
 #define F_PEOFPOSMODE 3                        /* Make it past all of the SEEK pos modes so that */
                                        /* we can keep them in sync should we desire */ 
+#define F_VOLPOSMODE   4               /* specify volume starting postion */
 
 /*
  * Advisory file segment locking data type -
@@ -234,10 +236,10 @@ struct radvisory {
 #define        LOCK_UN         0x08            /* unlock file */
 #endif
 
-/*  fstore_t type used by F_DEALLCOATE and F_PREALLCOATE commands */
+/*  fstore_t type used by F_DEALLOCATE and F_PREALLOCATE commands */
 
 typedef struct fstore {
-        u_int32_t fst_flags;   /* IN: flags word */
+       u_int32_t fst_flags;    /* IN: flags word */
        int     fst_posmode;    /* IN: indicates use of offset field */
        off_t   fst_offset;     /* IN: start of the region */
        off_t   fst_length;     /* IN: size of the region */