/* 9P Protocol JAVA * PFS/cons.java * Autor: Jaime Garzon (2005) jgarzon@gmail.com * * Constantes con los modos de apertura de un fichero. */ package PFS; public class cons { //******************* // CONSTANTES //******************* public static final long DMDIR = 0x80000000; public static final long DMAPPEND = 0x40000000; public static final long DMEXCL = 0x20000000; public static final long DMTMP = 0x04000000; public static final byte OREAD = 0; /* open for read */ public static final byte OWRITE = 1; /* write */ public static final byte ORDWR = 2; /* read and write */ public static final byte OEXEC = 3; /* execute, == read but check execute permission */ public static final byte OTRUNC = 16; /* or'ed in (except for exec), truncate file first */ public static final byte OCEXEC = 32; /* or'ed in, close on exec */ public static final byte ORCLOSE = 64; /* or'ed in, remove on close */ }