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: V01U2FsdGVkX19ku1lOcqVku0Awq5NXm00qrF0hsWYzj0o7cdYuib Y+l/Wi2oxHqoU/ From: Juan Manuel Guerrero To: djgpp-workers AT delorie DOT com Subject: Re: Wrong declaration of mkstemp and mktemp Date: Wed, 26 Mar 2008 18:10:44 +0100 User-Agent: KMail/1.9.5 References: <200803261644 DOT 19441 DOT juan DOT guerrero AT gmx DOT de> <200803261623 DOT m2QGNUUQ016426 AT envy DOT delorie DOT com> In-Reply-To: <200803261623.m2QGNUUQ016426@envy.delorie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Message-Id: <200803261810.44447.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m2QHLlKv007001 Reply-To: djgpp-workers AT delorie DOT com Am Mittwoch, 26. März 2008 17:23 schrieben Sie: > > Probably OK at this point to just update the .h files and leave the > source files where they are. > Header, .c and .txh files changed. Source files remain in their places. Regards, Juan M. Guerrero 2008-03-26 Juan Manuel Guerrero * src/include/stdio.h: Declarations for mkstemp and mktemp removed. * src/include/stdlib.h: Declarations for mkstemp and mktemp added. * src/libc/compat/stdio/mkstemp.c: Include stdlib.h for prototyp. * src/libc/compat/stdio/mkstemp.txh: stdio.h replaced by stdlib.h in exmaple. * src/libc/compat/stdio/mktemp.c: Include stdlib.h for prototyp. * src/libc/compat/stdio/mktemp.txh: stdio.h replaced by stdlib.h in exmaple. diff -aprNU3 djgpp.orig/include/stdio.h djgpp/include/stdio.h --- djgpp.orig/include/stdio.h 2007-12-11 07:48:42 +0000 +++ djgpp/include/stdio.h 2008-03-26 18:03:02 +0000 @@ -140,7 +140,6 @@ int vsscanf(const char *_s, const char * int fileno(FILE *_stream); FILE * fdopen(int _fildes, const char *_type); -int mkstemp(char *_template); int pclose(FILE *_pf); FILE * popen(const char *_command, const char *_mode); char * tempnam(const char *_dir, const char *_prefix); @@ -159,7 +158,6 @@ int _doscan(FILE *_f, const char *_fmt, int _doscan_low(FILE *, int (*)(FILE *_get), int (*_unget)(int, FILE *), const char *_fmt, va_list _args); int fpurge(FILE *_f); int getw(FILE *_f); -char * mktemp(char *_template); int putw(int _v, FILE *_f); void setbuffer(FILE *_f, void *_buf, int _size); void setlinebuf(FILE *_f); diff -aprNU3 djgpp.orig/include/stdlib.h djgpp/include/stdlib.h --- djgpp.orig/include/stdlib.h 2003-02-20 19:06:14 +0000 +++ djgpp/include/stdlib.h 2008-03-26 18:03:02 +0000 @@ -125,6 +125,8 @@ long jrand48(unsigned short _ void lcong48(unsigned short _param[7]); unsigned long lrand48(void); void * memalign (size_t _amt, size_t _align); +int mkstemp(char *_template); +char * mktemp(char *_template); long mrand48(void); unsigned long nrand48(unsigned short _state[3]); unsigned short *seed48(unsigned short _state_seed[3]); diff -aprNU3 djgpp.orig/src/libc/compat/stdio/mkstemp.c djgpp/src/libc/compat/stdio/mkstemp.c --- djgpp.orig/src/libc/compat/stdio/mkstemp.c 2002-10-17 23:00:24 +0000 +++ djgpp/src/libc/compat/stdio/mkstemp.c 2008-03-26 18:03:46 +0000 @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include diff -aprNU3 djgpp.orig/src/libc/compat/stdio/mkstemp.txh djgpp/src/libc/compat/stdio/mkstemp.txh --- djgpp.orig/src/libc/compat/stdio/mkstemp.txh 2003-01-29 12:39:18 +0000 +++ djgpp/src/libc/compat/stdio/mkstemp.txh 2008-03-26 18:03:02 +0000 @@ -3,9 +3,9 @@ @subheading Syntax @example -#include +#include -int mkstemp(char *template); +int mkstemp(char *@var{template}); @end example @subheading Description diff -aprNU3 djgpp.orig/src/libc/compat/stdio/mktemp.c djgpp/src/libc/compat/stdio/mktemp.c --- djgpp.orig/src/libc/compat/stdio/mktemp.c 2000-08-28 13:29:30 +0000 +++ djgpp/src/libc/compat/stdio/mktemp.c 2008-03-26 18:03:44 +0000 @@ -6,6 +6,7 @@ #include #include #include +#include #include static int mktemp_count = -1; diff -aprNU3 djgpp.orig/src/libc/compat/stdio/mktemp.txh djgpp/src/libc/compat/stdio/mktemp.txh --- djgpp.orig/src/libc/compat/stdio/mktemp.txh 2003-01-29 12:39:18 +0000 +++ djgpp/src/libc/compat/stdio/mktemp.txh 2008-03-26 18:03:02 +0000 @@ -3,9 +3,9 @@ @subheading Syntax @example -#include +#include -char *mktemp(char *template); +char *mktemp(char *@var{template}); @end example @subheading Description