comparison src/com/trilead/ssh2/sftp/AttribPermissions.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1
2 package com.trilead.ssh2.sftp;
3
4 /**
5 *
6 * Permissions for the 'permissions' field in the SFTP ATTRS data type.
7 * <p>
8 * "<i>The 'permissions' field contains a bit mask specifying file permissions.
9 * These permissions correspond to the st_mode field of the stat structure
10 * defined by POSIX [IEEE.1003-1.1996].</i>"
11 *
12 * @author Christian Plattner, plattner@trilead.com
13 * @version $Id: AttribPermissions.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
14 *
15 */
16 public class AttribPermissions {
17 /* Octal values! */
18
19 public static final int S_IRUSR = 0400;
20 public static final int S_IWUSR = 0200;
21 public static final int S_IXUSR = 0100;
22 public static final int S_IRGRP = 0040;
23 public static final int S_IWGRP = 0020;
24 public static final int S_IXGRP = 0010;
25 public static final int S_IROTH = 0004;
26 public static final int S_IWOTH = 0002;
27 public static final int S_IXOTH = 0001;
28 public static final int S_ISUID = 04000;
29 public static final int S_ISGID = 02000;
30 public static final int S_ISVTX = 01000;
31 }