libvirt/tools
Paul Eggert 15d2c9fad4 Pass a correct pointer type to localtime_r(3).
On 09/04/2012 08:20 AM, Eric Blake wrote:
> tv_sec is required by POSIX to be
> of type time_t; so this is a bug in the OpenBSD header
> [for declaring it as long]

Most likely this problem arose because of the patch I pushed
in gnulib commit e07d7c40f3ca5ec410cf5aa6fa03cfe51e712039.
Previously, gnulib required timeval's tv_sec to be
the same size as time_t.  But now, it requires only that
tv_sec be big enough to hold a time_t.

This patch was needed for Emacs.  Without the patch, gnulib
replaced struct timeval on OpenBSD, and this messed up
utimens.c, and Emacs wouldn't build.

Alternatively, gnulib could substitute its own struct timeval
for the system's, wrapping every struct timeval-using function
(gettimeofday, futimesat, futimes, lutimes, etc.  That'd be
more work, though.  And it would introduce some performance
issues with gettimeofday, which is supposed to be fast.

I've been trying to get away from using struct timeval,
and to use the higher-resolution struct timespec instead,
so messing with these obsolescent interfaces has been
lower priority for me.  But if someone wants to take the
more-ambitious approach that'd be fine, I expect.

For this particular case, though, how about if we avoid
the problem entirely?  libvirt doesn't need to use struct
timeval here at all.  It makes libvirt smaller and probably
faster, and it ports to OpenBSD without messing with gnulib.
2012-09-04 17:20:08 -06:00
..
console.c virsh: console: Avoid using stream after being freed. 2012-08-03 13:33:18 +02:00
console.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.init.sh output status information during guest shutdown again 2012-08-21 15:52:26 -06:00
libvirt-guests.service.in output status information during guest shutdown again 2012-08-21 15:52:26 -06:00
libvirt-guests.sysconf libvirt-guests: Add parallel startup and shutdown of guests 2012-03-05 13:18:24 +01:00
Makefile.am virsh: split out virsh-volume.c 2012-08-21 00:23:12 -06:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh-domain-monitor.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-domain-monitor.h virsh: split out virsh-domain-monitor.c 2012-08-20 23:39:54 -06:00
virsh-domain.c Pass a correct pointer type to localtime_r(3). 2012-09-04 17:20:08 -06:00
virsh-domain.h virsh: declare more common functions 2012-08-20 23:56:18 -06:00
virsh-edit.c virsh: use common namespacing 2012-08-20 07:04:10 -06:00
virsh-host.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-host.h virsh: split out virsh-host.c 2012-08-20 23:51:29 -06:00
virsh-interface.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-interface.h virsh: split out virsh-interface.c 2012-08-20 23:59:06 -06:00
virsh-network.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-network.h virsh: split out virsh-network.c 2012-08-21 00:02:09 -06:00
virsh-nodedev.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-nodedev.h virsh: split out virsh-nodedev.c 2012-08-21 00:05:53 -06:00
virsh-nwfilter.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-nwfilter.h virsh: split out virsh-nwfilter.c 2012-08-21 00:07:30 -06:00
virsh-pool.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-pool.h virsh: split out virsh-pool.c 2012-08-21 00:11:29 -06:00
virsh-secret.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-secret.h virsh: split out virsh-secret.c 2012-08-21 00:16:35 -06:00
virsh-snapshot.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-snapshot.h virsh: split out virsh-snapshot.c 2012-08-21 00:19:10 -06:00
virsh-volume.c virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh-volume.h virsh: split out virsh-volume.c 2012-08-21 00:23:12 -06:00
virsh.c Pass a correct pointer type to localtime_r(3). 2012-09-04 17:20:08 -06:00
virsh.h virsh: remove unneeded usage of vshConnectionUsability() 2012-08-31 16:22:22 +02:00
virsh.pod virsh: Document subdriver option of attach-disk 2012-08-31 13:30:19 +02:00
virt-host-validate-common.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate-common.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate-lxc.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate-lxc.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate-qemu.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate-qemu.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-host-validate.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virt-pki-validate.in Fixup manpage names and copyright dates 2012-07-25 12:46:29 -04:00
virt-sanlock-cleanup.in Fix virt-sanlock-cleanup documentation 2011-10-17 10:57:36 -06:00
virt-xml-validate.in maint: avoid regression on copyright listings 2012-07-27 07:42:34 -06:00