File: UnixFileFlags.java

package info (click to toggle)
eclipse 3.8.1-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 338,840 kB
  • ctags: 472,808
  • sloc: java: 2,762,042; ansic: 136,783; xml: 105,676; cpp: 35,759; jsp: 4,420; sh: 3,288; perl: 1,687; makefile: 232; python: 67; php: 24
file content (90 lines) | stat: -rw-r--r-- 2,577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*******************************************************************************
 * Copyright (c) 2010 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.internal.filesystem.local.unix;

public class UnixFileFlags {

	static {
		S_IFMT = UnixFileNatives.getFlag("S_IFMT"); //$NON-NLS-1$
		S_IFLNK = UnixFileNatives.getFlag("S_IFLNK"); //$NON-NLS-1$
		S_IFDIR = UnixFileNatives.getFlag("S_IFDIR"); //$NON-NLS-1$
		S_IRUSR = UnixFileNatives.getFlag("S_IRUSR"); //$NON-NLS-1$
		S_IWUSR = UnixFileNatives.getFlag("S_IWUSR"); //$NON-NLS-1$
		S_IXUSR = UnixFileNatives.getFlag("S_IXUSR"); //$NON-NLS-1$
		S_IRGRP = UnixFileNatives.getFlag("S_IRGRP"); //$NON-NLS-1$
		S_IWGRP = UnixFileNatives.getFlag("S_IWGRP"); //$NON-NLS-1$
		S_IXGRP = UnixFileNatives.getFlag("S_IXGRP"); //$NON-NLS-1$
		S_IROTH = UnixFileNatives.getFlag("S_IROTH"); //$NON-NLS-1$
		S_IWOTH = UnixFileNatives.getFlag("S_IWOTH"); //$NON-NLS-1$
		S_IXOTH = UnixFileNatives.getFlag("S_IXOTH"); //$NON-NLS-1$
		UF_IMMUTABLE = UnixFileNatives.getFlag("UF_IMMUTABLE"); //$NON-NLS-1$
		SF_IMMUTABLE = UnixFileNatives.getFlag("SF_IMMUTABLE"); //$NON-NLS-1$
	}

	/**
	 * bitmask for the file type bitfields
	 */
	public static final int S_IFMT;
	/**
	 * symbolic link
	 */
	public static final int S_IFLNK;
	/**
	 * directory
	 */
	public static final int S_IFDIR;
	/**
	 * owner has read permission
	 */
	public static final int S_IRUSR;
	/**
	 * owner has write permission
	 */
	public static final int S_IWUSR;
	/**
	 * owner has execute permission
	 */
	public static final int S_IXUSR;
	/**
	 * group has read permission
	 */
	public static final int S_IRGRP;
	/**
	 * group has write permission
	 */
	public static final int S_IWGRP;
	/**
	 * group has execute permission
	 */
	public static final int S_IXGRP;
	/**
	 * others have read permission
	 */
	public static final int S_IROTH;
	/**
	 * others have write permission
	 */
	public static final int S_IWOTH;
	/**
	 * others have execute permission
	 */
	public static final int S_IXOTH;

	/**
	 * the file may not be changed
	 */
	public static final int UF_IMMUTABLE;
	/**
	 * the file may not be changed
	 */
	public static final int SF_IMMUTABLE;

}