History

Copied some classes from openjdk7

Dmitry Kabak (userdima committed 13 years ago

Commit b1be2201 parent 555225f128 files · +83387 −0Browse files

Showing the changes to java/pkg/sun/nio/fs/UnixConstants.java (1 of 128 files). Show all

Unified · Split

java/pkg/sun/nio/fs/UnixConstants.java+79−0
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
3 *
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 *
26 */
27// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
28package sun.nio.fs;
29class UnixConstants {
30 private UnixConstants() { }
31 static final int O_RDONLY = 0;
32 static final int O_WRONLY = 1;
33 static final int O_RDWR = 2;
34 static final int O_APPEND = 0x8;
35 static final int O_CREAT = 0x200;
36 static final int O_EXCL = 0x800;
37 static final int O_TRUNC = 0x400;
38 static final int O_SYNC = 0x80;
39 static final int O_DSYNC = 0x400000;
40 static final int O_NOFOLLOW = 0x100;
41 static final int S_IAMB = 0x1ff;
42 static final int S_IRUSR = 256;
43 static final int S_IWUSR = 128;
44 static final int S_IXUSR = 64;
45 static final int S_IRGRP = 32;
46 static final int S_IWGRP = 16;
47 static final int S_IXGRP = 8;
48 static final int S_IROTH = 4;
49 static final int S_IWOTH = 2;
50 static final int S_IXOTH = 1;
51 static final int S_IFMT = 0xf000;
52 static final int S_IFREG = 0x8000;
53 static final int S_IFDIR = 0x4000;
54 static final int S_IFLNK = 0xa000;
55 static final int S_IFCHR = 0x2000;
56 static final int S_IFBLK = 0x6000;
57 static final int S_IFIFO = 0x1000;
58 static final int R_OK = 4;
59 static final int W_OK = 2;
60 static final int X_OK = 1;
61 static final int F_OK = 0;
62 static final int ENOENT = 2;
63 static final int EACCES = 13;
64 static final int EEXIST = 17;
65 static final int ENOTDIR = 20;
66 static final int EINVAL = 22;
67 static final int EXDEV = 18;
68 static final int EISDIR = 21;
69 static final int ENOTEMPTY = 66;
70 static final int ENOSPC = 28;
71 static final int EAGAIN = 35;
72 static final int ENOSYS = 78;
73 static final int ELOOP = 62;
74 static final int EROFS = 30;
75 static final int ENODATA = 96;
76 static final int ERANGE = 34;
77 static final int AT_SYMLINK_NOFOLLOW = 0x0;
78 static final int AT_REMOVEDIR = 0x0;
79}