This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add test for stripping on archive
- From: "H . J . Lu" <hjl at lucon dot org>
- To: binutils at sourceware dot cygnus dot com
- Date: Thu, 29 Nov 2001 09:40:13 -0800
- Subject: Re: PATCH: Add test for stripping on archive
- References: <20011128235950.A2869@lucon.org>
On Wed, Nov 28, 2001 at 11:59:50PM -0800, H . J . Lu wrote:
> I'd like to check in this patch tomorrow if I don't get any objections
> by then.
>
>
> H.J.
> ----
> 2001-11-28 H.J. Lu <hjl@gnu.org>
>
> * binutils-all/objcopy.exp (strip_test): Add strip on archive.
>
I checked it in. I will check in the following patch shortly for
http://sources.redhat.com/ml/binutils/2001-11/msg00654.html
if I don't hear any objections soon.
H.J.
----
2001-11-26 H.J. Lu <hjl@gnu.org>
* bucomm.c (make_tempname): Revert the changes made on
2001-11-14 and 2001-11-12. They won't work with directories.
Index: bucomm.c
===================================================================
RCS file: /work/cvs/gnu/binutils/binutils/bucomm.c,v
retrieving revision 1.1.1.9
retrieving revision 1.1.1.9.2.1
diff -u -p -r1.1.1.9 -r1.1.1.9.2.1
--- bucomm.c 2001/11/15 00:19:49 1.1.1.9
+++ bucomm.c 2001/11/26 22:29:07 1.1.1.9.2.1
@@ -35,9 +35,6 @@
typedef long time_t;
#endif
#endif
-
-/* Ought to be defined in libiberty.h... */
-extern int mkstemps PARAMS ((char *, int));
/* Error reporting */
@@ -236,14 +233,14 @@ make_tempname (filename)
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
- close (mkstemps (tmpname, 0));
+ mktemp (tmpname);
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
- close (mkstemps (tmpname, 0));
+ mktemp (tmpname);
}
return tmpname;
}