ftruncate() and fileno() are not supported on all versions of OpenVMS
authorRichard Levitte <levitte@openssl.org>
Sat, 26 Feb 2000 01:55:56 +0000 (01:55 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 26 Feb 2000 01:55:56 +0000 (01:55 +0000)
commit668ba7d63f68a3326f68abf1dbeae81538e81813
tree753914491b28e326a5ecf68864b1f59786e7c652
parentc7cb16a8ffa2a791949044378f278e8f4089d7d6
ftruncate() and fileno() are not supported on all versions of OpenVMS
(they don't really exist before version 7), so that solution was toast.
Instead, let's do it the way it's done on Unix, but then remove older
versions of the file.

That new mechanism *may* fail for some unixly formated file spec,
although I wouldn't worry too much about it.
crypto/rand/randfile.c