< prev index next >

src/java.base/windows/classes/sun/nio/fs/WindowsConstants.java

Print this page


   1 /*
   2  * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  58     public static final int FILE_ATTRIBUTE_DIRECTORY        = 0x00000010;
  59     public static final int FILE_ATTRIBUTE_ARCHIVE          = 0x00000020;
  60     public static final int FILE_ATTRIBUTE_DEVICE           = 0x00000040;
  61     public static final int FILE_ATTRIBUTE_NORMAL           = 0x00000080;
  62     public static final int FILE_ATTRIBUTE_REPARSE_POINT    = 0x400;
  63     public static final int FILE_FLAG_NO_BUFFERING          = 0x20000000;
  64     public static final int FILE_FLAG_OVERLAPPED            = 0x40000000;
  65     public static final int FILE_FLAG_WRITE_THROUGH         = 0x80000000;
  66     public static final int FILE_FLAG_BACKUP_SEMANTICS      = 0x02000000;
  67     public static final int FILE_FLAG_DELETE_ON_CLOSE       = 0x04000000;
  68     public static final int FILE_FLAG_OPEN_REPARSE_POINT    = 0x00200000;
  69 
  70     // stream ids
  71     public static final int BACKUP_ALTERNATE_DATA           = 0x00000004;
  72     public static final int BACKUP_SPARSE_BLOCK             = 0x00000009;
  73 
  74     // reparse point/symbolic link related constants
  75     public static final int IO_REPARSE_TAG_SYMLINK              = 0xA000000C;
  76     public static final int MAXIMUM_REPARSE_DATA_BUFFER_SIZE    = 16 * 1024;
  77     public static final int SYMBOLIC_LINK_FLAG_DIRECTORY        = 0x1;
  78     public static final int SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE = 0x2;
  79 
  80     // volume flags
  81     public static final int FILE_CASE_SENSITIVE_SEARCH      = 0x00000001;
  82     public static final int FILE_CASE_PRESERVED_NAMES       = 0x00000002;
  83     public static final int FILE_PERSISTENT_ACLS            = 0x00000008;
  84     public static final int FILE_VOLUME_IS_COMPRESSED       = 0x00008000;
  85     public static final int FILE_NAMED_STREAMS              = 0x00040000;
  86     public static final int FILE_READ_ONLY_VOLUME           = 0x00080000;
  87 
  88     // error codes
  89     public static final int ERROR_FILE_NOT_FOUND        = 2;
  90     public static final int ERROR_PATH_NOT_FOUND        = 3;
  91     public static final int ERROR_ACCESS_DENIED         = 5;
  92     public static final int ERROR_INVALID_HANDLE        = 6;
  93     public static final int ERROR_INVALID_DATA          = 13;
  94     public static final int ERROR_NOT_SAME_DEVICE       = 17;
  95     public static final int ERROR_NOT_READY             = 21;
  96     public static final int ERROR_SHARING_VIOLATION     = 32;
  97     public static final int ERROR_FILE_EXISTS           = 80;
  98     public static final int ERROR_INVALID_PARAMETER     = 87;
  99     public static final int ERROR_DISK_FULL             = 112;
 100     public static final int ERROR_INSUFFICIENT_BUFFER   = 122;
 101     public static final int ERROR_INVALID_LEVEL         = 124;
 102     public static final int ERROR_DIR_NOT_ROOT          = 144;
 103     public static final int ERROR_DIR_NOT_EMPTY         = 145;
 104     public static final int ERROR_ALREADY_EXISTS        = 183;
 105     public static final int ERROR_MORE_DATA             = 234;
 106     public static final int ERROR_DIRECTORY             = 267;
 107     public static final int ERROR_NOTIFY_ENUM_DIR       = 1022;
 108     public static final int ERROR_PRIVILEGE_NOT_HELD    = 1314;
 109     public static final int ERROR_NONE_MAPPED           = 1332;
 110     public static final int ERROR_NOT_A_REPARSE_POINT   = 4390;
 111     public static final int ERROR_INVALID_REPARSE_DATA  = 4392;
 112 
 113     // notify filters
 114     public static final int FILE_NOTIFY_CHANGE_FILE_NAME   = 0x00000001;
 115     public static final int FILE_NOTIFY_CHANGE_DIR_NAME    = 0x00000002;
 116     public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES  = 0x00000004;
 117     public static final int FILE_NOTIFY_CHANGE_SIZE        = 0x00000008;
 118     public static final int FILE_NOTIFY_CHANGE_LAST_WRITE  = 0x00000010;
 119     public static final int FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x00000020;
 120     public static final int FILE_NOTIFY_CHANGE_CREATION    = 0x00000040;
 121     public static final int FILE_NOTIFY_CHANGE_SECURITY    = 0x00000100;
 122 
 123     // notify actions
 124     public static final int FILE_ACTION_ADDED              = 0x00000001;
 125     public static final int FILE_ACTION_REMOVED            = 0x00000002;
 126     public static final int FILE_ACTION_MODIFIED           = 0x00000003;
 127     public static final int FILE_ACTION_RENAMED_OLD_NAME   = 0x00000004;
 128     public static final int FILE_ACTION_RENAMED_NEW_NAME   = 0x00000005;


   1 /*
   2  * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  58     public static final int FILE_ATTRIBUTE_DIRECTORY        = 0x00000010;
  59     public static final int FILE_ATTRIBUTE_ARCHIVE          = 0x00000020;
  60     public static final int FILE_ATTRIBUTE_DEVICE           = 0x00000040;
  61     public static final int FILE_ATTRIBUTE_NORMAL           = 0x00000080;
  62     public static final int FILE_ATTRIBUTE_REPARSE_POINT    = 0x400;
  63     public static final int FILE_FLAG_NO_BUFFERING          = 0x20000000;
  64     public static final int FILE_FLAG_OVERLAPPED            = 0x40000000;
  65     public static final int FILE_FLAG_WRITE_THROUGH         = 0x80000000;
  66     public static final int FILE_FLAG_BACKUP_SEMANTICS      = 0x02000000;
  67     public static final int FILE_FLAG_DELETE_ON_CLOSE       = 0x04000000;
  68     public static final int FILE_FLAG_OPEN_REPARSE_POINT    = 0x00200000;
  69 
  70     // stream ids
  71     public static final int BACKUP_ALTERNATE_DATA           = 0x00000004;
  72     public static final int BACKUP_SPARSE_BLOCK             = 0x00000009;
  73 
  74     // reparse point/symbolic link related constants
  75     public static final int IO_REPARSE_TAG_SYMLINK              = 0xA000000C;
  76     public static final int MAXIMUM_REPARSE_DATA_BUFFER_SIZE    = 16 * 1024;
  77     public static final int SYMBOLIC_LINK_FLAG_DIRECTORY        = 0x1;

  78 
  79     // volume flags
  80     public static final int FILE_CASE_SENSITIVE_SEARCH      = 0x00000001;
  81     public static final int FILE_CASE_PRESERVED_NAMES       = 0x00000002;
  82     public static final int FILE_PERSISTENT_ACLS            = 0x00000008;
  83     public static final int FILE_VOLUME_IS_COMPRESSED       = 0x00008000;
  84     public static final int FILE_NAMED_STREAMS              = 0x00040000;
  85     public static final int FILE_READ_ONLY_VOLUME           = 0x00080000;
  86 
  87     // error codes
  88     public static final int ERROR_FILE_NOT_FOUND        = 2;
  89     public static final int ERROR_PATH_NOT_FOUND        = 3;
  90     public static final int ERROR_ACCESS_DENIED         = 5;
  91     public static final int ERROR_INVALID_HANDLE        = 6;
  92     public static final int ERROR_INVALID_DATA          = 13;
  93     public static final int ERROR_NOT_SAME_DEVICE       = 17;
  94     public static final int ERROR_NOT_READY             = 21;
  95     public static final int ERROR_SHARING_VIOLATION     = 32;
  96     public static final int ERROR_FILE_EXISTS           = 80;
  97     public static final int ERROR_INVALID_PARAMETER     = 87;
  98     public static final int ERROR_DISK_FULL             = 112;
  99     public static final int ERROR_INSUFFICIENT_BUFFER   = 122;
 100     public static final int ERROR_INVALID_LEVEL         = 124;
 101     public static final int ERROR_DIR_NOT_ROOT          = 144;
 102     public static final int ERROR_DIR_NOT_EMPTY         = 145;
 103     public static final int ERROR_ALREADY_EXISTS        = 183;
 104     public static final int ERROR_MORE_DATA             = 234;
 105     public static final int ERROR_DIRECTORY             = 267;
 106     public static final int ERROR_NOTIFY_ENUM_DIR       = 1022;

 107     public static final int ERROR_NONE_MAPPED           = 1332;
 108     public static final int ERROR_NOT_A_REPARSE_POINT   = 4390;
 109     public static final int ERROR_INVALID_REPARSE_DATA  = 4392;
 110 
 111     // notify filters
 112     public static final int FILE_NOTIFY_CHANGE_FILE_NAME   = 0x00000001;
 113     public static final int FILE_NOTIFY_CHANGE_DIR_NAME    = 0x00000002;
 114     public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES  = 0x00000004;
 115     public static final int FILE_NOTIFY_CHANGE_SIZE        = 0x00000008;
 116     public static final int FILE_NOTIFY_CHANGE_LAST_WRITE  = 0x00000010;
 117     public static final int FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x00000020;
 118     public static final int FILE_NOTIFY_CHANGE_CREATION    = 0x00000040;
 119     public static final int FILE_NOTIFY_CHANGE_SECURITY    = 0x00000100;
 120 
 121     // notify actions
 122     public static final int FILE_ACTION_ADDED              = 0x00000001;
 123     public static final int FILE_ACTION_REMOVED            = 0x00000002;
 124     public static final int FILE_ACTION_MODIFIED           = 0x00000003;
 125     public static final int FILE_ACTION_RENAMED_OLD_NAME   = 0x00000004;
 126     public static final int FILE_ACTION_RENAMED_NEW_NAME   = 0x00000005;


< prev index next >