src/java.base/solaris/classes/sun/nio/fs/SolarisConstants.java.template
author serb
Sat, 09 Jun 2018 13:33:35 -0700
changeset 50647 a98ff7c2103d
parent 47216 71c04702a3d5
permissions -rw-r--r--
6608234: SwingWorker.get throws CancellationException Reviewed-by: psadhukhan, kaddepalli, prr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36672
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     1
/*
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     2
 * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     3
 *
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     5
 *
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     8
 * published by the Free Software Foundation.  Oracle designates this
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
     9
 * particular file as subject to the "Classpath" exception as provided
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    10
 * by Oracle in the LICENSE file that accompanied this code.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    11
 *
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    12
 * This code is distributed in the hope that it will be useful, but WITHOUT
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    15
 * version 2 for more details (a copy is included in the LICENSE file that
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    16
 * accompanied this code).
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    17
 *
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License version
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    19
 * 2 along with this work; if not, write to the Free Software Foundation,
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    20
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    21
 *
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    22
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    23
 * or visit www.oracle.com if you need additional information or have any
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    24
 * questions.
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    25
 */
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    26
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    27
@@END_COPYRIGHT@@
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    28
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    29
#include <stdio.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    30
#include <errno.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    31
#include <unistd.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    32
#include <sys/acl.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    33
#include <fcntl.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    34
#include <sys/stat.h>
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    35
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    36
/* On Solaris, "sun" is defined as a macro. Undefine to make package
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    37
   declaration valid */
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    38
#undef sun
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    39
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    40
/* To be able to name the Java constants the same as the C constants without
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    41
   having the preprocessor rewrite those identifiers, add PREFIX_ to all
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    42
   identifiers matching a C constant. The PREFIX_ is filtered out in the
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    43
   makefile. */
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    44
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    45
@@START_HERE@@
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    46
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    47
package sun.nio.fs;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    48
class SolarisConstants {
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    49
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    50
    private SolarisConstants() { }
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    51
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    52
    static final int PREFIX_O_XATTR = O_XATTR;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    53
    static final int PREFIX__PC_XATTR_ENABLED = _PC_XATTR_ENABLED;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    54
    static final int PREFIX__PC_ACL_ENABLED = _PC_ACL_ENABLED;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    55
    static final int PREFIX__ACL_ACE_ENABLED = _ACL_ACE_ENABLED;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    56
    static final int PREFIX_ACE_GETACL = ACE_GETACL;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    57
    static final int PREFIX_ACE_SETACL = ACE_SETACL;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    58
    static final int PREFIX_ACE_ACCESS_ALLOWED_ACE_TYPE = ACE_ACCESS_ALLOWED_ACE_TYPE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    59
    static final int PREFIX_ACE_ACCESS_DENIED_ACE_TYPE = ACE_ACCESS_DENIED_ACE_TYPE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    60
    static final int PREFIX_ACE_SYSTEM_AUDIT_ACE_TYPE = ACE_SYSTEM_AUDIT_ACE_TYPE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    61
    static final int PREFIX_ACE_SYSTEM_ALARM_ACE_TYPE = ACE_SYSTEM_ALARM_ACE_TYPE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    62
    static final int PREFIX_ACE_READ_DATA = ACE_READ_DATA;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    63
    static final int PREFIX_ACE_LIST_DIRECTORY = ACE_LIST_DIRECTORY;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    64
    static final int PREFIX_ACE_WRITE_DATA = ACE_WRITE_DATA;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    65
    static final int PREFIX_ACE_ADD_FILE = ACE_ADD_FILE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    66
    static final int PREFIX_ACE_APPEND_DATA = ACE_APPEND_DATA;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    67
    static final int PREFIX_ACE_ADD_SUBDIRECTORY = ACE_ADD_SUBDIRECTORY;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    68
    static final int PREFIX_ACE_READ_NAMED_ATTRS = ACE_READ_NAMED_ATTRS;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    69
    static final int PREFIX_ACE_WRITE_NAMED_ATTRS = ACE_WRITE_NAMED_ATTRS;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    70
    static final int PREFIX_ACE_EXECUTE = ACE_EXECUTE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    71
    static final int PREFIX_ACE_DELETE_CHILD = ACE_DELETE_CHILD;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    72
    static final int PREFIX_ACE_READ_ATTRIBUTES = ACE_READ_ATTRIBUTES;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    73
    static final int PREFIX_ACE_WRITE_ATTRIBUTES = ACE_WRITE_ATTRIBUTES;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    74
    static final int PREFIX_ACE_DELETE = ACE_DELETE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    75
    static final int PREFIX_ACE_READ_ACL = ACE_READ_ACL;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    76
    static final int PREFIX_ACE_WRITE_ACL = ACE_WRITE_ACL;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    77
    static final int PREFIX_ACE_WRITE_OWNER = ACE_WRITE_OWNER;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    78
    static final int PREFIX_ACE_SYNCHRONIZE = ACE_SYNCHRONIZE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    79
    static final int PREFIX_ACE_FILE_INHERIT_ACE = ACE_FILE_INHERIT_ACE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    80
    static final int PREFIX_ACE_DIRECTORY_INHERIT_ACE = ACE_DIRECTORY_INHERIT_ACE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    81
    static final int PREFIX_ACE_NO_PROPAGATE_INHERIT_ACE = ACE_NO_PROPAGATE_INHERIT_ACE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    82
    static final int PREFIX_ACE_INHERIT_ONLY_ACE = ACE_INHERIT_ONLY_ACE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    83
    static final int PREFIX_ACE_SUCCESSFUL_ACCESS_ACE_FLAG = ACE_SUCCESSFUL_ACCESS_ACE_FLAG;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    84
    static final int PREFIX_ACE_FAILED_ACCESS_ACE_FLAG = ACE_FAILED_ACCESS_ACE_FLAG;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    85
    static final int PREFIX_ACE_IDENTIFIER_GROUP = ACE_IDENTIFIER_GROUP;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    86
    static final int PREFIX_ACE_OWNER = ACE_OWNER;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    87
    static final int PREFIX_ACE_GROUP = ACE_GROUP;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    88
    static final int PREFIX_ACE_EVERYONE = ACE_EVERYONE;
9e18f32e76c9 8152545: Use preprocessor instead of compiling a program to generate native nio constants
erikj
parents:
diff changeset
    89
}