Beispiel #1
0
 public static int stat(string filename, out Stat stat)
 {
     return stat2 (filename, false, out stat);
 }
Beispiel #2
0
        private static int stat2(string filename, bool dereference, out Stat stat)
        {
            int device, inode, mode;
            int nlinks, uid, gid, rdev;
            long size, blksize, blocks;
            long atime, mtime, ctime;

            int ret = helper_Mono_Posix_Stat (filename, dereference,
                out device, out inode, out mode,
                out nlinks, out uid, out gid,
                out rdev, out size, out blksize, out blocks,
                out atime, out mtime, out ctime);

            stat = new Stat (
                device, inode, mode,
                nlinks, uid, gid,
                rdev, size, blksize, blocks,
                atime, mtime, ctime);

            if (ret != 0)
                return ret;

            return 0;
        }
Beispiel #3
0
 public static int lstat(string filename, out Stat stat)
 {
     return stat2 (filename, true, out stat);
 }