delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/30/10:37:58

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: [patch] tempnam NULL prefix handling
30 Nov 1998 10:37:58 -0800 :
Message-ID: <19981130131554.A15656.cygnus.cygwin32.developers@cygnus.com>
References: <199811300657 DOT AAA24419 AT modi DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>, cygwin32-developers AT cygnus DOT com

I've applied this patch.

I also had to add a _CONST to the tempnam declaration in lib/stdio/tmpnam.c.

cgf

On Mon, Nov 30, 1998 at 12:57:21AM -0600, Mumit Khan wrote:
>See bug report in gnu-win32 list for details. Wish someone would volunteer
>(obviously not me ;-) to clean up the newlib prototypes for ANSI
>conformance (mostly 'const char*' instead of 'char*') and fix the rest
>of the bugs in str* routines while at it.
>
>The fix doesn't fix the problem fully (see SVID/BSD tempnam for the
>"up to 5 characters of prefix"), but since POSIX code shouldn't be using
>it anyway, I don't care to do any more.
>
>Mon Nov 30 01:22:25 1998  Mumit Khan  <khan AT xraylith DOT wisc DOT edu>
>
>	* libc/include/stdio.h (tempnam): Add prototype.
>	* libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.

- Raw text -


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