Mail Archives: djgpp-workers/1996/10/25/01:13:16
Following both command lines are correct but cannot work under v2.01.
ar rv libnew.a object.o
mv foo bar
This problem comes from missing rename. Probably other commands have
same problem.
------------------------------------------------------------
diff -acr src-orig/libc/ansi/stdio/_rename.c src/libc/ansi/stdio/_rename.c
*** src-orig/libc/ansi/stdio/_rename.c Sat Oct 19 11:24:54 1996
--- src/libc/ansi/stdio/_rename.c Fri Oct 25 13:41:48 1996
***************
*** 32,38 ****
char *pbase = 0, *p;
static char try_char[] = "abcdefghijklmnopqrstuvwxyz012345789";
! int idx = sizeof(try_char);
/* Generate a temporary name. Can't use `tmpnam', since $TMPDIR
might point to another drive, which will fail the DOS call. */
--- 32,38 ----
char *pbase = 0, *p;
static char try_char[] = "abcdefghijklmnopqrstuvwxyz012345789";
! int idx = sizeof(try_char) - 1;
/* Generate a temporary name. Can't use `tmpnam', since $TMPDIR
might point to another drive, which will fail the DOS call. */
------------------------------------------------------------
Daisuke Aoyama
jack AT st DOT rim DOT or DOT jp
- Raw text -