|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Macintosh compile errors and warnings SVN 583 |
Date: | Tue, 31 Mar 2015 18:53:55 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Peter, Elias, I have created something that MAY compile. However: man mkstemp says: mkstemps(): unstandardized, but appears on several other systems. man tmpnam (the one I used instead) says: Never use this function. Use mkstemp(3) or tmpfile(3) instead. Peter: Chances are that on your box mkstemp is declared in /usr/include/unistd.h instead of /usr/include/stdlib.h. If that is so then please let me know and I will revert the code and #include it. Since this us Elias' code he should have the final word. tmpfile() seems to be more portable, but it returns a FILE * instead of an fd and deletes the file on exit(). /// Jürgen On 03/31/2015 05:47 PM, Peter Teeson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |