OSDN Git Service

* bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
authorAlan Modra <amodra@bigpond.net.au>
Wed, 10 Jan 2007 13:36:34 +0000 (13:36 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Wed, 10 Jan 2007 13:36:34 +0000 (13:36 +0000)
commitf25d4ff93494d5ed05c47f280f7711853eacec0f
treef16e2a9d46eba8b2592fe609d13ab861269135e2
parentd99bbfc360207608a2e1730f44c5a3c1bdb8da12
* bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
* bucomm.c (template_in_dir): New function, split out from..
(make_tempname): ..here.  Open the file with O_EXCL if !HAVE_MKSTEMP.
(make_tempdir): Use template_in_dir.  Handle directory creation
when !HAVE_MKDTEMP.
* objcopy.c (MKDIR): Don't define.
(copy_archive): Use make_tempdir when !HAVE_MKDTEMP too.  Fix
error message.
binutils/ChangeLog
binutils/bucomm.c
binutils/bucomm.h
binutils/objcopy.c