* Threw away the broken stat() vs. _stat() mechanism to allow for more fields

in struct stat.
* Instead, I followed Marcus' great idea and added a compatibility check in
  the runtime loader: now, R5 binaries (also shared libraries) are detected,
  and they get special versions for stat(), fstat(), and lstat() that return
  the smaller stat struct.
* However, I've disabled (in src/system/libroot/posix/sys/stat.c) using the
  larger stat field for now, as this breaks some of our optional packages.
  So until we rebuild them all, this shouldn't be enabled.
* This should now also be used for BeOS compatibility in libnetwork.so.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27961 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-10-10 22:13:05 +00:00
parent 1b3b00c2a1
commit 2716cfd3d7
4 changed files with 90 additions and 57 deletions
@@ -43,6 +43,7 @@ typedef struct image_t {
int major;
int middle;
int minor;
bool haiku;
} gcc_version;
addr_t entry_point;