comparison src/ch/ethz/ssh2/sftp/AttribPermissions.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children
comparison
equal deleted inserted replaced
272:ce2f4e397703 273:91a31873c42a
1 /*
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5 package ch.ethz.ssh2.sftp;
6
7 /**
8 * Permissions for the 'permissions' field in the SFTP ATTRS data type.
9 * <p/>
10 * "<i>The 'permissions' field contains a bit mask specifying file permissions.
11 * These permissions correspond to the st_mode field of the stat structure
12 * defined by POSIX [IEEE.1003-1.1996].</i>"
13 *
14 * @author Christian Plattner
15 * @version 2.50, 03/15/10
16 */
17 public class AttribPermissions {
18 private AttribPermissions() {
19 }
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 }