www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/03/26/10:56:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1+5VKw2fZe5SPw5OcUklx2pyX8Vvg2DoYcVo/+exm
Ts3TogZjO/OayX
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Wrong declaration of mkstemp and mktemp
Date: Wed, 26 Mar 2008 16:44:18 +0100
User-Agent: KMail/1.9.5
MIME-Version: 1.0
Message-Id: <200803261644.19441.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

According to
  <http://www.opengroup.org/onlinepubs/000095399/functions/mkstemp.html>
and
  <http://www.opengroup.org/onlinepubs/000095399/functions/mktemp.html>
mkstemp() and mktemp() must be declared in stdlib.h and not in stdio.h as they
are.  According to
  <http://www.opengroup.org/onlinepubs/000095399/basedefs/stdlib.h.html>
they are a  X/Open System Interfaces Extensions
The files envolved are:
  /src/libc/compat/stdio/mkstemp.[c|txh]
  /src/libc/compat/stdio/mktemp.[c|txh]
  /src/libc/compat/stdio/makefile
Because I do not know where the files should be move to in the CVS tree, I will
not send any patch.  The current situation makes fail certain configure script
test that checks for this functionality.

Regards,
Juan M. Guerrero

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019