ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sys_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/sys_unix.cpp (file contents):
Revision 1.34 by asvitkine, 2012-03-01T04:22:27Z vs.
Revision 1.35 by asvitkine, 2012-03-01T04:24:45Z

# Line 800 | Line 800 | loff_t SysGetFileSize(void *arg)
800          if (fh->is_file)
801                  return fh->file_size;
802          else {
803                long blocks;
803   #if defined(__linux__)
804 +                long blocks;
805                  if (ioctl(fh->fd, BLKGETSIZE, &blocks) < 0)
806                          return 0;
807                  D(bug(" BLKGETSIZE returns %d blocks\n", blocks));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines