~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/include/bsd_output_int.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-15 21:21:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080815212140-05fhxj8wroosysmj
Tags: 2008.08.08-109361-1ubuntu1
* Merge from Debian unstable (LP: #258393), remaining Ubuntu change:
  - add ubuntu_toolchain_FTBFS.dpatch patch, fix FTBFS
* Update ubuntu_toolchain_FTBFS.dpatch patch for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* **********************************************************
2
 
 * Copyright 2006 VMware, Inc.  All rights reserved.
3
 
 * **********************************************************/
4
 
 
5
 
/*-
6
 
 * Copyright (c) 1990, 1993
7
 
 *   The Regents of the University of California.  All rights reserved.
8
 
 *
9
 
 * This code is derived from software contributed to Berkeley by
10
 
 * Chris Torek.
11
 
 *
12
 
 * Redistribution and use in source and binary forms, with or without
13
 
 * modification, are permitted provided that the following conditions
14
 
 * are met:
15
 
 * 1. Redistributions of source code must retain the above copyright
16
 
 *    notice, this list of conditions and the following disclaimer.
17
 
 * 2. Redistributions in binary form must reproduce the above copyright
18
 
 *    notice, this list of conditions and the following disclaimer in the
19
 
 *    documentation and/or other materials provided with the distribution.
20
 
 * 4. Neither the name of the University nor the names of its contributors
21
 
 *    may be used to endorse or promote products derived from this software
22
 
 *    without specific prior written permission.
23
 
 *
24
 
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25
 
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
 
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28
 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30
 
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31
 
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
 
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
 
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34
 
 * SUCH DAMAGE.
35
 
 */
36
 
 
37
 
/*
38
 
 * bsd_output_int.h --
39
 
 *
40
 
 *    Declarations private to the BSD-borrowed formatted output
41
 
 *    funtions.
42
 
 */
43
 
 
44
 
#ifndef _BSD_OUTPUT_INT_H_
45
 
#define _BSD_OUTPUT_INT_H_
46
 
 
47
 
#define INCLUDE_ALLOW_USERLEVEL
48
 
#include "includeCheck.h"
49
 
 
50
 
#include "bsd_output.h"
51
 
#include "bsdfmt.h"
52
 
 
53
 
union arg {
54
 
   int   intarg;
55
 
   u_int   uintarg;
56
 
   long   longarg;
57
 
   u_long   ulongarg;
58
 
   long long longlongarg;
59
 
   unsigned long long ulonglongarg;
60
 
   ptrdiff_t ptrdiffarg;
61
 
   size_t   sizearg;
62
 
   intmax_t intmaxarg;
63
 
   uintmax_t uintmaxarg;
64
 
   void   *pvoidarg;
65
 
   char   *pchararg;
66
 
   signed char *pschararg;
67
 
   short   *pshortarg;
68
 
   int   *pintarg;
69
 
   long   *plongarg;
70
 
   long long *plonglongarg;
71
 
   ptrdiff_t *pptrdiffarg;
72
 
   size_t   *psizearg;
73
 
   intmax_t *pintmaxarg;
74
 
#ifndef NO_FLOATING_POINT
75
 
   double   doublearg;
76
 
   long double longdoublearg;
77
 
#endif
78
 
   wint_t   wintarg;
79
 
   wchar_t   *pwchararg;
80
 
};
81
 
 
82
 
/*
83
 
 * Type ids for argument type table.
84
 
 */
85
 
enum typeid {
86
 
   T_UNUSED, TP_SHORT, T_INT, T_U_INT, TP_INT,
87
 
   T_LONG, T_U_LONG, TP_LONG, T_LLONG, T_U_LLONG, TP_LLONG,
88
 
   T_PTRDIFFT, TP_PTRDIFFT, T_SIZET, TP_SIZET,
89
 
   T_INTMAXT, T_UINTMAXT, TP_INTMAXT, TP_VOID, TP_CHAR, TP_SCHAR,
90
 
   T_DOUBLE, T_LONG_DOUBLE, T_WINT, TP_WCHAR
91
 
};
92
 
 
93
 
#if defined _MSC_VER && _MSC_VER < 1400
94
 
/* VC80 has an internal wmemchr */
95
 
extern const wchar_t *wmemchr(
96
 
   const wchar_t * buf, 
97
 
   wchar_t c,
98
 
   size_t count
99
 
);
100
 
#endif
101
 
 
102
 
extern wint_t
103
 
bsd_btowc(int c);
104
 
 
105
 
#endif // _BSD_OUTPUT_INT_H_