Sujet : Re: FreeTDS port to VMS V9.x on x86?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 24. Jun 2025, 01:37:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103crvv$1ip4g$11@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Pan/0.162 (Pokrosvk)
On Mon, 23 Jun 2025 20:17:57 -0400, Arne Vajhøj wrote:
Unfortunately that means that the entire fallback algorithm
in tds_vasprintf (write to null device to find output size,
allocate buffer of correct size and then write to buffer)
is broken.
What a dumb way to do it. Using the null device means making OS I/O calls
-- needless overhead just to find out how long a string -- which is being
put together entirely in userland -- needs to be.