~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to lib/err/err.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                                       HASH_INT_KEY | HASH_FLAG_ATOMIC, NULL)
61
61
#define PTRTABLE() HashTable_AllocOnce(&errPtrTable, HASHTABLE_SIZE, \
62
62
                                       HASH_INT_KEY | HASH_FLAG_ATOMIC, NULL)
63
 
#ifdef VMX86_DEBUG
 
63
#if defined VMX86_DEBUG && defined __linux__
64
64
Atomic_Ptr errStrTable;
65
65
#define STRTABLE() HashTable_AllocOnce(&errStrTable, HASHTABLE_SIZE, \
66
66
                                       HASH_STRING_KEY | HASH_FLAG_ATOMIC, \
184
184
   oldInfo = HashTable_LookupOrInsert(ptrTable, info->string, info);
185
185
   ASSERT(oldInfo == info);
186
186
 
187
 
#ifdef VMX86_DEBUG
 
187
#if defined VMX86_DEBUG && defined __linux__
188
188
   {
189
189
      HashTable *strTable = STRTABLE();
190
190
      ErrInfo *i = HashTable_LookupOrInsert(strTable, info->string, info);
256
256
Err_Number
257
257
Err_String2ErrnoDebug(const char *string) // IN
258
258
{
 
259
#ifdef __linux__
259
260
   HashTable *strTable = STRTABLE();
260
261
   ErrInfo *info;
261
262
 
270
271
          __FUNCTION__, info->number, string, string, info->string);
271
272
   }
272
273
   return info->number;
 
274
#else
 
275
   return ERR_INVALID;
 
276
#endif
273
277
}
274
278
#endif