[libvirt] gnulib's mkstemp is now included, along with dependents

Jim Meyering jim at meyering.net
Thu Aug 7 13:08:48 UTC 2008


Jim Meyering <jim at meyering.net> wrote:
> Atsushi SAKAI <sakaia at jp.fujitsu.com> wrote:
>> virsh-virsh.o: In function `editWriteToTempFile':
>> C:/msys/1.0/home/Administrator/work/libvirt/src/virsh.c:5080: undefined reference to `mkstemp'
...
> There's a gnulib module for that (of course ;-).
> I'll have to relax licenses of mkstemp and the dependent module,
> tempname.  Should be no problem.

I've adjusted copyrights in gnulib, so have pushed
another batch of changes from gnulib.
mkstemp depends on tempname, which depends on gettimeofday

As usual, with portability testing, (and in particular with
my having to manually VC-add files that are normally automatically
pulled in via bootstrap/gnulib-tool), there's plenty of room for
error, so please update your cloned/checked-out directory and
make sure everything still builds on whatever systems you can.

>From f1b61128a8b7d9ffa891964f52f76152f8c679f7 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Thu, 7 Aug 2008 14:48:45 +0200
Subject: [PATCH] add the mkstemp module from gnulib

* bootstrap (modules): Add mkstemp.
The remainder of these changes are the result of running
./bootstrap, adding new files, and committing the result.
* gnulib/lib/gettimeofday.c: New file.
* gnulib/lib/mkstemp.c: New file.
* gnulib/lib/tempname.c: New file.
* gnulib/lib/tempname.h: New file.
* gnulib/m4/gettimeofday.m4: New file.
* gnulib/m4/mkstemp.m4: New file.
* gnulib/m4/tempname.m4: New file.
* gnulib/tests/test-gettimeofday.c: New file.
* gnulib/lib/Makefile.am: Update.
* gnulib/m4/gnulib-cache.m4: Likewise.
* gnulib/m4/gnulib-comp.m4: Likewise.
* gnulib/m4/inet_pton.m4: Likewise.
* gnulib/tests/Makefile.am: Likewise.
---
 ChangeLog                        |    4 +
 bootstrap                        |    1 +
 gnulib/lib/Makefile.am           |   29 ++++-
 gnulib/lib/gettimeofday.c        |  142 +++++++++++++++++
 gnulib/lib/mkstemp.c             |   44 ++++++
 gnulib/lib/tempname.c            |  314 ++++++++++++++++++++++++++++++++++++++
 gnulib/lib/tempname.h            |   39 +++++
 gnulib/m4/gettimeofday.m4        |  101 ++++++++++++
 gnulib/m4/gnulib-cache.m4        |    3 +-
 gnulib/m4/gnulib-comp.m4         |   12 ++
 gnulib/m4/inet_pton.m4           |    2 +-
 gnulib/m4/mkstemp.m4             |   56 +++++++
 gnulib/m4/tempname.m4            |   22 +++
 gnulib/tests/Makefile.am         |    9 +
 gnulib/tests/test-gettimeofday.c |   45 ++++++
 15 files changed, 820 insertions(+), 3 deletions(-)
 create mode 100644 gnulib/lib/gettimeofday.c
 create mode 100644 gnulib/lib/mkstemp.c
 create mode 100644 gnulib/lib/tempname.c
 create mode 100644 gnulib/lib/tempname.h
 create mode 100644 gnulib/m4/gettimeofday.m4
 create mode 100644 gnulib/m4/mkstemp.m4
 create mode 100644 gnulib/m4/tempname.m4
 create mode 100644 gnulib/tests/test-gettimeofday.c




More information about the libvir-list mailing list