st_dev = new dev_t(); pad1 = IS_32_BIT ? new Unsigned16() : null; st_ino = new UnsignedLong(); if (IS_32_BIT) { st_mode = new mode_t();
st_dev = new dev_t(); pad1 = IS_32_BIT ? new Unsigned16() : null; st_ino = new UnsignedLong(); if (IS_32_BIT) { st_mode = new mode_t();
__f_spare = null; } else { f_bsize = new UnsignedLong(); f_frsize = new UnsignedLong(); f_blocks = new fsblkcnt64_t(); f_bfree = new fsblkcnt64_t(); f_ffree = new fsfilcnt64_t(); f_favail = new fsfilcnt64_t(); f_fsid = new UnsignedLong(); f_unused = Platform.IS_32_BIT ? new Signed32() : null; f_flag = new UnsignedLong(); f_namemax = new UnsignedLong(); __f_spare = Platform.IS_MAC ? null : array(new Signed32[6]);
__f_spare = null; } else { f_bsize = new UnsignedLong(); f_frsize = new UnsignedLong(); f_blocks = new fsblkcnt64_t(); f_bfree = new fsblkcnt64_t(); f_ffree = new fsfilcnt64_t(); f_favail = new fsfilcnt64_t(); f_fsid = new UnsignedLong(); f_unused = Platform.IS_32_BIT ? new Signed32() : null; f_flag = new UnsignedLong(); f_namemax = new UnsignedLong(); __f_spare = Platform.IS_MAC ? null : array(new Signed32[6]);
protected FuseFileInfo(jnr.ffi.Runtime runtime) { super(runtime); if(!Platform.IS_WINDOWS) { flags = new Signed32(); fh_old = new UnsignedLong(); direct_io = new Padding(NativeType.UCHAR, 1); keep_cache = new Padding(NativeType.UCHAR, 1); flush = new Padding(NativeType.UCHAR, 1); nonseekable = new Padding(NativeType.UCHAR, 1); flock_release = new Padding(NativeType.UCHAR, 1); padding = new Padding(NativeType.UCHAR, 3); fh = new u_int64_t(); lock_owner = new u_int64_t(); } else { flags = new Signed32(); fh_old = new Unsigned32(); new Signed32(); // writepage direct_io = new Padding(NativeType.UCHAR, 1); keep_cache = new Padding(NativeType.UCHAR, 1); flush = new Padding(NativeType.UCHAR, 1); nonseekable = new Padding(NativeType.UCHAR, 1); flock_release = new Padding(NativeType.UCHAR, 0); padding = new Padding(NativeType.UCHAR, 0); fh = new u_int64_t(); lock_owner = new u_int64_t(); } }
protected FuseFileInfo(jnr.ffi.Runtime runtime) { super(runtime); if(!Platform.IS_WINDOWS) { flags = new Signed32(); fh_old = new UnsignedLong(); direct_io = new Padding(NativeType.UCHAR, 1); keep_cache = new Padding(NativeType.UCHAR, 1); flush = new Padding(NativeType.UCHAR, 1); nonseekable = new Padding(NativeType.UCHAR, 1); flock_release = new Padding(NativeType.UCHAR, 1); padding = new Padding(NativeType.UCHAR, 3); fh = new u_int64_t(); lock_owner = new u_int64_t(); } else { flags = new Signed32(); fh_old = new Unsigned32(); new Signed32(); // writepage direct_io = new Padding(NativeType.UCHAR, 1); keep_cache = new Padding(NativeType.UCHAR, 1); flush = new Padding(NativeType.UCHAR, 1); nonseekable = new Padding(NativeType.UCHAR, 1); flock_release = new Padding(NativeType.UCHAR, 0); padding = new Padding(NativeType.UCHAR, 0); fh = new u_int64_t(); lock_owner = new u_int64_t(); } }
public WindowsFindData(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); dwReserved0 = new UnsignedLong(); dwReserved1 = new UnsignedLong(); // This is epically large but any paths with //?/ can get a long name. Also even if you do not // and depend on MAX_PATH (original constant this struct is supposedly defined on) then you can // get overflows from FindFirstFileW on reparse points. So we will waste memory on allocation // to avoid the potential for buffer overflows. // This number specifically is the actual physical limit of a file size in NTFS. So although this // the functions using this struct cannot handle something this long the internet seems to think // it is possible to get these long values copied into this field. cFileName = new Padding(NativeType.USHORT, 32767); cAlternateFileName = new Padding(NativeType.USHORT, 14); }
public WindowsFindData(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); dwReserved0 = new UnsignedLong(); dwReserved1 = new UnsignedLong(); // This is epically large but any paths with //?/ can get a long name. Also even if you do not // and depend on MAX_PATH (original constant this struct is supposedly defined on) then you can // get overflows from FindFirstFileW on reparse points. So we will waste memory on allocation // to avoid the potential for buffer overflows. // This number specifically is the actual physical limit of a file size in NTFS. So although this // the functions using this struct cannot handle something this long the internet seems to think // it is possible to get these long values copied into this field. cFileName = new Padding(NativeType.USHORT, 32767); cAlternateFileName = new Padding(NativeType.USHORT, 14); }
public WindowsFindData(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); dwReserved0 = new UnsignedLong(); dwReserved1 = new UnsignedLong(); // This is epically large but any paths with //?/ can get a long name. Also even if you do not // and depend on MAX_PATH (original constant this struct is supposedly defined on) then you can // get overflows from FindFirstFileW on reparse points. So we will waste memory on allocation // to avoid the potential for buffer overflows. // This number specifically is the actual physical limit of a file size in NTFS. So although this // the functions using this struct cannot handle something this long the internet seems to think // it is possible to get these long values copied into this field. cFileName = new Padding(NativeType.USHORT, 32767); cAlternateFileName = new Padding(NativeType.USHORT, 14); }
/** * Creates an array of <tt>UnsignedLong</tt> instances. * * @param array the array to store the instances in * @return the array that was passed in */ protected final UnsignedLong[] array(UnsignedLong[] array) { arrayBegin(); for (int i = 0; i < array.length; ++i) { array[i] = new UnsignedLong(); } arrayEnd(); return array; }
/** * Creates an array of <tt>UnsignedLong</tt> instances. * * @param array the array to store the instances in * @return the array that was passed in */ protected final UnsignedLong[] array(UnsignedLong[] array) { arrayBegin(); for (int i = 0; i < array.length; ++i) { array[i] = new UnsignedLong(); } arrayEnd(); return array; }
/** * Creates an array of <tt>UnsignedLong</tt> instances. * * @param array the array to store the instances in * @return the array that was passed in */ protected final UnsignedLong[] array(UnsignedLong[] array) { arrayBegin(); for (int i = 0; i < array.length; ++i) { array[i] = new UnsignedLong(); } arrayEnd(); return array; }
public WindowsFileInformation(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); }
public WindowsFileInformation(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); }
public WindowsFileInformation(jnr.ffi.Runtime runtime) { super(runtime); dwFileAttributes = new UnsignedLong(); clow = new UnsignedLong(); chigh = new UnsignedLong(); alow = new UnsignedLong(); ahigh = new UnsignedLong(); ulow = new UnsignedLong(); uhigh = new UnsignedLong(); nFileSizeHigh = new UnsignedLong(); nFileSizeLow = new UnsignedLong(); }