1 /* 2 * Copyright 2001,2004 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 package net.sourceforge.groboutils.codecoverage.v2.ant.zip; 19 20 /** 21 * Constants from stat.h on Unix systems. 22 * 23 * @author Stefan Bodewig 24 * @version $Revision: 1.1 $ 25 */ 26 public interface UnixStat { 27 28 /** 29 * Bits used for permissions (and sticky bit) 30 * 31 * @since 1.1 32 */ 33 int PERM_MASK = 07777; 34 /** 35 * Indicates symbolic links. 36 * 37 * @since 1.1 38 */ 39 int LINK_FLAG = 0120000; 40 /** 41 * Indicates plain files. 42 * 43 * @since 1.1 44 */ 45 int FILE_FLAG = 0100000; 46 /** 47 * Indicates directories. 48 * 49 * @since 1.1 50 */ 51 int DIR_FLAG = 040000; 52 53 // ---------------------------------------------------------- 54 // somewhat arbitrary choices that are quite common for shared 55 // installations 56 // ----------------------------------------------------------- 57 58 /** 59 * Default permissions for symbolic links. 60 * 61 * @since 1.1 62 */ 63 int DEFAULT_LINK_PERM = 0777; 64 /** 65 * Default permissions for directories. 66 * 67 * @since 1.1 68 */ 69 int DEFAULT_DIR_PERM = 0755; 70 /** 71 * Default permissions for plain files. 72 * 73 * @since 1.1 74 */ 75 int DEFAULT_FILE_PERM = 0644; 76 } 77