[hatari-devel] Problems with files greater 2 GiB |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Hatari devel list <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: [hatari-devel] Problems with files greater 2 GiB
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sat, 28 Jun 2025 10:34:46 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=uNSL6Ay7eLnKHdKFhISCB56Qv9l4wyc3Bjq0wiE6rdc=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To:x-icloud-hme; b=KSiezg9UjM1mGVw9TrbXjfRRrRlZDflJZ0ksm6uJBor/mzpgaVrFL6YXRhYjEuaW1 aPv/aGoVrtFPZbPNRohZhsRjYb/PtztL+Zq64cWmMw7EfDS470Y4jQLoIXsRYwwuHz IsecB6tAe3tgwz5NUfZgFQXAvkwm/IHyKUYjN7cQzQfqgaD3X6zudXyZ0JO5kfpHlw AFEMFh7kBwg9IMvaOl4+ahkZg9Edz7+6vjVjCTJ8B2iIBBdrSSqvXt2nlxZoCyACCC jTT/XjsXCQsb3rpjblR+ZXAi2R/+rxPEovwEcF8iO+oOWSLTAOaWN54rss2NnOHYo/ oEEiiXENXwz6g==
Hello all,
I have a problem handling files greater than 2 GiB in Previous on some platforms. For example in Windows it seems that off_t is a signed 32-bit integer. This means that many functions in file.c will fail with large files.
I think this can be fixed by adding -D_FILE_OFFSET_BITS=64 somewhere, probably right before the check for large file support in Hatari?