1 |
|
/* |
2 |
|
* extfs.cpp - MacOS file system for native file system access |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2005 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
1800 |
|
return fnOpnErr; |
1801 |
|
|
1802 |
|
// Set file position |
1803 |
< |
switch (ReadMacInt16(pb + ioPosMode)) { |
1803 |
> |
switch (ReadMacInt16(pb + ioPosMode) & 3) { |
1804 |
|
case fsFromStart: |
1805 |
|
if (lseek(fd, ReadMacInt32(pb + ioPosOffset), SEEK_SET) < 0) |
1806 |
|
return posErr; |