1/*
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5package ch.ethz.ssh2.sftp;
6
7/**
8 *
9 * Permissions for the 'permissions' field in the SFTP ATTRS data type.
10 * <p>
11 * "<i>The 'permissions' field contains a bit mask specifying file permissions.
12 * These permissions correspond to the st_mode field of the stat structure
13 * defined by POSIX [IEEE.1003-1.1996].</i>"
14 *
15 * @author Christian Plattner
16 * @version 2.50, 03/15/10
17 *
18 */
19public class AttribPermissions
20{
21	/* Octal values! */
22
23	public static final int S_IRUSR = 0400;
24	public static final int S_IWUSR = 0200;
25	public static final int S_IXUSR = 0100;
26	public static final int S_IRGRP = 0040;
27	public static final int S_IWGRP = 0020;
28	public static final int S_IXGRP = 0010;
29	public static final int S_IROTH = 0004;
30	public static final int S_IWOTH = 0002;
31	public static final int S_IXOTH = 0001;
32	public static final int S_ISUID = 04000;
33	public static final int S_ISGID = 02000;
34	public static final int S_ISVTX = 01000;
35}
36