Mail Archives: djgpp-workers/2008/03/26/12:22:10
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 <juan DOT guerrero AT gmx DOT de>
* 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 <libc/symlink.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <io.h>
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 <stdio.h>
+#include <stdlib.h>
-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 <libc/symlink.h>
#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
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 <stdio.h>
+#include <stdlib.h>
-char *mktemp(char *template);
+char *mktemp(char *@var{template});
@end example
@subheading Description
- Raw text -