~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to gnulib/tests/error.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-13 15:44:12 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20120513154412-fgmn5sxqdzgnzlx3
Tags: 0.9.12-0ubuntu1
* New upstream version:
  * Synchronize with debian packaging:
    - debian/control: Update build depends.
    - debian/libvirt-bin.postrm: Cleanup /var/log/libvirt
      on purge.
    - Bump standards verson (no changes).
    - debian/patches/Don-t-fail-if-we-can-t-setup-avahi.patch: Added
  * Dropped patches:
    - debian/patches/Debianize-libvirt-guests.patch
    - debian/patches/rewrite-lxc-controller-eof-handling-yet-again
    - debian/patches/ubuntu/libnl13.patch
    - debian/patches/ubuntu/fix-lxc-startup-error.patch
    - debian/patches/ubuntu/fix-bridge-fd.patch
    - debian/patches/ubuntu/skip-labelling-network-disks.patch
    - debian/patches/ubuntu/xen-xend-shutdown-detection.patch
    - debian/patches/ubuntu/xen-config-no-vfb-for-hvm.patch
    - debian/patches/debian/Disable-daemon-start-test.patch
    - debian/patches/debian/Disable-gnulib-s-test-nonplocking-pipe.sh.patch
    - debian/patches/ubuntu/9006-default-config-test-case.patch
    - debian/patches/fix-block-migration.patch
    - debian/patches/ubuntu/9022-qemu-unescape-HMP-commands-before-converting-them-to.patch
    - debian/patches/ubuntu/9023-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/9024-qemu-allow-snapshotting-of-sheepdog-and-rbd-disks.patch
    - debian/patches/9025-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/arm-gcc-workaround.patch
  * Rediffed:
    - debian/patches/Allow-libvirt-group-to-access-the-socket.patch
    - debian/patches/Disable-failing-virnetsockettest.patch
    - debian/patches/dnsmasq-as-priv-user
    - debian/patches/9002-better_default_uri_virsh.patch
  * debian/control: Add libnl-route-3-dev ass a build depends.
  * debian/patches/libnl3-build-fix.patch: Fix build with libnl3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* Error handler for noninteractive utilities
4
 
   Copyright (C) 1990-1998, 2000-2007, 2009-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1990-1998, 2000-2007, 2009-2012 Free Software Foundation, Inc.
5
3
   This file is part of the GNU C Library.
6
4
 
7
5
   This program is free software: you can redistribute it and/or modify
56
54
   function without parameters instead.  */
57
55
void (*error_print_progname) (void);
58
56
 
59
 
/* This variable is incremented each time `error' is called.  */
 
57
/* This variable is incremented each time 'error' is called.  */
60
58
unsigned int error_message_count;
61
59
 
62
60
#ifdef _LIBC
67
65
# include <limits.h>
68
66
# include <libio/libioP.h>
69
67
 
70
 
/* In GNU libc we want do not want to use the common name `error' directly.
 
68
/* In GNU libc we want do not want to use the common name 'error' directly.
71
69
   Instead make it a weak alias.  */
72
70
extern void __error (int status, int errnum, const char *message, ...)
73
71
     __attribute__ ((__format__ (__printf__, 3, 4)));
91
89
# include <unistd.h>
92
90
 
93
91
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
94
 
/* Get declarations of the Win32 API functions.  */
 
92
/* Get declarations of the native Windows API functions.  */
95
93
#  define WIN32_LEAN_AND_MEAN
96
94
#  include <windows.h>
97
95
/* Get _get_osfhandle.  */
127
125
is_open (int fd)
128
126
{
129
127
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
130
 
  /* On Win32: The initial state of unassigned standard file descriptors is
131
 
     that they are open but point to an INVALID_HANDLE_VALUE.  There is no
132
 
     fcntl, and the gnulib replacement fcntl does not support F_GETFL.  */
 
128
  /* On native Windows: The initial state of unassigned standard file
 
129
     descriptors is that they are open but point to an INVALID_HANDLE_VALUE.
 
130
     There is no fcntl, and the gnulib replacement fcntl does not support
 
131
     F_GETFL.  */
133
132
  return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE;
134
133
# else
135
134
#  ifndef F_GETFL