OSDN Git Service

* bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
authoramodra <amodra>
Wed, 10 Jan 2007 13:36:34 +0000 (13:36 +0000)
committeramodra <amodra>
Wed, 10 Jan 2007 13:36:34 +0000 (13:36 +0000)
commit20fb39620cecb98cbf3bacee039408c4da5cc6c1
treebdffebd22d4be9ff0e88f5999455e07b2f6a5398
parente6463dc090f163a3d823c3b10e768ecefd25b4d8
* 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