Overview
| Artifact ID: | 1227d23a1cafab0f882357e347b1d893bad0ee04d24d334640b41e7ca2f1303d |
|---|---|
| Ticket: | 02b58d5d040821baebe7eccd70aee11afa1bacae
Direct access of *64 functions by Tcl code (code cleanup) |
| User & Date: | chrstphrchvz on 2023-07-21 15:12:41 |
Changes
- closedate changed to: "2460147.13380809"
- closer changed to: "chrstphrchvz"
- icomment:
I apologize for any confusion, but my comment about the order of tests does not apply to <tt>_LARGEFILE64_SOURCE</tt>, so I don’t think [d6640b90305e] makes any difference. Although that macro is also considered obsolete, it is in the sense that the family of function declarations and structure definitions it enables, e.g. <tt>stat64()</tt> and <tt>struct stat64</tt>, are obsolete in favor defining <tt>_FILE_OFFSET_BITS=64</tt> to enable 64-bit <tt>stat()</tt> and <tt>struct stat</tt> and using those instead. Not defining <tt>_LARGEFILE64_SOURCE</tt> leaves <tt>stat64()</tt> and <tt>struct stat64</tt> disabled, regardless of whether <tt>_FILE_OFFSET_BITS=64</tt> is defined. Also be aware that, depending on whether <tt>_FILE_OFFSET_BITS=64</tt> or <tt>_TIME_BITS=64</tt> are defined, <tt>sizeof(struct stat64)</tt> and the implementation (i.e. symbol name) of <tt>stat64()</tt> can change on 32-bit systems. P.S.: [https://gcc.godbolt.org] is a neat tool for exploring this stuff.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"