Sujet : Re: Running an editor from ANSI C
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.cDate : 06. Jun 2024, 15:35:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3shg9$1htuf$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 06/06/2024 15:13, Richard Harnden wrote:
On 06/06/2024 14:54, Scott Lurndal wrote:
David Brown <david.brown@hesbynett.no> writes:
On 06/06/2024 10:27, Malcolm McLean wrote:
>
It does work. But my compiler warns about rmpnam() being deprecated.
>
>
I presume you mean "tmpnam()" here. No, it has not been deprecated -
>
True, but at least one form of it is not thread-safe.
>
My man page (Linux man-pages 6.04, 2023-03-30) says that both tmpnam and tmpnam_r are deprecated, and you should use mkstemp(3) or tmpfile(3) instead.
It doesn't work.
The only way I can get the Baby X shell to run nano is to use tmpnam().
I've tried mkstemp insteaad, and I just can't find a way.
tmpfile() is a different kind of a function. Only on very constrained
systems will it actually write anything to the backing store.
-- Check out Basic Algorithms and my other books:https://www.lulu.com/spotlight/bgy1mm