1 /*******************************************************************************
2  * Copyright (c) 2010 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.core.internal.filesystem.local.unix;
15 
16 public class UnixFileFlags {
17 
18 	static {
19 		PATH_MAX = UnixFileNatives.getFlag("PATH_MAX"); //$NON-NLS-1$
20 		S_IFMT = UnixFileNatives.getFlag("S_IFMT"); //$NON-NLS-1$
21 		S_IFLNK = UnixFileNatives.getFlag("S_IFLNK"); //$NON-NLS-1$
22 		S_IFDIR = UnixFileNatives.getFlag("S_IFDIR"); //$NON-NLS-1$
23 		S_IRUSR = UnixFileNatives.getFlag("S_IRUSR"); //$NON-NLS-1$
24 		S_IWUSR = UnixFileNatives.getFlag("S_IWUSR"); //$NON-NLS-1$
25 		S_IXUSR = UnixFileNatives.getFlag("S_IXUSR"); //$NON-NLS-1$
26 		S_IRGRP = UnixFileNatives.getFlag("S_IRGRP"); //$NON-NLS-1$
27 		S_IWGRP = UnixFileNatives.getFlag("S_IWGRP"); //$NON-NLS-1$
28 		S_IXGRP = UnixFileNatives.getFlag("S_IXGRP"); //$NON-NLS-1$
29 		S_IROTH = UnixFileNatives.getFlag("S_IROTH"); //$NON-NLS-1$
30 		S_IWOTH = UnixFileNatives.getFlag("S_IWOTH"); //$NON-NLS-1$
31 		S_IXOTH = UnixFileNatives.getFlag("S_IXOTH"); //$NON-NLS-1$
32 		UF_IMMUTABLE = UnixFileNatives.getFlag("UF_IMMUTABLE"); //$NON-NLS-1$
33 		SF_IMMUTABLE = UnixFileNatives.getFlag("SF_IMMUTABLE"); //$NON-NLS-1$
34 	}
35 
36 	/**
37 	 * chars in a path name including nul
38 	 */
39 	public static final int PATH_MAX;
40 
41 	/**
42 	 * bitmask for the file type bitfields
43 	 */
44 	public static final int S_IFMT;
45 	/**
46 	 * symbolic link
47 	 */
48 	public static final int S_IFLNK;
49 	/**
50 	 * directory
51 	 */
52 	public static final int S_IFDIR;
53 	/**
54 	 * owner has read permission
55 	 */
56 	public static final int S_IRUSR;
57 	/**
58 	 * owner has write permission
59 	 */
60 	public static final int S_IWUSR;
61 	/**
62 	 * owner has execute permission
63 	 */
64 	public static final int S_IXUSR;
65 	/**
66 	 * group has read permission
67 	 */
68 	public static final int S_IRGRP;
69 	/**
70 	 * group has write permission
71 	 */
72 	public static final int S_IWGRP;
73 	/**
74 	 * group has execute permission
75 	 */
76 	public static final int S_IXGRP;
77 	/**
78 	 * others have read permission
79 	 */
80 	public static final int S_IROTH;
81 	/**
82 	 * others have write permission
83 	 */
84 	public static final int S_IWOTH;
85 	/**
86 	 * others have execute permission
87 	 */
88 	public static final int S_IXOTH;
89 
90 	/**
91 	 * the file may not be changed
92 	 */
93 	public static final int UF_IMMUTABLE;
94 	/**
95 	 * the file may not be changed
96 	 */
97 	public static final int SF_IMMUTABLE;
98 
99 }
100