]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
2008.05.15 refresh part two. 2008.05.15-93084
authorElliot Lee <elliot@elliot-dev1.eng.vmware.com>
Fri, 16 May 2008 21:26:08 +0000 (14:26 -0700)
committerElliot Lee <elliot@elliot-dev1.eng.vmware.com>
Fri, 16 May 2008 21:26:08 +0000 (14:26 -0700)
Forgot to 'add' all the modified files.

221 files changed:
open-vm-tools/ChangeLog
open-vm-tools/FILES
open-vm-tools/Makefile.in
open-vm-tools/NEWS
open-vm-tools/checkvm/Makefile.am
open-vm-tools/checkvm/Makefile.in
open-vm-tools/configure
open-vm-tools/configure.ac
open-vm-tools/guestd/Makefile.am
open-vm-tools/guestd/Makefile.in
open-vm-tools/guestd/foreignVMToolsNetworking.c
open-vm-tools/guestd/main.c
open-vm-tools/hgfsclient/Makefile.am
open-vm-tools/hgfsclient/Makefile.in
open-vm-tools/hgfsmounter/Makefile.am
open-vm-tools/hgfsmounter/Makefile.in
open-vm-tools/lib/Makefile.in
open-vm-tools/lib/SLPv2Parser/Makefile.am
open-vm-tools/lib/SLPv2Parser/Makefile.in
open-vm-tools/lib/auth/Makefile.am
open-vm-tools/lib/auth/Makefile.in
open-vm-tools/lib/backdoor/Makefile.am
open-vm-tools/lib/backdoor/Makefile.in
open-vm-tools/lib/backdoor/shared/Makefile.am
open-vm-tools/lib/backdoor/shared/Makefile.in
open-vm-tools/lib/conf/Makefile.am
open-vm-tools/lib/conf/Makefile.in
open-vm-tools/lib/deployPkg/Makefile.am
open-vm-tools/lib/deployPkg/Makefile.in
open-vm-tools/lib/deployPkg/deployPkg.c
open-vm-tools/lib/dict/Makefile.am
open-vm-tools/lib/dict/Makefile.in
open-vm-tools/lib/dnd/Makefile.am
open-vm-tools/lib/dnd/Makefile.in
open-vm-tools/lib/err/Makefile.am
open-vm-tools/lib/err/Makefile.in
open-vm-tools/lib/eventManager/Makefile.am
open-vm-tools/lib/eventManager/Makefile.in
open-vm-tools/lib/file/Makefile.am
open-vm-tools/lib/file/Makefile.in
open-vm-tools/lib/file/filePosix.c
open-vm-tools/lib/foundryMsg/Makefile.am
open-vm-tools/lib/foundryMsg/Makefile.in
open-vm-tools/lib/ghIntegrationStub/Makefile.am
open-vm-tools/lib/ghIntegrationStub/Makefile.in
open-vm-tools/lib/guestApp/Makefile.am
open-vm-tools/lib/guestApp/Makefile.in
open-vm-tools/lib/guestApp/guestApp.c
open-vm-tools/lib/guestInfo/Makefile.am
open-vm-tools/lib/guestInfo/Makefile.in
open-vm-tools/lib/guestInfo/guestInfoPerfMonLinux.c
open-vm-tools/lib/guestInfo/guestInfoPosix.c
open-vm-tools/lib/guestInfo/guestInfoServer.c
open-vm-tools/lib/hgfs/Makefile.am
open-vm-tools/lib/hgfs/Makefile.in
open-vm-tools/lib/hgfsBd/Makefile.am
open-vm-tools/lib/hgfsBd/Makefile.in
open-vm-tools/lib/hgfsServer/Makefile.am
open-vm-tools/lib/hgfsServer/Makefile.in
open-vm-tools/lib/hgfsServer/hgfsServer.c
open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
open-vm-tools/lib/hgfsServerManagerGuest/Makefile.am
open-vm-tools/lib/hgfsServerManagerGuest/Makefile.in
open-vm-tools/lib/hgfsServerPolicyGuest/Makefile.am
open-vm-tools/lib/hgfsServerPolicyGuest/Makefile.in
open-vm-tools/lib/impersonate/Makefile.am
open-vm-tools/lib/impersonate/Makefile.in
open-vm-tools/lib/include/buildNumber.h
open-vm-tools/lib/include/codeset.h
open-vm-tools/lib/include/dnd.h
open-vm-tools/lib/include/file.h
open-vm-tools/lib/include/file_extensions.h
open-vm-tools/lib/include/guestApp.h
open-vm-tools/lib/include/guestInfo.h
open-vm-tools/lib/include/guestInfoInt.h
open-vm-tools/lib/include/guest_msg_def.h
open-vm-tools/lib/include/guest_os.h
open-vm-tools/lib/include/hashTable.h
open-vm-tools/lib/include/hgfsProto.h
open-vm-tools/lib/include/hgfsServerInt.h
open-vm-tools/lib/include/hgfsServerPolicy.h
open-vm-tools/lib/include/hgfsUtil.h
open-vm-tools/lib/include/loglevel_defs.h
open-vm-tools/lib/include/loglevel_user.h
open-vm-tools/lib/include/msg.h
open-vm-tools/lib/include/stats_user_defs.h
open-vm-tools/lib/include/stats_user_setup.h
open-vm-tools/lib/include/str.h
open-vm-tools/lib/include/system.h
open-vm-tools/lib/include/unicodeOperations.h
open-vm-tools/lib/include/unicodeTypes.h
open-vm-tools/lib/include/util.h
open-vm-tools/lib/include/vixCommands.h
open-vm-tools/lib/include/vm_basic_asm_x86_64.h
open-vm-tools/lib/include/vm_basic_defs.h
open-vm-tools/lib/include/vm_basic_types.h
open-vm-tools/lib/include/vm_version.h
open-vm-tools/lib/include/vmbackup_def.h
open-vm-tools/lib/include/vmblock.h
open-vm-tools/lib/include/x86cpuid.h
open-vm-tools/lib/message/Makefile.am
open-vm-tools/lib/message/Makefile.in
open-vm-tools/lib/message/shared/Makefile.am
open-vm-tools/lib/message/shared/Makefile.in
open-vm-tools/lib/misc/Makefile.am
open-vm-tools/lib/misc/Makefile.in
open-vm-tools/lib/misc/codesetOld.c
open-vm-tools/lib/misc/shared/Makefile.am
open-vm-tools/lib/misc/shared/Makefile.in
open-vm-tools/lib/misc/util_misc.c
open-vm-tools/lib/netUtil/Makefile.am
open-vm-tools/lib/netUtil/Makefile.in
open-vm-tools/lib/panic/Makefile.am
open-vm-tools/lib/panic/Makefile.in
open-vm-tools/lib/panicDefault/Makefile.am
open-vm-tools/lib/panicDefault/Makefile.in
open-vm-tools/lib/printer/Makefile.am
open-vm-tools/lib/printer/Makefile.in
open-vm-tools/lib/procMgr/Makefile.am
open-vm-tools/lib/procMgr/Makefile.in
open-vm-tools/lib/rpcIn/Makefile.am
open-vm-tools/lib/rpcIn/Makefile.in
open-vm-tools/lib/rpcOut/Makefile.am
open-vm-tools/lib/rpcOut/Makefile.in
open-vm-tools/lib/rpcOut/shared/Makefile.am
open-vm-tools/lib/rpcOut/shared/Makefile.in
open-vm-tools/lib/rpcVmx/Makefile.am
open-vm-tools/lib/rpcVmx/Makefile.in
open-vm-tools/lib/socketMgr/Makefile.am
open-vm-tools/lib/socketMgr/Makefile.in
open-vm-tools/lib/strUtil/Makefile.am
open-vm-tools/lib/strUtil/Makefile.in
open-vm-tools/lib/string/Makefile.am
open-vm-tools/lib/string/Makefile.in
open-vm-tools/lib/string/shared/Makefile.am
open-vm-tools/lib/string/shared/Makefile.in
open-vm-tools/lib/sync/Makefile.am
open-vm-tools/lib/sync/Makefile.in
open-vm-tools/lib/sync/shared/Makefile.am
open-vm-tools/lib/sync/shared/Makefile.in
open-vm-tools/lib/syncDriver/Makefile.am
open-vm-tools/lib/syncDriver/Makefile.in
open-vm-tools/lib/system/Makefile.am
open-vm-tools/lib/system/Makefile.in
open-vm-tools/lib/system/systemLinux.c
open-vm-tools/lib/toolsLogger/Makefile.am
open-vm-tools/lib/toolsLogger/Makefile.in
open-vm-tools/lib/unicode/Makefile.am
open-vm-tools/lib/unicode/Makefile.in
open-vm-tools/lib/unityStub/Makefile.am
open-vm-tools/lib/unityStub/Makefile.in
open-vm-tools/lib/user/Makefile.am
open-vm-tools/lib/user/Makefile.in
open-vm-tools/lib/vixTools/Makefile.am
open-vm-tools/lib/vixTools/Makefile.in
open-vm-tools/lib/vixTools/vixTools.c
open-vm-tools/lib/vmBackupLib/Makefile.am
open-vm-tools/lib/vmBackupLib/Makefile.in
open-vm-tools/lib/vmBackupLib/scriptOps.c
open-vm-tools/lib/vmBackupLib/stateMachine.c
open-vm-tools/lib/vmCheck/Makefile.am
open-vm-tools/lib/vmCheck/Makefile.in
open-vm-tools/lib/vmSignal/Makefile.am
open-vm-tools/lib/vmSignal/Makefile.in
open-vm-tools/lib/wiper/Makefile.am
open-vm-tools/lib/wiper/Makefile.in
open-vm-tools/libguestlib/Makefile.am
open-vm-tools/libguestlib/Makefile.in
open-vm-tools/modules/Makefile.in
open-vm-tools/modules/freebsd/vmblock/vm_basic_defs.h
open-vm-tools/modules/freebsd/vmblock/vm_basic_types.h
open-vm-tools/modules/freebsd/vmblock/vmblock.h
open-vm-tools/modules/freebsd/vmhgfs/guest_msg_def.h
open-vm-tools/modules/freebsd/vmhgfs/hgfsProto.h
open-vm-tools/modules/freebsd/vmhgfs/hgfsUtil.h
open-vm-tools/modules/freebsd/vmhgfs/hgfs_kernel.h
open-vm-tools/modules/freebsd/vmhgfs/vm_basic_asm_x86_64.h
open-vm-tools/modules/freebsd/vmhgfs/vm_basic_defs.h
open-vm-tools/modules/freebsd/vmhgfs/vm_basic_types.h
open-vm-tools/modules/freebsd/vmhgfs/x86cpuid.h
open-vm-tools/modules/freebsd/vmmemctl/vm_basic_defs.h
open-vm-tools/modules/freebsd/vmmemctl/vm_basic_types.h
open-vm-tools/modules/freebsd/vmxnet/vm_basic_types.h
open-vm-tools/modules/freebsd/vmxnet/vm_device_version.h
open-vm-tools/modules/freebsd/vmxnet/vmnet_def.h
open-vm-tools/modules/linux/vmblock/include/vm_basic_defs.h
open-vm-tools/modules/linux/vmblock/include/vm_basic_types.h
open-vm-tools/modules/linux/vmblock/include/vmblock.h
open-vm-tools/modules/linux/vmblock/linux/control.c
open-vm-tools/modules/linux/vmblock/linux/vmblockInt.h
open-vm-tools/modules/linux/vmhgfs/bdhandler.c
open-vm-tools/modules/linux/vmhgfs/dir.c
open-vm-tools/modules/linux/vmhgfs/file.c
open-vm-tools/modules/linux/vmhgfs/filesystem.h
open-vm-tools/modules/linux/vmhgfs/fsutil.h
open-vm-tools/modules/linux/vmhgfs/guest_msg_def.h
open-vm-tools/modules/linux/vmhgfs/hgfsProto.h
open-vm-tools/modules/linux/vmhgfs/hgfsUtil.h
open-vm-tools/modules/linux/vmhgfs/inode.c
open-vm-tools/modules/linux/vmhgfs/link.c
open-vm-tools/modules/linux/vmhgfs/module.h
open-vm-tools/modules/linux/vmhgfs/page.c
open-vm-tools/modules/linux/vmhgfs/request.c
open-vm-tools/modules/linux/vmhgfs/request.h
open-vm-tools/modules/linux/vmhgfs/vm_basic_asm_x86_64.h
open-vm-tools/modules/linux/vmhgfs/vm_basic_defs.h
open-vm-tools/modules/linux/vmhgfs/vm_basic_types.h
open-vm-tools/modules/linux/vmhgfs/x86cpuid.h
open-vm-tools/modules/linux/vmmemctl/vm_basic_defs.h
open-vm-tools/modules/linux/vmmemctl/vm_basic_types.h
open-vm-tools/modules/linux/vmxnet/vm_basic_types.h
open-vm-tools/modules/linux/vmxnet/vm_device_version.h
open-vm-tools/modules/linux/vmxnet/vmnet_def.h
open-vm-tools/toolbox/Makefile.am
open-vm-tools/toolbox/Makefile.in
open-vm-tools/vmware-user/Makefile.am
open-vm-tools/vmware-user/Makefile.in
open-vm-tools/vmware-user/foreignVMToolsNetworking.c
open-vm-tools/vmware-user/vmware-user.c
open-vm-tools/xferlogs/Makefile.am
open-vm-tools/xferlogs/Makefile.in

index 4b27cf07140888a5943f00c6c98c29a21c75e3af..63d9bd39574a5eee8982f986643dcf84c0c5daf7 100755 (executable)
@@ -1,3 +1,120 @@
+2008-05-12  Elliot Lee  <elliot@vmware.com>
+
+       * Resync with internal trunk (2008.05.08).
+
+       * configure.ac, **/Makefile.am: Use CPPFLAGS instead of
+       CFLAGS to eliminate warning about proc/sysinfo.h.
+
+       * guestd/foreignVMToolsNetworking.c,
+       vmware-user/foreignVMToolsNetworking.c
+       lib/hgfsServer/hgfsServerLinux.c, lib/include/hgfsServerInt.h,
+       modules/linux/vmhgfs/bdhandler.c, modules/linux/vmhgfs/dir.c,
+       modules/linux/vmhgfs/file.c, modules/linux/vmhgfs/filesystem.h,
+       modules/linux/vmhgfs/fsutil.h, modules/linux/vmhgfs/inode.c,
+       modules/linux/vmhgfs/link.c, modules/linux/vmhgfs/module.h,
+       modules/linux/vmhgfs/page.c, modules/linux/vmhgfs/request.c,
+       modules/linux/vmhgfs/request.h: Whitespace cleanups.
+
+       * guestd/main.c: Removed "blessed app" code for starting
+       vmware-user. Hooray!
+
+       * lib/deployPkg/deployPkg.c: Remove unneeded Utf8 conversion for
+       Windows.
+
+       * lib/file/filePosix.c: Use new Posix_RealPath implementation.
+
+       * lib/guestApp/guestApp.c, lib/include/guestApp.h: Remove/cleanup
+       UTF-8 related RPC functions.
+
+       * lib/guestInfo/guestInfoPerfMonLinux.c,
+       lib/guestInfo/guestInfoPosix.c, lib/include/guestInfo.h,
+       lib/include/guestInfoInt.h, lib/include/guestStats.h: Rename
+       structures to GuestMemInfo, GuestNicInfo, and GuestDiskInfo.
+
+       * lib/guestInfo/guestInfoServer.c, lib/include/guest_msg_def.h: As
+       above, and also GUESTMSG_MAX_IN_SIZE moved to guest_msg_def.h, and
+       misc locking updates. Also add GuestInfoServer_Main(), and cleanup
+       whitespace.
+
+       * lib/hgfsServer/hgfsServer.c: Cleanup UTF-8 handling.
+
+       * lib/include/codeset.h: Update defines that indicate whether the
+       current platform is using UTF-8.
+
+       * lib/include/dnd.h: Add prototypes for a couple of string
+       conversion functions.
+
+       * lib/include/file_extensions.h: Add OVF and Archived OVF file extensions.
+
+       * lib/include/file.h: C++ guard thingies. Update a couple of
+       function prototypes to work on file descriptors instead of
+       filenames.
+
+       * lib/include/hashTable.h, lib/include/guest_os.h,
+       lib/include/loglevel_defs.h, lib/include/stats_user_defs.h,
+       lib/include/stats_user_setup.h, lib/include/str.h,
+       lib/include/unicodeTypes.h, lib/include/util.h: Allow inclusion in
+       kernel modules...
+
+       * lib/include/loglevel_user.h: As above, and add a couple of
+       loglevel variables.
+
+       * lib/include/util.h, lib/misc/util_misc.c: Allow inclusion in
+       kernel modules as above, and add some utility functions on Windows
+       for manipulating canonical paths.
+
+       * lib/include/hgfsProto.h, lib/include/hgfsUtil.h: Move
+       request/reply payload macros to hgfsProto.h.
+
+       * lib/include/hgfsServerPolicy.h: Add ShareList management
+       prototypes and structure members.
+
+       * lib/include/msg.h: Add function prototypes for creating and
+       posting lists of messages.
+
+       * lib/include/system.h: Add types & functions related to desktop
+       switch monitoring on Windows.
+
+       * lib/include/unicodeOperations.h: Add/update inline unicode operations.
+
+       * lib/include/vixCommands.h: Add VIX requests and events.
+
+       * lib/include/vmbackup_def.h, lib/vmBackupLib/stateMachine.c: Move
+       backup status enum to public header.
+
+       * lib/include/vm_basic_asm_x86_64.h: Div643232 now also works on MSC.
+
+       * lib/include/vm_basic_defs.h: Add debug output macros for Windows drivers.
+
+       * lib/include/vm_basic_types.h: Update the FMTPD macro, add
+       SCANF_DECL macro for arg checking on scanf-like functions.
+
+       * lib/include/x86cpuid.h: Defines for AMD L2/L3 cache separately, and CPUID for Nehalem.
+
+       * lib/misc/codesetOld.c: Bug fixes and general unicode handling updates. 
+
+       * lib/system/systemLinux.c: Use Posix_Getenv/Posix_Setenv impls.
+
+       * lib/vixTools/vixTools.c, lib/vmBackupLib/scriptOps.c: Bug fixes.
+
+       * modules/freebsd/*, modules/linux/*: Updates to correspond to
+       updates of files in main tree.
+
+       * modules/freebsd/vmhgfs/hgfs_kernel.h: Bug fixes.
+
+       * modules/freebsd/vmxnet/vm_device_version: Add
+       SCSI_IDE_HOSTED_CHANNEL define, update SCSI_MAX_CHANNELS.
+
+       * modules/freebsd/vmxnet/vmnet.def: Add capabilities for IPv6
+       checksumming and TSO, and large packet TSO.
+
+       * lib/include/vmblock.h, modules/linux/vmblock/linux/control.c,
+       modules/linux/vmblock/linux/vmblockInt.h: Use a macro to better
+       abstract the vmblock mount point & device.
+
+       * vmware-user/vmware-user.c: Add SIGPIPE to the list of signals
+       that vmware-user handles.
+       
 2008-05-02  Adar Dembo  <adar@vmware.com>
 
        * Resync with internal trunk (2008.04.19).
index 4b30e3e0e4c5e3460205fdc7c119810425f0f28f..dc1a5a06ceedcc8c20048d71c1071292e4cf2d0f 100644 (file)
-open-vm-tools-2008.05.02-90473:
-total 1676
--rwxr-xr-x  1 mts mts     33 May  2 15:24 AUTHORS
--rwxr-xr-x  1 mts mts  26425 May  2 15:24 COPYING
--rwxr-xr-x  1 mts mts  36356 May  2 15:24 ChangeLog
--r--r--r--  1 mts mts   9416 May  2 15:25 INSTALL
--rwxr-xr-x  1 mts mts   1361 May  2 15:24 Makefile.am
--rw-r--r--  1 mts mts  21072 May  2 15:25 Makefile.in
--rwxr-xr-x  1 mts mts   1636 May  2 15:24 NEWS
--rwxr-xr-x  1 mts mts   6311 May  2 15:24 README
--rw-r--r--  1 mts mts 262309 May  2 15:25 aclocal.m4
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 autom4te.cache
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 checkvm
+open-vm-tools-2008.05.15-93084:
+total 1680
+-rwxr-xr-x  1 mts mts     33 May 16 00:02 AUTHORS
+-rwxr-xr-x  1 mts mts  26425 May 16 00:02 COPYING
+-rwxr-xr-x  1 mts mts  40633 May 16 00:02 ChangeLog
+-r--r--r--  1 mts mts   9416 May 16 00:02 INSTALL
+-rwxr-xr-x  1 mts mts   1361 May 16 00:02 Makefile.am
+-rw-r--r--  1 mts mts  21050 May 16 00:02 Makefile.in
+-rwxr-xr-x  1 mts mts   2007 May 16 00:02 NEWS
+-rwxr-xr-x  1 mts mts   6311 May 16 00:02 README
+-rw-r--r--  1 mts mts 262309 May 16 00:02 aclocal.m4
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 autom4te.cache
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 checkvm
 -r-xr-xr-x  1 mts mts  43668 Apr 28  2007 config.guess
 -r-xr-xr-x  1 mts mts  32151 Apr 28  2007 config.sub
--rwxr-xr-x  1 mts mts 910427 May  2 15:25 configure
--rwxr-xr-x  1 mts mts  23279 May  2 15:25 configure.ac
--r-xr-xr-x  1 mts mts  17574 May  2 15:25 depcomp
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 guestd
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 hgfsclient
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 hgfsmounter
--r-xr-xr-x  1 mts mts  13184 May  2 15:25 install-sh
-drwxr-xr-x 48 mts mts   4096 May  2 15:25 lib
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 libguestlib
+-rwxr-xr-x  1 mts mts 910516 May 16 00:02 configure
+-rwxr-xr-x  1 mts mts  23994 May 16 00:02 configure.ac
+-r-xr-xr-x  1 mts mts  17574 May 16 00:02 depcomp
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 guestd
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 hgfsclient
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 hgfsmounter
+-r-xr-xr-x  1 mts mts  13184 May 16 00:02 install-sh
+drwxr-xr-x 48 mts mts   4096 May 16 00:02 lib
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 libguestlib
 -r--r--r--  1 mts mts 198422 Apr 28  2007 ltmain.sh
--r-xr-xr-x  1 mts mts  11135 May  2 15:25 missing
-drwxr-xr-x  4 mts mts   4096 May  2 15:25 modules
-drwxr-xr-x  6 mts mts   4096 May  2 15:25 scripts
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 toolbox
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 vmware-user
-drwxr-xr-x  2 mts mts   4096 May  2 15:25 xferlogs
-
-open-vm-tools-2008.05.02-90473/autom4te.cache:
+-r-xr-xr-x  1 mts mts  11135 May 16 00:02 missing
+drwxr-xr-x  4 mts mts   4096 May 16 00:02 modules
+drwxr-xr-x  6 mts mts   4096 May 16 00:02 scripts
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 toolbox
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 vmware-user
+drwxr-xr-x  2 mts mts   4096 May 16 00:02 xferlogs
+
+open-vm-tools-2008.05.15-93084/autom4te.cache:
 total 2304
--rw-r--r-- 1 mts mts 912616 May  2 15:25 output.0
--rw-r--r-- 1 mts mts 912046 May  2 15:25 output.1
--rw-r--r-- 1 mts mts  10783 May  2 15:25 requests
--rw-r--r-- 1 mts mts 440048 May  2 15:25 traces.0
--rw-r--r-- 1 mts mts  60011 May  2 15:25 traces.1
+-rw-r--r-- 1 mts mts 912704 May 16 00:02 output.0
+-rw-r--r-- 1 mts mts 912134 May 16 00:02 output.1
+-rw-r--r-- 1 mts mts  10783 May 16 00:02 requests
+-rw-r--r-- 1 mts mts 439992 May 16 00:02 traces.0
+-rw-r--r-- 1 mts mts  59787 May 16 00:02 traces.1
 
-open-vm-tools-2008.05.02-90473/checkvm:
+open-vm-tools-2008.05.15-93084/checkvm:
 total 60
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  1001 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 14628 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  7107 May  2 15:25 checkvm.c
--r--r--r-- 1 mts mts  1544 May  2 15:25 checkvm_version.h
-
-open-vm-tools-2008.05.02-90473/guestd:
-total 352
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  3496 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 18363 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  6258 May  2 15:25 debugStdio.c
--r--r--r-- 1 mts mts 37366 May  2 15:25 foreignVMToolsDaemon.c
--r--r--r-- 1 mts mts  6210 May  2 15:25 foreignVMToolsDaemon.h
--r--r--r-- 1 mts mts 37059 May  2 15:25 foreignVMToolsNetworking.c
--r--r--r-- 1 mts mts 54676 May  2 15:25 foundryToolsDaemon.c
--r--r--r-- 1 mts mts  1766 May  2 15:25 foundryToolsDaemon.h
--r--r--r-- 1 mts mts  1521 May  2 15:25 guestd_version.h
--r--r--r-- 1 mts mts 61260 May  2 15:25 main.c
--r--r--r-- 1 mts mts  4731 May  2 15:25 stub.c
--r--r--r-- 1 mts mts 54521 May  2 15:25 toolsDaemon.c
--r--r--r-- 1 mts mts  4049 May  2 15:25 toolsDaemon.h
-
-open-vm-tools-2008.05.02-90473/hgfsclient:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts   959 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14578 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  7107 May 16 00:02 checkvm.c
+-r--r--r-- 1 mts mts  1544 May 16 00:02 checkvm_version.h
+
+open-vm-tools-2008.05.15-93084/guestd:
+total 328
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3416 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18275 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  6258 May 16 00:02 debugStdio.c
+-r--r--r-- 1 mts mts 37366 May 16 00:02 foreignVMToolsDaemon.c
+-r--r--r-- 1 mts mts  6210 May 16 00:02 foreignVMToolsDaemon.h
+-r--r--r-- 1 mts mts 36992 May 16 00:02 foreignVMToolsNetworking.c
+-r--r--r-- 1 mts mts 54676 May 16 00:02 foundryToolsDaemon.c
+-r--r--r-- 1 mts mts  1766 May 16 00:02 foundryToolsDaemon.h
+-r--r--r-- 1 mts mts  1521 May 16 00:02 guestd_version.h
+-r--r--r-- 1 mts mts 40324 May 16 00:02 main.c
+-r--r--r-- 1 mts mts  4731 May 16 00:02 stub.c
+-r--r--r-- 1 mts mts 54521 May 16 00:02 toolsDaemon.c
+-r--r--r-- 1 mts mts  4049 May 16 00:02 toolsDaemon.h
+
+open-vm-tools-2008.05.15-93084/hgfsclient:
 total 76
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  2182 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 16066 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 16756 May  2 15:25 hgfsclient.c
--r--r--r-- 1 mts mts  1576 May  2 15:25 hgfsclient_version.h
--r--r--r-- 1 mts mts  2398 May  2 15:25 stub.c
-
-open-vm-tools-2008.05.02-90473/hgfsmounter:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  2140 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 16016 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 16756 May 16 00:02 hgfsclient.c
+-r--r--r-- 1 mts mts  1576 May 16 00:02 hgfsclient_version.h
+-r--r--r-- 1 mts mts  2398 May 16 00:02 stub.c
+
+open-vm-tools-2008.05.15-93084/hgfsmounter:
 total 88
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  1164 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 14930 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 29755 May  2 15:25 hgfsmounter.c
--r--r--r-- 1 mts mts  1578 May  2 15:25 hgfsmounter_version.h
--r--r--r-- 1 mts mts  2113 May  2 15:25 stub.c
-
-open-vm-tools-2008.05.02-90473/lib:
-total 236
--r--r--r-- 1 mts mts 26425 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  1793 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 16403 May  2 15:25 Makefile.in
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 SLPv2Parser
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 auth
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 backdoor
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 conf
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 deployPkg
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 dict
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 dnd
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 err
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 eventManager
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 file
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 foundryMsg
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 ghIntegrationStub
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 guestApp
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 guestInfo
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 hgfs
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 hgfsBd
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 hgfsServer
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 hgfsServerManagerGuest
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 hgfsServerPolicyGuest
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 impersonate
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 include
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 message
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 misc
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 netUtil
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 panic
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 panicDefault
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 printer
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 procMgr
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 rpcIn
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 rpcOut
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 rpcVmx
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 socketMgr
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 strUtil
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 string
-drwxr-xr-x 3 mts mts  4096 May  2 15:25 sync
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 syncDriver
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 system
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 toolsLogger
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 unicode
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 unityStub
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 user
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 vixTools
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 vmBackupLib
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 vmCheck
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 vmSignal
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 wiper
-
-open-vm-tools-2008.05.02-90473/lib/SLPv2Parser:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1122 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14880 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 29755 May 16 00:02 hgfsmounter.c
+-r--r--r-- 1 mts mts  1578 May 16 00:02 hgfsmounter_version.h
+-r--r--r-- 1 mts mts  2113 May 16 00:02 stub.c
+
+open-vm-tools-2008.05.15-93084/lib:
+total 232
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1793 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 16381 May 16 00:02 Makefile.in
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 SLPv2Parser
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 auth
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 backdoor
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 conf
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 deployPkg
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 dict
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 dnd
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 err
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 eventManager
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 file
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 foundryMsg
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 ghIntegrationStub
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 guestApp
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 guestInfo
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 hgfs
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 hgfsBd
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 hgfsServer
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 hgfsServerManagerGuest
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 hgfsServerPolicyGuest
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 impersonate
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 include
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 message
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 misc
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 netUtil
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 panic
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 panicDefault
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 printer
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 procMgr
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 rpcIn
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 rpcOut
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 rpcVmx
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 socketMgr
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 strUtil
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 string
+drwxr-xr-x 3 mts mts  4096 May 16 00:02 sync
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 syncDriver
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 system
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 toolsLogger
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 unicode
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 unityStub
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 user
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 vixTools
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 vmBackupLib
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 vmCheck
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 vmSignal
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 wiper
+
+open-vm-tools-2008.05.15-93084/lib/SLPv2Parser:
 total 68
--r--r--r-- 1 mts mts  1125 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15026 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  7514 May  2 15:25 SLPv2Match.c
--r--r--r-- 1 mts mts 18294 May  2 15:25 SLPv2MsgAssembler.c
--r--r--r-- 1 mts mts 16818 May  2 15:25 SLPv2MsgParser.c
+-r--r--r-- 1 mts mts  1083 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14976 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  7514 May 16 00:02 SLPv2Match.c
+-r--r--r-- 1 mts mts 18294 May 16 00:02 SLPv2MsgAssembler.c
+-r--r--r-- 1 mts mts 16818 May 16 00:02 SLPv2MsgParser.c
 
-open-vm-tools-2008.05.02-90473/lib/auth:
+open-vm-tools-2008.05.15-93084/lib/auth:
 total 32
--r--r--r-- 1 mts mts  1041 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14639 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8638 May  2 15:25 authPosix.c
+-r--r--r-- 1 mts mts  1001 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14603 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8638 May 16 00:02 authPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/backdoor:
+open-vm-tools-2008.05.15-93084/lib/backdoor:
 total 52
--r--r--r-- 1 mts mts  1177 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 19352 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  6407 May  2 15:24 backdoor.c
--r--r--r-- 1 mts mts  6198 May  2 15:24 backdoorGcc32.c
--r--r--r-- 1 mts mts  5574 May  2 15:24 backdoorGcc64.c
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
-
-open-vm-tools-2008.05.02-90473/lib/backdoor/shared:
+-r--r--r-- 1 mts mts  1135 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 19302 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  6407 May 16 00:02 backdoor.c
+-r--r--r-- 1 mts mts  6198 May 16 00:02 backdoorGcc32.c
+-r--r--r-- 1 mts mts  5574 May 16 00:02 backdoorGcc64.c
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
+
+open-vm-tools-2008.05.15-93084/lib/backdoor/shared:
 total 24
--r--r--r-- 1 mts mts  1164 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 18229 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts  1122 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18179 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/conf:
+open-vm-tools-2008.05.15-93084/lib/conf:
 total 28
--r--r--r-- 1 mts mts  1005 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14606 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  5057 May  2 15:24 conf.c
+-r--r--r-- 1 mts mts   963 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14556 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  5057 May 16 00:02 conf.c
 
-open-vm-tools-2008.05.02-90473/lib/deployPkg:
+open-vm-tools-2008.05.15-93084/lib/deployPkg:
 total 40
--r--r--r-- 1 mts mts  1112 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14975 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8574 May  2 15:25 deployPkg.c
--r--r--r-- 1 mts mts  3246 May  2 15:25 deployPkgLog.c
--r--r--r-- 1 mts mts  3605 May  2 15:25 runDeployPkgPosix.c
+-r--r--r-- 1 mts mts  1070 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14925 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8242 May 16 00:02 deployPkg.c
+-r--r--r-- 1 mts mts  3246 May 16 00:02 deployPkgLog.c
+-r--r--r-- 1 mts mts  3605 May 16 00:02 runDeployPkgPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/dict:
+open-vm-tools-2008.05.15-93084/lib/dict:
 total 36
--r--r--r-- 1 mts mts  1008 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14612 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 15769 May  2 15:25 dictll.c
+-r--r--r-- 1 mts mts   965 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14562 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 15769 May 16 00:02 dictll.c
 
-open-vm-tools-2008.05.02-90473/lib/dnd:
+open-vm-tools-2008.05.15-93084/lib/dnd:
 total 64
--r--r--r-- 1 mts mts  1038 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14702 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 27742 May  2 15:25 dndCommon.c
--r--r--r-- 1 mts mts 15024 May  2 15:25 dndLinux.c
+-r--r--r-- 1 mts mts   996 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14652 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 27742 May 16 00:02 dndCommon.c
+-r--r--r-- 1 mts mts 15024 May 16 00:02 dndLinux.c
 
-open-vm-tools-2008.05.02-90473/lib/err:
+open-vm-tools-2008.05.15-93084/lib/err:
 total 36
--r--r--r-- 1 mts mts  1033 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14684 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  6614 May  2 15:25 err.c
--r--r--r-- 1 mts mts  1172 May  2 15:25 errInt.h
--r--r--r-- 1 mts mts  3158 May  2 15:25 errPosix.c
+-r--r--r-- 1 mts mts   990 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14634 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  6614 May 16 00:02 err.c
+-r--r--r-- 1 mts mts  1172 May 16 00:02 errInt.h
+-r--r--r-- 1 mts mts  3158 May 16 00:02 errPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/eventManager:
+open-vm-tools-2008.05.15-93084/lib/eventManager:
 total 28
--r--r--r-- 1 mts mts  1037 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14798 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  7083 May  2 15:24 eventManager.c
+-r--r--r-- 1 mts mts   995 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14748 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  7083 May 16 00:02 eventManager.c
 
-open-vm-tools-2008.05.02-90473/lib/file:
+open-vm-tools-2008.05.15-93084/lib/file:
 total 288
--r--r--r-- 1 mts mts  1213 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15191 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 49675 May  2 15:25 file.c
--r--r--r-- 1 mts mts 13064 May  2 15:25 fileIO.c
--r--r--r-- 1 mts mts 54842 May  2 15:25 fileIOPosix.c
--r--r--r-- 1 mts mts 26974 May  2 15:25 fileLockPosix.c
--r--r--r-- 1 mts mts 42447 May  2 15:25 fileLockPrimitive.c
--r--r--r-- 1 mts mts 61350 May  2 15:25 filePosix.c
-
-open-vm-tools-2008.05.02-90473/lib/foundryMsg:
+-r--r--r-- 1 mts mts  1173 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15155 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 49675 May 16 00:02 file.c
+-r--r--r-- 1 mts mts 13064 May 16 00:02 fileIO.c
+-r--r--r-- 1 mts mts 54842 May 16 00:02 fileIOPosix.c
+-r--r--r-- 1 mts mts 26974 May 16 00:02 fileLockPosix.c
+-r--r--r-- 1 mts mts 42447 May 16 00:02 fileLockPrimitive.c
+-r--r--r-- 1 mts mts 61431 May 16 00:02 filePosix.c
+
+open-vm-tools-2008.05.15-93084/lib/foundryMsg:
 total 108
--r--r--r-- 1 mts mts  1183 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15185 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 24798 May  2 15:25 foundryMsg.c
--r--r--r-- 1 mts mts 42795 May  2 15:25 foundryPropertyListCommon.c
--r--r--r-- 1 mts mts  6874 May  2 15:25 foundryThreads.c
--r--r--r-- 1 mts mts  7449 May  2 15:25 vixTranslateErrOpenSource.c
-
-open-vm-tools-2008.05.02-90473/lib/ghIntegrationStub:
+-r--r--r-- 1 mts mts  1141 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15135 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 24798 May 16 00:02 foundryMsg.c
+-r--r--r-- 1 mts mts 42795 May 16 00:02 foundryPropertyListCommon.c
+-r--r--r-- 1 mts mts  6874 May 16 00:02 foundryThreads.c
+-r--r--r-- 1 mts mts  7449 May 16 00:02 vixTranslateErrOpenSource.c
+
+open-vm-tools-2008.05.15-93084/lib/ghIntegrationStub:
 total 24
--r--r--r-- 1 mts mts  1088 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14936 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  1228 May  2 15:25 ghIntegrationStub.c
-
-open-vm-tools-2008.05.02-90473/lib/guestApp:
-total 76
--r--r--r-- 1 mts mts  1062 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14819 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 45993 May  2 15:25 guestApp.c
--r--r--r-- 1 mts mts  5720 May  2 15:25 guestAppPosix.c
-
-open-vm-tools-2008.05.02-90473/lib/guestInfo:
+-r--r--r-- 1 mts mts  1048 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14900 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  1228 May 16 00:02 ghIntegrationStub.c
+
+open-vm-tools-2008.05.15-93084/lib/guestApp:
+total 72
+-r--r--r-- 1 mts mts  1020 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14769 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 42611 May 16 00:02 guestApp.c
+-r--r--r-- 1 mts mts  5720 May 16 00:02 guestAppPosix.c
+
+open-vm-tools-2008.05.15-93084/lib/guestInfo:
 total 104
--r--r--r-- 1 mts mts  1181 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15043 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  6480 May  2 15:24 guestInfoPerfMonLinux.c
--r--r--r-- 1 mts mts 25690 May  2 15:24 guestInfoPosix.c
--r--r--r-- 1 mts mts 45285 May  2 15:25 guestInfoServer.c
+-r--r--r-- 1 mts mts  1144 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15009 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  6509 May 16 00:02 guestInfoPerfMonLinux.c
+-r--r--r-- 1 mts mts 25707 May 16 00:02 guestInfoPosix.c
+-r--r--r-- 1 mts mts 47930 May 16 00:02 guestInfoServer.c
 
-open-vm-tools-2008.05.02-90473/lib/hgfs:
+open-vm-tools-2008.05.15-93084/lib/hgfs:
 total 88
--r--r--r-- 1 mts mts  1217 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15290 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 12069 May  2 15:25 cpName.c
--r--r--r-- 1 mts mts  5787 May  2 15:25 cpNameLinux.c
--r--r--r-- 1 mts mts  2666 May  2 15:25 cpNameLite.c
--r--r--r-- 1 mts mts  9115 May  2 15:25 cpNameUtil.c
--r--r--r-- 1 mts mts  1477 May  2 15:25 cpNameUtilInt.h
--r--r--r-- 1 mts mts  5613 May  2 15:25 cpNameUtilLinux.c
--r--r--r-- 1 mts mts  6846 May  2 15:25 hgfsUtil.c
--r--r--r-- 1 mts mts  8847 May  2 15:25 staticEscape.c
-
-open-vm-tools-2008.05.02-90473/lib/hgfsBd:
+-r--r--r-- 1 mts mts  1175 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15240 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 12069 May 16 00:02 cpName.c
+-r--r--r-- 1 mts mts  5787 May 16 00:02 cpNameLinux.c
+-r--r--r-- 1 mts mts  2666 May 16 00:02 cpNameLite.c
+-r--r--r-- 1 mts mts  9115 May 16 00:02 cpNameUtil.c
+-r--r--r-- 1 mts mts  1477 May 16 00:02 cpNameUtilInt.h
+-r--r--r-- 1 mts mts  5613 May 16 00:02 cpNameUtilLinux.c
+-r--r--r-- 1 mts mts  6846 May 16 00:02 hgfsUtil.c
+-r--r--r-- 1 mts mts  8847 May 16 00:02 staticEscape.c
+
+open-vm-tools-2008.05.15-93084/lib/hgfsBd:
 total 32
--r--r--r-- 1 mts mts  1013 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14654 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8713 May  2 15:25 hgfsBd.c
-
-open-vm-tools-2008.05.02-90473/lib/hgfsServer:
-total 328
--r--r--r-- 1 mts mts   1112 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts  14901 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 160457 May  2 15:25 hgfsServer.c
--r--r--r-- 1 mts mts 142329 May  2 15:25 hgfsServerLinux.c
-
-open-vm-tools-2008.05.02-90473/lib/hgfsServerManagerGuest:
+-r--r--r-- 1 mts mts   971 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14604 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8713 May 16 00:02 hgfsBd.c
+
+open-vm-tools-2008.05.15-93084/lib/hgfsServer:
+total 324
+-r--r--r-- 1 mts mts   1072 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts  14865 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 158068 May 16 00:02 hgfsServer.c
+-r--r--r-- 1 mts mts 142052 May 16 00:02 hgfsServerLinux.c
+
+open-vm-tools-2008.05.15-93084/lib/hgfsServerManagerGuest:
 total 28
--r--r--r-- 1 mts mts  1077 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15046 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  6635 May  2 15:25 hgfsServerManagerGuest.c
+-r--r--r-- 1 mts mts  1035 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14996 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  6635 May 16 00:02 hgfsServerManagerGuest.c
 
-open-vm-tools-2008.05.02-90473/lib/hgfsServerPolicyGuest:
+open-vm-tools-2008.05.15-93084/lib/hgfsServerPolicyGuest:
 total 36
--r--r--r-- 1 mts mts  1073 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15022 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 13984 May  2 15:25 hgfsServerPolicyGuest.c
+-r--r--r-- 1 mts mts  1031 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14972 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 13984 May 16 00:02 hgfsServerPolicyGuest.c
 
-open-vm-tools-2008.05.02-90473/lib/impersonate:
+open-vm-tools-2008.05.15-93084/lib/impersonate:
 total 40
--r--r--r-- 1 mts mts  1118 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14928 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8188 May  2 15:25 impersonate.c
--r--r--r-- 1 mts mts 11956 May  2 15:25 impersonatePosix.c
-
-open-vm-tools-2008.05.02-90473/lib/include:
-total 1224
--r--r--r-- 1 mts mts  1935 May  2 15:24 SLPv2.h
--r--r--r-- 1 mts mts 12728 May  2 15:24 SLPv2Private.h
--r--r--r-- 1 mts mts  2232 May  2 15:24 auth.h
--r--r--r-- 1 mts mts  1361 May  2 15:24 backdoor.h
--r--r--r-- 1 mts mts  1056 May  2 15:24 backdoorInt.h
--r--r--r-- 1 mts mts  5907 May  2 15:24 backdoor_def.h
--r--r--r-- 1 mts mts  3567 May  2 15:24 backdoor_types.h
--r--r--r-- 1 mts mts  1698 May  2 15:24 base64.h
--r--r--r-- 1 mts mts  1918 May  2 15:24 bsd_output.h
--r--r--r-- 1 mts mts  3312 May  2 15:24 bsd_output_int.h
--r--r--r-- 1 mts mts  5975 May  2 15:24 bsdfmt.h
--r--r--r-- 1 mts mts   272 May  2 15:24 buildNumber.h
--r--r--r-- 1 mts mts 10265 May  2 15:24 circList.h
--r--r--r-- 1 mts mts 16277 May  2 15:24 codeset.h
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 compat
--r--r--r-- 1 mts mts  3889 May  2 15:24 conf.h
--r--r--r-- 1 mts mts  4810 May  2 15:24 config.h
--r--r--r-- 1 mts mts  4198 May  2 15:24 cpName.h
--r--r--r-- 1 mts mts  1822 May  2 15:24 cpNameInt.h
--r--r--r-- 1 mts mts  1734 May  2 15:24 cpNameLite.h
--r--r--r-- 1 mts mts  2621 May  2 15:24 cpNameUtil.h
--r--r--r-- 1 mts mts  3088 May  2 15:24 cpuid_info.h
--r--r--r-- 1 mts mts  3428 May  2 15:24 cryptoError.h
--r--r--r-- 1 mts mts  2374 May  2 15:24 dbllnklst.h
--r--r--r-- 1 mts mts  1304 May  2 15:24 debug.h
--r--r--r-- 1 mts mts  1114 May  2 15:24 deployPkg.h
--r--r--r-- 1 mts mts  1125 May  2 15:24 deployPkgLog.h
--r--r--r-- 1 mts mts  1793 May  2 15:24 dictll.h
--r--r--r-- 1 mts mts  7079 May  2 15:24 dnd.h
--r--r--r-- 1 mts mts  1819 May  2 15:24 dndInt.h
--r--r--r-- 1 mts mts  8051 May  2 15:24 dynarray.h
--r--r--r-- 1 mts mts  2632 May  2 15:24 dynbuf.h
--r--r--r-- 1 mts mts  1709 May  2 15:24 embed_version.h
--r--r--r-- 1 mts mts  2893 May  2 15:24 err.h
--r--r--r-- 1 mts mts  3856 May  2 15:24 escBitvector.h
--r--r--r-- 1 mts mts  1922 May  2 15:24 escape.h
--r--r--r-- 1 mts mts  1539 May  2 15:24 eventManager.h
--r--r--r-- 1 mts mts  8680 May  2 15:24 file.h
--r--r--r-- 1 mts mts 12660 May  2 15:24 fileIO.h
--r--r--r-- 1 mts mts  6186 May  2 15:24 fileInt.h
--r--r--r-- 1 mts mts  2408 May  2 15:24 fileLock.h
--r--r--r-- 1 mts mts  3373 May  2 15:24 file_extensions.h
--r--r--r-- 1 mts mts  2194 May  2 15:24 foundryThreads.h
--r--r--r-- 1 mts mts  2271 May  2 15:24 ghIntegration.h
--r--r--r-- 1 mts mts  5453 May  2 15:24 guestApp.h
--r--r--r-- 1 mts mts  8794 May  2 15:24 guestInfo.h
--r--r--r-- 1 mts mts  1954 May  2 15:24 guestInfoInt.h
--r--r--r-- 1 mts mts  1415 May  2 15:24 guestInfoServer.h
--r--r--r-- 1 mts mts  2867 May  2 15:24 guest_msg_def.h
--r--r--r-- 1 mts mts 14546 May  2 15:24 guest_os.h
--r--r--r-- 1 mts mts  2954 May  2 15:24 hashTable.h
--r--r--r-- 1 mts mts  7032 May  2 15:24 hgfs.h
--r--r--r-- 1 mts mts  1474 May  2 15:24 hgfsBd.h
--r--r--r-- 1 mts mts  2559 May  2 15:24 hgfsDevLinux.h
--r--r--r-- 1 mts mts 39287 May  2 15:24 hgfsProto.h
--r--r--r-- 1 mts mts  2072 May  2 15:24 hgfsServer.h
--r--r--r-- 1 mts mts 26266 May  2 15:24 hgfsServerInt.h
--r--r--r-- 1 mts mts  2212 May  2 15:24 hgfsServerManager.h
--r--r--r-- 1 mts mts  2786 May  2 15:24 hgfsServerPolicy.h
--r--r--r-- 1 mts mts  4185 May  2 15:24 hgfsUtil.h
--r--r--r-- 1 mts mts  1284 May  2 15:24 hgfsVirtualDir.h
--r--r--r-- 1 mts mts  1279 May  2 15:24 hostType.h
--r--r--r-- 1 mts mts  3463 May  2 15:24 hostinfo.h
--r--r--r-- 1 mts mts  1661 May  2 15:24 impersonate.h
--r--r--r-- 1 mts mts  2031 May  2 15:24 impersonateInt.h
--r--r--r-- 1 mts mts  4286 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  4636 May  2 15:24 iovector.h
--r--r--r-- 1 mts mts  1300 May  2 15:24 localconfig.h
--r--r--r-- 1 mts mts  3878 May  2 15:24 log.h
--r--r--r-- 1 mts mts  3887 May  2 15:24 loglevel_defs.h
--r--r--r-- 1 mts mts  5616 May  2 15:24 loglevel_user.h
--r--r--r-- 1 mts mts  3553 May  2 15:24 message.h
--r--r--r-- 1 mts mts  1268 May  2 15:24 miscSolaris.h
--r--r--r-- 1 mts mts  7510 May  2 15:24 mntinfo.h
--r--r--r-- 1 mts mts  8502 May  2 15:24 msg.h
--r--r--r-- 1 mts mts  5195 May  2 15:24 msgfmt.h
--r--r--r-- 1 mts mts  1751 May  2 15:24 netutil.h
--r--r--r-- 1 mts mts  2584 May  2 15:24 panic.h
--r--r--r-- 1 mts mts  7550 May  2 15:24 posix.h
--r--r--r-- 1 mts mts  2023 May  2 15:24 preference.h
--r--r--r-- 1 mts mts  1393 May  2 15:24 printer.h
--r--r--r-- 1 mts mts  4812 May  2 15:24 procMgr.h
--r--r--r-- 1 mts mts  3166 May  2 15:24 productState.h
--r--r--r-- 1 mts mts  1344 May  2 15:24 random.h
--r--r--r-- 1 mts mts  1162 May  2 15:24 removable_device.h
--r--r--r-- 1 mts mts  2333 May  2 15:24 rpcin.h
--r--r--r-- 1 mts mts  1987 May  2 15:24 rpcout.h
--r--r--r-- 1 mts mts  2708 May  2 15:24 rpcvmx.h
--r--r--r-- 1 mts mts  2148 May  2 15:24 runDeployPkgInt.h
--r--r--r-- 1 mts mts  4882 May  2 15:24 safetime.h
--r--r--r-- 1 mts mts  3484 May  2 15:24 socketMgr.h
--r--r--r-- 1 mts mts  2505 May  2 15:24 staticEscape.h
--r--r--r-- 1 mts mts  2373 May  2 15:24 stats_file.h
--r--r--r-- 1 mts mts  3403 May  2 15:24 stats_user_defs.h
--r--r--r-- 1 mts mts 10734 May  2 15:24 stats_user_setup.h
--r--r--r-- 1 mts mts  7043 May  2 15:24 str.h
--r--r--r-- 1 mts mts  2142 May  2 15:24 strutil.h
--r--r--r-- 1 mts mts  3423 May  2 15:24 su.h
--r--r--r-- 1 mts mts  2061 May  2 15:24 syncDriver.h
--r--r--r-- 1 mts mts  1564 May  2 15:24 syncDriverIoc.h
--r--r--r-- 1 mts mts  2250 May  2 15:24 syncEvent.h
--r--r--r-- 1 mts mts  1938 May  2 15:24 syncMutex.h
--r--r--r-- 1 mts mts  3372 May  2 15:24 syncWaitQ.h
--r--r--r-- 1 mts mts  2797 May  2 15:24 system.h
--r--r--r-- 1 mts mts  3240 May  2 15:24 timeutil.h
--r--r--r-- 1 mts mts  1751 May  2 15:24 toolsDeployPkg.h
--r--r--r-- 1 mts mts  2390 May  2 15:24 toolsLogger.h
--r--r--r-- 1 mts mts  1528 May  2 15:24 toolsLoggerInt.h
--r--r--r-- 1 mts mts  1578 May  2 15:24 unicode.h
--r--r--r-- 1 mts mts 10631 May  2 15:24 unicodeBase.h
--r--r--r-- 1 mts mts  2976 May  2 15:24 unicodeICU.h
--r--r--r-- 1 mts mts  1911 May  2 15:24 unicodeInt.h
--r--r--r-- 1 mts mts 20105 May  2 15:24 unicodeOperations.h
--r--r--r-- 1 mts mts  1853 May  2 15:24 unicodeTransforms.h
--r--r--r-- 1 mts mts  5767 May  2 15:24 unicodeTypes.h
--r--r--r-- 1 mts mts  2465 May  2 15:24 unity.h
--r--r--r-- 1 mts mts 16274 May  2 15:24 util.h
--r--r--r-- 1 mts mts  2994 May  2 15:24 util_shared.h
--r--r--r-- 1 mts mts  1999 May  2 15:24 uuid.h
--r--r--r-- 1 mts mts 38679 May  2 15:24 vix.h
--r--r--r-- 1 mts mts 60614 May  2 15:24 vixCommands.h
--r--r--r-- 1 mts mts 14575 May  2 15:24 vixOpenSource.h
--r--r--r-- 1 mts mts  4132 May  2 15:24 vixTools.h
--r--r--r-- 1 mts mts  6676 May  2 15:24 vmBackup.h
--r--r--r-- 1 mts mts 14163 May  2 15:24 vmGuestLib.h
--r--r--r-- 1 mts mts  1092 May  2 15:24 vmSessionId.h
--r--r--r-- 1 mts mts  4092 May  2 15:24 vm_app.h
--r--r--r-- 1 mts mts  9976 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 54313 May  2 15:24 vm_atomic.h
--r--r--r-- 1 mts mts 17721 May  2 15:24 vm_basic_asm.h
--r--r--r-- 1 mts mts 16137 May  2 15:24 vm_basic_asm_x86.h
--r--r--r-- 1 mts mts  8927 May  2 15:24 vm_basic_asm_x86_64.h
--r--r--r-- 1 mts mts 12206 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21765 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  2430 May  2 15:24 vm_ctype.h
--r--r--r-- 1 mts mts  2118 May  2 15:24 vm_legal.h
--r--r--r-- 1 mts mts 17935 May  2 15:24 vm_product.h
--r--r--r-- 1 mts mts 29860 May  2 15:24 vm_tools_version.h
--r--r--r-- 1 mts mts 15875 May  2 15:24 vm_version.h
--r--r--r-- 1 mts mts  3338 May  2 15:24 vmbackup_def.h
--r--r--r-- 1 mts mts  4284 May  2 15:24 vmblock.h
--r--r--r-- 1 mts mts  1275 May  2 15:24 vmcheck.h
--r--r--r-- 1 mts mts  1270 May  2 15:24 vmsignal.h
--r--r--r-- 1 mts mts  1336 May  2 15:24 vmstdio.h
--r--r--r-- 1 mts mts  1913 May  2 15:24 vmware.h
--r--r--r-- 1 mts mts  1340 May  2 15:24 vmware_pack_begin.h
--r--r--r-- 1 mts mts  1360 May  2 15:24 vmware_pack_end.h
--r--r--r-- 1 mts mts  1980 May  2 15:24 vmware_pack_init.h
--r--r--r-- 1 mts mts  7863 May  2 15:24 win32util.h
--r--r--r-- 1 mts mts  2751 May  2 15:24 wiper.h
--r--r--r-- 1 mts mts 37619 May  2 15:24 x86cpuid.h
-
-open-vm-tools-2008.05.02-90473/lib/include/compat:
+-r--r--r-- 1 mts mts  1078 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14892 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8188 May 16 00:02 impersonate.c
+-r--r--r-- 1 mts mts 11956 May 16 00:02 impersonatePosix.c
+
+open-vm-tools-2008.05.15-93084/lib/include:
+total 1236
+-r--r--r-- 1 mts mts  1935 May 16 00:02 SLPv2.h
+-r--r--r-- 1 mts mts 12728 May 16 00:02 SLPv2Private.h
+-r--r--r-- 1 mts mts  2232 May 16 00:02 auth.h
+-r--r--r-- 1 mts mts  1361 May 16 00:02 backdoor.h
+-r--r--r-- 1 mts mts  1056 May 16 00:02 backdoorInt.h
+-r--r--r-- 1 mts mts  5907 May 16 00:02 backdoor_def.h
+-r--r--r-- 1 mts mts  3567 May 16 00:02 backdoor_types.h
+-r--r--r-- 1 mts mts  1698 May 16 00:02 base64.h
+-r--r--r-- 1 mts mts  1918 May 16 00:02 bsd_output.h
+-r--r--r-- 1 mts mts  3312 May 16 00:02 bsd_output_int.h
+-r--r--r-- 1 mts mts  5975 May 16 00:02 bsdfmt.h
+-r--r--r-- 1 mts mts   272 May 16 00:02 buildNumber.h
+-r--r--r-- 1 mts mts 10265 May 16 00:02 circList.h
+-r--r--r-- 1 mts mts 16338 May 16 00:02 codeset.h
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 compat
+-r--r--r-- 1 mts mts  3889 May 16 00:02 conf.h
+-r--r--r-- 1 mts mts  4810 May 16 00:02 config.h
+-r--r--r-- 1 mts mts  4198 May 16 00:02 cpName.h
+-r--r--r-- 1 mts mts  1822 May 16 00:02 cpNameInt.h
+-r--r--r-- 1 mts mts  1734 May 16 00:02 cpNameLite.h
+-r--r--r-- 1 mts mts  2621 May 16 00:02 cpNameUtil.h
+-r--r--r-- 1 mts mts  3088 May 16 00:02 cpuid_info.h
+-r--r--r-- 1 mts mts  3428 May 16 00:02 cryptoError.h
+-r--r--r-- 1 mts mts  2374 May 16 00:02 dbllnklst.h
+-r--r--r-- 1 mts mts  1304 May 16 00:02 debug.h
+-r--r--r-- 1 mts mts  1114 May 16 00:02 deployPkg.h
+-r--r--r-- 1 mts mts  1125 May 16 00:02 deployPkgLog.h
+-r--r--r-- 1 mts mts  1793 May 16 00:02 dictll.h
+-r--r--r-- 1 mts mts  7310 May 16 00:02 dnd.h
+-r--r--r-- 1 mts mts  1819 May 16 00:02 dndInt.h
+-r--r--r-- 1 mts mts  8051 May 16 00:02 dynarray.h
+-r--r--r-- 1 mts mts  2632 May 16 00:02 dynbuf.h
+-r--r--r-- 1 mts mts  1709 May 16 00:02 embed_version.h
+-r--r--r-- 1 mts mts  2893 May 16 00:02 err.h
+-r--r--r-- 1 mts mts  3856 May 16 00:02 escBitvector.h
+-r--r--r-- 1 mts mts  1922 May 16 00:02 escape.h
+-r--r--r-- 1 mts mts  1539 May 16 00:02 eventManager.h
+-r--r--r-- 1 mts mts  8744 May 16 00:02 file.h
+-r--r--r-- 1 mts mts 12660 May 16 00:02 fileIO.h
+-r--r--r-- 1 mts mts  6186 May 16 00:02 fileInt.h
+-r--r--r-- 1 mts mts  2408 May 16 00:02 fileLock.h
+-r--r--r-- 1 mts mts  3460 May 16 00:02 file_extensions.h
+-r--r--r-- 1 mts mts  2194 May 16 00:02 foundryThreads.h
+-r--r--r-- 1 mts mts  2271 May 16 00:02 ghIntegration.h
+-r--r--r-- 1 mts mts  5244 May 16 00:02 guestApp.h
+-r--r--r-- 1 mts mts  7509 May 16 00:02 guestInfo.h
+-r--r--r-- 1 mts mts  2009 May 16 00:02 guestInfoInt.h
+-r--r--r-- 1 mts mts  1415 May 16 00:02 guestInfoServer.h
+-r--r--r-- 1 mts mts  2949 May 16 00:02 guestStats.h
+-r--r--r-- 1 mts mts  3030 May 16 00:02 guest_msg_def.h
+-r--r--r-- 1 mts mts 14575 May 16 00:02 guest_os.h
+-r--r--r-- 1 mts mts  2983 May 16 00:02 hashTable.h
+-r--r--r-- 1 mts mts  7032 May 16 00:02 hgfs.h
+-r--r--r-- 1 mts mts  1474 May 16 00:02 hgfsBd.h
+-r--r--r-- 1 mts mts  2559 May 16 00:02 hgfsDevLinux.h
+-r--r--r-- 1 mts mts 39712 May 16 00:02 hgfsProto.h
+-r--r--r-- 1 mts mts  2072 May 16 00:02 hgfsServer.h
+-r--r--r-- 1 mts mts 26099 May 16 00:02 hgfsServerInt.h
+-r--r--r-- 1 mts mts  2212 May 16 00:02 hgfsServerManager.h
+-r--r--r-- 1 mts mts  3248 May 16 00:02 hgfsServerPolicy.h
+-r--r--r-- 1 mts mts  3761 May 16 00:02 hgfsUtil.h
+-r--r--r-- 1 mts mts  1284 May 16 00:02 hgfsVirtualDir.h
+-r--r--r-- 1 mts mts  1279 May 16 00:02 hostType.h
+-r--r--r-- 1 mts mts  3463 May 16 00:02 hostinfo.h
+-r--r--r-- 1 mts mts  1661 May 16 00:02 impersonate.h
+-r--r--r-- 1 mts mts  2031 May 16 00:02 impersonateInt.h
+-r--r--r-- 1 mts mts  4286 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  4636 May 16 00:02 iovector.h
+-r--r--r-- 1 mts mts  1300 May 16 00:02 localconfig.h
+-r--r--r-- 1 mts mts  3878 May 16 00:02 log.h
+-r--r--r-- 1 mts mts  3916 May 16 00:02 loglevel_defs.h
+-r--r--r-- 1 mts mts  5701 May 16 00:02 loglevel_user.h
+-r--r--r-- 1 mts mts  3553 May 16 00:02 message.h
+-r--r--r-- 1 mts mts  1268 May 16 00:02 miscSolaris.h
+-r--r--r-- 1 mts mts  7510 May 16 00:02 mntinfo.h
+-r--r--r-- 1 mts mts  8728 May 16 00:02 msg.h
+-r--r--r-- 1 mts mts  5195 May 16 00:02 msgfmt.h
+-r--r--r-- 1 mts mts  1751 May 16 00:02 netutil.h
+-r--r--r-- 1 mts mts  2584 May 16 00:02 panic.h
+-r--r--r-- 1 mts mts  7550 May 16 00:02 posix.h
+-r--r--r-- 1 mts mts  2023 May 16 00:02 preference.h
+-r--r--r-- 1 mts mts  1393 May 16 00:02 printer.h
+-r--r--r-- 1 mts mts  4812 May 16 00:02 procMgr.h
+-r--r--r-- 1 mts mts  3166 May 16 00:02 productState.h
+-r--r--r-- 1 mts mts  1344 May 16 00:02 random.h
+-r--r--r-- 1 mts mts  1162 May 16 00:02 removable_device.h
+-r--r--r-- 1 mts mts  2333 May 16 00:02 rpcin.h
+-r--r--r-- 1 mts mts  1987 May 16 00:02 rpcout.h
+-r--r--r-- 1 mts mts  2708 May 16 00:02 rpcvmx.h
+-r--r--r-- 1 mts mts  2148 May 16 00:02 runDeployPkgInt.h
+-r--r--r-- 1 mts mts  4882 May 16 00:02 safetime.h
+-r--r--r-- 1 mts mts  3484 May 16 00:02 socketMgr.h
+-r--r--r-- 1 mts mts  2505 May 16 00:02 staticEscape.h
+-r--r--r-- 1 mts mts  2373 May 16 00:02 stats_file.h
+-r--r--r-- 1 mts mts  3432 May 16 00:02 stats_user_defs.h
+-r--r--r-- 1 mts mts 10763 May 16 00:02 stats_user_setup.h
+-r--r--r-- 1 mts mts  7072 May 16 00:02 str.h
+-r--r--r-- 1 mts mts  2142 May 16 00:02 strutil.h
+-r--r--r-- 1 mts mts  3423 May 16 00:02 su.h
+-r--r--r-- 1 mts mts  2061 May 16 00:02 syncDriver.h
+-r--r--r-- 1 mts mts  1564 May 16 00:02 syncDriverIoc.h
+-r--r--r-- 1 mts mts  2250 May 16 00:02 syncEvent.h
+-r--r--r-- 1 mts mts  1938 May 16 00:02 syncMutex.h
+-r--r--r-- 1 mts mts  3372 May 16 00:02 syncWaitQ.h
+-r--r--r-- 1 mts mts  3152 May 16 00:02 system.h
+-r--r--r-- 1 mts mts  3240 May 16 00:02 timeutil.h
+-r--r--r-- 1 mts mts  1751 May 16 00:02 toolsDeployPkg.h
+-r--r--r-- 1 mts mts  2390 May 16 00:02 toolsLogger.h
+-r--r--r-- 1 mts mts  1528 May 16 00:02 toolsLoggerInt.h
+-r--r--r-- 1 mts mts  1578 May 16 00:02 unicode.h
+-r--r--r-- 1 mts mts 10631 May 16 00:02 unicodeBase.h
+-r--r--r-- 1 mts mts  2976 May 16 00:02 unicodeICU.h
+-r--r--r-- 1 mts mts  1911 May 16 00:02 unicodeInt.h
+-r--r--r-- 1 mts mts 21686 May 16 00:02 unicodeOperations.h
+-r--r--r-- 1 mts mts  1853 May 16 00:02 unicodeTransforms.h
+-r--r--r-- 1 mts mts  5796 May 16 00:02 unicodeTypes.h
+-r--r--r-- 1 mts mts  2465 May 16 00:02 unity.h
+-r--r--r-- 1 mts mts 16430 May 16 00:02 util.h
+-r--r--r-- 1 mts mts  2994 May 16 00:02 util_shared.h
+-r--r--r-- 1 mts mts  1999 May 16 00:02 uuid.h
+-r--r--r-- 1 mts mts 38679 May 16 00:02 vix.h
+-r--r--r-- 1 mts mts 61555 May 16 00:02 vixCommands.h
+-r--r--r-- 1 mts mts 14575 May 16 00:02 vixOpenSource.h
+-r--r--r-- 1 mts mts  4132 May 16 00:02 vixTools.h
+-r--r--r-- 1 mts mts  6676 May 16 00:02 vmBackup.h
+-r--r--r-- 1 mts mts 14163 May 16 00:02 vmGuestLib.h
+-r--r--r-- 1 mts mts  1092 May 16 00:02 vmSessionId.h
+-r--r--r-- 1 mts mts  4092 May 16 00:02 vm_app.h
+-r--r--r-- 1 mts mts  9976 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 54313 May 16 00:02 vm_atomic.h
+-r--r--r-- 1 mts mts 17721 May 16 00:02 vm_basic_asm.h
+-r--r--r-- 1 mts mts 16137 May 16 00:02 vm_basic_asm_x86.h
+-r--r--r-- 1 mts mts  8968 May 16 00:02 vm_basic_asm_x86_64.h
+-r--r--r-- 1 mts mts 12632 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21770 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  2430 May 16 00:02 vm_ctype.h
+-r--r--r-- 1 mts mts  2118 May 16 00:02 vm_legal.h
+-r--r--r-- 1 mts mts 17935 May 16 00:02 vm_product.h
+-r--r--r-- 1 mts mts 29860 May 16 00:02 vm_tools_version.h
+-r--r--r-- 1 mts mts 15875 May 16 00:02 vm_version.h
+-r--r--r-- 1 mts mts  3582 May 16 00:02 vmbackup_def.h
+-r--r--r-- 1 mts mts  4356 May 16 00:02 vmblock.h
+-r--r--r-- 1 mts mts  1275 May 16 00:02 vmcheck.h
+-r--r--r-- 1 mts mts  1270 May 16 00:02 vmsignal.h
+-r--r--r-- 1 mts mts  1336 May 16 00:02 vmstdio.h
+-r--r--r-- 1 mts mts  1913 May 16 00:02 vmware.h
+-r--r--r-- 1 mts mts  1340 May 16 00:02 vmware_pack_begin.h
+-r--r--r-- 1 mts mts  1360 May 16 00:02 vmware_pack_end.h
+-r--r--r-- 1 mts mts  1980 May 16 00:02 vmware_pack_init.h
+-r--r--r-- 1 mts mts  7863 May 16 00:02 win32util.h
+-r--r--r-- 1 mts mts  2751 May 16 00:02 wiper.h
+-r--r--r-- 1 mts mts 38027 May 16 00:02 x86cpuid.h
+
+open-vm-tools-2008.05.15-93084/lib/include/compat:
 total 4
--r--r--r-- 1 mts mts 1906 May  2 15:24 compat_stdarg.h
+-r--r--r-- 1 mts mts 1906 May 16 00:02 compat_stdarg.h
 
-open-vm-tools-2008.05.02-90473/lib/message:
+open-vm-tools-2008.05.15-93084/lib/message:
 total 68
--r--r--r-- 1 mts mts  1126 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 18915 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8278 May  2 15:25 message.c
--r--r--r-- 1 mts mts 17289 May  2 15:25 messageBackdoor.c
--r--r--r-- 1 mts mts  4751 May  2 15:25 messageStub.c
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
-
-open-vm-tools-2008.05.02-90473/lib/message/shared:
+-r--r--r-- 1 mts mts  1084 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18865 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8278 May 16 00:02 message.c
+-r--r--r-- 1 mts mts 17289 May 16 00:02 messageBackdoor.c
+-r--r--r-- 1 mts mts  4751 May 16 00:02 messageStub.c
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
+
+open-vm-tools-2008.05.15-93084/lib/message/shared:
 total 24
--r--r--r-- 1 mts mts  1113 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 17847 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts  1071 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 17797 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/misc:
+open-vm-tools-2008.05.15-93084/lib/misc:
 total 436
--r--r--r-- 1 mts mts  1732 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 21104 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  2146 May  2 15:25 atomic.c
--r--r--r-- 1 mts mts 15371 May  2 15:25 base64.c
--r--r--r-- 1 mts mts 35741 May  2 15:25 codeset.c
--r--r--r-- 1 mts mts 54827 May  2 15:25 codesetOld.c
--r--r--r-- 1 mts mts  6339 May  2 15:25 codesetOld.h
--r--r--r-- 1 mts mts  8241 May  2 15:25 dbllnklst.c
--r--r--r-- 1 mts mts  6500 May  2 15:25 dynarray.c
--r--r--r-- 1 mts mts  9633 May  2 15:25 dynbuf.c
--r--r--r-- 1 mts mts 14569 May  2 15:25 escape.c
--r--r--r-- 1 mts mts 19809 May  2 15:25 hashTable.c
--r--r--r-- 1 mts mts  5943 May  2 15:25 hostinfo_misc.c
--r--r--r-- 1 mts mts  6141 May  2 15:25 hostname.c
--r--r--r-- 1 mts mts 22612 May  2 15:25 idLinux.c
--r--r--r-- 1 mts mts 24760 May  2 15:25 iovector.c
--r--r--r-- 1 mts mts 14910 May  2 15:25 machineID.c
--r--r--r-- 1 mts mts  2017 May  2 15:25 miscSolaris.c
--r--r--r-- 1 mts mts  1701 May  2 15:25 posixDlopen.c
--r--r--r-- 1 mts mts 48102 May  2 15:25 posixPosix.c
--r--r--r-- 1 mts mts 14322 May  2 15:25 posixWin32.c
--r--r--r-- 1 mts mts  5943 May  2 15:25 random.c
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
--r--r--r-- 1 mts mts 25871 May  2 15:25 timeutil.c
--r--r--r-- 1 mts mts  9675 May  2 15:25 util_misc.c
--r--r--r-- 1 mts mts  6627 May  2 15:25 vmstdio.c
-
-open-vm-tools-2008.05.02-90473/lib/misc/shared:
+-r--r--r-- 1 mts mts  1692 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 21068 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  2146 May 16 00:02 atomic.c
+-r--r--r-- 1 mts mts 15371 May 16 00:02 base64.c
+-r--r--r-- 1 mts mts 35741 May 16 00:02 codeset.c
+-r--r--r-- 1 mts mts 55190 May 16 00:02 codesetOld.c
+-r--r--r-- 1 mts mts  6339 May 16 00:02 codesetOld.h
+-r--r--r-- 1 mts mts  8241 May 16 00:02 dbllnklst.c
+-r--r--r-- 1 mts mts  6500 May 16 00:02 dynarray.c
+-r--r--r-- 1 mts mts  9633 May 16 00:02 dynbuf.c
+-r--r--r-- 1 mts mts 14569 May 16 00:02 escape.c
+-r--r--r-- 1 mts mts 19809 May 16 00:02 hashTable.c
+-r--r--r-- 1 mts mts  5943 May 16 00:02 hostinfo_misc.c
+-r--r--r-- 1 mts mts  6141 May 16 00:02 hostname.c
+-r--r--r-- 1 mts mts 22612 May 16 00:02 idLinux.c
+-r--r--r-- 1 mts mts 24760 May 16 00:02 iovector.c
+-r--r--r-- 1 mts mts 14910 May 16 00:02 machineID.c
+-r--r--r-- 1 mts mts  2017 May 16 00:02 miscSolaris.c
+-r--r--r-- 1 mts mts  1701 May 16 00:02 posixDlopen.c
+-r--r--r-- 1 mts mts 48102 May 16 00:02 posixPosix.c
+-r--r--r-- 1 mts mts 14322 May 16 00:02 posixWin32.c
+-r--r--r-- 1 mts mts  5943 May 16 00:02 random.c
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
+-r--r--r-- 1 mts mts 25871 May 16 00:02 timeutil.c
+-r--r--r-- 1 mts mts 12001 May 16 00:02 util_misc.c
+-r--r--r-- 1 mts mts  6627 May 16 00:02 vmstdio.c
+
+open-vm-tools-2008.05.15-93084/lib/misc/shared:
 total 40
--r--r--r-- 1 mts mts  1714 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 33800 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts  1674 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 33764 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/netUtil:
+open-vm-tools-2008.05.15-93084/lib/netUtil:
 total 28
--r--r--r-- 1 mts mts  1022 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14693 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  7417 May  2 15:25 netUtilLinux.c
+-r--r--r-- 1 mts mts   980 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14643 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  7417 May 16 00:02 netUtilLinux.c
 
-open-vm-tools-2008.05.02-90473/lib/panic:
+open-vm-tools-2008.05.15-93084/lib/panic:
 total 36
--r--r--r-- 1 mts mts  1009 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14630 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 12986 May  2 15:25 panic.c
+-r--r--r-- 1 mts mts   967 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14580 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 12986 May 16 00:02 panic.c
 
-open-vm-tools-2008.05.02-90473/lib/panicDefault:
+open-vm-tools-2008.05.15-93084/lib/panicDefault:
 total 24
--r--r--r-- 1 mts mts  1030 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14777 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  1488 May  2 15:25 panic.c
+-r--r--r-- 1 mts mts   988 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14727 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  1488 May 16 00:02 panic.c
 
-open-vm-tools-2008.05.02-90473/lib/printer:
+open-vm-tools-2008.05.15-93084/lib/printer:
 total 32
--r--r--r-- 1 mts mts  1017 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14678 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  9721 May  2 15:25 printer.c
+-r--r--r-- 1 mts mts   975 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14628 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  9721 May 16 00:02 printer.c
 
-open-vm-tools-2008.05.02-90473/lib/procMgr:
+open-vm-tools-2008.05.15-93084/lib/procMgr:
 total 56
--r--r--r-- 1 mts mts  1057 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14715 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 36619 May  2 15:25 procMgrPosix.c
+-r--r--r-- 1 mts mts  1017 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14679 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 36619 May 16 00:02 procMgrPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/rpcIn:
+open-vm-tools-2008.05.15-93084/lib/rpcIn:
 total 40
--r--r--r-- 1 mts mts  1009 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14630 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 17356 May  2 15:25 rpcin.c
+-r--r--r-- 1 mts mts   967 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14580 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 17356 May 16 00:02 rpcin.c
 
-open-vm-tools-2008.05.02-90473/lib/rpcOut:
+open-vm-tools-2008.05.15-93084/lib/rpcOut:
 total 40
--r--r--r-- 1 mts mts  1042 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 18654 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 11694 May  2 15:25 rpcout.c
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
+-r--r--r-- 1 mts mts  1000 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18604 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 11694 May 16 00:02 rpcout.c
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
 
-open-vm-tools-2008.05.02-90473/lib/rpcOut/shared:
+open-vm-tools-2008.05.15-93084/lib/rpcOut/shared:
 total 20
--r--r--r-- 1 mts mts  1021 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15676 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts   979 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15626 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/rpcVmx:
+open-vm-tools-2008.05.15-93084/lib/rpcVmx:
 total 28
--r--r--r-- 1 mts mts  1013 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14654 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  7278 May  2 15:25 rpcvmx.c
+-r--r--r-- 1 mts mts   971 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14604 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  7278 May 16 00:02 rpcvmx.c
 
-open-vm-tools-2008.05.02-90473/lib/socketMgr:
+open-vm-tools-2008.05.15-93084/lib/socketMgr:
 total 64
--r--r--r-- 1 mts mts  1025 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14726 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 41905 May  2 15:25 socketMgr.c
+-r--r--r-- 1 mts mts   983 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14676 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 41905 May 16 00:02 socketMgr.c
 
-open-vm-tools-2008.05.02-90473/lib/strUtil:
+open-vm-tools-2008.05.15-93084/lib/strUtil:
 total 40
--r--r--r-- 1 mts mts  1017 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14678 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 16861 May  2 15:25 strutil.c
+-r--r--r-- 1 mts mts   975 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14628 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 16861 May 16 00:02 strutil.c
 
-open-vm-tools-2008.05.02-90473/lib/string:
+open-vm-tools-2008.05.15-93084/lib/string:
 total 212
--r--r--r-- 1 mts mts  1230 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 19148 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8168 May  2 15:25 bsd_output_shared.c
--r--r--r-- 1 mts mts 50068 May  2 15:25 bsd_vsnprintf.c
--r--r--r-- 1 mts mts 51480 May  2 15:25 bsd_vsnwprintf.c
--r--r--r-- 1 mts mts 19245 May  2 15:25 convertutf.c
--r--r--r-- 1 mts mts  6119 May  2 15:25 convertutf.h
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
--r--r--r-- 1 mts mts 32823 May  2 15:25 str.c
-
-open-vm-tools-2008.05.02-90473/lib/string/shared:
+-r--r--r-- 1 mts mts  1190 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 19112 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8168 May 16 00:02 bsd_output_shared.c
+-r--r--r-- 1 mts mts 50068 May 16 00:02 bsd_vsnprintf.c
+-r--r--r-- 1 mts mts 51480 May 16 00:02 bsd_vsnwprintf.c
+-r--r--r-- 1 mts mts 19245 May 16 00:02 convertutf.c
+-r--r--r-- 1 mts mts  6119 May 16 00:02 convertutf.h
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
+-r--r--r-- 1 mts mts 32823 May 16 00:02 str.c
+
+open-vm-tools-2008.05.15-93084/lib/string/shared:
 total 24
--r--r--r-- 1 mts mts  1225 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 19949 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts  1185 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 19913 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/sync:
+open-vm-tools-2008.05.15-93084/lib/sync:
 total 60
--r--r--r-- 1 mts mts  1077 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 18741 May  2 15:25 Makefile.in
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 shared
--r--r--r-- 1 mts mts  6533 May  2 15:25 syncMutex.c
--r--r--r-- 1 mts mts 21469 May  2 15:25 syncWaitQPosix.c
+-r--r--r-- 1 mts mts  1035 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18691 May 16 00:02 Makefile.in
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 shared
+-r--r--r-- 1 mts mts  6533 May 16 00:02 syncMutex.c
+-r--r--r-- 1 mts mts 21469 May 16 00:02 syncWaitQPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/sync/shared:
+open-vm-tools-2008.05.15-93084/lib/sync/shared:
 total 24
--r--r--r-- 1 mts mts  1060 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 16778 May  2 15:25 Makefile.in
+-r--r--r-- 1 mts mts  1018 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 16728 May 16 00:02 Makefile.in
 
-open-vm-tools-2008.05.02-90473/lib/syncDriver:
+open-vm-tools-2008.05.15-93084/lib/syncDriver:
 total 32
--r--r--r-- 1 mts mts  1034 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14765 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  8740 May  2 15:25 syncDriverPosix.c
+-r--r--r-- 1 mts mts   992 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14715 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  8740 May 16 00:02 syncDriverPosix.c
 
-open-vm-tools-2008.05.02-90473/lib/system:
+open-vm-tools-2008.05.15-93084/lib/system:
 total 32
--r--r--r-- 1 mts mts   995 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14669 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  9268 May  2 15:25 systemLinux.c
+-r--r--r-- 1 mts mts   953 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14619 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  9382 May 16 00:02 systemLinux.c
 
-open-vm-tools-2008.05.02-90473/lib/toolsLogger:
+open-vm-tools-2008.05.15-93084/lib/toolsLogger:
 total 36
--r--r--r-- 1 mts mts  1028 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14759 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 15172 May  2 15:25 logger.c
+-r--r--r-- 1 mts mts   986 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14709 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 15172 May 16 00:02 logger.c
 
-open-vm-tools-2008.05.02-90473/lib/unicode:
+open-vm-tools-2008.05.15-93084/lib/unicode:
 total 232
--r--r--r-- 1 mts mts  1358 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15952 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 11673 May  2 15:25 unicodeCommon.c
--r--r--r-- 1 mts mts 13870 May  2 15:25 unicodeICU.c
--r--r--r-- 1 mts mts 23227 May  2 15:25 unicodeSimpleBase.c
--r--r--r-- 1 mts mts 34559 May  2 15:25 unicodeSimpleCaseFolding.c
--r--r--r-- 1 mts mts 15794 May  2 15:25 unicodeSimpleOperations.c
--r--r--r-- 1 mts mts 18115 May  2 15:25 unicodeSimpleTransforms.c
--r--r--r-- 1 mts mts 74267 May  2 15:25 unicodeSimpleTypes.c
--r--r--r-- 1 mts mts  5087 May  2 15:25 unicodeStatic.c
-
-open-vm-tools-2008.05.02-90473/lib/unityStub:
+-r--r--r-- 1 mts mts  1315 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15902 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 11673 May 16 00:02 unicodeCommon.c
+-r--r--r-- 1 mts mts 13870 May 16 00:02 unicodeICU.c
+-r--r--r-- 1 mts mts 23227 May 16 00:02 unicodeSimpleBase.c
+-r--r--r-- 1 mts mts 34559 May 16 00:02 unicodeSimpleCaseFolding.c
+-r--r--r-- 1 mts mts 15794 May 16 00:02 unicodeSimpleOperations.c
+-r--r--r-- 1 mts mts 18115 May 16 00:02 unicodeSimpleTransforms.c
+-r--r--r-- 1 mts mts 74267 May 16 00:02 unicodeSimpleTypes.c
+-r--r--r-- 1 mts mts  5087 May 16 00:02 unicodeStatic.c
+
+open-vm-tools-2008.05.15-93084/lib/unityStub:
 total 24
--r--r--r-- 1 mts mts  1056 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14744 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  1637 May  2 15:25 unityStub.c
+-r--r--r-- 1 mts mts  1016 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14708 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  1637 May 16 00:02 unityStub.c
 
-open-vm-tools-2008.05.02-90473/lib/user:
+open-vm-tools-2008.05.15-93084/lib/user:
 total 132
--r--r--r-- 1 mts mts  1138 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14951 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  9683 May  2 15:25 hostinfo.c
--r--r--r-- 1 mts mts 38636 May  2 15:25 hostinfoPosix.c
--r--r--r-- 1 mts mts 39710 May  2 15:25 util.c
--r--r--r-- 1 mts mts 18792 May  2 15:25 utilPosix.c
-
-open-vm-tools-2008.05.02-90473/lib/vixTools:
+-r--r--r-- 1 mts mts  1098 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14915 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  9683 May 16 00:02 hostinfo.c
+-r--r--r-- 1 mts mts 38636 May 16 00:02 hostinfoPosix.c
+-r--r--r-- 1 mts mts 39710 May 16 00:02 util.c
+-r--r--r-- 1 mts mts 18792 May 16 00:02 utilPosix.c
+
+open-vm-tools-2008.05.15-93084/lib/vixTools:
 total 136
--r--r--r-- 1 mts mts   1021 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts  14702 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 112022 May  2 15:25 vixTools.c
-
-open-vm-tools-2008.05.02-90473/lib/vmBackupLib:
-total 76
--r--r--r-- 1 mts mts  1118 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 15002 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 12390 May  2 15:25 scriptOps.c
--r--r--r-- 1 mts mts 20512 May  2 15:25 stateMachine.c
--r--r--r-- 1 mts mts  9036 May  2 15:25 syncDriverOps.c
--r--r--r-- 1 mts mts  1264 May  2 15:25 vmBackupInt.h
-
-open-vm-tools-2008.05.02-90473/lib/vmCheck:
+-r--r--r-- 1 mts mts    979 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts  14652 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 111884 May 16 00:02 vixTools.c
+
+open-vm-tools-2008.05.15-93084/lib/vmBackupLib:
+total 72
+-r--r--r-- 1 mts mts  1076 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14952 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 12762 May 16 00:02 scriptOps.c
+-r--r--r-- 1 mts mts 20320 May 16 00:02 stateMachine.c
+-r--r--r-- 1 mts mts  9036 May 16 00:02 syncDriverOps.c
+-r--r--r-- 1 mts mts  1264 May 16 00:02 vmBackupInt.h
+
+open-vm-tools-2008.05.15-93084/lib/vmCheck:
 total 28
--r--r--r-- 1 mts mts  1017 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14678 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  5337 May  2 15:25 vmcheck.c
+-r--r--r-- 1 mts mts   975 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14628 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  5337 May 16 00:02 vmcheck.c
 
-open-vm-tools-2008.05.02-90473/lib/vmSignal:
+open-vm-tools-2008.05.15-93084/lib/vmSignal:
 total 24
--r--r--r-- 1 mts mts  1021 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14702 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  3080 May  2 15:25 vmsignal.c
+-r--r--r-- 1 mts mts   979 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14652 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  3080 May 16 00:02 vmsignal.c
 
-open-vm-tools-2008.05.02-90473/lib/wiper:
+open-vm-tools-2008.05.15-93084/lib/wiper:
 total 44
--r--r--r-- 1 mts mts  1014 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 14645 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 24462 May  2 15:25 wiperPosix.c
+-r--r--r-- 1 mts mts   972 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 14595 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 24462 May 16 00:02 wiperPosix.c
 
-open-vm-tools-2008.05.02-90473/libguestlib:
+open-vm-tools-2008.05.15-93084/libguestlib:
 total 100
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  1799 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 17215 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  1413 May  2 15:25 stubs.c
--r--r--r-- 1 mts mts 26218 May  2 15:25 vmGuestLib.c
--r--r--r-- 1 mts mts  4228 May  2 15:25 vmGuestLibInt.h
--r--r--r-- 1 mts mts  2436 May  2 15:25 vmGuestLibPanic.c
--r--r--r-- 1 mts mts  1547 May  2 15:25 vmguestlib_version.h
-
-open-vm-tools-2008.05.02-90473/modules:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1757 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 17165 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  1413 May 16 00:02 stubs.c
+-r--r--r-- 1 mts mts 26218 May 16 00:02 vmGuestLib.c
+-r--r--r-- 1 mts mts  4228 May 16 00:02 vmGuestLibInt.h
+-r--r--r-- 1 mts mts  2436 May 16 00:02 vmGuestLibPanic.c
+-r--r--r-- 1 mts mts  1547 May 16 00:02 vmguestlib_version.h
+
+open-vm-tools-2008.05.15-93084/modules:
 total 24
--rwxr-xr-x 1 mts mts  351 May  2 15:24 Makefile.am
--rw-r--r-- 1 mts mts 9847 May  2 15:25 Makefile.in
-drwxr-xr-x 6 mts mts 4096 May  2 15:24 freebsd
-drwxr-xr-x 7 mts mts 4096 May  2 15:24 linux
+-rwxr-xr-x 1 mts mts  351 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 9825 May 16 00:02 Makefile.in
+drwxr-xr-x 6 mts mts 4096 May 16 00:02 freebsd
+drwxr-xr-x 7 mts mts 4096 May 16 00:02 linux
 
-open-vm-tools-2008.05.02-90473/modules/freebsd:
+open-vm-tools-2008.05.15-93084/modules/freebsd:
 total 16
-drwxr-xr-x 2 mts mts 4096 May  2 15:24 vmblock
-drwxr-xr-x 2 mts mts 4096 May  2 15:24 vmhgfs
-drwxr-xr-x 2 mts mts 4096 May  2 15:24 vmmemctl
-drwxr-xr-x 3 mts mts 4096 May  2 15:24 vmxnet
+drwxr-xr-x 2 mts mts 4096 May 16 00:02 vmblock
+drwxr-xr-x 2 mts mts 4096 May 16 00:02 vmhgfs
+drwxr-xr-x 2 mts mts 4096 May 16 00:02 vmmemctl
+drwxr-xr-x 2 mts mts 4096 May 16 00:02 vmxnet
 
-open-vm-tools-2008.05.02-90473/modules/freebsd/vmblock:
+open-vm-tools-2008.05.15-93084/modules/freebsd/vmblock:
 total 220
--r--r--r-- 1 mts mts  1430 May  2 15:24 COPYING.BSD
--r--r--r-- 1 mts mts  2151 May  2 15:24 Makefile
--r--r--r-- 1 mts mts 17267 May  2 15:24 block.c
--r--r--r-- 1 mts mts  2375 May  2 15:24 block.h
--r--r--r-- 1 mts mts  9048 May  2 15:24 dbllnklst.c
--r--r--r-- 1 mts mts  3181 May  2 15:24 dbllnklst.h
--r--r--r-- 1 mts mts     0 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  5980 May  2 15:24 os.h
--r--r--r-- 1 mts mts  2141 May  2 15:24 stubs.c
--r--r--r-- 1 mts mts  1888 May  2 15:24 stubs.h
--r--r--r-- 1 mts mts 19458 May  2 15:24 subr.c
--r--r--r-- 1 mts mts 13036 May  2 15:24 vfsops.c
--r--r--r-- 1 mts mts 10783 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 13013 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 22572 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  5091 May  2 15:24 vmblock.h
--r--r--r-- 1 mts mts  5872 May  2 15:24 vmblock_k.h
--r--r--r-- 1 mts mts  2720 May  2 15:24 vmware.h
--r--r--r-- 1 mts mts 45731 May  2 15:24 vnops.c
-
-open-vm-tools-2008.05.02-90473/modules/freebsd/vmhgfs:
+-r--r--r-- 1 mts mts  1430 May 16 00:02 COPYING.BSD
+-r--r--r-- 1 mts mts  2151 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts 17267 May 16 00:02 block.c
+-r--r--r-- 1 mts mts  2375 May 16 00:02 block.h
+-r--r--r-- 1 mts mts  9048 May 16 00:02 dbllnklst.c
+-r--r--r-- 1 mts mts  3181 May 16 00:02 dbllnklst.h
+-r--r--r-- 1 mts mts     0 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  5980 May 16 00:02 os.h
+-r--r--r-- 1 mts mts  2141 May 16 00:02 stubs.c
+-r--r--r-- 1 mts mts  1888 May 16 00:02 stubs.h
+-r--r--r-- 1 mts mts 19458 May 16 00:02 subr.c
+-r--r--r-- 1 mts mts 13036 May 16 00:02 vfsops.c
+-r--r--r-- 1 mts mts 10783 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 13439 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 22577 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  5163 May 16 00:02 vmblock.h
+-r--r--r-- 1 mts mts  5872 May 16 00:02 vmblock_k.h
+-r--r--r-- 1 mts mts  2720 May 16 00:02 vmware.h
+-r--r--r-- 1 mts mts 45731 May 16 00:02 vnops.c
+
+open-vm-tools-2008.05.15-93084/modules/freebsd/vmhgfs:
 total 764
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  2652 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  6383 May  2 15:24 backdoor.c
--r--r--r-- 1 mts mts  1337 May  2 15:24 backdoor.h
--r--r--r-- 1 mts mts  6174 May  2 15:24 backdoorGcc32.c
--r--r--r-- 1 mts mts  5550 May  2 15:24 backdoorGcc64.c
--r--r--r-- 1 mts mts  1032 May  2 15:24 backdoorInt.h
--r--r--r-- 1 mts mts  5883 May  2 15:24 backdoor_def.h
--r--r--r-- 1 mts mts  3543 May  2 15:24 backdoor_types.h
--r--r--r-- 1 mts mts 12045 May  2 15:24 cpName.c
--r--r--r-- 1 mts mts  4174 May  2 15:24 cpName.h
--r--r--r-- 1 mts mts  1798 May  2 15:24 cpNameInt.h
--r--r--r-- 1 mts mts  5763 May  2 15:24 cpNameLinux.c
--r--r--r-- 1 mts mts  2642 May  2 15:24 cpNameLite.c
--r--r--r-- 1 mts mts  1710 May  2 15:24 cpNameLite.h
--r--r--r-- 1 mts mts  8217 May  2 15:24 dbllnklst.c
--r--r--r-- 1 mts mts  2350 May  2 15:24 dbllnklst.h
--r--r--r-- 1 mts mts  4769 May  2 15:24 debug.c
--r--r--r-- 1 mts mts  3358 May  2 15:24 debug.h
--r--r--r-- 1 mts mts  3832 May  2 15:24 escBitvector.h
--r--r--r-- 1 mts mts 25043 May  2 15:24 fsutil.c
--r--r--r-- 1 mts mts  3506 May  2 15:24 fsutil.h
--r--r--r-- 1 mts mts  2843 May  2 15:24 guest_msg_def.h
--r--r--r-- 1 mts mts  7008 May  2 15:24 hgfs.h
--r--r--r-- 1 mts mts  8689 May  2 15:24 hgfsBd.c
--r--r--r-- 1 mts mts  1450 May  2 15:24 hgfsBd.h
--r--r--r-- 1 mts mts 39263 May  2 15:24 hgfsProto.h
--r--r--r-- 1 mts mts  6822 May  2 15:24 hgfsUtil.c
--r--r--r-- 1 mts mts  4161 May  2 15:24 hgfsUtil.h
--r--r--r-- 1 mts mts  5685 May  2 15:24 hgfs_kernel.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  4774 May  2 15:24 kernelStubs.h
--r--r--r-- 1 mts mts  6043 May  2 15:24 kernelStubsBSD.c
--r--r--r-- 1 mts mts  8254 May  2 15:24 message.c
--r--r--r-- 1 mts mts  3529 May  2 15:24 message.h
--r--r--r-- 1 mts mts 17265 May  2 15:24 messageBackdoor.c
--r--r--r-- 1 mts mts 16112 May  2 15:24 os.c
--r--r--r-- 1 mts mts  4229 May  2 15:24 os.h
--r--r--r-- 1 mts mts 22550 May  2 15:24 request.c
--r--r--r-- 1 mts mts  3184 May  2 15:24 request.h
--r--r--r-- 1 mts mts  6298 May  2 15:24 requestInt.h
--r--r--r-- 1 mts mts 11670 May  2 15:24 rpcout.c
--r--r--r-- 1 mts mts  1963 May  2 15:24 rpcout.h
--r--r--r-- 1 mts mts  6515 May  2 15:24 sha1.c
--r--r--r-- 1 mts mts  2207 May  2 15:24 sha1.h
--r--r--r-- 1 mts mts 46819 May  2 15:24 state.c
--r--r--r-- 1 mts mts  6710 May  2 15:24 state.h
--r--r--r-- 1 mts mts  8823 May  2 15:24 staticEscape.c
--r--r--r-- 1 mts mts  2481 May  2 15:24 staticEscape.h
--r--r--r-- 1 mts mts  9540 May  2 15:24 vfsops.c
--r--r--r-- 1 mts mts  9952 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 17697 May  2 15:24 vm_basic_asm.h
--r--r--r-- 1 mts mts 16113 May  2 15:24 vm_basic_asm_x86.h
--r--r--r-- 1 mts mts  8903 May  2 15:24 vm_basic_asm_x86_64.h
--r--r--r-- 1 mts mts 12182 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  1889 May  2 15:24 vmware.h
--r--r--r-- 1 mts mts  1316 May  2 15:24 vmware_pack_begin.h
--r--r--r-- 1 mts mts  1336 May  2 15:24 vmware_pack_end.h
--r--r--r-- 1 mts mts  1956 May  2 15:24 vmware_pack_init.h
--r--r--r-- 1 mts mts 23185 May  2 15:24 vnops.c
--r--r--r-- 1 mts mts 77726 May  2 15:24 vnopscommon.c
--r--r--r-- 1 mts mts  3216 May  2 15:24 vnopscommon.h
--r--r--r-- 1 mts mts  6265 May  2 15:24 worker.c
--r--r--r-- 1 mts mts 37595 May  2 15:24 x86cpuid.h
-
-open-vm-tools-2008.05.02-90473/modules/freebsd/vmmemctl:
-total 180
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  1259 May  2 15:24 Makefile
--r--r--r-- 1 mts mts   430 May  2 15:24 README
--r--r--r-- 1 mts mts  1337 May  2 15:24 backdoor.h
--r--r--r-- 1 mts mts  6174 May  2 15:24 backdoorGcc32.c
--r--r--r-- 1 mts mts  5550 May  2 15:24 backdoorGcc64.c
--r--r--r-- 1 mts mts  1032 May  2 15:24 backdoorInt.h
--r--r--r-- 1 mts mts  1338 May  2 15:24 backdoor_balloon.h
--r--r--r-- 1 mts mts  3543 May  2 15:24 backdoor_types.h
--r--r--r-- 1 mts mts  2622 May  2 15:24 balloon_def.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts 10240 May  2 15:24 os.c
--r--r--r-- 1 mts mts  2441 May  2 15:24 os.h
--r--r--r-- 1 mts mts  9952 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 12182 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts 37545 May  2 15:24 vmballoon.c
--r--r--r-- 1 mts mts  2048 May  2 15:24 vmballoon.h
-
-open-vm-tools-2008.05.02-90473/modules/freebsd/vmxnet:
-total 140
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  1222 May  2 15:24 Makefile
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
--r--r--r-- 1 mts mts 35544 May  2 15:24 if_vxn.c
--r--r--r-- 1 mts mts     0 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  2426 May  2 15:24 net.h
--r--r--r-- 1 mts mts  6515 May  2 15:24 net_compat.h
--r--r--r-- 1 mts mts  2240 May  2 15:24 net_sg.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  7137 May  2 15:24 vm_device_version.h
--r--r--r-- 1 mts mts  2915 May  2 15:24 vmnet_def.h
--r--r--r-- 1 mts mts 14595 May  2 15:24 vmxnet2_def.h
--r--r--r-- 1 mts mts  6793 May  2 15:24 vmxnet_def.h
-
-open-vm-tools-2008.05.02-90473/modules/freebsd/vmxnet/autoconf:
-total 0
-
-open-vm-tools-2008.05.02-90473/modules/linux:
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  2652 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  6383 May 16 00:02 backdoor.c
+-r--r--r-- 1 mts mts  1337 May 16 00:02 backdoor.h
+-r--r--r-- 1 mts mts  6174 May 16 00:02 backdoorGcc32.c
+-r--r--r-- 1 mts mts  5550 May 16 00:02 backdoorGcc64.c
+-r--r--r-- 1 mts mts  1032 May 16 00:02 backdoorInt.h
+-r--r--r-- 1 mts mts  5883 May 16 00:02 backdoor_def.h
+-r--r--r-- 1 mts mts  3543 May 16 00:02 backdoor_types.h
+-r--r--r-- 1 mts mts 12045 May 16 00:02 cpName.c
+-r--r--r-- 1 mts mts  4174 May 16 00:02 cpName.h
+-r--r--r-- 1 mts mts  1798 May 16 00:02 cpNameInt.h
+-r--r--r-- 1 mts mts  5763 May 16 00:02 cpNameLinux.c
+-r--r--r-- 1 mts mts  2642 May 16 00:02 cpNameLite.c
+-r--r--r-- 1 mts mts  1710 May 16 00:02 cpNameLite.h
+-r--r--r-- 1 mts mts  8217 May 16 00:02 dbllnklst.c
+-r--r--r-- 1 mts mts  2350 May 16 00:02 dbllnklst.h
+-r--r--r-- 1 mts mts  4769 May 16 00:02 debug.c
+-r--r--r-- 1 mts mts  3358 May 16 00:02 debug.h
+-r--r--r-- 1 mts mts  3832 May 16 00:02 escBitvector.h
+-r--r--r-- 1 mts mts 25043 May 16 00:02 fsutil.c
+-r--r--r-- 1 mts mts  3506 May 16 00:02 fsutil.h
+-r--r--r-- 1 mts mts  3006 May 16 00:02 guest_msg_def.h
+-r--r--r-- 1 mts mts  7008 May 16 00:02 hgfs.h
+-r--r--r-- 1 mts mts  8689 May 16 00:02 hgfsBd.c
+-r--r--r-- 1 mts mts  1450 May 16 00:02 hgfsBd.h
+-r--r--r-- 1 mts mts 39688 May 16 00:02 hgfsProto.h
+-r--r--r-- 1 mts mts  6822 May 16 00:02 hgfsUtil.c
+-r--r--r-- 1 mts mts  3737 May 16 00:02 hgfsUtil.h
+-r--r--r-- 1 mts mts  5685 May 16 00:02 hgfs_kernel.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  4774 May 16 00:02 kernelStubs.h
+-r--r--r-- 1 mts mts  6043 May 16 00:02 kernelStubsBSD.c
+-r--r--r-- 1 mts mts  8254 May 16 00:02 message.c
+-r--r--r-- 1 mts mts  3529 May 16 00:02 message.h
+-r--r--r-- 1 mts mts 17265 May 16 00:02 messageBackdoor.c
+-r--r--r-- 1 mts mts 16112 May 16 00:02 os.c
+-r--r--r-- 1 mts mts  4229 May 16 00:02 os.h
+-r--r--r-- 1 mts mts 22550 May 16 00:02 request.c
+-r--r--r-- 1 mts mts  3184 May 16 00:02 request.h
+-r--r--r-- 1 mts mts  6298 May 16 00:02 requestInt.h
+-r--r--r-- 1 mts mts 11670 May 16 00:02 rpcout.c
+-r--r--r-- 1 mts mts  1963 May 16 00:02 rpcout.h
+-r--r--r-- 1 mts mts  6515 May 16 00:02 sha1.c
+-r--r--r-- 1 mts mts  2207 May 16 00:02 sha1.h
+-r--r--r-- 1 mts mts 46819 May 16 00:02 state.c
+-r--r--r-- 1 mts mts  6710 May 16 00:02 state.h
+-r--r--r-- 1 mts mts  8823 May 16 00:02 staticEscape.c
+-r--r--r-- 1 mts mts  2481 May 16 00:02 staticEscape.h
+-r--r--r-- 1 mts mts  9540 May 16 00:02 vfsops.c
+-r--r--r-- 1 mts mts  9952 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 17697 May 16 00:02 vm_basic_asm.h
+-r--r--r-- 1 mts mts 16113 May 16 00:02 vm_basic_asm_x86.h
+-r--r--r-- 1 mts mts  8944 May 16 00:02 vm_basic_asm_x86_64.h
+-r--r--r-- 1 mts mts 12608 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  1889 May 16 00:02 vmware.h
+-r--r--r-- 1 mts mts  1316 May 16 00:02 vmware_pack_begin.h
+-r--r--r-- 1 mts mts  1336 May 16 00:02 vmware_pack_end.h
+-r--r--r-- 1 mts mts  1956 May 16 00:02 vmware_pack_init.h
+-r--r--r-- 1 mts mts 23185 May 16 00:02 vnops.c
+-r--r--r-- 1 mts mts 77726 May 16 00:02 vnopscommon.c
+-r--r--r-- 1 mts mts  3216 May 16 00:02 vnopscommon.h
+-r--r--r-- 1 mts mts  6265 May 16 00:02 worker.c
+-r--r--r-- 1 mts mts 38003 May 16 00:02 x86cpuid.h
+
+open-vm-tools-2008.05.15-93084/modules/freebsd/vmmemctl:
+total 184
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1259 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts   430 May 16 00:02 README
+-r--r--r-- 1 mts mts  1337 May 16 00:02 backdoor.h
+-r--r--r-- 1 mts mts  6174 May 16 00:02 backdoorGcc32.c
+-r--r--r-- 1 mts mts  5550 May 16 00:02 backdoorGcc64.c
+-r--r--r-- 1 mts mts  1032 May 16 00:02 backdoorInt.h
+-r--r--r-- 1 mts mts  1338 May 16 00:02 backdoor_balloon.h
+-r--r--r-- 1 mts mts  3543 May 16 00:02 backdoor_types.h
+-r--r--r-- 1 mts mts  2622 May 16 00:02 balloon_def.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts 10240 May 16 00:02 os.c
+-r--r--r-- 1 mts mts  2441 May 16 00:02 os.h
+-r--r--r-- 1 mts mts  9952 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 12608 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts 37545 May 16 00:02 vmballoon.c
+-r--r--r-- 1 mts mts  2048 May 16 00:02 vmballoon.h
+
+open-vm-tools-2008.05.15-93084/modules/freebsd/vmxnet:
+total 136
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1222 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts 35544 May 16 00:02 if_vxn.c
+-r--r--r-- 1 mts mts     0 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  2426 May 16 00:02 net.h
+-r--r--r-- 1 mts mts  6515 May 16 00:02 net_compat.h
+-r--r--r-- 1 mts mts  2240 May 16 00:02 net_sg.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  7197 May 16 00:02 vm_device_version.h
+-r--r--r-- 1 mts mts  3180 May 16 00:02 vmnet_def.h
+-r--r--r-- 1 mts mts 14595 May 16 00:02 vmxnet2_def.h
+-r--r--r-- 1 mts mts  6793 May 16 00:02 vmxnet_def.h
+
+open-vm-tools-2008.05.15-93084/modules/linux:
 total 20
-drwxr-xr-x 5 mts mts 4096 May  2 15:24 vmblock
-drwxr-xr-x 3 mts mts 4096 May  2 15:24 vmhgfs
-drwxr-xr-x 3 mts mts 4096 May  2 15:24 vmmemctl
-drwxr-xr-x 3 mts mts 4096 May  2 15:24 vmsync
-drwxr-xr-x 3 mts mts 4096 May  2 15:24 vmxnet
+drwxr-xr-x 5 mts mts 4096 May 16 00:02 vmblock
+drwxr-xr-x 3 mts mts 4096 May 16 00:02 vmhgfs
+drwxr-xr-x 3 mts mts 4096 May 16 00:02 vmmemctl
+drwxr-xr-x 3 mts mts 4096 May 16 00:02 vmsync
+drwxr-xr-x 3 mts mts 4096 May 16 00:02 vmxnet
 
-open-vm-tools-2008.05.02-90473/modules/linux/vmblock:
+open-vm-tools-2008.05.15-93084/modules/linux/vmblock:
 total 52
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  3761 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  2009 May  2 15:24 Makefile.kernel
--r--r--r-- 1 mts mts  4136 May  2 15:24 Makefile.normal
--r--r--r-- 1 mts mts   481 May  2 15:24 README
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 include
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 linux
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmblock/autoconf:
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3761 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  2009 May 16 00:02 Makefile.kernel
+-r--r--r-- 1 mts mts  4136 May 16 00:02 Makefile.normal
+-r--r--r-- 1 mts mts   481 May 16 00:02 README
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 autoconf
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 include
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 linux
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmblock/autoconf:
 total 36
--r--r--r-- 1 mts mts 1670 May  2 15:24 cachecreate.c
--r--r--r-- 1 mts mts 1718 May  2 15:24 cachector.c
--r--r--r-- 1 mts mts 1261 May  2 15:24 epoll.c
--r--r--r-- 1 mts mts 1710 May  2 15:24 filldir1.c
--r--r--r-- 1 mts mts 1204 May  2 15:24 geninclude.c
--r--r--r-- 1 mts mts 1596 May  2 15:24 getsb1.c
--r--r--r-- 1 mts mts 1139 May  2 15:24 setnice.c
--r--r--r-- 1 mts mts 1259 May  2 15:24 skas1.c
--r--r--r-- 1 mts mts 1463 May  2 15:24 statfs1.c
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmblock/include:
-total 168
--r--r--r-- 1 mts mts  6088 May  2 15:24 compat_completion.h
--r--r--r-- 1 mts mts  1875 May  2 15:24 compat_file.h
--r--r--r-- 1 mts mts  9850 May  2 15:24 compat_fs.h
--r--r--r-- 1 mts mts  1261 May  2 15:24 compat_init.h
--r--r--r-- 1 mts mts  2659 May  2 15:24 compat_kernel.h
--r--r--r-- 1 mts mts  1917 May  2 15:24 compat_list.h
--r--r--r-- 1 mts mts  4231 May  2 15:24 compat_mm.h
--r--r--r-- 1 mts mts  2298 May  2 15:24 compat_module.h
--r--r--r-- 1 mts mts  2118 May  2 15:24 compat_namei.h
--r--r--r-- 1 mts mts  2483 May  2 15:24 compat_page.h
--r--r--r-- 1 mts mts  9843 May  2 15:24 compat_sched.h
--r--r--r-- 1 mts mts  1456 May  2 15:24 compat_semaphore.h
--r--r--r-- 1 mts mts  2764 May  2 15:24 compat_slab.h
--r--r--r-- 1 mts mts  2438 May  2 15:24 compat_spinlock.h
--r--r--r-- 1 mts mts  1222 May  2 15:24 compat_statfs.h
--r--r--r-- 1 mts mts  1907 May  2 15:24 compat_string.h
--r--r--r-- 1 mts mts  3122 May  2 15:24 compat_uaccess.h
--r--r--r-- 1 mts mts  3189 May  2 15:24 compat_version.h
--r--r--r-- 1 mts mts  6854 May  2 15:24 compat_wait.h
--r--r--r-- 1 mts mts  2216 May  2 15:24 driver-config.h
--r--r--r-- 1 mts mts     0 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  9952 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 12182 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  4260 May  2 15:24 vmblock.h
--r--r--r-- 1 mts mts  1889 May  2 15:24 vmware.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmblock/linux:
+-r--r--r-- 1 mts mts 1670 May 16 00:02 cachecreate.c
+-r--r--r-- 1 mts mts 1718 May 16 00:02 cachector.c
+-r--r--r-- 1 mts mts 1261 May 16 00:02 epoll.c
+-r--r--r-- 1 mts mts 1710 May 16 00:02 filldir1.c
+-r--r--r-- 1 mts mts 1204 May 16 00:02 geninclude.c
+-r--r--r-- 1 mts mts 1596 May 16 00:02 getsb1.c
+-r--r--r-- 1 mts mts 1139 May 16 00:02 setnice.c
+-r--r--r-- 1 mts mts 1259 May 16 00:02 skas1.c
+-r--r--r-- 1 mts mts 1463 May 16 00:02 statfs1.c
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmblock/include:
+total 172
+-r--r--r-- 1 mts mts  6088 May 16 00:02 compat_completion.h
+-r--r--r-- 1 mts mts  1875 May 16 00:02 compat_file.h
+-r--r--r-- 1 mts mts  9850 May 16 00:02 compat_fs.h
+-r--r--r-- 1 mts mts  1261 May 16 00:02 compat_init.h
+-r--r--r-- 1 mts mts  2659 May 16 00:02 compat_kernel.h
+-r--r--r-- 1 mts mts  1917 May 16 00:02 compat_list.h
+-r--r--r-- 1 mts mts  4231 May 16 00:02 compat_mm.h
+-r--r--r-- 1 mts mts  2298 May 16 00:02 compat_module.h
+-r--r--r-- 1 mts mts  2118 May 16 00:02 compat_namei.h
+-r--r--r-- 1 mts mts  2483 May 16 00:02 compat_page.h
+-r--r--r-- 1 mts mts  9843 May 16 00:02 compat_sched.h
+-r--r--r-- 1 mts mts  1456 May 16 00:02 compat_semaphore.h
+-r--r--r-- 1 mts mts  2764 May 16 00:02 compat_slab.h
+-r--r--r-- 1 mts mts  2438 May 16 00:02 compat_spinlock.h
+-r--r--r-- 1 mts mts  1222 May 16 00:02 compat_statfs.h
+-r--r--r-- 1 mts mts  1907 May 16 00:02 compat_string.h
+-r--r--r-- 1 mts mts  3122 May 16 00:02 compat_uaccess.h
+-r--r--r-- 1 mts mts  3189 May 16 00:02 compat_version.h
+-r--r--r-- 1 mts mts  6854 May 16 00:02 compat_wait.h
+-r--r--r-- 1 mts mts  2216 May 16 00:02 driver-config.h
+-r--r--r-- 1 mts mts     0 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  9952 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 12608 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  4332 May 16 00:02 vmblock.h
+-r--r--r-- 1 mts mts  1889 May 16 00:02 vmware.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmblock/linux:
 total 140
--r--r--r-- 1 mts mts 16436 May  2 15:24 block.c
--r--r--r-- 1 mts mts  1544 May  2 15:24 block.h
--r--r--r-- 1 mts mts  8894 May  2 15:24 control.c
--r--r--r-- 1 mts mts  8217 May  2 15:24 dbllnklst.c
--r--r--r-- 1 mts mts  2350 May  2 15:24 dbllnklst.h
--r--r--r-- 1 mts mts  3749 May  2 15:24 dentry.c
--r--r--r-- 1 mts mts  8089 May  2 15:24 file.c
--r--r--r-- 1 mts mts 20088 May  2 15:24 filesystem.c
--r--r--r-- 1 mts mts  4856 May  2 15:24 filesystem.h
--r--r--r-- 1 mts mts  6794 May  2 15:24 inode.c
--r--r--r-- 1 mts mts  4286 May  2 15:24 module.c
--r--r--r-- 1 mts mts  4292 May  2 15:24 os.h
--r--r--r-- 1 mts mts  1310 May  2 15:24 stubs.c
--r--r--r-- 1 mts mts  1057 May  2 15:24 stubs.h
--r--r--r-- 1 mts mts  5026 May  2 15:24 super.c
--r--r--r-- 1 mts mts  3399 May  2 15:24 vmblockInt.h
--r--r--r-- 1 mts mts  1176 May  2 15:24 vmblock_version.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmhgfs:
+-r--r--r-- 1 mts mts 16436 May 16 00:02 block.c
+-r--r--r-- 1 mts mts  1544 May 16 00:02 block.h
+-r--r--r-- 1 mts mts  8732 May 16 00:02 control.c
+-r--r--r-- 1 mts mts  8217 May 16 00:02 dbllnklst.c
+-r--r--r-- 1 mts mts  2350 May 16 00:02 dbllnklst.h
+-r--r--r-- 1 mts mts  3749 May 16 00:02 dentry.c
+-r--r--r-- 1 mts mts  8089 May 16 00:02 file.c
+-r--r--r-- 1 mts mts 20088 May 16 00:02 filesystem.c
+-r--r--r-- 1 mts mts  4856 May 16 00:02 filesystem.h
+-r--r--r-- 1 mts mts  6794 May 16 00:02 inode.c
+-r--r--r-- 1 mts mts  4286 May 16 00:02 module.c
+-r--r--r-- 1 mts mts  4292 May 16 00:02 os.h
+-r--r--r-- 1 mts mts  1310 May 16 00:02 stubs.c
+-r--r--r-- 1 mts mts  1057 May 16 00:02 stubs.h
+-r--r--r-- 1 mts mts  5026 May 16 00:02 super.c
+-r--r--r-- 1 mts mts  3351 May 16 00:02 vmblockInt.h
+-r--r--r-- 1 mts mts  1176 May 16 00:02 vmblock_version.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmhgfs:
 total 920
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  3760 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  2291 May  2 15:24 Makefile.kernel
--r--r--r-- 1 mts mts  3429 May  2 15:24 Makefile.normal
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
--r--r--r-- 1 mts mts  6383 May  2 15:24 backdoor.c
--r--r--r-- 1 mts mts  1337 May  2 15:24 backdoor.h
--r--r--r-- 1 mts mts  6174 May  2 15:24 backdoorGcc32.c
--r--r--r-- 1 mts mts  5550 May  2 15:24 backdoorGcc64.c
--r--r--r-- 1 mts mts  1032 May  2 15:24 backdoorInt.h
--r--r--r-- 1 mts mts  5883 May  2 15:24 backdoor_def.h
--r--r--r-- 1 mts mts  3543 May  2 15:24 backdoor_types.h
--r--r--r-- 1 mts mts  8759 May  2 15:24 bdhandler.c
--r--r--r-- 1 mts mts  1167 May  2 15:24 bdhandler.h
--r--r--r-- 1 mts mts  6088 May  2 15:24 compat_completion.h
--r--r--r-- 1 mts mts  2052 May  2 15:24 compat_dcache.h
--r--r--r-- 1 mts mts  1875 May  2 15:24 compat_file.h
--r--r--r-- 1 mts mts  9850 May  2 15:24 compat_fs.h
--r--r--r-- 1 mts mts  1391 May  2 15:24 compat_highmem.h
--r--r--r-- 1 mts mts  2659 May  2 15:24 compat_kernel.h
--r--r--r-- 1 mts mts  8066 May  2 15:24 compat_kthread.h
--r--r--r-- 1 mts mts  1917 May  2 15:24 compat_list.h
--r--r--r-- 1 mts mts  4231 May  2 15:24 compat_mm.h
--r--r--r-- 1 mts mts  2298 May  2 15:24 compat_module.h
--r--r--r-- 1 mts mts  2118 May  2 15:24 compat_namei.h
--r--r--r-- 1 mts mts  2591 May  2 15:24 compat_page-flags.h
--r--r--r-- 1 mts mts  2483 May  2 15:24 compat_page.h
--r--r--r-- 1 mts mts  9843 May  2 15:24 compat_sched.h
--r--r--r-- 1 mts mts  1456 May  2 15:24 compat_semaphore.h
--r--r--r-- 1 mts mts  2764 May  2 15:24 compat_slab.h
--r--r--r-- 1 mts mts  2438 May  2 15:24 compat_spinlock.h
--r--r--r-- 1 mts mts  1222 May  2 15:24 compat_statfs.h
--r--r--r-- 1 mts mts  1907 May  2 15:24 compat_string.h
--r--r--r-- 1 mts mts  3122 May  2 15:24 compat_uaccess.h
--r--r--r-- 1 mts mts  3189 May  2 15:24 compat_version.h
--r--r--r-- 1 mts mts  6854 May  2 15:24 compat_wait.h
--r--r--r-- 1 mts mts 12045 May  2 15:24 cpName.c
--r--r--r-- 1 mts mts  4174 May  2 15:24 cpName.h
--r--r--r-- 1 mts mts  1798 May  2 15:24 cpNameInt.h
--r--r--r-- 1 mts mts  5763 May  2 15:24 cpNameLinux.c
--r--r--r-- 1 mts mts  2642 May  2 15:24 cpNameLite.c
--r--r--r-- 1 mts mts  1710 May  2 15:24 cpNameLite.h
--r--r--r-- 1 mts mts  2350 May  2 15:24 dbllnklst.h
--r--r--r-- 1 mts mts  3112 May  2 15:24 dentry.c
--r--r--r-- 1 mts mts 27897 May  2 15:24 dir.c
--r--r--r-- 1 mts mts  2216 May  2 15:24 driver-config.h
--r--r--r-- 1 mts mts  3832 May  2 15:24 escBitvector.h
--r--r--r-- 1 mts mts 36841 May  2 15:24 file.c
--r--r--r-- 1 mts mts 20296 May  2 15:24 filesystem.c
--r--r--r-- 1 mts mts  1233 May  2 15:24 filesystem.h
--r--r--r-- 1 mts mts 57268 May  2 15:24 fsutil.c
--r--r--r-- 1 mts mts  3981 May  2 15:24 fsutil.h
--r--r--r-- 1 mts mts  2843 May  2 15:24 guest_msg_def.h
--r--r--r-- 1 mts mts  7008 May  2 15:24 hgfs.h
--r--r--r-- 1 mts mts  8689 May  2 15:24 hgfsBd.c
--r--r--r-- 1 mts mts  1450 May  2 15:24 hgfsBd.h
--r--r--r-- 1 mts mts  2535 May  2 15:24 hgfsDevLinux.h
--r--r--r-- 1 mts mts 39263 May  2 15:24 hgfsProto.h
--r--r--r-- 1 mts mts  6822 May  2 15:24 hgfsUtil.c
--r--r--r-- 1 mts mts  4161 May  2 15:24 hgfsUtil.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts 64072 May  2 15:24 inode.c
--r--r--r-- 1 mts mts  1318 May  2 15:24 inode.h
--r--r--r-- 1 mts mts  4774 May  2 15:24 kernelStubs.h
--r--r--r-- 1 mts mts  9629 May  2 15:24 kernelStubsLinux.c
--r--r--r-- 1 mts mts  5304 May  2 15:24 link.c
--r--r--r-- 1 mts mts  8254 May  2 15:24 message.c
--r--r--r-- 1 mts mts  3529 May  2 15:24 message.h
--r--r--r-- 1 mts mts 17265 May  2 15:24 messageBackdoor.c
--r--r--r-- 1 mts mts  2677 May  2 15:24 module.c
--r--r--r-- 1 mts mts  8784 May  2 15:24 module.h
--r--r--r-- 1 mts mts 27195 May  2 15:24 page.c
--r--r--r-- 1 mts mts  7040 May  2 15:24 request.c
--r--r--r-- 1 mts mts  3959 May  2 15:24 request.h
--r--r--r-- 1 mts mts 11670 May  2 15:24 rpcout.c
--r--r--r-- 1 mts mts  1963 May  2 15:24 rpcout.h
--r--r--r-- 1 mts mts  8823 May  2 15:24 staticEscape.c
--r--r--r-- 1 mts mts  2481 May  2 15:24 staticEscape.h
--r--r--r-- 1 mts mts  1985 May  2 15:24 stubs.c
--r--r--r-- 1 mts mts 12791 May  2 15:24 super.c
--r--r--r-- 1 mts mts  9952 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 17697 May  2 15:24 vm_basic_asm.h
--r--r--r-- 1 mts mts 16113 May  2 15:24 vm_basic_asm_x86.h
--r--r--r-- 1 mts mts  8903 May  2 15:24 vm_basic_asm_x86_64.h
--r--r--r-- 1 mts mts 12182 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  1168 May  2 15:24 vmhgfs_version.h
--r--r--r-- 1 mts mts  1889 May  2 15:24 vmware.h
--r--r--r-- 1 mts mts  1316 May  2 15:24 vmware_pack_begin.h
--r--r--r-- 1 mts mts  1336 May  2 15:24 vmware_pack_end.h
--r--r--r-- 1 mts mts  1956 May  2 15:24 vmware_pack_init.h
--r--r--r-- 1 mts mts 37595 May  2 15:24 x86cpuid.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmhgfs/autoconf:
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3760 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  2291 May 16 00:02 Makefile.kernel
+-r--r--r-- 1 mts mts  3429 May 16 00:02 Makefile.normal
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 autoconf
+-r--r--r-- 1 mts mts  6383 May 16 00:02 backdoor.c
+-r--r--r-- 1 mts mts  1337 May 16 00:02 backdoor.h
+-r--r--r-- 1 mts mts  6174 May 16 00:02 backdoorGcc32.c
+-r--r--r-- 1 mts mts  5550 May 16 00:02 backdoorGcc64.c
+-r--r--r-- 1 mts mts  1032 May 16 00:02 backdoorInt.h
+-r--r--r-- 1 mts mts  5883 May 16 00:02 backdoor_def.h
+-r--r--r-- 1 mts mts  3543 May 16 00:02 backdoor_types.h
+-r--r--r-- 1 mts mts  8725 May 16 00:02 bdhandler.c
+-r--r--r-- 1 mts mts  1167 May 16 00:02 bdhandler.h
+-r--r--r-- 1 mts mts  6088 May 16 00:02 compat_completion.h
+-r--r--r-- 1 mts mts  2052 May 16 00:02 compat_dcache.h
+-r--r--r-- 1 mts mts  1875 May 16 00:02 compat_file.h
+-r--r--r-- 1 mts mts  9850 May 16 00:02 compat_fs.h
+-r--r--r-- 1 mts mts  1391 May 16 00:02 compat_highmem.h
+-r--r--r-- 1 mts mts  2659 May 16 00:02 compat_kernel.h
+-r--r--r-- 1 mts mts  8066 May 16 00:02 compat_kthread.h
+-r--r--r-- 1 mts mts  1917 May 16 00:02 compat_list.h
+-r--r--r-- 1 mts mts  4231 May 16 00:02 compat_mm.h
+-r--r--r-- 1 mts mts  2298 May 16 00:02 compat_module.h
+-r--r--r-- 1 mts mts  2118 May 16 00:02 compat_namei.h
+-r--r--r-- 1 mts mts  2591 May 16 00:02 compat_page-flags.h
+-r--r--r-- 1 mts mts  2483 May 16 00:02 compat_page.h
+-r--r--r-- 1 mts mts  9843 May 16 00:02 compat_sched.h
+-r--r--r-- 1 mts mts  1456 May 16 00:02 compat_semaphore.h
+-r--r--r-- 1 mts mts  2764 May 16 00:02 compat_slab.h
+-r--r--r-- 1 mts mts  2438 May 16 00:02 compat_spinlock.h
+-r--r--r-- 1 mts mts  1222 May 16 00:02 compat_statfs.h
+-r--r--r-- 1 mts mts  1907 May 16 00:02 compat_string.h
+-r--r--r-- 1 mts mts  3122 May 16 00:02 compat_uaccess.h
+-r--r--r-- 1 mts mts  3189 May 16 00:02 compat_version.h
+-r--r--r-- 1 mts mts  6854 May 16 00:02 compat_wait.h
+-r--r--r-- 1 mts mts 12045 May 16 00:02 cpName.c
+-r--r--r-- 1 mts mts  4174 May 16 00:02 cpName.h
+-r--r--r-- 1 mts mts  1798 May 16 00:02 cpNameInt.h
+-r--r--r-- 1 mts mts  5763 May 16 00:02 cpNameLinux.c
+-r--r--r-- 1 mts mts  2642 May 16 00:02 cpNameLite.c
+-r--r--r-- 1 mts mts  1710 May 16 00:02 cpNameLite.h
+-r--r--r-- 1 mts mts  2350 May 16 00:02 dbllnklst.h
+-r--r--r-- 1 mts mts  3112 May 16 00:02 dentry.c
+-r--r--r-- 1 mts mts 27803 May 16 00:02 dir.c
+-r--r--r-- 1 mts mts  2216 May 16 00:02 driver-config.h
+-r--r--r-- 1 mts mts  3832 May 16 00:02 escBitvector.h
+-r--r--r-- 1 mts mts 36805 May 16 00:02 file.c
+-r--r--r-- 1 mts mts 20296 May 16 00:02 filesystem.c
+-r--r--r-- 1 mts mts  1232 May 16 00:02 filesystem.h
+-r--r--r-- 1 mts mts 57268 May 16 00:02 fsutil.c
+-r--r--r-- 1 mts mts  3980 May 16 00:02 fsutil.h
+-r--r--r-- 1 mts mts  3006 May 16 00:02 guest_msg_def.h
+-r--r--r-- 1 mts mts  7008 May 16 00:02 hgfs.h
+-r--r--r-- 1 mts mts  8689 May 16 00:02 hgfsBd.c
+-r--r--r-- 1 mts mts  1450 May 16 00:02 hgfsBd.h
+-r--r--r-- 1 mts mts  2535 May 16 00:02 hgfsDevLinux.h
+-r--r--r-- 1 mts mts 39688 May 16 00:02 hgfsProto.h
+-r--r--r-- 1 mts mts  6822 May 16 00:02 hgfsUtil.c
+-r--r--r-- 1 mts mts  3737 May 16 00:02 hgfsUtil.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts 63943 May 16 00:02 inode.c
+-r--r--r-- 1 mts mts  1318 May 16 00:02 inode.h
+-r--r--r-- 1 mts mts  4774 May 16 00:02 kernelStubs.h
+-r--r--r-- 1 mts mts  9629 May 16 00:02 kernelStubsLinux.c
+-r--r--r-- 1 mts mts  5268 May 16 00:02 link.c
+-r--r--r-- 1 mts mts  8254 May 16 00:02 message.c
+-r--r--r-- 1 mts mts  3529 May 16 00:02 message.h
+-r--r--r-- 1 mts mts 17265 May 16 00:02 messageBackdoor.c
+-r--r--r-- 1 mts mts  2677 May 16 00:02 module.c
+-r--r--r-- 1 mts mts  8774 May 16 00:02 module.h
+-r--r--r-- 1 mts mts 27061 May 16 00:02 page.c
+-r--r--r-- 1 mts mts  7026 May 16 00:02 request.c
+-r--r--r-- 1 mts mts  3951 May 16 00:02 request.h
+-r--r--r-- 1 mts mts 11670 May 16 00:02 rpcout.c
+-r--r--r-- 1 mts mts  1963 May 16 00:02 rpcout.h
+-r--r--r-- 1 mts mts  8823 May 16 00:02 staticEscape.c
+-r--r--r-- 1 mts mts  2481 May 16 00:02 staticEscape.h
+-r--r--r-- 1 mts mts  1985 May 16 00:02 stubs.c
+-r--r--r-- 1 mts mts 12791 May 16 00:02 super.c
+-r--r--r-- 1 mts mts  9952 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 17697 May 16 00:02 vm_basic_asm.h
+-r--r--r-- 1 mts mts 16113 May 16 00:02 vm_basic_asm_x86.h
+-r--r--r-- 1 mts mts  8944 May 16 00:02 vm_basic_asm_x86_64.h
+-r--r--r-- 1 mts mts 12608 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  1168 May 16 00:02 vmhgfs_version.h
+-r--r--r-- 1 mts mts  1889 May 16 00:02 vmware.h
+-r--r--r-- 1 mts mts  1316 May 16 00:02 vmware_pack_begin.h
+-r--r--r-- 1 mts mts  1336 May 16 00:02 vmware_pack_end.h
+-r--r--r-- 1 mts mts  1956 May 16 00:02 vmware_pack_init.h
+-r--r--r-- 1 mts mts 38003 May 16 00:02 x86cpuid.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmhgfs/autoconf:
 total 36
--r--r--r-- 1 mts mts 1670 May  2 15:24 cachecreate.c
--r--r--r-- 1 mts mts 1718 May  2 15:24 cachector.c
--r--r--r-- 1 mts mts 1261 May  2 15:24 epoll.c
--r--r--r-- 1 mts mts 1204 May  2 15:24 geninclude.c
--r--r--r-- 1 mts mts 1596 May  2 15:24 getsb1.c
--r--r--r-- 1 mts mts 1473 May  2 15:24 inode1.c
--r--r--r-- 1 mts mts 1345 May  2 15:24 maxbytes.c
--r--r--r-- 1 mts mts 1139 May  2 15:24 setnice.c
--r--r--r-- 1 mts mts 1463 May  2 15:24 statfs1.c
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmmemctl:
-total 288
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  3762 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  1696 May  2 15:24 Makefile.kernel
--r--r--r-- 1 mts mts  2868 May  2 15:24 Makefile.normal
--r--r--r-- 1 mts mts   453 May  2 15:24 README
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
--r--r--r-- 1 mts mts  1337 May  2 15:24 backdoor.h
--r--r--r-- 1 mts mts  6174 May  2 15:24 backdoorGcc32.c
--r--r--r-- 1 mts mts  5550 May  2 15:24 backdoorGcc64.c
--r--r--r-- 1 mts mts  1032 May  2 15:24 backdoorInt.h
--r--r--r-- 1 mts mts  1338 May  2 15:24 backdoor_balloon.h
--r--r--r-- 1 mts mts  5883 May  2 15:24 backdoor_def.h
--r--r--r-- 1 mts mts  3543 May  2 15:24 backdoor_types.h
--r--r--r-- 1 mts mts  2622 May  2 15:24 balloon_def.h
--r--r--r-- 1 mts mts  6088 May  2 15:24 compat_completion.h
--r--r--r-- 1 mts mts  1875 May  2 15:24 compat_file.h
--r--r--r-- 1 mts mts  2659 May  2 15:24 compat_kernel.h
--r--r--r-- 1 mts mts  8066 May  2 15:24 compat_kthread.h
--r--r--r-- 1 mts mts  1917 May  2 15:24 compat_list.h
--r--r--r-- 1 mts mts  4231 May  2 15:24 compat_mm.h
--r--r--r-- 1 mts mts  2298 May  2 15:24 compat_module.h
--r--r--r-- 1 mts mts  2483 May  2 15:24 compat_page.h
--r--r--r-- 1 mts mts  9843 May  2 15:24 compat_sched.h
--r--r--r-- 1 mts mts  1456 May  2 15:24 compat_semaphore.h
--r--r--r-- 1 mts mts  2438 May  2 15:24 compat_spinlock.h
--r--r--r-- 1 mts mts  3189 May  2 15:24 compat_version.h
--r--r--r-- 1 mts mts  6854 May  2 15:24 compat_wait.h
--r--r--r-- 1 mts mts  2216 May  2 15:24 driver-config.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts 13341 May  2 15:24 os.c
--r--r--r-- 1 mts mts  2441 May  2 15:24 os.h
--r--r--r-- 1 mts mts  9952 May  2 15:24 vm_assert.h
--r--r--r-- 1 mts mts 12182 May  2 15:24 vm_basic_defs.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts 37545 May  2 15:24 vmballoon.c
--r--r--r-- 1 mts mts  2048 May  2 15:24 vmballoon.h
--r--r--r-- 1 mts mts  1193 May  2 15:24 vmmemctl_version.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmmemctl/autoconf:
+-r--r--r-- 1 mts mts 1670 May 16 00:02 cachecreate.c
+-r--r--r-- 1 mts mts 1718 May 16 00:02 cachector.c
+-r--r--r-- 1 mts mts 1261 May 16 00:02 epoll.c
+-r--r--r-- 1 mts mts 1204 May 16 00:02 geninclude.c
+-r--r--r-- 1 mts mts 1596 May 16 00:02 getsb1.c
+-r--r--r-- 1 mts mts 1473 May 16 00:02 inode1.c
+-r--r--r-- 1 mts mts 1345 May 16 00:02 maxbytes.c
+-r--r--r-- 1 mts mts 1139 May 16 00:02 setnice.c
+-r--r--r-- 1 mts mts 1463 May 16 00:02 statfs1.c
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmmemctl:
+total 292
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3762 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  1696 May 16 00:02 Makefile.kernel
+-r--r--r-- 1 mts mts  2868 May 16 00:02 Makefile.normal
+-r--r--r-- 1 mts mts   453 May 16 00:02 README
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 autoconf
+-r--r--r-- 1 mts mts  1337 May 16 00:02 backdoor.h
+-r--r--r-- 1 mts mts  6174 May 16 00:02 backdoorGcc32.c
+-r--r--r-- 1 mts mts  5550 May 16 00:02 backdoorGcc64.c
+-r--r--r-- 1 mts mts  1032 May 16 00:02 backdoorInt.h
+-r--r--r-- 1 mts mts  1338 May 16 00:02 backdoor_balloon.h
+-r--r--r-- 1 mts mts  5883 May 16 00:02 backdoor_def.h
+-r--r--r-- 1 mts mts  3543 May 16 00:02 backdoor_types.h
+-r--r--r-- 1 mts mts  2622 May 16 00:02 balloon_def.h
+-r--r--r-- 1 mts mts  6088 May 16 00:02 compat_completion.h
+-r--r--r-- 1 mts mts  1875 May 16 00:02 compat_file.h
+-r--r--r-- 1 mts mts  2659 May 16 00:02 compat_kernel.h
+-r--r--r-- 1 mts mts  8066 May 16 00:02 compat_kthread.h
+-r--r--r-- 1 mts mts  1917 May 16 00:02 compat_list.h
+-r--r--r-- 1 mts mts  4231 May 16 00:02 compat_mm.h
+-r--r--r-- 1 mts mts  2298 May 16 00:02 compat_module.h
+-r--r--r-- 1 mts mts  2483 May 16 00:02 compat_page.h
+-r--r--r-- 1 mts mts  9843 May 16 00:02 compat_sched.h
+-r--r--r-- 1 mts mts  1456 May 16 00:02 compat_semaphore.h
+-r--r--r-- 1 mts mts  2438 May 16 00:02 compat_spinlock.h
+-r--r--r-- 1 mts mts  3189 May 16 00:02 compat_version.h
+-r--r--r-- 1 mts mts  6854 May 16 00:02 compat_wait.h
+-r--r--r-- 1 mts mts  2216 May 16 00:02 driver-config.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts 13341 May 16 00:02 os.c
+-r--r--r-- 1 mts mts  2441 May 16 00:02 os.h
+-r--r--r-- 1 mts mts  9952 May 16 00:02 vm_assert.h
+-r--r--r-- 1 mts mts 12608 May 16 00:02 vm_basic_defs.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts 37545 May 16 00:02 vmballoon.c
+-r--r--r-- 1 mts mts  2048 May 16 00:02 vmballoon.h
+-r--r--r-- 1 mts mts  1193 May 16 00:02 vmmemctl_version.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmmemctl/autoconf:
 total 12
--r--r--r-- 1 mts mts 1261 May  2 15:24 epoll.c
--r--r--r-- 1 mts mts 1204 May  2 15:24 geninclude.c
--r--r--r-- 1 mts mts 1139 May  2 15:24 setnice.c
+-r--r--r-- 1 mts mts 1261 May 16 00:02 epoll.c
+-r--r--r-- 1 mts mts 1204 May 16 00:02 geninclude.c
+-r--r--r-- 1 mts mts 1139 May 16 00:02 setnice.c
 
-open-vm-tools-2008.05.02-90473/modules/linux/vmsync:
+open-vm-tools-2008.05.15-93084/modules/linux/vmsync:
 total 108
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  3760 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  1473 May  2 15:24 Makefile.kernel
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
--r--r--r-- 1 mts mts  9850 May  2 15:24 compat_fs.h
--r--r--r-- 1 mts mts  2298 May  2 15:24 compat_module.h
--r--r--r-- 1 mts mts  2118 May  2 15:24 compat_namei.h
--r--r--r-- 1 mts mts  2764 May  2 15:24 compat_slab.h
--r--r--r-- 1 mts mts  3189 May  2 15:24 compat_version.h
--r--r--r-- 1 mts mts  6345 May  2 15:24 compat_workqueue.h
--r--r--r-- 1 mts mts  2216 May  2 15:24 driver-config.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts 18797 May  2 15:24 sync.c
--r--r--r-- 1 mts mts  1540 May  2 15:24 syncDriverIoc.h
--r--r--r-- 1 mts mts  1168 May  2 15:24 vmsync_version.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmsync/autoconf:
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3760 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  1473 May 16 00:02 Makefile.kernel
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 autoconf
+-r--r--r-- 1 mts mts  9850 May 16 00:02 compat_fs.h
+-r--r--r-- 1 mts mts  2298 May 16 00:02 compat_module.h
+-r--r--r-- 1 mts mts  2118 May 16 00:02 compat_namei.h
+-r--r--r-- 1 mts mts  2764 May 16 00:02 compat_slab.h
+-r--r--r-- 1 mts mts  3189 May 16 00:02 compat_version.h
+-r--r--r-- 1 mts mts  6345 May 16 00:02 compat_workqueue.h
+-r--r--r-- 1 mts mts  2216 May 16 00:02 driver-config.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts 18797 May 16 00:02 sync.c
+-r--r--r-- 1 mts mts  1540 May 16 00:02 syncDriverIoc.h
+-r--r--r-- 1 mts mts  1168 May 16 00:02 vmsync_version.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmsync/autoconf:
 total 8
--r--r--r-- 1 mts mts 1670 May  2 15:24 cachecreate.c
--r--r--r-- 1 mts mts 1718 May  2 15:24 cachector.c
+-r--r--r-- 1 mts mts 1670 May 16 00:02 cachecreate.c
+-r--r--r-- 1 mts mts 1718 May 16 00:02 cachector.c
 
-open-vm-tools-2008.05.02-90473/modules/linux/vmxnet:
+open-vm-tools-2008.05.15-93084/modules/linux/vmxnet:
 total 280
--r--r--r-- 1 mts mts 17987 May  2 15:24 COPYING
--r--r--r-- 1 mts mts  3760 May  2 15:24 Makefile
--r--r--r-- 1 mts mts  1279 May  2 15:24 Makefile.kernel
--r--r--r-- 1 mts mts  2665 May  2 15:24 Makefile.normal
--r--r--r-- 1 mts mts   460 May  2 15:24 README
-drwxr-xr-x 2 mts mts  4096 May  2 15:24 autoconf
--r--r--r-- 1 mts mts  1966 May  2 15:24 bpf_meta.h
--r--r--r-- 1 mts mts  1734 May  2 15:24 compat_ethtool.h
--r--r--r-- 1 mts mts  1391 May  2 15:24 compat_highmem.h
--r--r--r-- 1 mts mts  1261 May  2 15:24 compat_init.h
--r--r--r-- 1 mts mts  1700 May  2 15:24 compat_interrupt.h
--r--r--r-- 1 mts mts  2081 May  2 15:24 compat_ioport.h
--r--r--r-- 1 mts mts  2298 May  2 15:24 compat_module.h
--r--r--r-- 1 mts mts  8121 May  2 15:24 compat_netdevice.h
--r--r--r-- 1 mts mts 16725 May  2 15:24 compat_pci.h
--r--r--r-- 1 mts mts  6453 May  2 15:24 compat_skbuff.h
--r--r--r-- 1 mts mts  2764 May  2 15:24 compat_slab.h
--r--r--r-- 1 mts mts  2438 May  2 15:24 compat_spinlock.h
--r--r--r-- 1 mts mts  2795 May  2 15:24 compat_timer.h
--r--r--r-- 1 mts mts  3189 May  2 15:24 compat_version.h
--r--r--r-- 1 mts mts  2216 May  2 15:24 driver-config.h
--r--r--r-- 1 mts mts  4262 May  2 15:24 includeCheck.h
--r--r--r-- 1 mts mts  2426 May  2 15:24 net.h
--r--r--r-- 1 mts mts  2240 May  2 15:24 net_sg.h
--r--r--r-- 1 mts mts 21741 May  2 15:24 vm_basic_types.h
--r--r--r-- 1 mts mts  7137 May  2 15:24 vm_device_version.h
--r--r--r-- 1 mts mts  2915 May  2 15:24 vmnet_def.h
--r--r--r-- 1 mts mts 68841 May  2 15:24 vmxnet.c
--r--r--r-- 1 mts mts 14595 May  2 15:24 vmxnet2_def.h
--r--r--r-- 1 mts mts  3735 May  2 15:24 vmxnetInt.h
--r--r--r-- 1 mts mts  6793 May  2 15:24 vmxnet_def.h
--r--r--r-- 1 mts mts  1168 May  2 15:24 vmxnet_version.h
-
-open-vm-tools-2008.05.02-90473/modules/linux/vmxnet/autoconf:
+-r--r--r-- 1 mts mts 17987 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3760 May 16 00:02 Makefile
+-r--r--r-- 1 mts mts  1279 May 16 00:02 Makefile.kernel
+-r--r--r-- 1 mts mts  2665 May 16 00:02 Makefile.normal
+-r--r--r-- 1 mts mts   460 May 16 00:02 README
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 autoconf
+-r--r--r-- 1 mts mts  1966 May 16 00:02 bpf_meta.h
+-r--r--r-- 1 mts mts  1734 May 16 00:02 compat_ethtool.h
+-r--r--r-- 1 mts mts  1391 May 16 00:02 compat_highmem.h
+-r--r--r-- 1 mts mts  1261 May 16 00:02 compat_init.h
+-r--r--r-- 1 mts mts  1700 May 16 00:02 compat_interrupt.h
+-r--r--r-- 1 mts mts  2081 May 16 00:02 compat_ioport.h
+-r--r--r-- 1 mts mts  2298 May 16 00:02 compat_module.h
+-r--r--r-- 1 mts mts  8121 May 16 00:02 compat_netdevice.h
+-r--r--r-- 1 mts mts 16725 May 16 00:02 compat_pci.h
+-r--r--r-- 1 mts mts  6453 May 16 00:02 compat_skbuff.h
+-r--r--r-- 1 mts mts  2764 May 16 00:02 compat_slab.h
+-r--r--r-- 1 mts mts  2438 May 16 00:02 compat_spinlock.h
+-r--r--r-- 1 mts mts  2795 May 16 00:02 compat_timer.h
+-r--r--r-- 1 mts mts  3189 May 16 00:02 compat_version.h
+-r--r--r-- 1 mts mts  2216 May 16 00:02 driver-config.h
+-r--r--r-- 1 mts mts  4262 May 16 00:02 includeCheck.h
+-r--r--r-- 1 mts mts  2426 May 16 00:02 net.h
+-r--r--r-- 1 mts mts  2240 May 16 00:02 net_sg.h
+-r--r--r-- 1 mts mts 21746 May 16 00:02 vm_basic_types.h
+-r--r--r-- 1 mts mts  7197 May 16 00:02 vm_device_version.h
+-r--r--r-- 1 mts mts  3180 May 16 00:02 vmnet_def.h
+-r--r--r-- 1 mts mts 68841 May 16 00:02 vmxnet.c
+-r--r--r-- 1 mts mts 14595 May 16 00:02 vmxnet2_def.h
+-r--r--r-- 1 mts mts  3735 May 16 00:02 vmxnetInt.h
+-r--r--r-- 1 mts mts  6793 May 16 00:02 vmxnet_def.h
+-r--r--r-- 1 mts mts  1168 May 16 00:02 vmxnet_version.h
+
+open-vm-tools-2008.05.15-93084/modules/linux/vmxnet/autoconf:
 total 8
--r--r--r-- 1 mts mts 1204 May  2 15:24 geninclude.c
--r--r--r-- 1 mts mts 1400 May  2 15:24 skblin.c
+-r--r--r-- 1 mts mts 1204 May 16 00:02 geninclude.c
+-r--r--r-- 1 mts mts 1400 May 16 00:02 skblin.c
 
-open-vm-tools-2008.05.02-90473/scripts:
+open-vm-tools-2008.05.15-93084/scripts:
 total 44
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 common
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 freebsd
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 linux
-drwxr-xr-x 2 mts mts  4096 May  2 15:25 solaris
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 common
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 freebsd
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 linux
+drwxr-xr-x 2 mts mts  4096 May 16 00:02 solaris
 
-open-vm-tools-2008.05.02-90473/scripts/common:
+open-vm-tools-2008.05.15-93084/scripts/common:
 total 8
--r--r--r-- 1 mts mts 7452 May  2 15:25 vm-support
+-r--r--r-- 1 mts mts 7452 May 16 00:02 vm-support
 
-open-vm-tools-2008.05.02-90473/scripts/freebsd:
+open-vm-tools-2008.05.15-93084/scripts/freebsd:
 total 16
--r--r--r-- 1 mts mts 1354 May  2 15:25 poweroff-vm-default
--r--r--r-- 1 mts mts 1353 May  2 15:25 poweron-vm-default
--r--r--r-- 1 mts mts 1393 May  2 15:25 resume-vm-default
--r--r--r-- 1 mts mts 1750 May  2 15:25 suspend-vm-default
+-r--r--r-- 1 mts mts 1354 May 16 00:02 poweroff-vm-default
+-r--r--r-- 1 mts mts 1353 May 16 00:02 poweron-vm-default
+-r--r--r-- 1 mts mts 1393 May 16 00:02 resume-vm-default
+-r--r--r-- 1 mts mts 1750 May 16 00:02 suspend-vm-default
 
-open-vm-tools-2008.05.02-90473/scripts/linux:
+open-vm-tools-2008.05.15-93084/scripts/linux:
 total 16
--r--r--r-- 1 mts mts 1351 May  2 15:25 poweroff-vm-default
--r--r--r-- 1 mts mts 1351 May  2 15:25 poweron-vm-default
--r--r--r-- 1 mts mts 3042 May  2 15:25 resume-vm-default
--r--r--r-- 1 mts mts 2638 May  2 15:25 suspend-vm-default
+-r--r--r-- 1 mts mts 1351 May 16 00:02 poweroff-vm-default
+-r--r--r-- 1 mts mts 1351 May 16 00:02 poweron-vm-default
+-r--r--r-- 1 mts mts 3042 May 16 00:02 resume-vm-default
+-r--r--r-- 1 mts mts 2638 May 16 00:02 suspend-vm-default
 
-open-vm-tools-2008.05.02-90473/scripts/solaris:
+open-vm-tools-2008.05.15-93084/scripts/solaris:
 total 16
--r--r--r-- 1 mts mts 1354 May  2 15:25 poweroff-vm-default
--r--r--r-- 1 mts mts 1353 May  2 15:25 poweron-vm-default
--r--r--r-- 1 mts mts 1553 May  2 15:25 resume-vm-default
--r--r--r-- 1 mts mts 1904 May  2 15:25 suspend-vm-default
+-r--r--r-- 1 mts mts 1354 May 16 00:02 poweroff-vm-default
+-r--r--r-- 1 mts mts 1353 May 16 00:02 poweron-vm-default
+-r--r--r-- 1 mts mts 1553 May 16 00:02 resume-vm-default
+-r--r--r-- 1 mts mts 1904 May 16 00:02 suspend-vm-default
 
-open-vm-tools-2008.05.02-90473/toolbox:
+open-vm-tools-2008.05.15-93084/toolbox:
 total 176
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  2615 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 17046 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  2696 May  2 15:25 bigIcon.xpm
--r--r--r-- 1 mts mts  6258 May  2 15:25 debugStdio.c
--r--r--r-- 1 mts mts   458 May  2 15:25 smallIcon.xpm
--r--r--r-- 1 mts mts  4731 May  2 15:25 stub.c
--r--r--r-- 1 mts mts 29581 May  2 15:25 toolbox-gtk.c
--r--r--r-- 1 mts mts  6323 May  2 15:25 toolboxAbout.c
--r--r--r-- 1 mts mts  7085 May  2 15:25 toolboxDevices.c
--r--r--r-- 1 mts mts  2835 May  2 15:25 toolboxInt.h
--r--r--r-- 1 mts mts  3898 May  2 15:25 toolboxOptions.c
--r--r--r-- 1 mts mts 24460 May  2 15:25 toolboxScripts.c
--r--r--r-- 1 mts mts 14826 May  2 15:25 toolboxShrink.c
--r--r--r-- 1 mts mts  1557 May  2 15:25 toolboxgtk_version.h
-
-open-vm-tools-2008.05.02-90473/vmware-user:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  2575 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 17010 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  2696 May 16 00:02 bigIcon.xpm
+-r--r--r-- 1 mts mts  6258 May 16 00:02 debugStdio.c
+-r--r--r-- 1 mts mts   458 May 16 00:02 smallIcon.xpm
+-r--r--r-- 1 mts mts  4731 May 16 00:02 stub.c
+-r--r--r-- 1 mts mts 29581 May 16 00:02 toolbox-gtk.c
+-r--r--r-- 1 mts mts  6323 May 16 00:02 toolboxAbout.c
+-r--r--r-- 1 mts mts  7085 May 16 00:02 toolboxDevices.c
+-r--r--r-- 1 mts mts  2835 May 16 00:02 toolboxInt.h
+-r--r--r-- 1 mts mts  3898 May 16 00:02 toolboxOptions.c
+-r--r--r-- 1 mts mts 24460 May 16 00:02 toolboxScripts.c
+-r--r--r-- 1 mts mts 14826 May 16 00:02 toolboxShrink.c
+-r--r--r-- 1 mts mts  1557 May 16 00:02 toolboxgtk_version.h
+
+open-vm-tools-2008.05.15-93084/vmware-user:
 total 456
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  3938 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 18781 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts 65610 May  2 15:25 copyPaste.c
--r--r--r-- 1 mts mts  6258 May  2 15:25 debugStdio.c
--r--r--r-- 1 mts mts 83230 May  2 15:25 dnd.c
--r--r--r-- 1 mts mts 37366 May  2 15:25 foreignVMToolsDaemon.c
--r--r--r-- 1 mts mts  6210 May  2 15:25 foreignVMToolsDaemon.h
--r--r--r-- 1 mts mts 37059 May  2 15:25 foreignVMToolsNetworking.c
--r--r--r-- 1 mts mts 54676 May  2 15:25 foundryToolsDaemon.c
--r--r--r-- 1 mts mts  1766 May  2 15:25 foundryToolsDaemon.h
--r--r--r-- 1 mts mts  7478 May  2 15:25 libvmwarectrl.c
--r--r--r-- 1 mts mts  2031 May  2 15:25 libvmwarectrl.h
--r--r--r-- 1 mts mts  6157 May  2 15:25 pointer.c
--r--r--r-- 1 mts mts 16123 May  2 15:25 resolution.c
--r--r--r-- 1 mts mts  4731 May  2 15:25 stub.c
--r--r--r-- 1 mts mts 24364 May  2 15:25 vmware-user.c
--r--r--r-- 1 mts mts  1868 May  2 15:25 vmwarectrl.h
--r--r--r-- 1 mts mts  3636 May  2 15:25 vmwarectrlproto.h
--r--r--r-- 1 mts mts  2896 May  2 15:25 vmwareuserInt.h
--r--r--r-- 1 mts mts  1564 May  2 15:25 vmwareuser_version.h
-
-open-vm-tools-2008.05.02-90473/xferlogs:
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  3913 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 18747 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts 65610 May 16 00:02 copyPaste.c
+-r--r--r-- 1 mts mts  6258 May 16 00:02 debugStdio.c
+-r--r--r-- 1 mts mts 83230 May 16 00:02 dnd.c
+-r--r--r-- 1 mts mts 37366 May 16 00:02 foreignVMToolsDaemon.c
+-r--r--r-- 1 mts mts  6210 May 16 00:02 foreignVMToolsDaemon.h
+-r--r--r-- 1 mts mts 36992 May 16 00:02 foreignVMToolsNetworking.c
+-r--r--r-- 1 mts mts 54676 May 16 00:02 foundryToolsDaemon.c
+-r--r--r-- 1 mts mts  1766 May 16 00:02 foundryToolsDaemon.h
+-r--r--r-- 1 mts mts  7478 May 16 00:02 libvmwarectrl.c
+-r--r--r-- 1 mts mts  2031 May 16 00:02 libvmwarectrl.h
+-r--r--r-- 1 mts mts  6157 May 16 00:02 pointer.c
+-r--r--r-- 1 mts mts 16123 May 16 00:02 resolution.c
+-r--r--r-- 1 mts mts  4731 May 16 00:02 stub.c
+-r--r--r-- 1 mts mts 24375 May 16 00:02 vmware-user.c
+-r--r--r-- 1 mts mts  1868 May 16 00:02 vmwarectrl.h
+-r--r--r-- 1 mts mts  3636 May 16 00:02 vmwarectrlproto.h
+-r--r--r-- 1 mts mts  2896 May 16 00:02 vmwareuserInt.h
+-r--r--r-- 1 mts mts  1564 May 16 00:02 vmwareuser_version.h
+
+open-vm-tools-2008.05.15-93084/xferlogs:
 total 64
--r--r--r-- 1 mts mts 26425 May  2 15:25 COPYING
--r--r--r-- 1 mts mts  1533 May  2 15:25 Makefile.am
--rw-r--r-- 1 mts mts 15220 May  2 15:25 Makefile.in
--r--r--r-- 1 mts mts  9303 May  2 15:25 xferlogs.c
--r--r--r-- 1 mts mts  1554 May  2 15:25 xferlogs_version.h
+-r--r--r-- 1 mts mts 26425 May 16 00:02 COPYING
+-r--r--r-- 1 mts mts  1491 May 16 00:02 Makefile.am
+-rw-r--r-- 1 mts mts 15170 May 16 00:02 Makefile.in
+-r--r--r-- 1 mts mts  9303 May 16 00:02 xferlogs.c
+-r--r--r-- 1 mts mts  1554 May 16 00:02 xferlogs_version.h
index 978edbee1e73ccf27d901e1a9a90f0ca30aa148f..b26283d8ffa5263fd99a0861bd1b03964745b475 100644 (file)
@@ -102,8 +102,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -114,8 +112,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -126,12 +124,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -142,14 +140,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -164,7 +162,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -172,7 +170,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
index e7c61701616ed92d8124b2fc7d5485c1737f8395..502b718e8a8e296ee3f2bfe2e15fdaba740fd5c5 100755 (executable)
@@ -1,3 +1,12 @@
+open-vm-tools 2008.05.15 changes:
+       * guestd no longer starts vmware-user. Packagers will need to use
+       the XDG autostart spec, Xsession drop-in scripts, or other appropriate
+       mechanisms to make sure that vmware-user is started as part of
+       X session initialization. Please see
+       http://open-vm-tools.wiki.sourceforge.net/Packaging for more details.
+
+       * Bug fixes as usual.
+
 open-vm-tools 2008.05.02 changes:
        * Continued Unicode support.
 
index 3c127d079cecd94a8c8e9a46149a3f35d6828e04..7b3d6b30502d01023bf424e61f2658ed5962f029 100644 (file)
@@ -17,8 +17,5 @@
 
 noinst_PROGRAMS = checkvm
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 checkvm_SOURCES =
 checkvm_SOURCES += checkvm.c
index a76826c2a46c91db609d8653d18a392708335717..97c50d4d74990903e3bd290bd92a60ec792ebe8d 100644 (file)
@@ -89,8 +89,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -101,8 +99,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -113,12 +111,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -129,14 +127,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -151,7 +149,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -159,7 +157,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -217,7 +215,6 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @COMMON_CFLAGS@
 checkvm_SOURCES = checkvm.c
 all: all-am
 
index 60c261256f3fdfb35d3158b57dda794f112c8f77..7d204eb1ab7d82187ce61548a1f979521a982eab 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for open-vm-tools 2008.05.02-90473.
+# Generated by GNU Autoconf 2.61 for open-vm-tools 2008.05.15-93084.
 #
 # Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
 #
@@ -728,8 +728,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
 # Identity of this package.
 PACKAGE_NAME='open-vm-tools'
 PACKAGE_TARNAME='open-vm-tools'
-PACKAGE_VERSION='2008.05.02-90473'
-PACKAGE_STRING='open-vm-tools 2008.05.02-90473'
+PACKAGE_VERSION='2008.05.15-93084'
+PACKAGE_STRING='open-vm-tools 2008.05.15-93084'
 PACKAGE_BUGREPORT='open-vm-tools-devel@lists.sourceforge.net'
 
 ac_unique_file="checkvm/checkvm.c"
@@ -893,27 +893,25 @@ NO_ICU_TRUE
 NO_ICU_FALSE
 MODULES_OS
 MODULES
-COMMON_CFLAGS
-COMMON_PROG_CFLAGS
 COMMON_XLIBS
-GTK_CFLAGS
+GTK_CPPFLAGS
 GTK_LIBS
-DNET_CFLAGS
+DNET_CPPFLAGS
 DNET_LIBS
-PROCPS_CFLAGS
+PROCPS_CPPFLAGS
 PROCPS_LIBS
-ICU_CFLAGS
+ICU_CPPFLAGS
 ICU_LIBS
-LIB_AUTH_CFLAGS
-LIB_FILE_CFLAGS
-LIB_HGFS_SERVER_CFLAGS
-LIB_IMPERSONATE_CFLAGS
-LIB_MISC_CFLAGS
-LIB_PROC_MGR_CFLAGS
-LIB_STRING_CFLAGS
-LIB_USER_CFLAGS
+LIB_AUTH_CPPFLAGS
+LIB_FILE_CPPFLAGS
+LIB_HGFS_SERVER_CPPFLAGS
+LIB_IMPERSONATE_CPPFLAGS
+LIB_MISC_CPPFLAGS
+LIB_PROC_MGR_CPPFLAGS
+LIB_STRING_CPPFLAGS
+LIB_USER_CPPFLAGS
 GUESTD_LDADD
-VMWARE_USER_CFLAGS
+VMWARE_USER_CPPFLAGS
 VMWARE_USER_LDADD
 LIBOBJS
 LTLIBOBJS'
@@ -1436,7 +1434,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures open-vm-tools 2008.05.02-90473 to adapt to many kinds of systems.
+\`configure' configures open-vm-tools 2008.05.15-93084 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1510,7 +1508,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of open-vm-tools 2008.05.02-90473:";;
+     short | recursive ) echo "Configuration of open-vm-tools 2008.05.15-93084:";;
    esac
   cat <<\_ACEOF
 
@@ -1620,7 +1618,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-open-vm-tools configure 2008.05.02-90473
+open-vm-tools configure 2008.05.15-93084
 generated by GNU Autoconf 2.61
 
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1634,7 +1632,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by open-vm-tools $as_me 2008.05.02-90473, which was
+It was created by open-vm-tools $as_me 2008.05.15-93084, which was
 generated by GNU Autoconf 2.61.  Invocation command line was
 
   $ $0 $@
@@ -2524,7 +2522,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='open-vm-tools'
- VERSION='2008.05.02-90473'
+ VERSION='2008.05.15-93084'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -2676,11 +2674,17 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 ###
 # These need to be declared after initialization.
 
-# Some of our macro call-sites require changes to CFLAGS/LDFLAGS. In such
-# places, we save the original value of CFLAGS/LDFLAGS before the macro call
-# and restore it when the call is done. We must perform this save at each macro
-# site, because CFLAGS/LDFLAGS may change over the course of configuration.
-CFLAGS="$CFLAGS -DUSING_AUTOCONF=1"
+# Some of our macro call-sites require changes to
+# CPPFLAGS/CFLAGS/LDFLAGS. In such places, we save the original value
+# of CPPFLAGS/CFLAGS/LDFLAGS before the macro call and restore it when
+# the call is done. We must perform this save at each macro site,
+# because CPPFLAGS/CFLAGS/LDFLAGS may change over the course of
+# configuration.
+#
+# CPPFLAGS is intended for preprocessor options (-D and -I mainly)
+# CFLAGS is intended for compiler options (-O, -f, -W, and so forth)
+
+CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1"
 
 ###
 ### Programs
@@ -5584,7 +5588,7 @@ ia64-*-hpux*)
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 5587 "configure"' > conftest.$ac_ext
+  echo '#line 5591 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -8085,11 +8089,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8092: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8092: \$? = $ac_status" >&5
+   echo "$as_me:8096: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8353,11 +8357,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8356: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8360: \$? = $ac_status" >&5
+   echo "$as_me:8364: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8457,11 +8461,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8460: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8464: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:8464: \$? = $ac_status" >&5
+   echo "$as_me:8468: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -9922,7 +9926,7 @@ linux*)
   libsuff=
   case "$host_cpu" in
   x86_64*|s390x*|powerpc64*)
-    echo '#line 9925 "configure"' > conftest.$ac_ext
+    echo '#line 9929 "configure"' > conftest.$ac_ext
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -10786,7 +10790,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10789 "configure"
+#line 10793 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10886,7 +10890,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10889 "configure"
+#line 10893 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13225,11 +13229,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13228: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:13232: \$? = $ac_status" >&5
+   echo "$as_me:13236: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -13329,11 +13333,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13336: \$? = $ac_status" >&5
+   echo "$as_me:13340: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -13865,7 +13869,7 @@ linux*)
   libsuff=
   case "$host_cpu" in
   x86_64*|s390x*|powerpc64*)
-    echo '#line 13868 "configure"' > conftest.$ac_ext
+    echo '#line 13872 "configure"' > conftest.$ac_ext
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -14923,11 +14927,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:14926: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:14930: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:14930: \$? = $ac_status" >&5
+   echo "$as_me:14934: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -15027,11 +15031,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15034: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15034: \$? = $ac_status" >&5
+   echo "$as_me:15038: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -16472,7 +16476,7 @@ linux*)
   libsuff=
   case "$host_cpu" in
   x86_64*|s390x*|powerpc64*)
-    echo '#line 16475 "configure"' > conftest.$ac_ext
+    echo '#line 16479 "configure"' > conftest.$ac_ext
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -17249,11 +17253,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17252: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17256: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17256: \$? = $ac_status" >&5
+   echo "$as_me:17260: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -17517,11 +17521,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17524: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17524: \$? = $ac_status" >&5
+   echo "$as_me:17528: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -17621,11 +17625,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17624: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17628: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:17628: \$? = $ac_status" >&5
+   echo "$as_me:17632: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -19086,7 +19090,7 @@ linux*)
   libsuff=
   case "$host_cpu" in
   x86_64*|s390x*|powerpc64*)
-    echo '#line 19089 "configure"' > conftest.$ac_ext
+    echo '#line 19093 "configure"' > conftest.$ac_ext
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -21684,7 +21688,7 @@ echo "$as_me: error: The X11 libraries were not found. Please configure without
    { (exit 1); exit 1; }; }
 else
    LIBS="$LIBS $X_LIBS"
-   CFLAGS="$CFLAGS $X_CFLAGS"
+   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
    COMMON_XLIBS="-lX11"
    COMMON_XLIBS="-lXext $COMMON_XLIBS"
 
@@ -21901,7 +21905,7 @@ echo "$as_me: error: libXtst not found. Please configure without X11 (using --wi
 fi
 
 
-   if test -n "$CUSTOM_GTK_CFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
+   if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
    # Check to see if we have some version of GTK. gtk_accel_group_add
    # is a random function that is present in Gtk 1.2 but not Gtk
    # 2.0. Similarly, gtk_tree_view_new is a random function in Gtk 2.0
@@ -22075,13 +22079,13 @@ echo "${ECHO_T}no" >&6; }
       # 'pkg-config --cflags gtk+-2.0' gives an error.
       if test "$HAVE_GTK2" = "yes" -a "$HAVE_PKG_CONFIG" = "yes" \
         && ! pkg-config --exists gtk+-2.0 \
-        && test -z "$CUSTOM_GTK_CFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
+        && test -z "$CUSTOM_GTK_CPPFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
          HAVE_GTK2="no"
       fi
 
       if test "$HAVE_GTK2" = "yes"; then
       # Gtk 2.0
-        GTK_CFLAGS="$GTK_CFLAGS -DGTK2"
+        GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
         gtkPackageName="gtk+-2.0"
       elif test "$HAVE_GTK1" = "yes"; then
       # Gtk 1.2
@@ -22095,17 +22099,17 @@ echo "$as_me: error: The Gtk+ library installed on your system is not fully func
       fi
 
       # Prefer flags specified, in the environment, by the user.
-      if test -n "$CUSTOM_GTK_CFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
-        GTK_CFLAGS="$GTK_CFLAGS $CUSTOM_GTK_CFLAGS"
+      if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
+        GTK_CPPFLAGS="$GTK_CPPFLAGS $CUSTOM_GTK_CPPFLAGS"
         GTK_LIBS="$GTK_LIBS $CUSTOM_GTK_LIBS"
       # Use pkg-config if available and there are no user-specified flags.
       elif test "$HAVE_PKG_CONFIG" = "yes"; then
-        GTK_CFLAGS="$GTK_CFLAGS $(pkg-config --cflags $gtkPackageName)"
+        GTK_CPPFLAGS="$GTK_CPPFLAGS $(pkg-config --cflags $gtkPackageName)"
         GTK_LIBS="$GTK_LIBS $(pkg-config --libs $gtkPackageName)"
       # Otherwise, we have a problem.
       else
-        { { echo "$as_me:$LINENO: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&5
-echo "$as_me: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&2;}
+        { { echo "$as_me:$LINENO: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&5
+echo "$as_me: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&2;}
    { (exit 1); exit 1; }; }
       fi
 
        # 'procps' package installed without 'libproc-dev' would lead to
        # compilation errors down the line, so to avoid that we explicitly
        # check for one of the libproc headers that is consumed in the build.
-       if test -n "$CUSTOM_PROCPS_CFLAGS"; then
-               PROCPS_CFLAGS="$CUSTOM_PROCPS_CFLAGS"
+       if test -n "$CUSTOM_PROCPS_CPPFLAGS"; then
+               PROCPS_CPPFLAGS="$CUSTOM_PROCPS_CPPFLAGS"
        else
                # XXX: Unfortunately, the libproc devel package doesn't appear
                # to ship with a configuration script or pkg-config manifest
                # file, so there's no portable way to get the location of its
                # headers. For now we default to /usr/include.
-               PROCPS_CFLAGS="-I/usr/include"
+               PROCPS_CPPFLAGS="-I/usr/include"
        fi
-       ORIGINAL_CFLAGS="$CFLAGS"
-       CFLAGS="$PROCPS_CFLAGS $CFLAGS"
+       ORIGINAL_CPPFLAGS="$CPPFLAGS"
+       CPPFLAGS="$PROCPS_CPPFLAGS $CPPFLAGS"
        if test "${ac_cv_header_proc_sysinfo_h+set}" = set; then
   { echo "$as_me:$LINENO: checking for proc/sysinfo.h" >&5
 echo $ECHO_N "checking for proc/sysinfo.h... $ECHO_C" >&6; }
@@ -22857,7 +22861,7 @@ echo "$as_me: error: libproc headers not found. Please configure without procps
 fi
 
 
-       CFLAGS="$ORIGINAL_CFLAGS"
+       CPPFLAGS="$ORIGINAL_CPPFLAGS"
 fi
 
 if test "$with_procps" != "yes"; then
@@ -22926,7 +22930,7 @@ test -n "$DNET_CONFIG" || DNET_CONFIG="no"
 
 
        if test "$DNET_CONFIG" != no; then
-               DNET_CFLAGS="`$DNET_CONFIG --cflags`"
+               DNET_CPPFLAGS="`$DNET_CONFIG --cflags`"
                DNET_LIBS="`$DNET_CONFIG --libs`"
 
                GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
@@ -23005,7 +23009,7 @@ fi
 
 
        if test "$ICU_CONFIG" != no; then
-               ICU_CFLAGS="`$ICU_CONFIG --cppflags` -DUSE_ICU"
+               ICU_CPPFLAGS="`$ICU_CONFIG --cppflags` -DUSE_ICU"
                ICU_LIBS="`$ICU_CONFIG --ldflags`"
 
                { echo "$as_me:$LINENO: checking for ucasemap_utf8ToTitle_3_8 in -licuuc" >&5
 
 
                if test "$have_ICU_38" = "yes"; then
-                       ICU_CFLAGS="$ICU_CFLAGS -DHAVE_ICU_38"
+                       ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
                fi
 
                # Easier to give all modules the ICU defines/includes...
-               COMMON_CFLAGS="$COMMON_CFLAGS $ICU_CFLAGS"
+               CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
        else
                { { echo "$as_me:$LINENO: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&5
 echo "$as_me: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&2;}
@@ -26445,8 +26449,8 @@ echo "${ECHO_T}$HAVE_SETRESUID" >&6; }
 fi
 
 ### General flags / actions
-COMMON_CFLAGS="$COMMON_CFLAGS -Wall"
-COMMON_CFLAGS="$COMMON_CFLAGS -Werror"
+CFLAGS="$CFLAGS -Wall"
+CFLAGS="$CFLAGS -Werror"
 
 # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
 for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
@@ -26489,7 +26493,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         test -z "$ac_c_werror_flag" ||
         test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-  COMMON_CFLAGS="$COMMON_CFLAGS $TEST_CFLAG"
+  CFLAGS="$CFLAGS $TEST_CFLAG"
     { echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6; }
 else
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    CFLAGS="$ORIGINAL_CFLAGS"
 done
-COMMON_CFLAGS="$COMMON_CFLAGS -DVMX86_TOOLS"
-COMMON_CFLAGS="$COMMON_CFLAGS -DNO_CORE_ICU"
+CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
+CPPFLAGS="$CPPFLAGS -DNO_CORE_ICU"
 
 INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
-COMMON_CFLAGS="$COMMON_CFLAGS -I$INCLUDE_DIR"
+CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR"
 
 ### OS/arch-specific flags / actions
 
@@ -26516,11 +26520,11 @@ MODULES_OS="$os"
 buildHgfsmounter=no
 
 if test "$os" = "linux"; then
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_FILE_OFFSET_BITS=64"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_LARGEFILE64_SOURCE"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_XOPEN_SOURCE=500"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_BSD_SOURCE"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_SVID_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
+   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
+   CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_SVID_SOURCE"
 
    if test "$osVersion" -ge 202000; then
       MODULES="$MODULES vmxnet vmmemctl"
@@ -26548,13 +26552,13 @@ if test "$os" = "freebsd"; then
 fi
 
 if test "$os" = "solaris"; then
-   LIB_IMPERSONATE_CFLAGS="$LIB_IMPERSONATE_CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
-   LIB_USER_CFLAGS="$LIB_USER_CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+   LIB_IMPERSONATE_CPPFLAGS="$LIB_IMPERSONATE_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+   LIB_USER_CPPFLAGS="$LIB_USER_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
 
    GUESTD_LDADD="$GUESTD_LDADD -lsocket"
    GUESTD_LDADD="$GUESTD_LDADD -lnsl"
 
-   VMWARE_USER_CFLAGS="$VMWARE_USER_CFLAGS -I/usr/X11/include/"
+   VMWARE_USER_CPPFLAGS="$VMWARE_USER_CPPFLAGS -I/usr/X11/include/"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lXext"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lX11"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lsocket"
@@ -26562,7 +26566,7 @@ if test "$os" = "solaris"; then
 
    # uname -r on Solaris 10 reports "5.10"
    if test "$osVersion" -ge 510000; then
-      COMMON_CFLAGS="$COMMON_CFLAGS -DSOL10"
+      CPPFLAGS="$CPPFLAGS -DSOL10"
    fi
 fi
 
@@ -26629,28 +26633,28 @@ _ACEOF
 fi
 
 if test "$os$userSpaceBitness" = "linux64" || test "$HAVE_SYS_SETUID" = "yes"; then
-   LIB_MISC_CFLAGS="$LIB_MISC_CFLAGS -DGLIBC_VERSION_21"
+   LIB_MISC_CPPFLAGS="$LIB_MISC_CPPFLAGS -DGLIBC_VERSION_21"
 fi
 
 if test "$HAVE_NEW_ICONV" = "yes"; then
-   LIB_MISC_CFLAGS="$LIB_MISC_CFLAGS -DGLIBC_VERSION_22"
+   LIB_MISC_CPPFLAGS="$LIB_MISC_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 if test "$HAVE_LSEEK" = "yes"; then
-   LIB_FILE_CFLAGS="$LIB_FILE_CFLAGS -DGLIBC_VERSION_21"
-   LIB_HGFS_SERVER_CFLAGS="$LIB_HGFS_SERVER_CFLAGS -DGLIBC_VERSION_21"
+   LIB_FILE_CPPFLAGS="$LIB_FILE_CPPFLAGS -DGLIBC_VERSION_21"
+   LIB_HGFS_SERVER_CPPFLAGS="$LIB_HGFS_SERVER_CPPFLAGS -DGLIBC_VERSION_21"
 fi
 
 if test "$HAVE_SETRESUID" = "yes"; then
-   LIB_PROC_MGR_CFLAGS="$LIB_PROC_MGR_CFLAGS -DGLIBC_VERSION_23"
+   LIB_PROC_MGR_CPPFLAGS="$LIB_PROC_MGR_CPPFLAGS -DGLIBC_VERSION_23"
 fi
 
 if test "$HAVE_CRYPT" = "yes"; then
-   LIB_AUTH_CFLAGS="$LIB_AUTH_CFLAGS -DGLIBC_VERSION_22"
+   LIB_AUTH_CPPFLAGS="$LIB_AUTH_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 if test "$HAVE_WCHAR_H" = "yes"; then
-   LIB_STRING_CFLAGS="$LIB_STRING_CFLAGS -DGLIBC_VERSION_22"
+   LIB_STRING_CPPFLAGS="$LIB_STRING_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 ### General substs
@@ -26667,8 +26671,6 @@ fi
 
 
 
-
-
 ### Lib substs
 
 
@@ -27192,7 +27194,7 @@ exec 6>&1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by open-vm-tools $as_me 2008.05.02-90473, which was
+This file was extended by open-vm-tools $as_me 2008.05.15-93084, which was
 generated by GNU Autoconf 2.61.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -27239,7 +27241,7 @@ Report bugs to <bug-autoconf@gnu.org>."
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-open-vm-tools config.status 2008.05.02-90473
+open-vm-tools config.status 2008.05.15-93084
 configured by $0, generated by GNU Autoconf 2.61,
   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
@@ -27633,33 +27635,31 @@ NO_ICU_TRUE!$NO_ICU_TRUE$ac_delim
 NO_ICU_FALSE!$NO_ICU_FALSE$ac_delim
 MODULES_OS!$MODULES_OS$ac_delim
 MODULES!$MODULES$ac_delim
-COMMON_CFLAGS!$COMMON_CFLAGS$ac_delim
-COMMON_PROG_CFLAGS!$COMMON_PROG_CFLAGS$ac_delim
 COMMON_XLIBS!$COMMON_XLIBS$ac_delim
-GTK_CFLAGS!$GTK_CFLAGS$ac_delim
+GTK_CPPFLAGS!$GTK_CPPFLAGS$ac_delim
 GTK_LIBS!$GTK_LIBS$ac_delim
-DNET_CFLAGS!$DNET_CFLAGS$ac_delim
+DNET_CPPFLAGS!$DNET_CPPFLAGS$ac_delim
 DNET_LIBS!$DNET_LIBS$ac_delim
-PROCPS_CFLAGS!$PROCPS_CFLAGS$ac_delim
+PROCPS_CPPFLAGS!$PROCPS_CPPFLAGS$ac_delim
 PROCPS_LIBS!$PROCPS_LIBS$ac_delim
-ICU_CFLAGS!$ICU_CFLAGS$ac_delim
+ICU_CPPFLAGS!$ICU_CPPFLAGS$ac_delim
 ICU_LIBS!$ICU_LIBS$ac_delim
-LIB_AUTH_CFLAGS!$LIB_AUTH_CFLAGS$ac_delim
-LIB_FILE_CFLAGS!$LIB_FILE_CFLAGS$ac_delim
-LIB_HGFS_SERVER_CFLAGS!$LIB_HGFS_SERVER_CFLAGS$ac_delim
-LIB_IMPERSONATE_CFLAGS!$LIB_IMPERSONATE_CFLAGS$ac_delim
-LIB_MISC_CFLAGS!$LIB_MISC_CFLAGS$ac_delim
-LIB_PROC_MGR_CFLAGS!$LIB_PROC_MGR_CFLAGS$ac_delim
-LIB_STRING_CFLAGS!$LIB_STRING_CFLAGS$ac_delim
-LIB_USER_CFLAGS!$LIB_USER_CFLAGS$ac_delim
+LIB_AUTH_CPPFLAGS!$LIB_AUTH_CPPFLAGS$ac_delim
+LIB_FILE_CPPFLAGS!$LIB_FILE_CPPFLAGS$ac_delim
+LIB_HGFS_SERVER_CPPFLAGS!$LIB_HGFS_SERVER_CPPFLAGS$ac_delim
+LIB_IMPERSONATE_CPPFLAGS!$LIB_IMPERSONATE_CPPFLAGS$ac_delim
+LIB_MISC_CPPFLAGS!$LIB_MISC_CPPFLAGS$ac_delim
+LIB_PROC_MGR_CPPFLAGS!$LIB_PROC_MGR_CPPFLAGS$ac_delim
+LIB_STRING_CPPFLAGS!$LIB_STRING_CPPFLAGS$ac_delim
+LIB_USER_CPPFLAGS!$LIB_USER_CPPFLAGS$ac_delim
 GUESTD_LDADD!$GUESTD_LDADD$ac_delim
-VMWARE_USER_CFLAGS!$VMWARE_USER_CFLAGS$ac_delim
+VMWARE_USER_CPPFLAGS!$VMWARE_USER_CPPFLAGS$ac_delim
 VMWARE_USER_LDADD!$VMWARE_USER_LDADD$ac_delim
 LIBOBJS!$LIBOBJS$ac_delim
 LTLIBOBJS!$LTLIBOBJS$ac_delim
 _ACEOF
 
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
     break
   elif $ac_last_try; then
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
index 9085a1a7aec0ced5dcc7e8a239fac1bd601095fe..101858e71be3ea49f9da6461066b35638896b443 100755 (executable)
 ### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 ################################################################################
 
+################################################################################
+# In addition to the usual environment variables and command line
+# arguments that a configure script usually takes (CFLAGS, LDFLAGS,
+# etc.), this script also accepts:
+# $CUSTOM_GTK_CPPFLAGS - compile-time flags to find Gtk headers.
+# $CUSTOM_GTK_LIBS - link-time flags to find and link the Gtk libraries.
+# $CUSTOM_PROCPS_CPPFLAGS - compile-time flags to find procps headers
+# $CUSTOM_PROCPS_LIBS - link-time flags to find and link the procps library.
+################################################################################
+
 ###
 ### Initialization
 ###
 
 AC_INIT(
    [open-vm-tools],
-   [2008.05.02-90473],
+   [2008.05.15-93084],
    [open-vm-tools-devel@lists.sourceforge.net])
 
 # In order to make this configure script auto-detect situations where
@@ -103,11 +113,17 @@ AM_INIT_AUTOMAKE
 ###
 # These need to be declared after initialization.
 
-# Some of our macro call-sites require changes to CFLAGS/LDFLAGS. In such
-# places, we save the original value of CFLAGS/LDFLAGS before the macro call
-# and restore it when the call is done. We must perform this save at each macro
-# site, because CFLAGS/LDFLAGS may change over the course of configuration. 
-CFLAGS="$CFLAGS -DUSING_AUTOCONF=1"
+# Some of our macro call-sites require changes to
+# CPPFLAGS/CFLAGS/LDFLAGS. In such places, we save the original value
+# of CPPFLAGS/CFLAGS/LDFLAGS before the macro call and restore it when
+# the call is done. We must perform this save at each macro site,
+# because CPPFLAGS/CFLAGS/LDFLAGS may change over the course of
+# configuration.
+#
+# CPPFLAGS is intended for preprocessor options (-D and -I mainly)
+# CFLAGS is intended for compiler options (-O, -f, -W, and so forth)
+
+CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1"
 
 ###
 ### Programs
@@ -142,7 +158,7 @@ elif test "$have_x" != "yes"; then
       [The X11 libraries were not found. Please configure without X11 (using --without-x), or install the libX11 devel package(s).])
 else
    LIBS="$LIBS $X_LIBS"
-   CFLAGS="$CFLAGS $X_CFLAGS"
+   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
    COMMON_XLIBS="-lX11"
    COMMON_XLIBS="-lXext $COMMON_XLIBS"
 
@@ -173,7 +189,7 @@ else
         [libXtst not found. Please configure without X11 (using --without-x) or install the libXtst devel package(s).])],
       [$COMMON_XLIBS])
 
-   if test -n "$CUSTOM_GTK_CFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
+   if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
    # Check to see if we have some version of GTK. gtk_accel_group_add
    # is a random function that is present in Gtk 1.2 but not Gtk
    # 2.0. Similarly, gtk_tree_view_new is a random function in Gtk 2.0
@@ -221,13 +237,13 @@ else
       # 'pkg-config --cflags gtk+-2.0' gives an error.
       if test "$HAVE_GTK2" = "yes" -a "$HAVE_PKG_CONFIG" = "yes" \
         && ! pkg-config --exists gtk+-2.0 \
-        && test -z "$CUSTOM_GTK_CFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
+        && test -z "$CUSTOM_GTK_CPPFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
          HAVE_GTK2="no"
       fi
 
       if test "$HAVE_GTK2" = "yes"; then
       # Gtk 2.0
-        GTK_CFLAGS="$GTK_CFLAGS -DGTK2"
+        GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
         gtkPackageName="gtk+-2.0"
       elif test "$HAVE_GTK1" = "yes"; then
       # Gtk 1.2
@@ -239,16 +255,16 @@ else
       fi
 
       # Prefer flags specified, in the environment, by the user.
-      if test -n "$CUSTOM_GTK_CFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
-        GTK_CFLAGS="$GTK_CFLAGS $CUSTOM_GTK_CFLAGS"
+      if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
+        GTK_CPPFLAGS="$GTK_CPPFLAGS $CUSTOM_GTK_CPPFLAGS"
         GTK_LIBS="$GTK_LIBS $CUSTOM_GTK_LIBS"
       # Use pkg-config if available and there are no user-specified flags.
       elif test "$HAVE_PKG_CONFIG" = "yes"; then
-        GTK_CFLAGS="$GTK_CFLAGS $(pkg-config --cflags $gtkPackageName)"
+        GTK_CPPFLAGS="$GTK_CPPFLAGS $(pkg-config --cflags $gtkPackageName)"
         GTK_LIBS="$GTK_LIBS $(pkg-config --libs $gtkPackageName)"
       # Otherwise, we have a problem.
       else
-        AC_MSG_ERROR([pkg-config not found. Get pkg-config or set CUSTOM_GTK_CFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations.])
+        AC_MSG_ERROR([pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations.])
       fi
 
    else
@@ -314,23 +330,23 @@ if test "$with_procps" = "yes"; then
        # 'procps' package installed without 'libproc-dev' would lead to
        # compilation errors down the line, so to avoid that we explicitly
        # check for one of the libproc headers that is consumed in the build.
-       if test -n "$CUSTOM_PROCPS_CFLAGS"; then
-               PROCPS_CFLAGS="$CUSTOM_PROCPS_CFLAGS"
+       if test -n "$CUSTOM_PROCPS_CPPFLAGS"; then
+               PROCPS_CPPFLAGS="$CUSTOM_PROCPS_CPPFLAGS"
        else
                # XXX: Unfortunately, the libproc devel package doesn't appear
                # to ship with a configuration script or pkg-config manifest
                # file, so there's no portable way to get the location of its
                # headers. For now we default to /usr/include.
-               PROCPS_CFLAGS="-I/usr/include"
+               PROCPS_CPPFLAGS="-I/usr/include"
        fi
-       ORIGINAL_CFLAGS="$CFLAGS"
-       CFLAGS="$PROCPS_CFLAGS $CFLAGS"
+       ORIGINAL_CPPFLAGS="$CPPFLAGS"
+       CPPFLAGS="$PROCPS_CPPFLAGS $CPPFLAGS"
        AC_CHECK_HEADER(
           [proc/sysinfo.h],
           [],
           [AC_MSG_ERROR(
              [libproc headers not found. Please configure without procps (using --without-procps) or install libproc devel package])])
-       CFLAGS="$ORIGINAL_CFLAGS"
+       CPPFLAGS="$ORIGINAL_CPPFLAGS"
 fi
 
 if test "$with_procps" != "yes"; then
@@ -353,7 +369,7 @@ if test "$with_dnet" = "yes"; then
                       [no])
 
        if test "$DNET_CONFIG" != no; then
-               DNET_CFLAGS="`$DNET_CONFIG --cflags`"
+               DNET_CPPFLAGS="`$DNET_CONFIG --cflags`"
                DNET_LIBS="`$DNET_CONFIG --libs`"
 
                GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
@@ -384,7 +400,7 @@ if test "$with_icu" = "yes"; then
                     [no])
 
        if test "$ICU_CONFIG" != no; then
-               ICU_CFLAGS="`$ICU_CONFIG --cppflags` -DUSE_ICU"
+               ICU_CPPFLAGS="`$ICU_CONFIG --cppflags` -DUSE_ICU"
                ICU_LIBS="`$ICU_CONFIG --ldflags`"
 
                AC_CHECK_LIB([icuuc],
@@ -393,11 +409,11 @@ if test "$with_icu" = "yes"; then
                             [$ICU_LIBS])
 
                if test "$have_ICU_38" = "yes"; then
-                       ICU_CFLAGS="$ICU_CFLAGS -DHAVE_ICU_38"
+                       ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
                fi
 
                # Easier to give all modules the ICU defines/includes...
-               COMMON_CFLAGS="$COMMON_CFLAGS $ICU_CFLAGS"
+               CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
        else
                AC_MSG_ERROR(
                   [icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org])
@@ -527,8 +543,8 @@ if test "$os" = "linux"; then
 fi
 
 ### General flags / actions
-COMMON_CFLAGS="$COMMON_CFLAGS -Wall"
-COMMON_CFLAGS="$COMMON_CFLAGS -Werror"
+CFLAGS="$CFLAGS -Wall"
+CFLAGS="$CFLAGS -Werror"
 
 # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
 for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
@@ -541,16 +557,16 @@ for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
        [
        return 0;
        ],
-   [COMMON_CFLAGS="$COMMON_CFLAGS $TEST_CFLAG"
+   [CFLAGS="$CFLAGS $TEST_CFLAG"
     AC_MSG_RESULT(yes)],
    [AC_MSG_RESULT(no)])
    CFLAGS="$ORIGINAL_CFLAGS"
 done
-COMMON_CFLAGS="$COMMON_CFLAGS -DVMX86_TOOLS"
-COMMON_CFLAGS="$COMMON_CFLAGS -DNO_CORE_ICU"
+CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
+CPPFLAGS="$CPPFLAGS -DNO_CORE_ICU"
 
 INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
-COMMON_CFLAGS="$COMMON_CFLAGS -I$INCLUDE_DIR"
+CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR"
 
 ### OS/arch-specific flags / actions
 
@@ -559,11 +575,11 @@ MODULES_OS="$os"
 buildHgfsmounter=no
 
 if test "$os" = "linux"; then
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_FILE_OFFSET_BITS=64"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_LARGEFILE64_SOURCE"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_XOPEN_SOURCE=500"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_BSD_SOURCE"
-   COMMON_CFLAGS="$COMMON_CFLAGS -D_SVID_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
+   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
+   CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE"
+   CPPFLAGS="$CPPFLAGS -D_SVID_SOURCE"
 
    if test "$osVersion" -ge 202000; then
       MODULES="$MODULES vmxnet vmmemctl"
@@ -591,13 +607,13 @@ if test "$os" = "freebsd"; then
 fi
 
 if test "$os" = "solaris"; then
-   LIB_IMPERSONATE_CFLAGS="$LIB_IMPERSONATE_CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
-   LIB_USER_CFLAGS="$LIB_USER_CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+   LIB_IMPERSONATE_CPPFLAGS="$LIB_IMPERSONATE_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+   LIB_USER_CPPFLAGS="$LIB_USER_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
 
    GUESTD_LDADD="$GUESTD_LDADD -lsocket"
    GUESTD_LDADD="$GUESTD_LDADD -lnsl"
 
-   VMWARE_USER_CFLAGS="$VMWARE_USER_CFLAGS -I/usr/X11/include/"
+   VMWARE_USER_CPPFLAGS="$VMWARE_USER_CPPFLAGS -I/usr/X11/include/"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lXext"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lX11"
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lsocket"
@@ -605,7 +621,7 @@ if test "$os" = "solaris"; then
 
    # uname -r on Solaris 10 reports "5.10"
    if test "$osVersion" -ge 510000; then
-      COMMON_CFLAGS="$COMMON_CFLAGS -DSOL10"
+      CPPFLAGS="$CPPFLAGS -DSOL10"
    fi
 fi
 
@@ -627,62 +643,60 @@ if test "$MULTIMON_ENABLED" = "no"; then
 fi
 
 if test "$os$userSpaceBitness" = "linux64" || test "$HAVE_SYS_SETUID" = "yes"; then
-   LIB_MISC_CFLAGS="$LIB_MISC_CFLAGS -DGLIBC_VERSION_21"
+   LIB_MISC_CPPFLAGS="$LIB_MISC_CPPFLAGS -DGLIBC_VERSION_21"
 fi
 
 if test "$HAVE_NEW_ICONV" = "yes"; then
-   LIB_MISC_CFLAGS="$LIB_MISC_CFLAGS -DGLIBC_VERSION_22"
+   LIB_MISC_CPPFLAGS="$LIB_MISC_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 if test "$HAVE_LSEEK" = "yes"; then
-   LIB_FILE_CFLAGS="$LIB_FILE_CFLAGS -DGLIBC_VERSION_21"
-   LIB_HGFS_SERVER_CFLAGS="$LIB_HGFS_SERVER_CFLAGS -DGLIBC_VERSION_21"
+   LIB_FILE_CPPFLAGS="$LIB_FILE_CPPFLAGS -DGLIBC_VERSION_21"
+   LIB_HGFS_SERVER_CPPFLAGS="$LIB_HGFS_SERVER_CPPFLAGS -DGLIBC_VERSION_21"
 fi
 
 if test "$HAVE_SETRESUID" = "yes"; then
-   LIB_PROC_MGR_CFLAGS="$LIB_PROC_MGR_CFLAGS -DGLIBC_VERSION_23"
+   LIB_PROC_MGR_CPPFLAGS="$LIB_PROC_MGR_CPPFLAGS -DGLIBC_VERSION_23"
 fi
 
 if test "$HAVE_CRYPT" = "yes"; then
-   LIB_AUTH_CFLAGS="$LIB_AUTH_CFLAGS -DGLIBC_VERSION_22"
+   LIB_AUTH_CPPFLAGS="$LIB_AUTH_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 if test "$HAVE_WCHAR_H" = "yes"; then
-   LIB_STRING_CFLAGS="$LIB_STRING_CFLAGS -DGLIBC_VERSION_22"
+   LIB_STRING_CPPFLAGS="$LIB_STRING_CPPFLAGS -DGLIBC_VERSION_22"
 fi
 
 ### General substs
 
 AC_SUBST([MODULES_OS])
 AC_SUBST([MODULES])
-AC_SUBST([COMMON_CFLAGS])
-AC_SUBST([COMMON_PROG_CFLAGS])
 AC_SUBST([COMMON_XLIBS])
-AC_SUBST([GTK_CFLAGS])
+AC_SUBST([GTK_CPPFLAGS])
 AC_SUBST([GTK_LIBS])
-AC_SUBST([DNET_CFLAGS])
+AC_SUBST([DNET_CPPFLAGS])
 AC_SUBST([DNET_LIBS])
-AC_SUBST([PROCPS_CFLAGS])
+AC_SUBST([PROCPS_CPPFLAGS])
 AC_SUBST([PROCPS_LIBS])
-AC_SUBST([ICU_CFLAGS])
+AC_SUBST([ICU_CPPFLAGS])
 AC_SUBST([ICU_LIBS])
 
 ### Lib substs
 
-AC_SUBST([LIB_AUTH_CFLAGS])
-AC_SUBST([LIB_FILE_CFLAGS])
-AC_SUBST([LIB_HGFS_SERVER_CFLAGS])
-AC_SUBST([LIB_IMPERSONATE_CFLAGS])
-AC_SUBST([LIB_MISC_CFLAGS])
-AC_SUBST([LIB_PROC_MGR_CFLAGS])
-AC_SUBST([LIB_STRING_CFLAGS])
-AC_SUBST([LIB_USER_CFLAGS])
+AC_SUBST([LIB_AUTH_CPPFLAGS])
+AC_SUBST([LIB_FILE_CPPFLAGS])
+AC_SUBST([LIB_HGFS_SERVER_CPPFLAGS])
+AC_SUBST([LIB_IMPERSONATE_CPPFLAGS])
+AC_SUBST([LIB_MISC_CPPFLAGS])
+AC_SUBST([LIB_PROC_MGR_CPPFLAGS])
+AC_SUBST([LIB_STRING_CPPFLAGS])
+AC_SUBST([LIB_USER_CPPFLAGS])
 
 ### Program substs
 
 AC_SUBST([GUESTD_LDADD])
 
-AC_SUBST([VMWARE_USER_CFLAGS])
+AC_SUBST([VMWARE_USER_CPPFLAGS])
 AC_SUBST([VMWARE_USER_LDADD])
 
 ###
index 09b2a436bc61c4a2230abf018f2cfb17c974bdf0..0619bbd7e2baa1f5fabdb69c044dae673b7fb242 100644 (file)
 ### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 ################################################################################
 
-###
-### This Makefile describes 
-###
-
 noinst_PROGRAMS = guestd
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 guestd_LDADD =
 guestd_LDADD += ../lib/backdoor/libBackdoor.a
 guestd_LDADD += ../lib/conf/libConf.a
index 84bc2aef21765c7c42d7ee801ab54e4e9934ebc2..d4b6ed4b6957fb83f1baf78f5dc8481123886c80 100644 (file)
 ### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 ################################################################################
 
-###
-### This Makefile describes 
-###
-
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
@@ -122,8 +118,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -134,8 +128,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -146,12 +140,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -162,14 +156,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -184,7 +178,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -192,7 +186,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -250,7 +244,6 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @COMMON_CFLAGS@
 # In the absence of the linker options --start-group and --end-group (which
 # can't be put in LDADD), we need to bring the following libraries out of the
 # alphabetical order so their symbols are properly resolved.
index d675a1b2f1d1a30be9bf51920a7c5372fcb7740d..0b2848659c0813444b3aad3af1643e62bf5eb1b9 100644 (file)
@@ -86,7 +86,7 @@ typedef int socklen_t;
  *
  * We cannot link with winsock, since the DLL may not be present in all guests.
  * That would create a dll link problem that would prevent the tools from loading.
- * Instead, we try to get the procedure pointer ourselves at runtime, and quietly 
+ * Instead, we try to get the procedure pointer ourselves at runtime, and quietly
  * fail if it is not there.
  *-----------------------------------------------------------------------------
  */
@@ -147,8 +147,8 @@ typedef int (WSAAPI *SendToProcType)(SOCKET s,
                                      int tolen);
 
 typedef int (WSAAPI *SendSockOptProcType)(SOCKET s,
-                                          int level, 
-                                          int optname, 
+                                          int level,
+                                          int optname,
                                           const void *optval,
                                           socklen_t optlen);
 
@@ -215,7 +215,7 @@ static RecvfromProcType             VMToolsNet_Recvfrom = NULL;
 #define VMToolsNet_FDIsSet                  FD_ISSET
 #define VMToolsNet_Recvfrom                 recvfrom
 
-#endif 
+#endif
 
 
 Bool ForeignToolsMakeNonBlocking(int fd);
@@ -265,7 +265,7 @@ ForeignTools_InitializeNetworking(void)
    char *ipAddressStr = NULL;
    char *destPtr;
    char *endDestPtr;
-   NicInfo nicInfo;
+   GuestNicInfo nicInfo;
 #ifdef _WIN32
    HMODULE hWs2_32 = NULL;
    WSADATA wsaData;
@@ -412,13 +412,13 @@ ForeignTools_InitializeNetworking(void)
                            VixSocketListenerPort);
 
    /*
-    * Find out how big the IP_ADAPTER_INFO table needs to be. 
+    * Find out how big the IP_ADAPTER_INFO table needs to be.
     */
    success = GuestInfoGetNicInfo(&nicInfo);
    if (success) {
       NicEntry *nicEntryPtr = NULL;
       DblLnkLst_Links *nicEntryLink;
-    
+
       DblLnkLst_ForEach(nicEntryLink, &nicInfo.nicList) {
          nicEntryPtr = DblLnkLst_Container(nicEntryLink, NicEntry, links);
          destPtr += Str_Snprintf(destPtr,
@@ -426,7 +426,7 @@ ForeignTools_InitializeNetworking(void)
                                  "%s=%s;",
                                  VIX_SLPV2_PROPERTY_MAC_ADDR,
                                  nicEntryPtr->nicEntryProto.macAddress);
-      } 
+      }
 
       GuestInfo_FreeDynamicMemoryInNicInfo(&nicInfo);
    }
@@ -601,8 +601,8 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
       goto abort;
    }
    //success = ForeignToolsMakeNonBlocking(tcpListenerSocket);
-   success = ForeignToolsSocketBind(tcpListenerSocket, 
-                                    INADDR_ANY, 
+   success = ForeignToolsSocketBind(tcpListenerSocket,
+                                    INADDR_ANY,
                                     VixSocketListenerPort);
    if (!success) {
       goto abort;
@@ -615,16 +615,16 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
       goto abort;
    }
    //success = ForeignToolsMakeNonBlocking(tcpListenerSocket);
-   success = ForeignToolsSocketBind(udpListenerSocket, 
-                                    INADDR_ANY, 
+   success = ForeignToolsSocketBind(udpListenerSocket,
+                                    INADDR_ANY,
                                     SLPv2SocketListenerPort);
    if (!success) {
       goto abort;
    }
-   VMToolsNet_SetSockOpt(udpListenerSocket, 
-                         SOL_SOCKET, 
+   VMToolsNet_SetSockOpt(udpListenerSocket,
+                         SOL_SOCKET,
                          SO_BROADCAST,
-                         (const void *) &bcast, 
+                         (const void *) &bcast,
                          sizeof(bcast));
 
 #ifdef _WIN32
@@ -639,14 +639,14 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
          DWORD dwBytesReturned = 0;
          BOOL bNewBehavior = FALSE;
          DWORD status;
-         status = VMToolsNet_WSAIoctl(udpListenerSocket, 
+         status = VMToolsNet_WSAIoctl(udpListenerSocket,
                                       SIO_UDP_CONNRESET,
-                                      &bNewBehavior, 
+                                      &bNewBehavior,
                                       sizeof(bNewBehavior),
-                                      NULL, 
-                                      0, 
+                                      NULL,
+                                      0,
                                       &dwBytesReturned,
-                                      NULL, 
+                                      NULL,
                                       NULL);
          if (SOCKET_ERROR == status) {
          }
@@ -732,7 +732,7 @@ abort:
    if (udpListenerSocket != -1) {
       VMToolsNet_CloseSocket(udpListenerSocket);
       udpListenerSocket = -1;
-   }   
+   }
 } // ForeignToolsSelectLoop
 
 
@@ -773,9 +773,9 @@ ForeignToolsAcceptConnection(int tcpListenerSocket)   // IN
       }
    }
 
-         
+
    VIX_ENTER_LOCK(&globalLock);
-         
+
    /*
     * Allocate some state for the connection
     */
@@ -818,8 +818,8 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
    /*
     * Read the message header.
     */
-   result = VMToolsNet_Recv(connectionState->socket, 
-                            (char *) &(connectionState->requestHeader), 
+   result = VMToolsNet_Recv(connectionState->socket,
+                            (char *) &(connectionState->requestHeader),
                             sizeof(connectionState->requestHeader),
                             0);
    if (result <= 0) {
@@ -835,7 +835,7 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
       goto abort;
    }
 
-   connectionState->completeRequest 
+   connectionState->completeRequest
        = Util_SafeMalloc(connectionState->requestHeader.commonHeader.totalMessageLength);
    memcpy(connectionState->completeRequest,
           &(connectionState->requestHeader),
@@ -843,12 +843,12 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
 
    /*
     * If this request has a variable-sized part, like a body or a user credential,
-    * then start reading that. Otherwise, if the request only has a fixed-size header, 
+    * then start reading that. Otherwise, if the request only has a fixed-size header,
     * then we can start processing it now.
     */
    if (connectionState->requestHeader.commonHeader.totalMessageLength > result) {
-      result = VMToolsNet_Recv(connectionState->socket, 
-                              connectionState->completeRequest + result, 
+      result = VMToolsNet_Recv(connectionState->socket,
+                              connectionState->completeRequest + result,
                               connectionState->requestHeader.commonHeader.totalMessageLength - result,
                               0);
       if (result <= 0) {
@@ -908,9 +908,9 @@ ForeignToolsSendResponse(ForeignVMToolsConnection *connectionState,  // IN
 
    responseHeader->responseFlags |= responseFlags;
 
-   result = VMToolsNet_Send(connectionState->socket, 
+   result = VMToolsNet_Send(connectionState->socket,
                             (const char *) responseHeader,
-                            totalMessageSize, 
+                            totalMessageSize,
                             0);
    if (result <= 0) {
    }
@@ -958,9 +958,9 @@ ForeignToolsSendResponseUsingTotalMessage(ForeignVMToolsConnection *connectionSt
 
    responseHeader->responseFlags |= responseFlags;
 
-   result = VMToolsNet_Send(connectionState->socket, 
+   result = VMToolsNet_Send(connectionState->socket,
                             (const char *) responseHeader,
-                            totalMessageSize, 
+                            totalMessageSize,
                             0);
    if (result <= 0) {
    }
@@ -997,11 +997,11 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
    char *replyPacket = NULL;
    int replyPacketSize = 0;
 
-   actualPacketLength = VMToolsNet_Recvfrom(udpListenerSocket, 
-                                             receiveBuffer, 
+   actualPacketLength = VMToolsNet_Recvfrom(udpListenerSocket,
+                                             receiveBuffer,
                                              sizeof(receiveBuffer),
                                              0,
-                                             (struct sockaddr *) &clientAddr, 
+                                             (struct sockaddr *) &clientAddr,
                                              &clientAddrLen);
    if (actualPacketLength <= 0) {
       goto abort;
@@ -1025,9 +1025,9 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
                                               "", // LDAPv3 predicate
                                               &xid);
    if (match) {
-       Str_Sprintf(urlBuffer, 
-                   sizeof urlBuffer, 
-                   "%s://%s/", 
+       Str_Sprintf(urlBuffer,
+                   sizeof urlBuffer,
+                   "%s://%s/",
                    VIX_SLPV2_SERVICE_NAME_TOOLS_SERVICE,
                    globalHostName);
        success = SLPv2MsgAssembler_ServiceReply(&replyPacket,
@@ -1063,11 +1063,11 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
        * for more responses.
        */
       if (NULL != replyPacket) {
-         VMToolsNet_Sendto(udpListenerSocket, 
-                           replyPacket, 
+         VMToolsNet_Sendto(udpListenerSocket,
+                           replyPacket,
                            replyPacketSize,
                            0, // flags
-                           (struct sockaddr *) &clientAddr, 
+                           (struct sockaddr *) &clientAddr,
                            clientAddrLen);
       }
 
@@ -1111,7 +1111,7 @@ ForeignToolsCloseConnection(ForeignVMToolsConnection *connectionState,  // IN
 
    /*
     * It's possible that data on a connection arrives late, after we have
-    * closed it. In that case, VMAutomationReceiveMessage will correctly 
+    * closed it. In that case, VMAutomationReceiveMessage will correctly
     * not process the data. But, be careful that we don't try to close
     * the connection again.
     */
@@ -1145,7 +1145,7 @@ ForeignToolsCloseConnection(ForeignVMToolsConnection *connectionState,  // IN
 
          ForeignToolsDiscardCommand(command);
       }
-      
+
       command = nextCommand;
    } // while (NULL != command)
 
@@ -1210,11 +1210,11 @@ ForeignToolsWakeSelectThread(void)    // IN
    localAddr.sin_addr.s_addr = VMToolsNet_htonl(INADDR_ANY);
    localAddr.sin_port = VMToolsNet_htons(SLPv2SocketListenerPort);
 
-   VMToolsNet_Sendto(udpListenerSocket, 
-                     packet, 
+   VMToolsNet_Sendto(udpListenerSocket,
+                     packet,
                      sizeof(packet),
                      0, // flags
-                     (struct sockaddr *) &localAddr, 
+                     (struct sockaddr *) &localAddr,
                      sizeof(localAddr));
 } // ForeignToolsWakeSelectThread
 
index 894483065cf9cc09499486639ac6c50ca0391322..546f85b7e79b25de3f9b0eb03e3dcaa9f8fc73a4 100644 (file)
 #include <sys/wait.h>
 #include <errno.h>
 #include <stdlib.h>
-#if !defined(__FreeBSD__) && !defined(sun)
-#include <utmp.h>
-#include <pwd.h>
-#include <grp.h>
-#include <sys/ioctl.h>
-#include <linux/vt.h>
-#include <dirent.h>
-#include <sys/mount.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#endif
 
 
 #include "vmware.h"
@@ -72,7 +61,6 @@
 
 #if !defined(__FreeBSD__) && !defined(sun)
 #include "socketMgr.h"
-#include "dnd.h"
 #endif
 
 /* Header to get prototype of daemon() implementation for Solaris. */
@@ -131,19 +119,6 @@ VM_EMBED_VERSION(GUESTD_VERSION_STRING);
 #   endif
 #endif
 
-#if !defined(__FreeBSD__) && !defined(sun)
-#define VMWAREUSER_CHECK_TIME          1000 /* 10 seconds */
-#define XAUTOSTART_CONF                "xautostart.conf"
-#define NR_XBLESSED_APP_DEFAULT        2
-/* Default blessed app for gnome. */
-#define XBLESSED_APP1_DEFAULT          "gnome-panel"
-/*
- * Default blessed app for KDE. Only a few apps can be chosen, because most
- * X apps, like kicker, are loaded by kdeinit with empty environ. ksmserver
- * is KDE session manager and has environ.
- */
-#define XBLESSED_APP2_DEFAULT          "ksmserver"
-#endif
 /*
  * All signals that:
  * . Can terminate the process
@@ -163,17 +138,6 @@ static int const cSignals[] = {
  * Global variables
  */
 
-#if !defined(__FreeBSD__) && !defined(sun)
-static const char *gBinDir;
-static char *gDefaultBlessedApp[] = {
-   XBLESSED_APP1_DEFAULT,
-   XBLESSED_APP2_DEFAULT,
-};
-typedef struct blessedAppNode {
-   char *name;
-   struct blessedAppNode *next;
-} blessedAppNode;
-#endif
 
 /*
  * What a pity that the signal API doesn't allow to pass a clientData
@@ -619,727 +583,6 @@ GuestdGetValidMountPt(GuestApp_Dict *Dict) // IN: Configuration dictionary
 #endif /* VM_GUESTD_MOUNTS_HGFS */
 
 
-#if !defined(__FreeBSD__) && !defined(sun)
-/*
- *----------------------------------------------------------------------
- *
- * GuestdInitBlessedAppList --
- *
- *    Initialize blessed app list.
- *
- * Results:
- *    Head of blessed app list.
- *
- * Side effects:
- *    None.
- *
- *----------------------------------------------------------------------
- */
-static blessedAppNode*
-GuestdInitBlessedAppList(char *name)
-{
-   blessedAppNode *head;
-   head = Util_SafeMalloc(sizeof *head);
-   head->name = name;
-   head->next = NULL;
-   return head;
-}
-
-
-/*
- *----------------------------------------------------------------------
- *
- * GuestdAddBlessedAppNode --
- *
- *    Add a node to end of the blessed app list.
- *
- * Results:
- *    None.
- *
- * Side effects:
- *    None.
- *
- *----------------------------------------------------------------------
- */
-static void
-GuestdAddBlessedAppNode(blessedAppNode *head, char *name)
-{
-   ASSERT(head);
-   while (head->next) {
-      head = head->next;
-   }
-   head->next = Util_SafeMalloc(sizeof *head);
-   head = head->next;
-   head->name = name;
-   head->next = NULL;
-}
-
-
-/*
- *----------------------------------------------------------------------
- *
- * GuestdFreeBlessedAppList --
- *
- *    Free blessed app list.
- *
- * Results:
- *    None.
- *
- * Side effects:
- *    None.
- *
- *----------------------------------------------------------------------
- */
-static void
-GuestdFreeBlessedAppList(blessedAppNode *head)
-{
-   blessedAppNode *cur = head;
-   while (cur) {
-      head = cur->next;
-      free(cur->name);
-      free(cur);
-      cur = head;
-   }
-}
-
-
-/*
- *----------------------------------------------------------------------
- *
- * GuestdGetBlessedApp --
- *
- *    Try to get blessed app list from X autostart conf file. The conf
- *    is used to set blessed file list, which is used to check if X is
- *    loaded or not. Blessed file lists for different X distro are
- *    not same. If failed, try to get default list.
- *
- * Results:
- *    Blessed app name list if any, NULL otherwise.
- *
- * Side effects:
- *    None.
- *
- *----------------------------------------------------------------------
- */
-static blessedAppNode*
-GuestdGetBlessedAppList(void)
-{
-   FILE* confFile = NULL;
-   char *fileName = NULL;
-   char *fileNameUtf8 = NULL;
-   char *installPath = GuestApp_GetInstallPath();
-   char *appName = NULL;
-   size_t myLineLen;
-   int index;
-   blessedAppNode *ret = NULL;
-
-   if (installPath == NULL) {
-      Debug("GuestdGetBlessedAppList: Unable to get install path\n");
-      goto exit;
-   }
-
-   fileNameUtf8 = Str_Asprintf(NULL, "%s"DIRSEPS"%s", installPath, XAUTOSTART_CONF);
-   free(installPath);
-   if (NULL == fileNameUtf8) {
-      Debug("GuestdGetBlessedAppList: Unable to allocate memory\n");
-      goto exit;
-   }
-
-   if (!CodeSet_Utf8ToCurrent(fileNameUtf8,
-                              strlen(fileNameUtf8),
-                              (char **)&fileName,
-                              NULL)) {
-      Debug("GuestdGetBlessedAppList: Unable to convert to current encoding\n");
-      goto exit;
-   }
-   confFile = fopen(fileName, "r");
-   free(fileName);
-   if (NULL == confFile) {
-      /* If can not open conf file, use default value. */
-      Debug("GuestdGetBlessedAppList: Unable to open conf file, use default value.\n");
-      goto default_exit;
-   }
-
-   while (TRUE) {
-      switch (StdIO_ReadNextLine(confFile, &appName, 0, &myLineLen)) {
-      case StdIO_Error:
-         Debug("GuestdGetBlessedAppList: Unable to read conf file, use default value.\n");
-         goto default_exit;
-
-      case StdIO_EOF:
-         goto exit;
-
-      case StdIO_Success:
-         if (ret == NULL) {
-            ret = GuestdInitBlessedAppList(appName);
-         } else {
-            GuestdAddBlessedAppNode(ret, appName);
-         }
-         break;
-
-      default:
-         NOT_IMPLEMENTED();
-      }
-   }
-   NOT_REACHED();
-
-default_exit:
-   if (ret != NULL) {
-      GuestdFreeBlessedAppList(ret);
-      ret = NULL;
-   }
-   for (index = 0; index < NR_XBLESSED_APP_DEFAULT; index++) {
-      appName = Str_Asprintf(NULL, "%s", gDefaultBlessedApp[index]);
-      if (appName == NULL) {
-         Debug("GuestdGetBlessedAppList: Unable to allocate memory\n");
-         goto exit;
-      }
-      if (ret == NULL) {
-         ret = GuestdInitBlessedAppList(appName);
-      } else {
-         GuestdAddBlessedAppNode(ret, appName);
-      }
-   }
-exit:
-   free(fileNameUtf8);
-   if (confFile) {
-      fclose(confFile);
-   }
-   return ret;
-}
-
-
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestdGetAppEnv  --
- *
- *    Get an environ string from environ table.
- *
- * Results:
- *    Environ string if found, NULL otherwise.
- *
- * Side effects:
- *    None.
- *
- *-----------------------------------------------------------------------------
- */
-
-static char *
-GuestdGetAppEnv(pid_t pid,             // IN: app pid;
-                const char *envName)   // IN: env variable name
-{
-   char *fileName = NULL;
-   FILE *envFile;
-   char buffer[65536];
-   size_t readSize;
-   unsigned int index = 0;
-   char *ret = NULL;
-
-   fileName = Str_Asprintf(NULL, "/proc/%d/environ", pid);
-   if (NULL == fileName) {
-      Debug("GuestdGetAppEnv: Unable to allocate memory\n");
-      return ret;
-   }
-   envFile = fopen(fileName, "r");
-   if (NULL == envFile) {
-      /*
-       * We may not be able to open the file due to the security reason.
-       */
-      Debug("GuestdGetAppEnv: Unable to open env file for %s.\n", fileName);
-      free(fileName);
-      return ret;
-   }
-
-   readSize = fread(buffer, 1, sizeof buffer, envFile);
-
-   /* Separator in environ is '\0'. */
-   while (index < readSize) {
-      if (!strncmp(&buffer[index], envName, strlen(envName))) {
-         ret = Str_Asprintf(NULL, "%s", &buffer[index]);
-         break;
-      }
-      index += strlen(&buffer[index]) + 1;
-   }
-   free(fileName);
-   fclose(envFile);
-   return ret;
-}
-
-
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestdGetAppDisplay  --
- *
- *    Get app $DISPLAY from environ.
- *
- * Results:
- *    $DISPALY if any, -1 otherwise.
- *
- * Side effects:
- *    None.
- *
- *-----------------------------------------------------------------------------
- */
-
-static int
-GuestdGetAppDisplay(pid_t pid)   // IN: app pid
-{
-   int ret = -1;
-   int display;
-
-   char *env = GuestdGetAppEnv(pid, "DISPLAY");
-   if (env) {
-      if (sscanf(env, "DISPLAY=:%d.", &display) == 1) {
-         ret = display;
-      }
-      free(env);
-   }
-   return ret;
-}
-
-
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestdGetActiveXDisplay  --
- *
- *    Get active X display. Call the VT_GETSTATE ioctl on /dev/tty0 or
- *    /dev/vc/0, this returns the current VT number. Then Iterate all X in
- *    /tmp/.X#-lock, and get all X PIDs. For each XPID,  Iterate the X server's
- *    file descriptors in /proc/<PID>/fd/ looking for open /dev/tty# devices.
- *    Compare the current VT and tty#, find out active $DISPLAY.
- *
- * Results:
- *    Active X display, -1 otherwise.
- *
- * Side effects:
- *    None
- *
- *-----------------------------------------------------------------------------
- */
-
-static int
-GuestdGetActiveXDisplay(void)
-{
-   char fileName[PATH_MAX];
-   FILE *xPidFile = NULL;
-   pid_t xPid = 0;
-   int tty;
-   int display;
-   struct vt_stat state;
-   DIR *tmpdir = NULL;
-   struct dirent *tmpent;
-   char linkName[PATH_MAX];
-   char ttyName[32];
-   char vcName[32];
-   char *dirName = NULL;
-   int ret = -1;
-
-   /*
-    * Call the VT_GETSTATE ioctl on /dev/tty0 or /dev/vc/0, this returns the
-    * current VT number.
-    */
-   tty = open("/dev/tty0", O_RDONLY);
-   if (tty < 0) {
-      tty = open("/dev/vc/0", O_RDONLY);
-   }
-
-   if (tty < 0) {
-      Debug("GuestdGetActiveXDisplay: Cannot get current tty\n");
-      goto exit;
-   }
-
-   if (ioctl(tty, VT_GETSTATE, &state) < 0) {
-      Debug("GuestdGetActiveXDisplay: Cannot get state info for tty\n");
-      close(tty);
-      goto exit;
-   }
-   close(tty);
-
-   Str_Sprintf(ttyName, sizeof(ttyName), "/dev/tty%u", state.v_active);
-   Str_Sprintf(vcName, sizeof(vcName), "/dev/vc/%u", state.v_active);
-   Debug("GuestdGetActiveXDisplay: active tty is %d\n", state.v_active);
-
-   /* Try to get all X PIDs from /tmp/.X#-lock. */
-   tmpdir = opendir("/tmp");
-   if (NULL == tmpdir) {
-      Debug("GuestdGetActiveXDisplay: Unable to open /tmp\n");
-      goto exit;
-   }
-
-   while ((tmpent = readdir(tmpdir))) {
-      int res = sscanf(tmpent->d_name, ".X%u%s", &display, fileName);
-      if ((res == 2) && (strncmp(fileName, "-lock", 5) == 0)) {
-         DIR *xdir;
-         struct dirent *xent;
-
-         Str_Snprintf(fileName, sizeof fileName, "/tmp/%s", tmpent->d_name);
-         xPidFile = fopen(fileName, "r");
-         if (xPidFile) {
-            fscanf(xPidFile, "%"FMTPID"\n", &xPid);
-            fclose(xPidFile);
-         } else {
-            Debug("GuestdGetActiveXDisplay: Cannot get current X pid.\n");
-            goto exit;
-         }
-
-         /*
-          * Iterate the X server's file descriptors in /proc/<PID>/fd/ looking
-          * for open /dev/tty# devices.
-          */
-         dirName = Str_Asprintf(NULL, "/proc/%d/fd", xPid);
-         if (NULL == dirName) {
-            Debug("GuestdGetActiveXDisplay: Unable to allocate memory\n");
-            goto exit;
-         }
-         xdir = opendir(dirName);
-
-         if (NULL == xdir) {
-            Debug("GuestdGetActiveXDisplay: Unable to open %s\n", dirName);
-            free(dirName);
-            goto exit;
-         }
-         free(dirName);
-
-         while ((xent = readdir(xdir))) {
-            Str_Snprintf(fileName, sizeof fileName, "/proc/%u/fd/%s",
-                         xPid, xent->d_name);
-            memset(linkName, 0, sizeof linkName);
-            readlink(fileName, linkName, sizeof linkName);
-            if ((strcmp(linkName, ttyName) == 0) ||
-                (strcmp(linkName, vcName) == 0)) {
-               closedir(xdir);
-               ret = display;
-               goto exit;
-            }
-         }
-         closedir(xdir);
-     }
-   }
-exit:
-   if (tmpdir) {
-      closedir(tmpdir);
-   }
-   return ret;
-}
-
-
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestdRunVMwareUser  --
- *
- *    Run vmware-user as "foundUser" with environ from blessedPid. We do this
- *    so that we get a reasonable login environment for "foundUser". We take
- *    care to shell escape the username.
- *
- * Results:
- *    None.
- *
- * Side effects:
- *    May start vmware-user. Because it is running is a separated process,
- *    in any case it will exit.
- *
- *-----------------------------------------------------------------------------
- */
-
-static void
-GuestdRunVMwareUser(pid_t blessedPid)  // IN: blessed pid
-{
-   char *fileName = NULL;
-   char *xauth = NULL;
-   Bool isXauthSet = FALSE;
-   FILE *envFile = NULL;
-   char buffer[65536];
-   size_t readSize;
-   char *cmd;
-   struct passwd *pwd;
-   unsigned int index = 0;
-   int blockFd;
-   struct stat sb;
-   int envFd = -1;
-
-   /*
-    * If current active account is non-root, vmware-user can not initialize
-    * blocking driver for host->guest file copy paste. So open here before
-    * setuid and pass fd to vmware-user.
-    */
-   blockFd = DnD_InitializeBlocking();
-   if (blockFd < 0) {
-      Debug("GuestdRunVMwareUser: Unable to initialize block driver.\n");
-   }
-
-   /* Try to get user from blessed pid's environ. */
-   fileName = Str_Asprintf(NULL, "/proc/%d/environ", blessedPid);
-   if (NULL == fileName) {
-      Debug("GuestdRunVMwareUser: Unable to allocate memory\n");
-      goto childerror;
-   }
-   envFile = fopen(fileName, "r");
-   if (NULL == envFile) {
-      /*
-       * We may not be able to open the file due to the security reason.
-       */
-      Debug("GuestdRunVMwareUser: Unable to open env file for %s\n", fileName);
-      goto childerror;
-   }
-
-   readSize = fread(buffer, 1, sizeof buffer, envFile);
-
-   /*
-    * Rather than consulting the user's USER environment variable, assume we
-    * can instead trust procfs's file permissions to determine processes'
-    * owners.
-    */
-   if ((envFd = fileno(envFile)) == -1) {
-      Debug("GuestdRunVMwareUser: Unable to convert FILE * to descriptor\n");
-      goto childerror;
-   }
-
-   if (fstat(envFd, &sb) == -1) {
-      Debug("GuestdRunVMwareUser: Unable to lookup environment details\n");
-      goto childerror;
-   }
-
-   /*
-    * At this point, we're finished with these, so go ahead and release them before
-    * executing vmware-user.
-    */
-   free(fileName);
-   fileName = NULL;
-
-   fclose(envFile);
-   envFile = NULL;
-
-   /* Switch from root to Xsession user. */
-   pwd = getpwuid(sb.st_uid);
-   if (pwd == NULL) {
-      Debug("GuestdRunVMwareUser: Unable to lookup account for uid %u\n", sb.st_uid);
-      goto childerror;
-   }
-
-   if (setgid(pwd->pw_gid) != 0) {
-      Debug("GuestdRunVMwareUser: Unable to setgid for %s\n", pwd->pw_name);
-      goto childerror;
-   }
-
-   if (setuid(pwd->pw_uid) != 0) {
-      Debug("GuestdRunVMwareUser: Unable to setuid for %s\n", pwd->pw_name);
-      goto childerror;
-   }
-
-   /* Set env. Separator in environ is '\0'. */
-   index = 0;
-   while (index < readSize) {
-      if (putenv((char *)&buffer[index]) != 0) {
-         Debug("GuestdRunVMwareUser: Unable to putenv: %s\n", &buffer[index]);
-         goto childerror;
-      }
-      if (!strncmp(&buffer[index], "HOME=", 5)) {
-         xauth = Str_Asprintf(NULL, "XAUTHORITY=%s/.Xauthority", &buffer[index + 5]);
-      }
-      if (!strncmp(&buffer[index], "XAUTHORITY=", 11)) {
-         isXauthSet = TRUE;
-      }
-      index += strlen(&buffer[index]) + 1;
-   }
-
-   /* In KDE XAUTHORITY may not be set, so set it to default value. */
-   if (!isXauthSet) {
-      if (!xauth || (putenv(xauth) != 0)) {
-         Debug("GuestdRunVMwareUser: Unable to putenv for xauth\n");
-         goto childerror;
-      }
-   }
-   free(xauth);
-   xauth = NULL;
-
-   /* Load vmware-user. */
-   cmd = Str_Asprintf(NULL, "%s/vmware-user", gBinDir);
-   if (cmd == NULL) {
-      Debug("GuestdRunVMwareUser unable to allocate \"cmd\"\n");
-      goto childerror;
-   }
-   Debug("GuestdRunVMwareUser: Run cmd \"%s\"\n", cmd);
-
-   Str_Sprintf(buffer, sizeof buffer, "%d", blockFd);
-   execl(cmd, cmd, ">/dev/null", "2>&1", "-blockFd", buffer, NULL);
-   Debug("GuestdRunVMwareUser: Cannot run cmd \"%s\"\n", cmd);
-
-   /* We should only get here from a goto. */
-childerror:
-   free(xauth);
-   free(fileName);
-   if (envFile != NULL) {
-      fclose(envFile);
-   }
-   if (blockFd >= 0 && !DnD_UninitializeBlocking(blockFd)) {
-      Debug("GuestdRunVMwareUser unable to uninitialize blocking.\n");
-   }
-   exit(1);
-}
-
-
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestdCheckVMwareUser  --
- *
- *    EventManager callback function that checks up on the vmware-user process.
- *    If a user is logged in to the active X disaply, vmware-user should be
- *    running. If no active one, vmware-user should NOT be running.
- *
- * Results:
- *    TRUE. If we return FALSE, the event manager falls over.
- *
- * Side effects:
- *    May start or kill vmware-user.
- *
- *-----------------------------------------------------------------------------
- */
-
-static Bool
-GuestdCheckVMwareUser(void *clientData) // IN/OUT: vmware-user's pid
-{
-   pid_t *pid = (pid_t *)clientData;
-   pid_t blessedPid = 0;
-   char *blessedApp = NULL;
-   char *blessedUser = NULL;
-   char *userUser = NULL;
-   char processName[256];
-   int iProc = 0;
-   int activeDisplay = -1;
-   int userDisplay = -1;
-   uint32 period = VMWAREUSER_CHECK_TIME;
-   blessedAppNode *appList;
-   blessedAppNode *cur;
-   ProcMgr_ProcList *procList;
-
-
-   /* Get active X Window $DISPLAY. */
-   activeDisplay = GuestdGetActiveXDisplay();
-   Debug("GuestdCheckVMwareUser: Get active x display %d\n", activeDisplay);
-
-   /* Get process list. */
-   procList = ProcMgr_ListProcesses();
-   if (procList == NULL) {
-      Debug("GuestdCheckVMwareUser: Could not get process listing\n");
-      return FALSE;
-   }
-
-   /* Get vmware-user id. If not existing, set to 0. */
-   *pid = 0;
-   for (iProc = procList->procCount - 1; iProc >= 0; iProc--) {
-      Util_GetProcessName(procList->procIdList[iProc],
-                          processName,
-                          sizeof processName);
-      if (strcmp(processName, "vmware-user") == 0) {
-         *pid = procList->procIdList[iProc];
-         userDisplay = GuestdGetAppDisplay(*pid);
-         break;
-      }
-   }
-   Debug("GuestdCheckVMwareUser: vmware-user pid is %d\n", *pid);
-   if (activeDisplay < 0) {
-      goto stopVMwareUser;
-   }
-
-   if (activeDisplay == userDisplay) {
-      goto exit;
-   }
-
-   if (*pid > 0) {
-      userUser = GuestdGetAppEnv(*pid, "USER");
-   }
-
-   /*
-    * Get blessed app list, then check if any app is up. App's $DISPLAY
-    * should also be same as active X display.
-    */
-   appList = GuestdGetBlessedAppList();
-   cur = appList;
-   while (cur) {
-      blessedApp = cur->name;
-      Debug("GuestdCheckVMwareUser: Got blessed app %s\n", blessedApp);
-      for (iProc = procList->procCount - 1; iProc >= 0; iProc--) {
-         Util_GetProcessName(procList->procIdList[iProc],
-                             processName,
-                             sizeof processName);
-         if ((strcmp(processName, blessedApp) == 0) &&
-             (GuestdGetAppDisplay(procList->procIdList[iProc]) == activeDisplay)) {
-            blessedPid = procList->procIdList[iProc];
-            break;
-         }
-      }
-      /* If any app started, start vmware-user. */
-      if (blessedPid > 0) {
-         break;
-      }
-      cur = cur->next;
-   }
-   GuestdFreeBlessedAppList(appList);
-
-   Debug("GuestdCheckVMwareUser: got blessed pid %d\n", blessedPid);
-   if (blessedPid == 0) {
-      goto stopVMwareUser;
-   }
-
-   if (*pid == 0) {
-      /*
-       * There is a active X session and vmware-user isn't running,
-       * we should start it with fork/exec.
-       */
-      *pid = fork();
-      if (*pid == -1) {
-         Debug("GuestdCheckVMwareUser: Unable to fork: %s.\n\n", strerror(errno));
-         /*
-          * Reset pid to 0, maybe we'll be able to fork next time around
-          */
-         *pid = 0;
-      } else if (*pid == 0) {
-         /* Child. This function will not return. */
-         GuestdRunVMwareUser(blessedPid);
-      } else {
-         /*
-          * This is the parent after the fork. The parent doesn't need to do
-          * anything special since the child's pid is already recorded. I left this
-          * comment here anyway as a placeholder.
-          */
-      }
-   } else {
-      blessedUser = GuestdGetAppEnv(blessedPid, "USER");
-      if ((strcmp(userUser, blessedUser) != 0) ||
-          (userDisplay != activeDisplay)) {
-         /*
-          * vmware-user's user name is not right one, or display does match active
-          * X display so kill current vmware-user and start another one soon.
-          */
-         period /= 10;
-         goto stopVMwareUser;
-      }
-   }
-   goto exit;
-
-stopVMwareUser:
-   if (*pid != 0) {
-      Debug("GuestdCheckVMwareUser: Killing vmware-user.\n");
-      kill(*pid, SIGTERM);
-      *pid = 0;
-   }
-
-exit:
-   free(userUser);
-   free(blessedUser);
-   ProcMgr_FreeProcList(procList);
-   EventManager_Add(ToolsDaemonEventQueue, period,
-                    GuestdCheckVMwareUser, clientData);
-   return TRUE;
-}
-#endif
-
-
 /*
  *-----------------------------------------------------------------------------
  *
@@ -1765,9 +1008,6 @@ GuestdDaemon(GuestApp_Dict **pConfDict,       // IN/OUT
              int *gDaemonSignalPtr)           // IN/OUT
 {
    Bool guestInfoEnabled = FALSE;
-#if !defined(__FreeBSD__) && !defined(sun)
-   pid_t vmwareuserPid = 0;
-#endif
    ToolsDaemon_Data *data = NULL;
    VmBackupSyncProvider *syncProvider = NULL;
 
@@ -1822,17 +1062,6 @@ GuestdDaemon(GuestApp_Dict **pConfDict,       // IN/OUT
          GuestApp_GetDictEntryBool(*pConfDict, CONFNAME_DISABLEQUERYDISKINFO));
    }
 
-#if !defined(__FreeBSD__) && !defined(sun)
-   gBinDir = GuestApp_GetDictEntry(*pConfDict, CONFNAME_BINDIR);
-   if (gBinDir == NULL) {
-      gBinDir = "/usr/bin";
-   }
-   /*
-    * This function will add itself to the event manager
-    */
-   GuestdCheckVMwareUser(&vmwareuserPid);
-#endif
-
    /*
     * Start listening for VMX requests to create the upgrader.
     */
@@ -1907,12 +1136,6 @@ out:
       ToolsDaemon_Cleanup(data);
    }
 
-#if !defined(__FreeBSD__) && !defined(sun)
-   if (vmwareuserPid != 0) {
-      kill(vmwareuserPid, SIGTERM);
-   }
-#endif
-
    if (syncProvider != NULL) {
       VmBackup_Shutdown(data->in);
    }
index cc13790176a9debcfaa78085030e5f4aeb63a93a..5f3f31f21549424a5a09ec330dc4303a1c4ec3b0 100644 (file)
@@ -17,9 +17,6 @@
 
 noinst_PROGRAMS = hgfsclient
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 hgfsclient_LDADD =
 hgfsclient_LDADD += ../lib/conf/libConf.a
 hgfsclient_LDADD += ../lib/guestApp/libGuestApp.a
index 2f6d7ea63109987e85299a8aeae8b043d1adb7c9..5450ba46af860730a4ef0448ec480cc3d759ec3c 100644 (file)
@@ -99,8 +99,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -111,8 +109,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -123,12 +121,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -139,14 +137,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -161,7 +159,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -169,7 +167,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -227,7 +225,6 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @COMMON_CFLAGS@
 # In the absence of the linker options --start-group and --end-group (which can't
 # be put in LDADD), we need to bring the following libraries out of the alphebetical
 # order so their symbols are properly resolved.
index 3f58f44ef2e9981977f5e4d13ee666eb2e75ed2d..e78c9b3570cf3ca2e5a1f3376ad7f9492e1ceb24 100644 (file)
@@ -17,9 +17,6 @@
 
 noinst_PROGRAMS = hgfsmounter
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 hgfsmounter_LDADD =
 hgfsmounter_LDADD += ../lib/string/libString.a
 hgfsmounter_LDADD += ../lib/strUtil/libStrUtil.a
index 6b3841f95e2491338c5d3cd6a281ae048209240f..6a35a9177b42d9e16554b261c36fc3f8107b97e0 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -218,7 +216,6 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @COMMON_CFLAGS@
 hgfsmounter_LDADD = ../lib/string/libString.a \
        ../lib/strUtil/libStrUtil.a
 hgfsmounter_SOURCES = hgfsmounter.c stub.c
index 5326b3a773234d6edcf785f82b614c4fe7e274c1..93fed56eef3ce6f3f7fbee6e69bd33cf3ec8e20f 100644 (file)
@@ -81,8 +81,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -93,8 +91,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -105,12 +103,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -121,14 +119,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -143,7 +141,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -151,7 +149,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
index b47fbbc1e030d60426bdc2dfd9f5c23a80e4663e..96882a11545597f162fbf78fe96b049c67a6cb02 100644 (file)
@@ -21,6 +21,3 @@ libSLPv2Parser_a_SOURCES =
 libSLPv2Parser_a_SOURCES += SLPv2MsgParser.c
 libSLPv2Parser_a_SOURCES += SLPv2Match.c
 libSLPv2Parser_a_SOURCES += SLPv2MsgAssembler.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index c26d07c9c6a510b9d0b78fe9689e6709d84a69e3..8ade1f5dccd1c9957cc4b33242af4a386235db00 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -222,7 +220,6 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libSLPv2Parser.a
 libSLPv2Parser_a_SOURCES = SLPv2MsgParser.c SLPv2Match.c \
        SLPv2MsgAssembler.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 0a96c318075525ea9c4a35998301c60788dc5647..fc87e7786c97f46dd87e1da8516d36561c0a8e26 100644 (file)
@@ -20,6 +20,4 @@ noinst_LIBRARIES = libAuth.a
 libAuth_a_SOURCES =
 libAuth_a_SOURCES += authPosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_AUTH_CFLAGS@
+AM_CFLAGS = @LIB_AUTH_CPPFLAGS@
index 3d35e3512881e9d80e12c74752ab76a331adbc72..8b70aeb171437839b06f5c0717bd061aacdec5f0 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libAuth.a
 libAuth_a_SOURCES = authPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_AUTH_CFLAGS@
+AM_CFLAGS = @LIB_AUTH_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index dcd2d788bc34a99d5415b522c97532a0be9ca4a1..2cd9a913fac72fb0abe7ab7d233f745c85079c67 100644 (file)
@@ -25,8 +25,5 @@ else
    libBackdoor_a_SOURCES += backdoorGcc64.c
 endif
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 SUBDIRS =
 SUBDIRS += shared
index 137c2bf8a690ce58ececfa81bbc6a90eeda0a2f0..03be13be984c4ff1a54a7c29320f666028ec9eaa 100644 (file)
@@ -109,8 +109,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -121,8 +119,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -133,12 +131,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -149,14 +147,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -171,7 +169,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -179,7 +177,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -239,7 +237,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libBackdoor.a
 libBackdoor_a_SOURCES = backdoor.c $(am__append_1) $(am__append_2)
-AM_CFLAGS = @COMMON_CFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index fd7f75214b1183cac7488822fb29294d22464815..48461da1869eb3cfbcb866fe85287d8969465ec6 100644 (file)
@@ -24,6 +24,3 @@ if THIRTY_TWO_BIT_USERSPACE
 else
    libBackdoor_la_SOURCES += ../backdoorGcc64.c
 endif
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 5c2a3708e87a087a87dbb538fe1d5591797ba5c9..60b2b47373e675bf300b7ba20c28b852f251df78 100644 (file)
@@ -95,8 +95,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -107,8 +105,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -119,12 +117,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -135,14 +133,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -157,7 +155,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -165,7 +163,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -225,7 +223,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libBackdoor.la
 libBackdoor_la_SOURCES = ../backdoor.c $(am__append_1) $(am__append_2)
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 6b1352db41ddf922bacfc5d88da99eba4ba13e7a..7c79d363135b6d573a6558c8789f5559e6ad20f6 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libConf.a
 
 libConf_a_SOURCES =
 libConf_a_SOURCES += conf.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 3198776135dff7b4e5f1c0fb2bc4f9a49156fe25..0aaf6bbc79b348376061cc496188d39ea70d3dc4 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libConf.a
 libConf_a_SOURCES = conf.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 7752610b087cceac95ab268de2e3de825234cc68..1bd52e18106b4e5a46e9e44da68a7b7a44ba2810 100644 (file)
@@ -21,6 +21,3 @@ libDeployPkg_a_SOURCES =
 libDeployPkg_a_SOURCES += deployPkgLog.c
 libDeployPkg_a_SOURCES += deployPkg.c
 libDeployPkg_a_SOURCES += runDeployPkgPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index f1b8d510dcf2d6611dc921817416d0ca144d8276..680b4b3db81c8ac36cb9d00a68c0ac314bc142ac 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -222,7 +220,6 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libDeployPkg.a
 libDeployPkg_a_SOURCES = deployPkgLog.c deployPkg.c \
        runDeployPkgPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 9562b078ef56e5ad727bf9de43629a88ca9bcc70..01f172b0ceccf8d05502861eab07d45d90ffee3a 100644 (file)
@@ -242,7 +242,6 @@ DeployPkgGetTempDir(void)
    int i = 0;
    char *dir = NULL;
    char *newDir = NULL;
-   char *utf8Dir = NULL;
    Bool found = FALSE;
 
    /*
@@ -272,17 +271,7 @@ DeployPkgGetTempDir(void)
       Warning("DeployPkgGetTempDir Could not create temp directory\n");
       goto exit;
    } 
-
-   /* Convert newDir to utf8. */
-   if (!CodeSet_CurrentToUtf8(newDir, 
-                              strlen(newDir),
-                              &utf8Dir,
-                              NULL)) {
-      Warning("DeployPkgGetTempDir CodeSet_CurrentToUtf8 failed\n");
-      goto exit;
-   }
 exit:
    free(dir);
-   free(newDir);
-   return utf8Dir;
+   return newDir;
 }
index dc03206812fbcbd107f802ce80e109820518370b..c7062a1d843148db33f7bb067ccb059b9c5bb521 100644 (file)
@@ -17,8 +17,5 @@
 
 noinst_LIBRARIES = libDict.a
 
-libDict_a_SOURCES = 
+libDict_a_SOURCES =
 libDict_a_SOURCES += dictll.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index b976a1551bde704afe5503e8512e4ae732d5d7be..21f2f04582a2aab12dc3faf1071b80ce487ccbb1 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libDict.a
 libDict_a_SOURCES = dictll.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 8514fc6ce184d1b2e21909ae6eb33885a9c269cc..be5313fdd6fd828c3c65d8c38afc402afe742edd 100644 (file)
@@ -20,6 +20,3 @@ noinst_LIBRARIES = libDnd.a
 libDnd_a_SOURCES =
 libDnd_a_SOURCES += dndCommon.c
 libDnd_a_SOURCES += dndLinux.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 2460b1ce0309c29e061532885882c571ed40abe4..e6ce318944b88cac985845c7697ec4629e337fa9 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libDnd.a
 libDnd_a_SOURCES = dndCommon.c dndLinux.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 7ae29472bebd3d4a4ec503a1c470592b16dd25c0..64d690293964be4bee4eee1920930583158b6b89 100644 (file)
@@ -17,9 +17,6 @@
 
 noinst_LIBRARIES = libErr.a
 
-libErr_a_SOURCES = 
+libErr_a_SOURCES =
 libErr_a_SOURCES += err.c
 libErr_a_SOURCES += errPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index ccb0d847a571513d5c7b2bfb0d45bf9c4de678e3..d3cbd3b2902eef5db8510f62ca1291889cbaee88 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libErr.a
 libErr_a_SOURCES = err.c errPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index e78cacbd2b587a2806a655311e35ca6448e7eab1..9901ad1b1116aebc6078596d2a289fb5d8cebd49 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libEventManager.a
 
 libEventManager_a_SOURCES =
 libEventManager_a_SOURCES += eventManager.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 7ab32c695cba431c960f2f8782b69c2deaf04412..f214bdeb855c71c322f03ad7de21c7aecf13cb4a 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libEventManager.a
 libEventManager_a_SOURCES = eventManager.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index e2caac6f337cb709be101d6c5bc322285ebe32f2..45743c761851c8b4ed03dd30f5ef204e24c1158a 100644 (file)
@@ -25,6 +25,4 @@ libFile_a_SOURCES += fileIOPosix.c
 libFile_a_SOURCES += fileLockPrimitive.c
 libFile_a_SOURCES += fileLockPosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
index 42aaaf8ed76931f07815c07289b05a9c1200c766..35d281f67b47629fb905ea0ea3c395a81835acc1 100644 (file)
@@ -92,8 +92,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -104,8 +102,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -116,12 +114,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -132,14 +130,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -154,7 +152,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -162,7 +160,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -223,7 +221,7 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libFile.a
 libFile_a_SOURCES = file.c filePosix.c fileIO.c fileIOPosix.c \
        fileLockPrimitive.c fileLockPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 799ae00966341861a47faa1f63832909fb857d58..20e9a23ca437687210b8eeb172ead0009f11f50a 100644 (file)
@@ -1297,8 +1297,11 @@ File_GetUniqueFileSystemID(char const *path) // IN: File path
 {
 #if defined(VMX86_SERVER)
    char *canPath;
+   char *existPath;
 
-   canPath = Posix_RealPath(path);
+   existPath = FilePosixNearestExistingAncestor(path);
+   canPath = Posix_RealPath(existPath);
+   free(existPath);
 
    if (canPath == NULL) {
       return NULL;
@@ -1429,12 +1432,10 @@ FilePosixGetBlockDevice(char const *path) // IN: File path
    char canPath[FILE_MAXPATH];
    char canPath2[FILE_MAXPATH];
    unsigned int retries = 0;
+   char *realPath;
 #endif
 
    existPath = FilePosixNearestExistingAncestor(path);
-   if (!existPath) {
-      return NULL;
-   }
 
 #if defined(__APPLE__)
    failed = statfs(existPath, &buf) == -1;
@@ -1445,11 +1446,14 @@ FilePosixGetBlockDevice(char const *path) // IN: File path
 
    return Util_SafeStrdup(buf.f_mntfromname);
 #else
-   failed = !realpath(existPath, canPath);
+   realPath = Posix_RealPath(existPath);
    free(existPath);
-   if (failed) {
+
+   if (realPath == NULL) {
       return NULL;
    }
+   Str_Strcpy(canPath, realPath, sizeof canPath);
+   free(realPath);
 
 retry:
    Str_Strcpy(canPath2, canPath, sizeof canPath2);
@@ -1501,8 +1505,7 @@ retry:
 
                if (*diff != '\0') {
                   Str_Sprintf(canPath, sizeof canPath, "%s%s",
-                     strlen(ptr) > 1 ? ptr : "",
-                     diff);
+                     strlen(ptr) > 1 ? ptr : "", diff);
                } else {
                   Str_Strcpy(canPath, ptr, sizeof canPath);
                }
@@ -1559,9 +1562,8 @@ retry:
  *      have any number of non-existing components at its end.
  *
  * Results:
- *      On success: The allocated, NUL-terminated, non-empty path of the
- *                  nearest existing ancestor.
- *      On failure: NULL.
+ *      The allocated, NUL-terminated, non-empty path of the
+ *      nearest existing ancestor.
  *
  * Side effects:
  *      None
index 5a3e6f8896b14e4aafd971b5b85c4cfd1c1b2682..32282c3712056dde8fee4e1ca6684d6f1c40d49c 100644 (file)
@@ -22,6 +22,3 @@ libFoundryMsg_a_SOURCES += foundryMsg.c
 libFoundryMsg_a_SOURCES += foundryThreads.c
 libFoundryMsg_a_SOURCES += foundryPropertyListCommon.c
 libFoundryMsg_a_SOURCES += vixTranslateErrOpenSource.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 3cb23bbda2da00ea902eda0a5a5705d8013a366a..c277cef48accbd4bc693e70bc6c175ba2a0b7200 100644 (file)
@@ -92,8 +92,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -104,8 +102,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -116,12 +114,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -132,14 +130,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -154,7 +152,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -162,7 +160,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -223,7 +221,6 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libFoundryMsg.a
 libFoundryMsg_a_SOURCES = foundryMsg.c foundryThreads.c \
        foundryPropertyListCommon.c vixTranslateErrOpenSource.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index e5c4e05ec0a6bc37f9182ecdf3a1a9a7e9a1f66b..0e8edd35f554f34143a8e6daada25fbaf8be2eb7 100644 (file)
@@ -20,6 +20,4 @@ noinst_LIBRARIES = libghIntegrationStub.a
 libghIntegrationStub_a_SOURCES =
 libghIntegrationStub_a_SOURCES += ghIntegrationStub.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
index 6f6b7140bff76fa54730c12dc9863b427676f133..cddb0f6773626fb6d04bee6ac361d524f85894c0 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libghIntegrationStub.a
 libghIntegrationStub_a_SOURCES = ghIntegrationStub.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index bb1d0c5173e6f64e8380bc66a2f511c702c0d10e..491390f56743c4229a27638adc00f44cba158721 100644 (file)
@@ -20,6 +20,3 @@ noinst_LIBRARIES = libGuestApp.a
 libGuestApp_a_SOURCES =
 libGuestApp_a_SOURCES += guestApp.c
 libGuestApp_a_SOURCES += guestAppPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 157b63202bb6a4869389a5a12b7fd3939831bc9d..86ffdb5158669ad75d20c1e8cf4064fd622a2ade 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libGuestApp.a
 libGuestApp_a_SOURCES = guestApp.c guestAppPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index f295ae38e060eea3c8c64a3c5fa3cc611ab93997..031dc85bf76e607025b3ebaa49c367184126937d 100644 (file)
@@ -1671,86 +1671,16 @@ GuestApp_HostCopyStep(uint8 c) // IN
 }
 
 
-/*
- *-----------------------------------------------------------------------------
- *
- * GuestApp_RpcSendOneUtf8 --
- *
- *      Wrapper for RpcOut_SendOneRaw. Sends a single RPCI command with a single string
- *      argument. The argument will be UTF-8 encoded and sent safely over the backdoor.
- *      This used instead of RpcOut_SendOne because that function uses Str_Asprintf
- *      which uses FormatMessage. FormatMessage would interpret the utf8 encoded arg
- *      as being in the current locale and corrupts the string. This is used for
- *      commands which pass file paths over the backdoor.
- *
- * Results:
- *    TRUE on success.
- *    FALSE on error.
- *
- * Side effects:
- *    None.
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-GuestApp_RpcSendOneUtf8(char const *cmd,  // IN: RPCI command
-                        char const *arg,  // IN: string arg to be Utf8 encoded
-                        size_t argSize)   // IN: size of arg
-{
-   char *utf8Name;
-   size_t utf8NameSize;
-   char *rpcMessage;
-   size_t messageSize;
-
-   ASSERT(cmd);
-   ASSERT(arg);
-
-   if (!CodeSet_CurrentToUtf8(arg, argSize,
-                               &utf8Name, &utf8NameSize)) {
-      Debug("GuestApp_RpcSendOneUtf8: error failed to convert arg to utf8\n");
-      return FALSE;
-   }
-
-   messageSize = strlen(cmd) + 1 + utf8NameSize + 1;
-   rpcMessage = (char *)malloc(messageSize);
-   if (!rpcMessage) {
-      Debug("GuestApp_RpcSendOneUtf8: Error, out of memory\n");
-      free(utf8Name);
-      return FALSE;
-   }
-
-   Str_Strcpy(rpcMessage, cmd, messageSize);
-   Str_Strcat(rpcMessage, " ", messageSize);
-   Str_Strcat(rpcMessage, utf8Name, messageSize);
-   free(utf8Name);
-
-   Debug("GuestApp_RpcSendOneUtf8: about to send rpc message = *%s*, len = %"FMTSZ"d\n",
-         rpcMessage, messageSize);
-   if (!RpcOut_SendOneRaw(rpcMessage, messageSize, NULL, NULL)) {
-      Debug("GuestApp_RpcSendOneUtf8: Failed to send message to host\n");
-      free(rpcMessage);
-      return FALSE;
-   } else {
-      Debug("GuestApp_RpcSendOneUtf8: sent rpc message");
-   }
-
-   free(rpcMessage);
-   return TRUE;
-}
-
-
 #if !defined(N_PLAT_NLM)
 /*
  *----------------------------------------------------------------------------
  *
- * GuestApp_RpcSendOneUtf8CPName --
+ * GuestApp_RpcSendOneArgCPName --
  *
- *    Wrapper for GuestApp_RpcSendOneCPName to enable both UTF-8 and CPName
- *    conversions.  Sends a single RPCI command with arg UTF-8 encoded and
- *    cpNameArg both UTF-8 and CPName encoded.
+ *    Wrapper for GuestApp_RpcSendOneCPName with an extra argument. Sends a 
+ *    single RPCI command with arg and cpNameArg both in UTF-8 encodeding.
  *
- *    The UTF-8 encoded string is optional so that one can send a single UTF-8
+ *    The UTF-8 encoded arg is optional so that one can send a single UTF-8
  *    and CPName encoded string using this function.
  *
  *    Note that the UTF-8 string always preceeds the UTF-8 & CPName string in
@@ -1767,75 +1697,43 @@ GuestApp_RpcSendOneUtf8(char const *cmd,  // IN: RPCI command
  */
 
 Bool
-GuestApp_RpcSendOneUtf8CPName(char const *cmd,        // IN: RPCI command
-                              char const *arg,        // IN: to UTF8 encode
-                              size_t argSize,         // IN: size of arg
-                              char delimiter,         // IN: arg/cpNameArg delim.
-                              char const *cpNameArg,  // IN: to UTF8/CPName encode
-                              size_t cpNameArgSize)   // IN: size of cpNameArg
+GuestApp_RpcSendOneArgCPName(char const *cmd,        // IN: RPCI command
+                             char const *arg,        // IN: UTF-8 encoded string
+                             size_t argSize,         // IN: size of arg
+                             char delimiter,         // IN: arg/cpNameArg delim.
+                             char const *cpNameArg,  // IN: UTF-8 encoded CPName
+                             size_t cpNameArgSize)   // IN: size of cpNameArg
 {
-   size_t utf8cpNameArgSize;
-   char *utf8cpNameArg;
    Bool ret = FALSE;
 
    ASSERT(cmd);
    ASSERT(cpNameArg);
 
 
-   /* UTF-8 encode cpNameArg */
    Debug("GuestApp_RpcSendOneUtf8CPName: cpNameArg=\"%s\" (%"FMTSZ"u)\n",
          CPName_Print(cpNameArg, cpNameArgSize), cpNameArgSize);
 
-   if (!CodeSet_CurrentToUtf8(cpNameArg, cpNameArgSize,
-                              &utf8cpNameArg, &utf8cpNameArgSize)) {
-      Debug("GuestApp_RpcSendOneUtf8CPName: error failed to convert arg to utf8\n");
-      return FALSE;
-   }
-
-   Debug("GuestApp_RpcSendOneUtf8CPName: utf8cpNameArg=\"%s\", len=%"FMTSZ"d\n",
-         CPName_Print(utf8cpNameArg, utf8cpNameArgSize), utf8cpNameArgSize);
-
-   /* UTF-8 encode arg if provided */
    if (arg) {
       char *rpcMessage;
-      size_t messageSize;
-      char *utf8Arg;
-      size_t utf8ArgSize = 0;
 
       Debug("GuestApp_RpcSendOneUtf8CPName: arg=\"%s\"\n", arg);
 
-      if (!CodeSet_CurrentToUtf8(arg, argSize, &utf8Arg, &utf8ArgSize)) {
-         Debug("GuestApp_RpcSendOneUtf8CPName: error failed to convert arg to utf8\n");
-         goto abort;
-      }
-
-      Debug("GuestApp_RpcSendOneUtf8CPName: utf8Arg=\"%s\", len=%"FMTSZ"d\n",
-            utf8Arg, utf8ArgSize);
-
-      /* Merge command and UTF-8 encoded string */
-      messageSize = strlen(cmd) + 1 + utf8ArgSize + 1;
-      rpcMessage = (char *)malloc(messageSize);
+      /* Merge command and argument */
+      rpcMessage = Str_Asprintf(NULL, "%s %s", cmd, arg);
       if (!rpcMessage) {
          Debug("GuestApp_RpcSendOneUtf8CPName: Error, out of memory\n");
-         free(utf8Arg);
          goto abort;
       }
 
-      Str_Strcpy(rpcMessage, cmd, messageSize);
-      Str_Strcat(rpcMessage, " ", messageSize);
-      Str_Strcat(rpcMessage, utf8Arg, messageSize);
-      free(utf8Arg);
-
       ret = GuestApp_RpcSendOneCPName(rpcMessage, delimiter,
-                                      utf8cpNameArg, utf8cpNameArgSize);
+                                      cpNameArg, cpNameArgSize);
       free(rpcMessage);
    } else {
       ret = GuestApp_RpcSendOneCPName(cmd, delimiter,
-                                      utf8cpNameArg, utf8cpNameArgSize);
+                                      cpNameArg, cpNameArgSize);
    }
 
 abort:
-   free(utf8cpNameArg);
    return ret;
 }
 
index f27d06bc2d1fcdb16f21978bd8a8101e605f8dbe..ec29c76f827f2624281cff04980bf8c8b9686a65 100644 (file)
@@ -22,7 +22,5 @@ libGuestInfo_a_SOURCES += guestInfoServer.c
 libGuestInfo_a_SOURCES += guestInfoPosix.c
 libGuestInfo_a_SOURCES += guestInfoPerfMonLinux.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += $(DNET_CFLAGS)
-AM_CFLAGS += $(PROCPS_CFLAGS)
\ No newline at end of file
+AM_CFLAGS = $(DNET_CPPFLAGS)
+AM_CFLAGS += $(PROCPS_CPPFLAGS)
index aa0ac4bf53fb0217702b0d17ce76991bf6117783..2e03e402fd14ebe31f5632fa1da102be21b984b6 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -222,7 +220,7 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libGuestInfo.a
 libGuestInfo_a_SOURCES = guestInfoServer.c guestInfoPosix.c \
        guestInfoPerfMonLinux.c
-AM_CFLAGS = @COMMON_CFLAGS@ $(DNET_CFLAGS) $(PROCPS_CFLAGS)
+AM_CFLAGS = $(DNET_CPPFLAGS) $(PROCPS_CPPFLAGS)
 all: all-am
 
 .SUFFIXES:
index 097e40d7621f147926624074fdfc24c2a12c4cfe..a7609b62ea0b7bdab1c3de4e59dcaeebc1de1935 100644 (file)
@@ -17,7 +17,7 @@
  *********************************************************/
 
 /*
- * This file gathers the virtual memory stats from Linux guest to be 
+ * This file gathers the virtual memory stats from Linux guest to be
  * passed on to the vmx.
  */
 
 #include "debug.h"
 
 #ifndef NO_PROCPS
-static void GuestInfoMonitorGetStat(MemInfo *vmStats);
-static Bool GuestInfoMonitorReadMeminfo(MemInfo *vmStats);
+static void GuestInfoMonitorGetStat(GuestMemInfo *vmStats);
+static Bool GuestInfoMonitorReadMeminfo(GuestMemInfo *vmStats);
 #endif
 
 #define LINUX_MEMINFO_FLAGS (MEMINFO_MEMTOTAL | MEMINFO_MEMFREE | MEMINFO_MEMBUFF |\
                              MEMINFO_MEMCACHE | MEMINFO_MEMACTIVE | MEMINFO_MEMINACTIVE |\
                              MEMINFO_SWAPINRATE | MEMINFO_SWAPOUTRATE |\
-                             MEMINFO_IOINRATE | MEMINFO_IOOUTRATE) 
+                             MEMINFO_IOINRATE | MEMINFO_IOOUTRATE)
 
 /*
  *----------------------------------------------------------------------
@@ -63,7 +63,7 @@ static Bool GuestInfoMonitorReadMeminfo(MemInfo *vmStats);
  */
 
 Bool
-GuestInfo_PerfMon(MemInfo *vmStats)   // OUT: filled vmstats 
+GuestInfo_PerfMon(GuestMemInfo *vmStats)   // OUT: filled vmstats
 {
 #ifndef NO_PROCPS
    ASSERT(vmStats);
@@ -95,7 +95,7 @@ GuestInfo_PerfMon(MemInfo *vmStats)   // OUT: filled vmstats
  */
 
 static void
-GuestInfoMonitorGetStat(MemInfo *vmStats)   // OUT: filled vmstats
+GuestInfoMonitorGetStat(GuestMemInfo *vmStats)   // OUT: filled vmstats
 {
    uint32 hz = Hertz;
    uint32 dummy;
@@ -137,7 +137,7 @@ GuestInfoMonitorGetStat(MemInfo *vmStats)   // OUT: filled vmstats
    vmStats->ioOutRate = (uint64)((*pageOut * hz + cpuHalf) / cpuTotal);
 
 
-   Debug("GuestInfoMonitorGetStat: MemInfo: total: %"FMT64"u free: %"FMT64"u"\
+   Debug("GuestInfoMonitorGetStat: GuestMemInfo: total: %"FMT64"u free: %"FMT64"u"\
          "buff: %"FMT64"u cache: %"FMT64"u swapin: %"FMT64"u swapout: %"FMT64"u ioin:"\
          "%"FMT64"u ioout: %"FMT64"u inactive: %"FMT64"u active: %"FMT64"u"\
          "hugetotal: %"FMT64"u hugefree: %"FMT64"u\n", vmStats->memTotal,
@@ -166,7 +166,7 @@ GuestInfoMonitorGetStat(MemInfo *vmStats)   // OUT: filled vmstats
  */
 
 static Bool
-GuestInfoMonitorReadMeminfo(MemInfo *vmStats)   // OUT: filled vmstats
+GuestInfoMonitorReadMeminfo(GuestMemInfo *vmStats)   // OUT: filled vmstats
 {
    char buf[512];
    uint64 value;
@@ -194,8 +194,8 @@ GuestInfoMonitorReadMeminfo(MemInfo *vmStats)   // OUT: filled vmstats
       }
    }
    fclose(fp);
-   
-   Debug("GuestInfoMonitorReadMeminfo: MemInfo: total: %"FMT64"u free: %"FMT64"u"\
+
+   Debug("GuestInfoMonitorReadMeminfo: GuestMemInfo: total: %"FMT64"u free: %"FMT64"u"\
          "buff: %"FMT64"u cache: %"FMT64"u swapin: %"FMT64"u swapout: %"FMT64"u ioin:"\
          "%"FMT64"u ioout: %"FMT64"u inactive: %"FMT64"u active: %"FMT64"u"\
          "hugetotal: %"FMT64"u hugefree: %"FMT64"u\n", vmStats->memTotal,
index 1053e1bff6ff3447cf2fe75f76fdb8fc418263ec..2d93f3453926142ce30891dc9e93b6eb68d13a86 100644 (file)
@@ -181,7 +181,7 @@ GuestInfoGetFqdn(int outBufLen,    // IN: length of output buffer
  *      Adds the MAC addresses of all NICs and their corresponding IPs.
  *
  * Side effects:
- *      Memory is allocated for each NIC, as well as IP addresses of all NICs 
+ *      Memory is allocated for each NIC, as well as IP addresses of all NICs
  *      on successful return.
  *
  *-----------------------------------------------------------------------------
@@ -189,11 +189,11 @@ GuestInfoGetFqdn(int outBufLen,    // IN: length of output buffer
 
 int
 ReadInterfaceDetails(const struct intf_entry *entry,  // IN: current interface entry
-                     void *arg)                       // IN: Pointer to the NicInfo
+                     void *arg)                       // IN: Pointer to the GuestNicInfo
 {
    int i;
 
-   NicInfo *nicInfo = (NicInfo *)arg;
+   GuestNicInfo *nicInfo = (GuestNicInfo *)arg;
 
    if ((entry->intf_type & INTF_TYPE_ETH) == INTF_TYPE_ETH) {
       NicEntry *nicEntryCur;
@@ -259,14 +259,14 @@ ReadInterfaceDetails(const struct intf_entry *entry,  // IN: current interface e
  *      Return MAC addresses of all NICs and their corresponding IPs.
  *
  * Side effects:
- *      Memory is allocated for each NIC, as well as IP addresses of all NICs 
+ *      Memory is allocated for each NIC, as well as IP addresses of all NICs
  *      on successful return.
  *
  *-----------------------------------------------------------------------------
  */
 
 Bool
-GuestInfoGetNicInfo(NicInfo *nicInfo)           // OUT
+GuestInfoGetNicInfo(GuestNicInfo *nicInfo)           // OUT
 {
 #ifndef NO_DNET
    intf_t *intf;
@@ -755,7 +755,7 @@ GuestInfoGetOSName(unsigned int outBufFullLen,      // IN: length of osNameFull
  *      Determines the operating system's bitness.
  *
  * Return value:
- *      32 or 64 on success, negative value on failure. Check errno for more 
+ *      32 or 64 on success, negative value on failure. Check errno for more
  *      details of error.
  *
  * Side effects:
index 2e9f8e2b4eb066aab82d2a846f431528c6d59c76..9bbf63cfd76d394e4a114bddefc184f71c6ce270 100644 (file)
@@ -47,9 +47,9 @@
 #include "buildNumber.h"
 #include "system.h"
 #include "wiper.h" // for WiperPartition functions
+#include "guest_msg_def.h" // For GUESTMSG_MAX_IN_SIZE
 
 #define GUESTINFO_DEFAULT_DELIMITER ' '
-#define GUESTMSG_MAX_IN_SIZE (64 * 1024) /* vmx/main/guest_msg.c */
 
 /*
  * Stores information about all guest information sent to the vmx.
@@ -57,8 +57,8 @@
 
 typedef struct _GuestInfoCache{
    char value[INFO_MAX][MAX_VALUE_LEN]; /* Stores values of all key-value pairs. */
-   NicInfo  nicInfo;
-   DiskInfo diskInfo;
+   GuestNicInfo  nicInfo;
+   GuestDiskInfo diskInfo;
 } GuestInfoCache;
 
 
@@ -71,7 +71,7 @@ static DblLnkLst_Links *gGuestInfoEventQueue;
 /* Local cache of the guest information that was last sent to vmx. */
 static GuestInfoCache gInfoCache;
 
-/* 
+/*
  * A boolean flag that specifies whether the state of the VM was
  * changed since the last time guest info was sent to the VMX.
  * Tools daemon sets it to TRUE after the VM was resumed.
@@ -79,19 +79,113 @@ static GuestInfoCache gInfoCache;
 
 static Bool vmResumed;
 
+/*
+ * The Windows Guest Info Server runs in a separate thread,
+ * so we have to synchronize access to 'vmResumed' variable.
+ * Non-windows guest info server does not run in a separate
+ * thread, so no locking is needed.
+ */
+
+#if defined(_WIN32)
+typedef CRITICAL_SECTION vmResumedLockType;
+#define GUESTINFO_DELETE_LOCK(lockPtr) DeleteCriticalSection(lockPtr)
+#define GUESTINFO_ENTER_LOCK(lockPtr) EnterCriticalSection(lockPtr)
+#define GUESTINFO_LEAVE_LOCK(lockPtr) LeaveCriticalSection(lockPtr)
+#define GUESTINFO_INIT_LOCK(lockPtr) InitializeCriticalSection(lockPtr)
+
+vmResumedLockType vmResumedLock;
+
+#else // #if LINUX
+
+typedef int vmResumedLockType;
+#define GUESTINFO_DELETE_LOCK(lockPtr)
+#define GUESTINFO_ENTER_LOCK(lockPtr)
+#define GUESTINFO_LEAVE_LOCK(lockPtr)
+#define GUESTINFO_INIT_LOCK(lockPtr)
+
+#endif // #if LINUX
+
 static Bool GuestInfoGather(void * clientData);
 static Bool GuestInfoUpdateVmdb(GuestInfoType infoType, void* info);
 static Bool SetGuestInfo(GuestInfoType key, const char* value, char delimiter);
-static Bool NicInfoChanged(NicInfo *nicInfo);
-static Bool DiskInfoChanged(PDiskInfo diskInfo);
+static Bool NicInfoChanged(GuestNicInfo *nicInfo);
+static Bool DiskInfoChanged(PGuestDiskInfo diskInfo);
 static void GuestInfoClearCache(void);
-static Bool GuestInfoSerializeNicInfo(NicInfo *nicInfo, 
-                                      char buffer[GUESTMSG_MAX_IN_SIZE], 
+static Bool GuestInfoSerializeNicInfo(GuestNicInfo *nicInfo,
+                                      char buffer[GUESTMSG_MAX_IN_SIZE],
                                       size_t *bufferLen);
-static int PrintNicInfo(NicInfo *nicInfo, int (*PrintFunc)(const char *, ...));
+static int PrintNicInfo(GuestNicInfo *nicInfo, int (*PrintFunc)(const char *, ...));
 
 #ifdef _WIN32
-static Bool GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info, NicInfoV1 *infoV1);
+static Bool GuestInfoConvertNicInfoToNicInfoV1(GuestNicInfo *info, GuestNicInfoV1 *infoV1);
+
+
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * GuestInfoServer_Main --
+ *
+ *    The main event loop for the guest info server.
+ *    GuestInfoServer_Init() much be called prior to calling this function.
+ *
+ * Result
+ *    None
+ *
+ * Side-effects
+ *    Events are processed, information gathered and updates sent.
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+void
+GuestInfoServer_Main(void *data) // IN
+{
+   int retVal;
+   uint64 sleepUsecs;
+   HANDLE *events = (HANDLE *) data;
+   HANDLE quitEvent;
+   HANDLE finishedEvent;
+
+   ASSERT(data);
+   ASSERT(events[0]);
+   ASSERT(events[1]);
+
+   quitEvent = events[0];
+   finishedEvent = events[1];
+
+   Debug("Starting GuestInfoServer for Windows.\n");
+   for(;;) {
+      DWORD dwError;
+
+      retVal = EventManager_ProcessNext(gGuestInfoEventQueue, &sleepUsecs);
+      if (retVal != 1) {
+         Debug("Unexpected end of the guest info loop.\n");
+         break;
+      }
+
+      /*
+       * The number of micro seconds to sleep should not overflow a long. This
+       * corresponds to a maximum sleep time of around 4295 seconds (~ 71 minutes)
+       * which should be more than enough.
+       */
+
+      Debug("Sleeping for %"FMT64"u msecs...\n", sleepUsecs / 1000);
+      dwError = WaitForSingleObject(quitEvent, sleepUsecs / 1000);
+      if (dwError == WAIT_OBJECT_0) {
+         GuestApp_Log("GuestInfoServer received quit event.\n");
+         Debug("GuestInfoServer received quit event.\n");
+         break;
+      } else if (dwError == WAIT_TIMEOUT) {
+         Debug("GuestInfoServer woke up.\n");
+      } else if (dwError == WAIT_FAILED) {
+         Debug("GuestInfoServer error waiting on exit event: %d %d\n",
+               dwError, GetLastError());
+         break;
+      }
+   }
+   SetEvent(finishedEvent);
+   GuestApp_Log("GuestInfoServer exiting.\n");
+}
 #endif
 
 
@@ -101,7 +195,7 @@ static Bool GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info, NicInfoV1 *infoV1)
  * GuestInfoServer_Init --
  *
  *    Initialize some variables and add the first event to the queue.
- *    
+ *
  *    Call GuestInfoServer_Cleanup() to do the necessary cleanup.
  *
  * Result
@@ -141,11 +235,11 @@ GuestInfoServer_Init(DblLnkLst_Links *eventQueue) // IN: queue for event loop
  *
  *    Set whether to disable/enable querying disk information.
  *    This function is required to provide a work around for bug number 94434.
- *    On Win 9x/ME querying for the disk information prevents the machine from 
- *    entering standby. So we added a configuration option diable-query-diskinfo 
+ *    On Win 9x/ME querying for the disk information prevents the machine from
+ *    entering standby. So we added a configuration option diable-query-diskinfo
  *    for the tools.conf file. We use this function to let the guestd & tools service
  *    control the disabling/enabling of disk information querying.
- *    
+ *
  * Result
  *    None.
  *
@@ -158,7 +252,7 @@ GuestInfoServer_Init(DblLnkLst_Links *eventQueue) // IN: queue for event loop
 void
 GuestInfoServer_DisableDiskInfoQuery(Bool disable)
 {
-   gDisableQueryDiskInfo = disable; 
+   gDisableQueryDiskInfo = disable;
 }
 
 
@@ -231,16 +325,16 @@ GuestInfoGather(void *clientData)   // IN: unused
    char name[255];
    char osNameFull[MAX_VALUE_LEN];
    char osName[MAX_VALUE_LEN];
-   NicInfo nicInfo;
-   DiskInfo diskInfo;
+   GuestNicInfo nicInfo;
+   GuestDiskInfo diskInfo;
 #if defined(_WIN32) || defined(linux)
-   MemInfo vmStats = {0};
-#endif  
+   GuestMemInfo vmStats = {0};
+#endif
 
    Debug("Entered guest info gather.\n");
 
    memset(&nicInfo, 0, sizeof nicInfo);
-   
+
    /* Send tools version. */
    if (!GuestInfoUpdateVmdb(INFO_TOOLS_VERSION, BUILD_NUMBER)) {
       /*
@@ -262,7 +356,7 @@ GuestInfoGather(void *clientData)   // IN: unused
          Debug("Failed to update VMDB\n");
       }
    }
+
    if (!gDisableQueryDiskInfo) {
       if (!GuestInfoGetDiskInfo(&diskInfo)) {
          Debug("Failed to get disk info.\n");
@@ -276,8 +370,8 @@ GuestInfoGather(void *clientData)   // IN: unused
          free(diskInfo.partitionList);
          diskInfo.partitionList = NULL;
       }
-   }   
-   
+   }
+
    if(!GuestInfoGetFqdn(sizeof name, name)) {
          Debug("Failed to get netbios name.\n");
    } else {
@@ -312,9 +406,9 @@ GuestInfoGather(void *clientData)   // IN: unused
       }
    }
 #endif
-   /* 
-    * Even if one of the updates was unsuccessfull, 
+
+   /*
+    * Even if one of the updates was unsuccessfull,
     * we still add the next timer event. This way
     * if one of the pieces failed, other information will
     * still be passed to the host.
@@ -334,23 +428,23 @@ GuestInfoGather(void *clientData)   // IN: unused
  *
  * GuestInfoConvertNicInfoToNicInfoV1 --
  *
- *      Convert the new dynamic nicInfoNew to fixed size struct NicInfoV1.
+ *      Convert the new dynamic nicInfoNew to fixed size struct GuestNicInfoV1.
  *
  * Results:
  *      TRUE if successfully converted
  *      FALSE otherwise
  *
  * Side effects:
- *      If number of NICs or number of IP addresses on any of the NICs 
+ *      If number of NICs or number of IP addresses on any of the NICs
  *      exceeding MAX_NICS and MAX_IPS respectively, the extra ones
  *      are truncated, on successful return.
- *          
+ *
  *----------------------------------------------------------------------
  */
 
 Bool
-GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info,             // IN
-                                   NicInfoV1  *infoV1)        // OUT
+GuestInfoConvertNicInfoToNicInfoV1(GuestNicInfo *info,             // IN
+                                   GuestNicInfoV1  *infoV1)        // OUT
 {
    NicEntry *nicEntryCur;
    uint32 maxNics;
@@ -362,7 +456,7 @@ GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info,             // IN
       return FALSE;
    }
 
-   maxNics = info->nicInfoProto.numNicEntries > MAX_NICS ? 
+   maxNics = info->nicInfoProto.numNicEntries > MAX_NICS ?
                                    MAX_NICS : info->nicInfoProto.numNicEntries;
    infoV1->numNicEntries = maxNics;
    if (maxNics < info->nicInfoProto.numNicEntries) {
@@ -380,7 +474,7 @@ GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info,             // IN
       }
 
       nicEntryCur = DblLnkLst_Container(nicEntryLink,
-                                        NicEntry, 
+                                        NicEntry,
                                         links);
       if (NULL == nicEntryCur) {
          return FALSE;
@@ -388,26 +482,26 @@ GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info,             // IN
 
       strcpy(infoV1->nicList[nicIndex].macAddress, nicEntryCur->nicEntryProto.macAddress);
 
-      maxIPs = nicEntryCur->nicEntryProto.numIPs > MAX_IPS ? 
+      maxIPs = nicEntryCur->nicEntryProto.numIPs > MAX_IPS ?
                                           MAX_IPS : nicEntryCur->nicEntryProto.numIPs;
       nicEntryCur -> nicEntryProto.numIPs = maxIPs;
       if (maxIPs < nicEntryCur->nicEntryProto.numIPs) {
          Debug("Truncating IP addresses for NIC %d.\n", nicIndex);
       }
-      
+
       DblLnkLst_ForEach(ipAddrLink, &nicEntryCur->ipAddressList) {
 
          if (ipIndex >= maxIPs) {
             break;
          }
 
-         ipAddressCur = DblLnkLst_Container(ipAddrLink, 
-                                          VmIpAddressEntry, 
+         ipAddressCur = DblLnkLst_Container(ipAddrLink,
+                                          VmIpAddressEntry,
                                           links);
          if (NULL == ipAddressCur) {
             return FALSE;
          }
-         strcpy(infoV1->nicList[nicIndex].ipAddress[ipIndex], 
+         strcpy(infoV1->nicList[nicIndex].ipAddress[ipIndex],
                 ipAddressCur->ipEntryProto.ipAddress);
 
          ipIndex++;
@@ -415,7 +509,7 @@ GuestInfoConvertNicInfoToNicInfoV1(NicInfo *info,             // IN
       }
 
       nicIndex++;
-   } 
+   }
 
    return TRUE;
 }
@@ -480,9 +574,9 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
       break;
 
    case INFO_IPADDRESS:
-      if (NicInfoChanged((NicInfo *)info)) {
+      if (NicInfoChanged((GuestNicInfo *)info)) {
          static Bool isCmdV1 = FALSE;
-         char request[GUESTMSG_MAX_IN_SIZE]; 
+         char request[GUESTMSG_MAX_IN_SIZE];
          size_t requestLength = 0;
          char *reply = NULL;
          size_t replyLen;
@@ -490,14 +584,14 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
 
          if (FALSE == isCmdV1) {
             Debug("Creating nic info message.\n");
-            Str_Sprintf(request, 
-                        sizeof request, 
-                        "%s  %d ", 
+            Str_Sprintf(request,
+                        sizeof request,
+                        "%s  %d ",
                         GUEST_INFO_COMMAND_TWO,
                         INFO_IPADDRESS);
-         
-            if (GuestInfoSerializeNicInfo((NicInfo *)info, 
-                                          request + strlen(request), 
+
+            if (GuestInfoSerializeNicInfo((GuestNicInfo *)info,
+                                          request + strlen(request),
                                           &requestLength)) {
                requestLength += strlen(request);
             } else {
@@ -514,32 +608,32 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
          }
          if (!status) {
             /*
-             * Could be that we are talking to the old protocol that NicInfo is 
+             * Could be that we are talking to the old protocol that GuestNicInfo is
              * still fixed size.  Another try to send the fixed sized Nic info.
              */
-            char request[sizeof (NicInfoV1) + sizeof GUEST_INFO_COMMAND + 
+            char request[sizeof (GuestNicInfoV1) + sizeof GUEST_INFO_COMMAND +
                          2 +                 /* 2 bytes are for digits of infotype. */
                          3 * sizeof (char)]; /* 3 spaces */
-            NicInfoV1 nicInfo;
-            
+            GuestNicInfoV1 nicInfo;
+
             free(reply);
             reply = NULL;
 
-            Str_Sprintf(request, 
-                        sizeof request, 
-                        "%s  %d ", 
+            Str_Sprintf(request,
+                        sizeof request,
+                        "%s  %d ",
                         GUEST_INFO_COMMAND,
                         INFO_IPADDRESS);
             if (GuestInfoConvertNicInfoToNicInfoV1(info, &nicInfo)) {
-               memcpy(request + strlen(request), 
-                      &nicInfo, 
-                      sizeof(NicInfoV1));
+               memcpy(request + strlen(request),
+                      &nicInfo,
+                      sizeof(GuestNicInfoV1));
 
                Debug("GuestInfo: Sending nic info message.\n");
                /* Send all the information in the message. */
-               status = RpcOut_SendOneRaw(request, 
-                                          sizeof request, 
-                                          &reply, 
+               status = RpcOut_SendOneRaw(request,
+                                          sizeof request,
+                                          &reply,
                                           &replyLen);
 
                Debug("GuestInfo: Just sent fixed sized nic info message.\n");
@@ -555,7 +649,7 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
          }
 
          if (RpcVMX_ConfigGetBool(FALSE, "printNicInfo")) {
-            PrintNicInfo((NicInfo *) info, (int (*)(const char *fmt, ...)) RpcVMX_Log);
+            PrintNicInfo((GuestNicInfo *) info, (int (*)(const char *fmt, ...)) RpcVMX_Log);
          }
 
          Debug("GuestInfo: Updated new NIC information\n");
@@ -563,19 +657,19 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
          reply = NULL;
 
          /*
-          * Update the cache.  Assign info to gInfoCache.nicInfo. First free dynamic 
-          * memory allocated in gInfoCache.nicInfo. Then unlink those in nicInfo and 
-          * link them back to gInfoCache.nicInfo this is sort of hacking.  However, it 
+          * Update the cache.  Assign info to gInfoCache.nicInfo. First free dynamic
+          * memory allocated in gInfoCache.nicInfo. Then unlink those in nicInfo and
+          * link them back to gInfoCache.nicInfo this is sort of hacking.  However, it
           * works in this case, since nicInfo is not going to be used after this.  NOTE,
           * nicInfo CAN NOT BE USED AFTER THIS POINT.
           */
          GuestInfo_FreeDynamicMemoryInNicInfo(&gInfoCache.nicInfo);
          /* assign the fixed memory part */
-         gInfoCache.nicInfo = *(NicInfo *)info;
+         gInfoCache.nicInfo = *(GuestNicInfo *)info;
          /* assign the dynamic memory part */
          DblLnkLst_Init(&gInfoCache.nicInfo.nicList);
-         DblLnkLst_Link(&gInfoCache.nicInfo.nicList, ((NicInfo *)info)->nicList.next);
-         DblLnkLst_Unlink1(&((NicInfo *)info)->nicList);
+         DblLnkLst_Link(&gInfoCache.nicInfo.nicList, ((GuestNicInfo *)info)->nicList.next);
+         DblLnkLst_Unlink1(&((GuestNicInfo *)info)->nicList);
       } else {
          Debug("GuestInfo: Nic info not changed.\n");
       }
@@ -583,28 +677,28 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
 
    case INFO_MEMORY:
    {
-      char request[sizeof(MemInfo) + sizeof GUEST_INFO_COMMAND + 
-                   2 +                 /* 2 bytes are for digits of infotype. */
-                   3 * sizeof (char)]; /* 3 spaces */
+      char request[sizeof(GuestMemInfo) + sizeof GUEST_INFO_COMMAND +
+                   2 +                    /* 2 bytes are for digits of infotype. */
+                   3 * sizeof (char)];    /* 3 spaces */
       Bool status;
 
-      Debug("GuestInfo: Sending MemInfo message.\n");
-      Str_Sprintf(request, 
-                  sizeof request, 
-                  "%s  %d ", 
+      Debug("GuestInfo: Sending GuestMemInfo message.\n");
+      Str_Sprintf(request,
+                  sizeof request,
+                  "%s  %d ",
                   GUEST_INFO_COMMAND,
                   INFO_MEMORY);
       memcpy(request + strlen(request),
-             info, sizeof(MemInfo));
-      
+             info, sizeof(GuestMemInfo));
+
       /* Send all the information in the message. */
       status = RpcOut_SendOneRaw(request, sizeof(request),
                                  NULL, NULL);
       if (!status) {
-         Debug("Error sending MemInfo.\n");
+         Debug("Error sending GuestMemInfo.\n");
          return FALSE;
       }
-      Debug("MemInfo sent successfully.\n");
+      Debug("GuestMemInfo sent successfully.\n");
       break;
    }
 
@@ -621,14 +715,14 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
          char *reply;
          size_t replyLen;
          Bool status;
-         PDiskInfo pdi = (PDiskInfo)info;
+         PGuestDiskInfo pdi = (PGuestDiskInfo)info;
          int j = 0;
 
          if (!DiskInfoChanged(pdi)) {
             Debug("GuestInfo: Disk info not changed.\n");
             break;
          }
-         
+
          requestSize += sizeof pdi->numEntries +
                         sizeof *pdi->partitionList * pdi->numEntries;
          request = (char *)calloc(requestSize, sizeof (char));
@@ -637,9 +731,9 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
             break;
          }
 
-         Str_Sprintf(request, requestSize, "%s  %d ", GUEST_INFO_COMMAND, 
+         Str_Sprintf(request, requestSize, "%s  %d ", GUEST_INFO_COMMAND,
                      INFO_DISK_FREE_SPACE);
-            
+
          /* partitionCount is a uint8 and cannot be larger than UCHAR_MAX. */
          if (pdi->numEntries > UCHAR_MAX) {
             Debug("GuestInfo: Too many partitions.\n");
@@ -663,7 +757,7 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
          memcpy(request + offset, &partitionCount, sizeof partitionCount);
          memcpy(request + offset + sizeof partitionCount, pdi->partitionList,
                 sizeof *pdi->partitionList * pdi->numEntries);
-   
+
          Debug("sizeof request is %d\n", requestSize);
          status = RpcOut_SendOneRaw(request, requestSize, &reply, &replyLen);
 
@@ -684,11 +778,11 @@ GuestInfoUpdateVmdb(GuestInfoType infoType, // IN: guest information type
             gInfoCache.diskInfo.partitionList = NULL;
          }
          gInfoCache.diskInfo.numEntries = pdi->numEntries;
-         gInfoCache.diskInfo.partitionList = calloc(pdi->numEntries, 
+         gInfoCache.diskInfo.partitionList = calloc(pdi->numEntries,
                                                          sizeof(PartitionEntry));
          if (gInfoCache.diskInfo.partitionList == NULL) {
             Debug("GuestInfo: could not allocate memory for the disk info cache.\n");
-            return FALSE; 
+            return FALSE;
          }
 
          for (j = 0; j < pdi->numEntries; j++) {
@@ -746,7 +840,7 @@ SetGuestInfo(GuestInfoType key,  // IN: the VMDB key to set
                            delimiter, key, delimiter, value);
 
    if (!status) {
-      Debug("SetGuestInfo: Error sending rpc message: %s\n", 
+      Debug("SetGuestInfo: Error sending rpc message: %s\n",
             reply ? reply : "NULL");
       free(reply);
       return FALSE;
@@ -777,7 +871,7 @@ SetGuestInfo(GuestInfoType key,  // IN: the VMDB key to set
  */
 
 NicEntry *
-GuestInfoFindMacAddress(NicInfo *nicInfo, const char *macAddress)
+GuestInfoFindMacAddress(GuestNicInfo *nicInfo, const char *macAddress)
 {
    NicEntry *nicEntry;
    DblLnkLst_Links *sCurrent;
@@ -817,19 +911,19 @@ GuestInfoFindMacAddress(NicInfo *nicInfo, const char *macAddress)
  */
 
 Bool
-NicInfoChanged(NicInfo *nicInfo)     // IN:
+NicInfoChanged(GuestNicInfo *nicInfo)     // IN:
 {
    char *currentMac;
-   NicInfo *cachedNicInfo;
+   GuestNicInfo *cachedNicInfo;
    NicEntry *cachedNic;
    DblLnkLst_Links *cachedNicLink;
 
    cachedNicInfo = &gInfoCache.nicInfo;
-   cachedNic = DblLnkLst_Container(cachedNicInfo->nicList.next, 
-                                   NicEntry, 
+   cachedNic = DblLnkLst_Container(cachedNicInfo->nicList.next,
+                                   NicEntry,
                                    links);
 
-   if (cachedNicInfo->nicInfoProto.numNicEntries != 
+   if (cachedNicInfo->nicInfoProto.numNicEntries !=
        nicInfo->nicInfoProto.numNicEntries) {
       Debug("GuestInfo: number of nics has changed\n");
       return TRUE;
@@ -852,7 +946,7 @@ NicInfoChanged(NicInfo *nicInfo)     // IN:
       }
 
       if (matchedNIC->nicEntryProto.numIPs != cachedNic->nicEntryProto.numIPs) {
-         Debug("GuestInfo: count of ip addresses for mac %d\n", 
+         Debug("GuestInfo: count of ip addresses for mac %d\n",
                                                 matchedNIC->nicEntryProto.numIPs);
          return TRUE;
       }
@@ -900,7 +994,7 @@ NicInfoChanged(NicInfo *nicInfo)     // IN:
             return TRUE;
          }
 
-      } 
+      }
 
    }
 
@@ -913,9 +1007,9 @@ NicInfoChanged(NicInfo *nicInfo)     // IN:
  *
  * GuestInfoSerializeNicInfo --
  *
- *      Now that NicInfo is not fixed size, serialize nicInfo into a 
- *      buffer, in order to send it over wire.  
- *      
+ *      Now that GuestNicInfo is not fixed size, serialize nicInfo into a
+ *      buffer, in order to send it over wire.
+ *
  * Results:
  *
  *      TRUE if successful, FALSE otherwise.
@@ -927,10 +1021,10 @@ NicInfoChanged(NicInfo *nicInfo)     // IN:
  *----------------------------------------------------------------------
  */
 
-Bool 
-GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
-                          char buffer[GUESTMSG_MAX_IN_SIZE],     // OUT
-                          size_t *bufferLen)                     // OUT
+Bool
+GuestInfoSerializeNicInfo(GuestNicInfo *nicInfo,                      // IN
+                          char buffer[GUESTMSG_MAX_IN_SIZE],          // OUT
+                          size_t *bufferLen)                          // OUT
 {
    char *buf;
    char *info;
@@ -938,14 +1032,14 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
    DblLnkLst_Links *nicEntryLink;
 
    ASSERT_ON_COMPILE(sizeof nicInfo->nicInfoProto.version == 4);
-   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, nicEntrySizeOnWire) == 4); 
+   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, nicEntrySizeOnWire) == 4);
    ASSERT_ON_COMPILE(sizeof nicInfo->nicInfoProto.nicEntrySizeOnWire == 4);
-   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, numNicEntries) == 8); 
+   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, numNicEntries) == 8);
    ASSERT_ON_COMPILE(sizeof nicInfo->nicInfoProto.numNicEntries == 4);
-   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, totalInfoSizeOnWire) == 12); 
+   ASSERT_ON_COMPILE(offsetof(NicInfoProtocol, totalInfoSizeOnWire) == 12);
    ASSERT_ON_COMPILE(sizeof nicInfo->nicInfoProto.totalInfoSizeOnWire == 4);
 
-   if ((NULL == nicInfo) || 
+   if ((NULL == nicInfo) ||
        (NULL == buffer ) ||
        (NULL == bufferLen)) {
       return FALSE;
@@ -957,16 +1051,16 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
 
    nicInfo->nicInfoProto.totalInfoSizeOnWire = 0;
    nicInfo->nicInfoProto.nicEntrySizeOnWire = sizeof(NicEntryProtocol);
-   
+
    buf = buffer;
    info = (char *)(&nicInfo->nicInfoProto);
-   entrySize = sizeof nicInfo->nicInfoProto;  
-   
+   entrySize = sizeof nicInfo->nicInfoProto;
+
    memcpy(buf, info, entrySize);
    nicInfo->nicInfoProto.totalInfoSizeOnWire += entrySize;
 
    buf += entrySize;
-   
+
    DblLnkLst_ForEach(nicEntryLink, &nicInfo->nicList) {
       NicEntry *nicEntry;
       DblLnkLst_Links *ipAddrLink;
@@ -976,7 +1070,7 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
       nicEntry = DblLnkLst_Container(nicEntryLink, NicEntry, links);
       nicEntry->nicEntryProto.totalNicEntrySizeOnWire = 0;
       nicEntry->nicEntryProto.ipAddressSizeOnWire = sizeof(VmIpAddressEntryProtocol);
-                                                     
+
       info = (char *)(&nicEntry->nicEntryProto);
 
       entrySize = sizeof nicEntry->nicEntryProto;
@@ -995,10 +1089,10 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
       entrySize = sizeof ipAddressCur->ipEntryProto;
 
       DblLnkLst_ForEach(ipAddrLink, &nicEntry->ipAddressList) {
-         ipAddressCur = DblLnkLst_Container(ipAddrLink, VmIpAddressEntry, links);  
+         ipAddressCur = DblLnkLst_Container(ipAddrLink, VmIpAddressEntry, links);
          ipAddressCur->ipEntryProto.totalIpEntrySizeOnWire = 0;
          info = (char *)(&ipAddressCur->ipEntryProto);
-   
+
          if (info) {
             /* to prevent buffer overflow */
             if (buf + entrySize - buffer < GUESTMSG_MAX_IN_SIZE) {
@@ -1013,23 +1107,23 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
                return FALSE;
             }
          }
-              
+
          /*
           * Update total size portion that was just calculated.
           */
-         memcpy(buf + offsetof(VmIpAddressEntryProtocol, 
+         memcpy(buf + offsetof(VmIpAddressEntryProtocol,
                                totalIpEntrySizeOnWire),
                 &ipAddressCur->ipEntryProto.totalIpEntrySizeOnWire,
-                sizeof ipAddressCur->ipEntryProto.totalIpEntrySizeOnWire);  
+                sizeof ipAddressCur->ipEntryProto.totalIpEntrySizeOnWire);
          buf += entrySize;
       }
       /*
        * Update total size portion that was just calculated.
        */
-      memcpy(nicEntryBuf + offsetof(NicEntryProtocol , 
+      memcpy(nicEntryBuf + offsetof(NicEntryProtocol ,
                                     totalNicEntrySizeOnWire),
              &nicEntry->nicEntryProto.totalNicEntrySizeOnWire,
-             sizeof nicEntry->nicEntryProto.totalNicEntrySizeOnWire);    
+             sizeof nicEntry->nicEntryProto.totalNicEntrySizeOnWire);
    }
 
    *bufferLen = buf + entrySize - buffer;
@@ -1037,7 +1131,7 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
    /*
     * Update total size portion that was just calculated.
     */
-   memcpy(buffer + offsetof(NicInfoProtocol, totalInfoSizeOnWire), 
+   memcpy(buffer + offsetof(NicInfoProtocol, totalInfoSizeOnWire),
           &nicInfo->nicInfoProto.totalInfoSizeOnWire,
           sizeof nicInfo->nicInfoProto.totalInfoSizeOnWire);
 
@@ -1063,25 +1157,25 @@ GuestInfoSerializeNicInfo(NicInfo *nicInfo,                      // IN
  */
 
 int
-PrintNicInfo(NicInfo *nicInfo,                    // IN
-             int (*PrintFunc)(const char *, ...)) // IN
+PrintNicInfo(GuestNicInfo *nicInfo,                    // IN
+             int (*PrintFunc)(const char *, ...))      // IN
 {
    int ret = 0;
    uint32 i = 0;
    DblLnkLst_Links *nicEntryLink;
-   
 
-   ret += PrintFunc("NicInfo: count: %d\n", nicInfo->nicInfoProto.numNicEntries);
+
+   ret += PrintFunc("GuestNicInfo: count: %d\n", nicInfo->nicInfoProto.numNicEntries);
    DblLnkLst_ForEach(nicEntryLink, &nicInfo->nicList) {
       uint32 j = 0;
       DblLnkLst_Links *ipAddrLink;
       NicEntry *nicEntry = DblLnkLst_Container(nicEntryLink,
-                                               NicEntry, 
+                                               NicEntry,
                                                links);
-      if (nicEntry) { 
-         ret += PrintFunc("NicInfo: nic [%d/%d] mac:      %s",
-                          i+1, 
-                          nicInfo->nicInfoProto.numNicEntries, 
+      if (nicEntry) {
+         ret += PrintFunc("GuestNicInfo: nic [%d/%d] mac:      %s",
+                          i+1,
+                          nicInfo->nicInfoProto.numNicEntries,
                           nicEntry->nicEntryProto.macAddress);
       } else {
          break;
@@ -1094,9 +1188,9 @@ PrintNicInfo(NicInfo *nicInfo,                    // IN
                                                        links);
 
          if (ipAddress) {
-            ret += PrintFunc("NicInfo: nic [%d/%d] IP [%d/%d]: %s",
-                             i+1, 
-                             nicInfo->nicInfoProto.numNicEntries, 
+            ret += PrintFunc("GuestNicInfo: nic [%d/%d] IP [%d/%d]: %s",
+                             i+1,
+                             nicInfo->nicInfoProto.numNicEntries,
                              j+1,
                              nicEntry->nicEntryProto.numIPs,
                              ipAddress->ipEntryProto.ipAddress);
@@ -1132,13 +1226,13 @@ PrintNicInfo(NicInfo *nicInfo,                    // IN
  */
 
 Bool
-DiskInfoChanged(PDiskInfo diskInfo)     // IN:
+DiskInfoChanged(PGuestDiskInfo diskInfo)     // IN:
 {
    int index;
    char *name;
    int i;
    int matchedPartition;
-   PDiskInfo cachedDiskInfo;
+   PGuestDiskInfo cachedDiskInfo;
 
    cachedDiskInfo = &gInfoCache.diskInfo;
 
@@ -1165,12 +1259,12 @@ DiskInfoChanged(PDiskInfo diskInfo)     // IN:
          return TRUE;
       } else {
          /* Compare the free space. */
-         if (diskInfo->partitionList[matchedPartition].freeBytes != 
+         if (diskInfo->partitionList[matchedPartition].freeBytes !=
              cachedDiskInfo->partitionList[index].freeBytes) {
             Debug("GuestInfo: free space changed\n");
             return TRUE;
          }
-         if (diskInfo->partitionList[matchedPartition].totalBytes != 
+         if (diskInfo->partitionList[matchedPartition].totalBytes !=
             cachedDiskInfo->partitionList[index].totalBytes) {
             Debug("GuestInfo: total space changed\n");
             return TRUE;
@@ -1200,23 +1294,23 @@ DiskInfoChanged(PDiskInfo diskInfo)     // IN:
  *----------------------------------------------------------------------
  */
 
-Bool 
-GuestInfoGetDiskInfo(PDiskInfo di) // IN/OUT
+Bool
+GuestInfoGetDiskInfo(PGuestDiskInfo di) // IN/OUT
 {
-   int i = 0; 
+   int i = 0;
    WiperPartition_List *pl = NULL;
-   unsigned int partCount = 0; 
+   unsigned int partCount = 0;
    uint64 freeBytes = 0;
    uint64 totalBytes = 0;
    WiperPartition nextPartition;
    unsigned int partNameSize = 0;
    Bool success = FALSE;
-   
+
    ASSERT(di);
    partNameSize = sizeof (di->partitionList)[0].name;
-   di->numEntries = 0; 
+   di->numEntries = 0;
    di->partitionList = NULL;
-   
+
     /* Get partition list. */
    if (!Wiper_Init(NULL)) {
       Debug("GetDiskInfo: ERROR: could not initialize wiper library\n");
@@ -1228,25 +1322,25 @@ GuestInfoGetDiskInfo(PDiskInfo di) // IN/OUT
       Debug("GetDiskInfo: ERROR: could not get partition list\n");
       return FALSE;
    }
-      
+
    for (i = 0; i < pl->size; i++) {
       nextPartition = pl->partitions[i];
       if (!strlen(nextPartition.comment)) {
          PPartitionEntry newPartitionList;
-         unsigned char *error; 
+         unsigned char *error;
          error = WiperSinglePartition_GetSpace(&nextPartition, &freeBytes, &totalBytes);
          if (strlen(error)) {
-            Debug("GetDiskInfo: ERROR: could not get space for partition %s: %s\n", 
+            Debug("GetDiskInfo: ERROR: could not get space for partition %s: %s\n",
                   nextPartition.mountPoint, error);
             goto out;
          }
-       
+
          if (strlen(nextPartition.mountPoint) + 1 > partNameSize) {
             Debug("GetDiskInfo: ERROR: Partition name buffer too small\n");
             goto out;
          }
-         
-         newPartitionList = realloc(di->partitionList, 
+
+         newPartitionList = realloc(di->partitionList,
                                     (partCount + 1) * sizeof *di->partitionList);
          if (newPartitionList == NULL) {
             Debug("GetDiskInfo: ERROR: could not allocate partition list.\n");
@@ -1254,8 +1348,8 @@ GuestInfoGetDiskInfo(PDiskInfo di) // IN/OUT
          }
          di->partitionList = newPartitionList;
 
-         Str_Strcpy((di->partitionList)[partCount].name, nextPartition.mountPoint, 
-                        partNameSize); 
+         Str_Strcpy((di->partitionList)[partCount].name, nextPartition.mountPoint,
+                        partNameSize);
          (di->partitionList)[partCount].freeBytes = freeBytes;
          (di->partitionList)[partCount].totalBytes = totalBytes;
          partCount++;
@@ -1278,7 +1372,7 @@ GuestInfoGetDiskInfo(PDiskInfo di) // IN/OUT
  *    Clears the cached guest info data.
  *
  * Results:
- *    None.  
+ *    None.
  *
  * Side effects:
  *    gInfoCache is cleared.
@@ -1287,14 +1381,14 @@ GuestInfoGetDiskInfo(PDiskInfo di) // IN/OUT
  */
 
 static void
-GuestInfoClearCache(void) 
+GuestInfoClearCache(void)
 {
-   int i; 
+   int i;
 
    for (i = 0; i < INFO_MAX; i++) {
       gInfoCache.value[i][0] = 0;
    }
-      
+
    GuestInfo_FreeDynamicMemoryInNicInfo(&gInfoCache.nicInfo);
 
    gInfoCache.nicInfo.nicInfoProto.numNicEntries = 0;
@@ -1329,11 +1423,11 @@ GuestInfoClearCache(void)
 uint64
 GetAvailableDiskSpace(char *pathName)
 {
-   WiperPartition p; 
+   WiperPartition p;
    uint64 freeBytes  = 0;
-   uint64 totalBytes = 0; 
+   uint64 totalBytes = 0;
    char *wiperError;
-      
+
    Wiper_Init(NULL);
 
    if (strlen(pathName) > sizeof p.mountPoint) {
@@ -1341,10 +1435,10 @@ GetAvailableDiskSpace(char *pathName)
       return 0;
    }
    Str_Strcpy((char *)p.mountPoint, pathName, sizeof p.mountPoint);
-   wiperError = (char *)WiperSinglePartition_GetSpace(&p, &freeBytes, &totalBytes);      
+   wiperError = (char *)WiperSinglePartition_GetSpace(&p, &freeBytes, &totalBytes);
    if (strlen(wiperError) > 0) {
       Debug("GetAvailableDiskSpace: error using wiper lib: %s\n", wiperError);
-      return 0; 
+      return 0;
    }
    Debug("GetAvailableDiskSpace: free bytes is %"FMT64"u\n", freeBytes);
    return freeBytes;
@@ -1387,7 +1481,7 @@ GuestInfoServer_SendUptime(void)
  *
  * GuestInfoAddNicEntry --
  *
- *      Add a Nic entry into NicInfo.  macAddress of the NicEntry is 
+ *      Add a Nic entry into GuestNicInfo.  macAddress of the NicEntry is
  *      initialized with the input parameter
  *
  * Results:
@@ -1400,8 +1494,8 @@ GuestInfoServer_SendUptime(void)
  */
 
 NicEntry *
-GuestInfoAddNicEntry(NicInfo *nicInfo,                       // IN/OUT
-                     const char macAddress[MAC_ADDR_SIZE])   // IN
+GuestInfoAddNicEntry(GuestNicInfo *nicInfo,                       // IN/OUT
+                     const char macAddress[MAC_ADDR_SIZE])        // IN
 {
    NicEntry   *nicEntryCur = NULL;
 
@@ -1428,7 +1522,7 @@ GuestInfoAddNicEntry(NicInfo *nicInfo,                       // IN/OUT
  *      Newly allocated IP address Entry
  *
  * Side effects:
- *          Linked list in the new IP address entry is initialized.Number 
+ *          Linked list in the new IP address entry is initialized.Number
  *      of IP addresses on the NIC is bumped up by 1
  *
  *----------------------------------------------------------------------
@@ -1506,7 +1600,7 @@ GuestInfoAddSubnetMask(VmIpAddressEntry *ipAddressEntry,       // IN/OUT
  *      Determines the operating system's bitness.
  *
  * Return value:
- *      32 or 64 on success, negative value on failure. Check errno for more 
+ *      32 or 64 on success, negative value on failure. Check errno for more
  *      details of error.
  *
  * Side effects:
index debf15054a0efb68d05cc5e283e4b567e93a4583..458b1641d3a61a36e6ab8302c741cf655ca681e5 100644 (file)
@@ -25,6 +25,3 @@ libHgfs_a_SOURCES += cpNameUtil.c
 libHgfs_a_SOURCES += cpNameUtilLinux.c
 libHgfs_a_SOURCES += hgfsUtil.c
 libHgfs_a_SOURCES += staticEscape.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 5a0380f561fd655dca8bbaa941d87aba56fac047..7b8dbeba6480fb1395a754b38ecffcb66ad9ffdc 100644 (file)
@@ -93,8 +93,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -105,8 +103,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -117,12 +115,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -133,14 +131,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -155,7 +153,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -163,7 +161,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -224,7 +222,6 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libHgfs.a
 libHgfs_a_SOURCES = cpName.c cpNameLite.c cpNameLinux.c cpNameUtil.c \
        cpNameUtilLinux.c hgfsUtil.c staticEscape.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 1e59ebf35c5476ebf1ca8106c3eec0caffeeb6b0..6b471c3f3e000baf0ba8aab510a9d64280bcb805 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libHgfsBd.a
 
 libHgfsBd_a_SOURCES =
 libHgfsBd_a_SOURCES += hgfsBd.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 3d7fc72ea3cdf24d6e6e918567161fec665d2ad8..f9c449fd725aa3883b64a742e1360e35cd83fe15 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libHgfsBd.a
 libHgfsBd_a_SOURCES = hgfsBd.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index ab9ff97486ba7b5a4264803a0850de336124c9e7..0fcbb6a19290a8550f8e3accdad8cd56c2259099 100644 (file)
@@ -21,6 +21,4 @@ libHgfsServer_a_SOURCES =
 libHgfsServer_a_SOURCES += hgfsServer.c
 libHgfsServer_a_SOURCES += hgfsServerLinux.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_HGFS_SERVER_CFLAGS@
+AM_CFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
index 452ca505b3f8abfafcca689bfa7b64a9f25fcafa..ed4bc2b218dd1b2cc85dbaae80243aa5798a53ae 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -221,7 +219,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libHgfsServer.a
 libHgfsServer_a_SOURCES = hgfsServer.c hgfsServerLinux.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_HGFS_SERVER_CFLAGS@
+AM_CFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 36ad34fe41c3ed3d53c9808d00fca2df805b24f3..8273789b2ebfe9f7dec6b80b69c2f482822247a1 100644 (file)
@@ -2441,7 +2441,6 @@ HgfsServerGetAccess(char *cpName,                  // IN:  Cross-platform filena
    char const *inEnd;
    char *next;
    char *myBufOut;
-   char *myBufOutCurrent;
    char *out;
    size_t outSize;
    size_t sharePathLen; /* Length of share's path */
@@ -2450,8 +2449,6 @@ HgfsServerGetAccess(char *cpName,                  // IN:  Cross-platform filena
    char tempBuf[HGFS_PATH_MAX];
    size_t tempSize;
    char *tempPtr;
-   char *ansiName;
-   size_t ansiLen;
    Bool result;
    char *savedPathSepPos;
    HgfsSharedFolder *share;
@@ -2478,35 +2475,19 @@ HgfsServerGetAccess(char *cpName,                  // IN:  Cross-platform filena
       return HGFS_NAME_STATUS_INCOMPLETE_BASE;
    }
 
-   /*
-    * VMDB stores the ANSI name so convert from UTF8 before looking up a share.
-    * XXX: Ideally, we should store share names in UTF16 so that these
-    * conversions can be done away with.
-    */
-   if (!CodeSet_Utf8ToCurrent(cpName,
-                              len,
-                              &ansiName,
-                              &ansiLen)) {
-      LOG(4, ("HgfsServerGetAccess: ANSI conversion failed\n"));
-      return HGFS_NAME_STATUS_FAILURE;
-   }
-
    /* Check permission on the share and get the share path */
-   nameStatus = HgfsServerPolicy_GetSharePath(ansiName,
-                                              ansiLen,
+   nameStatus = HgfsServerPolicy_GetSharePath(cpName,
+                                              len,
                                               mode,
                                               &sharePathLen,
                                               &sharePath,
                                               &share);
    if (nameStatus != HGFS_NAME_STATUS_COMPLETE) {
       LOG(4, ("HgfsServerGetAccess: No such share (%s) or access denied\n",
-              ansiName));
-      free(ansiName);
+              cpName));
       return nameStatus;
    }
 
-   free(ansiName);
-
    /* Point to the next component, if any */
    cpNameSize -= next - cpName;
    cpName = next;
@@ -2560,32 +2541,18 @@ HgfsServerGetAccess(char *cpName,                  // IN:  Cross-platform filena
       *out = 0;
       outSize -= prefixLen;
    } else {
-      size_t utf8ShareLen;
-      char *utf8SharePath;
-
       /*
-       * This is a regular share. Append the UTF8 path to the out buffer.
+       * This is a regular share. Append the path to the out buffer.
        */
-      if (!CodeSet_CurrentToUtf8(sharePath,
-                                 sharePathLen,
-                                 &utf8SharePath,
-                                 &utf8ShareLen)) {
-         LOG(4, ("HgfsServerGetAccess: share name UTF8 conversion failed\n"));
-         nameStatus = HGFS_NAME_STATUS_FAILURE;
-         goto error;
-      }
-
-      if (outSize < utf8ShareLen + 1) {
+      if (outSize < sharePathLen + 1) {
          LOG(4, ("HgfsServerGetAccess: share path too big\n"));
-         free(utf8SharePath);
          nameStatus = HGFS_NAME_STATUS_TOO_LONG;
          goto error;
       }
 
-      memcpy(out, utf8SharePath, utf8ShareLen + 1);
-      out += utf8ShareLen;
-      outSize -= utf8ShareLen;
-      free(utf8SharePath);
+      memcpy(out, sharePath, sharePathLen + 1);
+      out += sharePathLen;
+      outSize -= sharePathLen;
    }
 
    /* Convert the rest of the input name (if any) to a local name */
@@ -2653,18 +2620,8 @@ HgfsServerGetAccess(char *cpName,                  // IN:  Cross-platform filena
       *savedPathSepPos = '\0';
    }
 
-   if (!CodeSet_Utf8ToCurrent(myBufOut,
-                              strlen(myBufOut),
-                             &myBufOutCurrent,
-                             NULL)) {
-         LOG(4, ("HgfsServerGetAccess: share name UTF8 to current conversion failed\n"));
-         nameStatus = HGFS_NAME_STATUS_FAILURE;
-        goto error;
-   }
-
-   result = HgfsServerHasSymlink(myBufOutCurrent, sharePath);
+   result = HgfsServerHasSymlink(myBufOut, sharePath);
    *savedPathSepPos = DIRSEPC;
-   free(myBufOutCurrent);
    if (result) {
       LOG(4, ("HgfsServerGetAccess: parent path contains a symlink\n"));
       nameStatus = HGFS_NAME_STATUS_FAILURE;
@@ -2854,8 +2811,6 @@ HgfsServerGetDents(HgfsGetNameFunc getName,     // IN: Function to get name
       char const *name;
       size_t len;
       Bool done = FALSE;
-      char *utf8Name;
-      size_t utf8NameLen;
       size_t newDirEntryLen;
       size_t maxLen;
 
@@ -2911,16 +2866,8 @@ HgfsServerGetDents(HgfsGetNameFunc getName,     // IN: Function to get name
          myDents = (DirectoryEntry **)p;
       }
 
-      /* This file/directory can be added to the list. Convert to UTF8 first. */
+      /* This file/directory can be added to the list. */
       LOG(4, ("HgfsServerGetDents: Nextfilename = \"%s\"\n", name));
-      if (!CodeSet_CurrentToUtf8((const char *)name,
-                                 len,
-                                 &utf8Name,
-                                 &utf8NameLen)) {
-         LOG(4, ("HgfsServerGetDents: Unable to convert \"%s\" to utf-8\n",
-                 name));
-         goto error;
-      }
 
       /*
        * Start with the size of the DirectoryEntry struct, subtract the static
@@ -2928,20 +2875,18 @@ HgfsServerGetDents(HgfsGetNameFunc getName,     // IN: Function to get name
        * just enough space for the UTF-8 name and nul terminator.
        */
       newDirEntryLen =
-         sizeof *pDirEntry - sizeof pDirEntry->d_name + utf8NameLen + 1;
+         sizeof *pDirEntry - sizeof pDirEntry->d_name + len + 1;
       pDirEntry = (DirectoryEntry *)malloc(newDirEntryLen);
       if (!pDirEntry) {
          LOG(4, ("HgfsServerGetDents: Couldn't allocate dentry memory\n"));
-         free(utf8Name);
          goto error;
       }
       pDirEntry->d_reclen = (unsigned short)newDirEntryLen;
-      memcpy(pDirEntry->d_name, utf8Name, utf8NameLen);
-      pDirEntry->d_name[utf8NameLen] = 0;
+      memcpy(pDirEntry->d_name, name, len);
+      pDirEntry->d_name[len] = 0;
 
       myDents[numDents] = pDirEntry;
       numDents++;
-      free(utf8Name);
    }
 
    /* We are done; cleanup the state */
@@ -3285,8 +3230,6 @@ HgfsCreateAndCacheFileNode(HgfsFileOpenInfo *openInfo, // IN: Open info struct
    HgfsFileNode *node = NULL;
    char const *inEnd;
    char const *next;
-   char *shareName = NULL;
-   size_t shareLen = 0;
    uint32 len;
    Bool sharedFolderOpen = FALSE;
 
@@ -3315,28 +3258,14 @@ HgfsCreateAndCacheFileNode(HgfsFileOpenInfo *openInfo, // IN: Open info struct
       sharedFolderOpen = TRUE;
    }
 
-   /*
-    * VMDB stores the ANSI name so convert from UTF8 before looking up a share.
-    * XXX: Ideally, we should store share names in UTF16 so that these
-    * conversions can be done away with.
-    */
-   if (!CodeSet_Utf8ToCurrent(openInfo->cpName,
-                              len,
-                              &shareName,
-                              &shareLen)) {
-      LOG(4, ("HgfsServerGetAccess: ANSI conversion failed\n"));
-      return FALSE;
-   }
-
    SyncMutex_Lock(&hgfsNodeArrayLock);
    node = HgfsAddNewFileNode(openInfo,
                              localId,
                              fileDesc,
                              append,
-                             shareLen,
-                             shareName,
+                             len,
+                             openInfo->cpName,
                              sharedFolderOpen);
-   free(shareName);
    if (node == NULL) {
       LOG(4, ("HgfsCreateAndCacheFileNode: Failed to add new node.\n"));
       SyncMutex_Unlock(&hgfsNodeArrayLock);
@@ -4096,7 +4025,7 @@ HgfsUnpackGetattrRequest(char const *packetIn,       // IN: request packet
    switch (request->op) {
    case HGFS_OP_GETATTR_V3: {
       HgfsRequestGetattrV3 *requestV3;
-      
+
       requestV3 = (HgfsRequestGetattrV3 *)HGFS_REQ_GET_PAYLOAD_V3(packetIn);
       LOG(4, ("HgfsUnpackGetattrRequest: HGFS_OP_GETATTR_V3\n"));
 
@@ -4290,7 +4219,7 @@ HgfsPackGetattrReply(HgfsFileAttrInfo *attr,     // IN: attr stucture
       *packetSize = HGFS_REP_PAYLOAD_SIZE_V3(reply) + utf8TargetNameLen;
       break;
    }
-   
+
    case HGFS_OP_GETATTR_V2: {
       HgfsReplyGetattrV2 *reply = (HgfsReplyGetattrV2 *)packetOut;
       reply->attr.mask = attr->mask;
@@ -4524,7 +4453,7 @@ HgfsPackSearchReadReply(const char *utf8Name,      // IN: file name
       dirent->attr.hostFileId = attr->hostFileId;
       break;
    }
-   
+
    case HGFS_OP_SEARCH_READ_V2: {
       HgfsReplySearchReadV2 *reply = (HgfsReplySearchReadV2 *)packetOut;
 
@@ -4570,7 +4499,7 @@ HgfsPackSearchReadReply(const char *utf8Name,      // IN: file name
       reply->attr.hostFileId = attr->hostFileId;
       break;
    }
-   
+
    case HGFS_OP_SEARCH_READ: {
       HgfsReplySearchRead *reply = (HgfsReplySearchRead *)packetOut;
 
index 65835a8ce336225f2618932996e2638e4a63627c..b9141fab93fe79d5dbcaa2905025185dedb72a1b 100644 (file)
@@ -75,7 +75,7 @@
 #include <CoreFoundation/CoreFoundation.h> // for CFString and CFURL
 #endif
 
-/* 
+/*
  * ALLPERMS (mode 07777) and ACCESSPERMS (mode 0777) are not defined in the
  * Solaris version of <sys/stat.h>.
  */
@@ -104,7 +104,7 @@ _llseek(unsigned int fd,
 }
 #endif
 
-/* 
+/*
  * On Linux, we must wrap getdents64, as glibc does not wrap it for us. We use getdents64
  * (rather than getdents) because with the latter, we'll get 64-bit offsets and inode
  * numbers. Note that getdents64 isn't supported everywhere, in particular, kernels older
@@ -173,7 +173,7 @@ getdents_linux(unsigned int fd,
 })
 #endif
 
-/* 
+/*
  * O_DIRECTORY is only relevant on Linux. For other platforms, we'll hope that
  * the kernel is smart enough to deny getdents(2) (or getdirentries(2)) on
  * files which aren't directories.
@@ -203,10 +203,10 @@ int
 futimes(int fd, const struct timeval times[2])
 {
 #ifndef sun
-   /* 
-    * Hack to allow the timevals in futimes() to be const even when utimes() 
-    * expects non-const timevals. This is the case on glibc up to 2.3 or 
-    * thereabouts. 
+   /*
+    * Hack to allow the timevals in futimes() to be const even when utimes()
+    * expects non-const timevals. This is the case on glibc up to 2.3 or
+    * thereabouts.
     */
    struct timeval mytimes[2];
 
@@ -267,10 +267,10 @@ static HgfsInternalStatus HgfsGetattrFromName(char *fileName,
                                               HgfsFileAttrInfo *attr,
                                               char **targetName);
 
-static HgfsInternalStatus HgfsGetattrFromFd(int fd, 
+static HgfsInternalStatus HgfsGetattrFromFd(int fd,
                                             HgfsFileAttrInfo *attr);
 
-static void HgfsStat(struct stat *stats, 
+static void HgfsStat(struct stat *stats,
                      HgfsFileAttrInfo *attr);
 
 static int HgfsStatFromName(char *fileName,
@@ -301,13 +301,13 @@ static HgfsInternalStatus HgfsSetattrTimes(struct stat *statBuf,
                                            struct timeval *modTime,
                                            Bool *timesChanged);
 
-static HgfsInternalStatus HgfsSetattrFromFd(HgfsHandle file, 
+static HgfsInternalStatus HgfsSetattrFromFd(HgfsHandle file,
                                             HgfsFileAttrInfo *attr,
                                             HgfsAttrHint hints);
 
-static HgfsInternalStatus HgfsSetattrFromName(char *cpName, 
+static HgfsInternalStatus HgfsSetattrFromName(char *cpName,
                                               size_t cpNameSize,
-                                              HgfsFileAttrInfo *attr, 
+                                              HgfsFileAttrInfo *attr,
                                               HgfsAttrHint hints,
                                              uint32 caseFlags);
 
@@ -330,7 +330,7 @@ static HgfsInternalStatus HgfsSetattrFromName(char *cpName,
  *-----------------------------------------------------------------------------
  */
 
-static void 
+static void
 HgfsServerSigOplockBreak(int sigNum,       // IN: Signal number
                          siginfo_t *info,  // IN: Additional info about signal
                          void *clientData) // IN: Ignored
@@ -338,21 +338,21 @@ HgfsServerSigOplockBreak(int sigNum,       // IN: Signal number
    ServerLockData *lockData;
    int newLease, fd;
    HgfsServerLock newServerLock;
-   
+
    ASSERT(sigNum == SIGIO);
    ASSERT(info);
    ASSERT(clientData == NULL);
-   
+
    fd = info->si_fd;
    LOG(4, ("HgfsServerSigOplockBreak: Received SIGIO for fd %d\n", fd));
-   
-   /* 
+
+   /*
     * We've got all we need from the signal handler, let it continue handling
     * signals of this type.
     */
    Sig_Continue(sigNum);
-   
-   /* 
+
+   /*
     * According to locks.c in kernel source, doing F_GETLEASE when a lease
     * break is pending will return the new lease we should use. It'll be
     * F_RDLCK if we can downgrade, or F_UNLCK if we should break altogether.
@@ -373,8 +373,8 @@ HgfsServerSigOplockBreak(int sigNum,       // IN: Signal number
       goto error;
    }
 
-   /* 
-    * Setup a ServerLockData struct so that we can make use of 
+   /*
+    * Setup a ServerLockData struct so that we can make use of
     * HgfsServerOplockBreak which does the heavy lifting of discovering which
     * HGFS handle we're interested in breaking, sending the break, receiving
     * the acknowledgement, and firing the platform-specific acknowledgement
@@ -386,7 +386,7 @@ HgfsServerSigOplockBreak(int sigNum,       // IN: Signal number
       lockData->serverLock = newServerLock;
       lockData->event = 0; // not needed
 
-      /* 
+      /*
        * Relinquish control of this data. It'll get freed later, when the RPC
        * command completes.
        */
@@ -395,8 +395,8 @@ HgfsServerSigOplockBreak(int sigNum,       // IN: Signal number
    } else {
       Log("HgfsServerSigOplockBreak: Could not allocate memory for lease "
           "break on behalf of fd %d\n", fd);
-   } 
-   
+   }
+
   error:
    /* Clean up as best we can. */
    fcntl(fd, F_SETLEASE, F_UNLCK);
@@ -668,7 +668,7 @@ HgfsServerGetOpenMode(HgfsFileOpenInfo *openInfo, // IN:  Open info to examine
  *    Closes the file descriptor.
  *
  * Results:
- *    Zero on success. 
+ *    Zero on success.
  *    Non-zero on failure.
  *
  * Side effects:
@@ -805,9 +805,9 @@ HgfsGetFd(HgfsHandle hgfsHandle,    // IN:  HGFS file handle
             goto exit;
          }
 
-         /* 
-          * Update the node in the cache with the new value of the append 
-          * flag. 
+         /*
+          * Update the node in the cache with the new value of the append
+          * flag.
           */
          if (!HgfsUpdateNodeAppendFlag(hgfsHandle, TRUE)) {
             LOG(4, ("HgfsGetFd: Could not update the node in the cache\n"));
@@ -830,13 +830,13 @@ HgfsGetFd(HgfsHandle hgfsHandle,    // IN:  HGFS file handle
       goto exit;
    }
 
-   /* 
+   /*
     * We're not interested in creating a new file. So let's just get the
     * flags for a simple open request. This really should always work.
     */
    HgfsServerGetOpenFlags(0, &openFlags);
 
-   /* 
+   /*
     * We don't need to specify open permissions here because we're only
     * reopening an existing file, not creating a new one.
     *
@@ -929,7 +929,7 @@ HgfsValidateOpen(HgfsFileOpenInfo *openInfo, // IN: Open info struct
       goto exit;
    }
 
-   /* 
+   /*
     * Create mode_t for use in open(). If owner permissions are missing, use
     * read/write for the owner permissions. If group or other permissions
     * are missing, use the owner permissions.
@@ -1001,7 +1001,7 @@ HgfsValidateOpen(HgfsFileOpenInfo *openInfo, // IN: Open info struct
  *
  * HgfsAcquireServerLock --
  *
- *    Acquire a lease for the open file. Typically we try and get the exact 
+ *    Acquire a lease for the open file. Typically we try and get the exact
  *    lease desired, but if the client asked for HGFS_LOCK_OPPORTUNISTIC, we'll
  *    take the "best" lease we can get.
  *
@@ -1037,8 +1037,8 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
       return FALSE;
    }
 
-   /* 
-    * First tell the kernel which signal to send us. SIGIO is already the 
+   /*
+    * First tell the kernel which signal to send us. SIGIO is already the
     * default, but if we skip this step, we won't get the siginfo_t when
     * a lease break occurs.
     *
@@ -1049,8 +1049,8 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
       Log("HgfsAcquireServerLock: Could not set SIGIO as the desired lease "
           "break signal for fd %d: %s\n", fileDesc, strerror(error));
       return FALSE;
-   }      
-   
+   }
+
    /*
     * If the client just wanted the best lock possible, start off with a write
     * lease and move down to a read lease if that was unavailable.
@@ -1063,10 +1063,10 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
    } else {
       LOG(4, ("HgfsAcquireServerLock: Unknown server lock\n"));
       return FALSE;
-   }   
+   }
    if (fcntl(fileDesc, F_SETLEASE, leaseType)) {
 
-      /* 
+      /*
        * If our client was opportunistic and we failed to get his lease because
        * someone else is already writing or reading to the file, try again with
        * a read lease.
@@ -1090,7 +1090,7 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
    }
 
    /* Got a lease of some kind. */
-   LOG(4, ("HgfsAcquireServerLock: Got %s lease for fd %d\n", 
+   LOG(4, ("HgfsAcquireServerLock: Got %s lease for fd %d\n",
            leaseType == F_WRLCK ? "write" : "read", fileDesc));
    *serverLock = leaseType == F_WRLCK ? HGFS_LOCK_EXCLUSIVE : HGFS_LOCK_SHARED;
    return TRUE;
@@ -1110,7 +1110,7 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
  *    otherwise. Unlike symlinks, aliases cannot be broken; if the target file
  *    is deleted, so is the alias.
  *
- *    If the given filename is (or contains) an alias, this function will 
+ *    If the given filename is (or contains) an alias, this function will
  *    resolve it completely and set targetName to something non-NULL.
  *
  * Results:
@@ -1124,7 +1124,7 @@ HgfsAcquireServerLock(fileDesc fileDesc,            // IN: OS handle
  *-----------------------------------------------------------------------------
  */
 
-static HgfsInternalStatus 
+static HgfsInternalStatus
 HgfsGetattrResolveAlias(char const *fileName,       // IN:  Input filename
                         char **targetName)          // OUT: Target filename
 {
@@ -1140,8 +1140,8 @@ HgfsGetattrResolveAlias(char const *fileName,       // IN:  Input filename
    Boolean targetIsFolder;
    Boolean wasAliased;
    OSStatus osStatus;
-   
-   /* 
+
+   /*
     * Create and resolve an FSRef of the desired path. We pass FALSE to
     * resolveAliasChains because aliases to aliases should behave as
     * symlinks to symlinks. If the file is an alias, wasAliased will be set to
@@ -1151,7 +1151,7 @@ HgfsGetattrResolveAlias(char const *fileName,       // IN:  Input filename
    if (osStatus != noErr) {
       LOG(4, ("HgfsGetattrResolveAlias: could not create file reference: "
               "error %lu\n", osStatus));
-      goto exit;      
+      goto exit;
    }
    /*
     * If alias points to an unmounted volume, the volume needs to be explicitly
@@ -1173,11 +1173,11 @@ HgfsGetattrResolveAlias(char const *fileName,       // IN:  Input filename
               "%lu\n", osStatus));
       goto exit;
    }
-   
+
    if (wasAliased) {
       CFIndex maxPath;
 
-      /* 
+      /*
        * This is somewhat convoluted. We create a CFURL from the FSRef because
        * we want to call CFURLGetFileSystemRepresentation() to get a UTF-8
        * string representing the target of the alias. But to call
@@ -1206,7 +1206,7 @@ HgfsGetattrResolveAlias(char const *fileName,       // IN:  Input filename
                  "of memory for target name storage\n", maxPath));
          goto exit;
       }
-      if (!CFURLGetFileSystemRepresentation(resolvedRef, FALSE, myTargetName, 
+      if (!CFURLGetFileSystemRepresentation(resolvedRef, FALSE, myTargetName,
                                             maxPath)) {
          LOG(4, ("HgfsGetattrResolveAlias: could not convert and copy "
                  "resolved URL reference into allocated buffer\n"));
@@ -1264,8 +1264,8 @@ HgfsGetHiddenAttr(char const *fileName,         // IN:  Input filename
    baseName = strrchr(fileName, DIRSEPC);
 
    if ((baseName != NULL) &&
-       (baseName[1] == '.') && 
-       (strcmp(&baseName[1], ".") != 0) && 
+       (baseName[1] == '.') &&
+       (strcmp(&baseName[1], ".") != 0) &&
        (strcmp(&baseName[1], "..") != 0)) {
       attr->mask |= HGFS_ATTR_VALID_FLAGS;
       attr->flags |= HGFS_ATTR_HIDDEN;
@@ -1499,13 +1499,13 @@ HgfsStatFromName(char *fileName,          // IN: filename to stat
    if (!share) {
       return ENOENT;
    }
-   
+
    /* If fileName is same as share path, access is denied. */
    if (!Str_Strncmp(fileName, share->path, strlen(fileName))) {
       return EACCES;
    }
 
-   /* 
+   /*
     * If share path is not a prefix in fileName, it is a wrong
     * share for this fileName. Return ENOENT.
     */
@@ -1518,7 +1518,7 @@ HgfsStatFromName(char *fileName,          // IN: filename to stat
    if (error) {
       return error;
    }
-      
+
    LOG(4, ("%s: stating %s\n", __FUNCTION__, fileName));
    error = Posix_Lstat(fileName, stats);
    if (error < 0) {
@@ -1566,7 +1566,7 @@ HgfsGetattrFromName(char *fileName,             // IN/OUT:  Input filename
 
    error = HgfsStatFromName(fileName, share, caseFlags, &stats);
    if (error) {
-      LOG(4, ("HgfsGetattrFromName: error stating file: %s\n", 
+      LOG(4, ("HgfsGetattrFromName: error stating file: %s\n",
               strerror(error)));
       status = error;
       goto exit;
@@ -1595,8 +1595,8 @@ HgfsGetattrFromName(char *fileName,             // IN/OUT:  Input filename
             error = errno;
             LOG(4, ("HgfsGetattrFromName: readlink returned wrong size\n"));
 
-            /* 
-             * Because of an unavoidable race between the lstat(2) and the 
+            /*
+             * Because of an unavoidable race between the lstat(2) and the
              * readlink(2), the symlink target may have lengthened and we may
              * not have read the entire link. If that happens, just return
              * "out of memory".
@@ -1606,7 +1606,7 @@ HgfsGetattrFromName(char *fileName,             // IN/OUT:  Input filename
          }
       }
    } else {
-      /* 
+      /*
        * Now is a good time to check if the file was an alias. If so, we'll
        * treat it as a symlink.
        *
@@ -1623,7 +1623,7 @@ HgfsGetattrFromName(char *fileName,             // IN/OUT:  Input filename
          LOG(4, ("HgfsGetattrFromName: could not resolve file aliases\n"));
       }
       if (myTargetName != NULL) {
-         /* 
+         /*
           * Let's mangle the permissions and size of the file so that it more
           * closely resembles a symlink. The size should be the length of the
           * target name (not including the nul-terminator), and the permissions
@@ -1661,7 +1661,7 @@ HgfsGetattrFromName(char *fileName,             // IN/OUT:  Input filename
 
    HgfsStat(&stats, attr);
 
-   /* 
+   /*
     * In the case we have a Windows client, force the hidden flag.
     * This will be ignored by Linux, Solaris clients.
     */
@@ -1730,7 +1730,7 @@ HgfsGetattrFromFd(int fd,                     // IN:  file descriptor
       attr->type = HGFS_FILE_TYPE_REGULAR;
       LOG(4, ("HgfsGetattrFromFd: NOT a directory or symlink\n"));
    }
-   
+
    HgfsStat(&stats, attr);
 
    /*
@@ -1764,7 +1764,7 @@ HgfsGetattrFromFd(int fd,                     // IN:  file descriptor
       goto exit;
    }
 
-   /* 
+   /*
     * In the case we have a Windows client, force the hidden flag.
     * This will be ignored by Linux, Solaris clients.
     */
@@ -1772,7 +1772,7 @@ HgfsGetattrFromFd(int fd,                     // IN:  file descriptor
 
 
    if (shareMode == HGFS_OPEN_MODE_READ_ONLY) {
-      /* 
+      /*
        * Share does not allow write, so tell the client
        * everything is read only.
        */
@@ -1785,7 +1785,7 @@ HgfsGetattrFromFd(int fd,                     // IN:  file descriptor
       if (attr->mask & HGFS_ATTR_VALID_OTHER_PERMS) {
          attr->otherPerms &= ~HGFS_PERM_WRITE;
       }
-   } 
+   }
 
 exit:
    free(fileName);
@@ -1812,7 +1812,7 @@ exit:
  */
 
 static void
-HgfsStat(struct stat *stats,        // IN: stat information 
+HgfsStat(struct stat *stats,        // IN: stat information
          HgfsFileAttrInfo *attr)    // OUT: FileAttrInfo to copy into
 {
    attr->size           = stats->st_size;
@@ -2207,7 +2207,7 @@ HgfsSetattrFromFd(HgfsHandle file,         // IN: file descriptor
       status = error;
       goto exit;
    }
-   
+
    /*
     * Try to make each requested attribute change. In the event that
     * one operation fails, we still attempt to perform any other
@@ -2234,7 +2234,7 @@ HgfsSetattrFromFd(HgfsHandle file,         // IN: file descriptor
 
    idChanged = HgfsSetattrOwnership(attr, &newUid, &newGid);
    if (idChanged) {
-      LOG(4, ("HgfsSetattrFromFd: set uid %"FMTUID" and gid %"FMTUID"\n", 
+      LOG(4, ("HgfsSetattrFromFd: set uid %"FMTUID" and gid %"FMTUID"\n",
               newUid, newGid));
       if (fchown(fd, newUid, newGid) < 0) {
          error = errno;
@@ -2246,10 +2246,10 @@ HgfsSetattrFromFd(HgfsHandle file,         // IN: file descriptor
 
    if (attr->mask & HGFS_ATTR_VALID_SIZE) {
 
-      /* 
+      /*
        * XXX: Truncating the file will trigger an oplock break. The client
-       * should have predicted this and removed the oplock prior to sending 
-       * the truncate request. At this point, the server must safeguard itself 
+       * should have predicted this and removed the oplock prior to sending
+       * the truncate request. At this point, the server must safeguard itself
        * against deadlock.
        */
       if (!HgfsHandle2ServerLock(file, &serverLock)) {
@@ -2269,16 +2269,16 @@ HgfsSetattrFromFd(HgfsHandle file,         // IN: file descriptor
       }
    }
 
-   timesStatus = HgfsSetattrTimes(&statBuf, attr, hints, 
+   timesStatus = HgfsSetattrTimes(&statBuf, attr, hints,
                                   &times[0], &times[1], &timesChanged);
    if (timesStatus == 0 && timesChanged) {
       Bool superUser;
 
       LOG(4, ("HgfsSetattrFromFd: setting new times\n"));
 
-      /* 
-       * If the VMX is either the file owner or running as root, switch to 
-       * superuser briefly to set the files times using futimes. Otherwise 
+      /*
+       * If the VMX is either the file owner or running as root, switch to
+       * superuser briefly to set the files times using futimes. Otherwise
        * return an error.
        */
       superUser = IsSuperUser();
@@ -2428,10 +2428,10 @@ HgfsSetattrFromName(char *cpName,             // IN: Name
    }
 
    if (attr->mask & HGFS_ATTR_VALID_SIZE) {
-      /* 
+      /*
        * XXX: Truncating the file will trigger an oplock break. The client
-       * should have predicted this and removed the oplock prior to sending 
-       * the truncate request. At this point, the server must safeguard itself 
+       * should have predicted this and removed the oplock prior to sending
+       * the truncate request. At this point, the server must safeguard itself
        * against deadlock.
        */
       if (HgfsFileHasServerLock(localName, &serverLock, &fd)) {
@@ -2506,7 +2506,7 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
    int myNumDents = 0;
    HgfsInternalStatus status = 0;
 
-   /* 
+   /*
     * XXX: glibc uses 8192 (BUFSIZ) when it can't get st_blksize from a stat.
     * Should we follow its lead and use stat to get st_blksize?
     */
@@ -2522,11 +2522,11 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
    }
    fd = result;
 
-   /* 
+   /*
     * Rather than read a single dent at a time, batch up multiple dents
     * in each call by using a buffer substantially larger than one dent.
     */
-   while ((result = getdents(fd, (void *)buffer, 
+   while ((result = getdents(fd, (void *)buffer,
                              sizeof buffer)) > 0) {
       size_t offset = 0;
       while (offset < result) {
@@ -2536,7 +2536,7 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
 
          /* This dent had better fit in the actual space we've got left. */
          ASSERT(newDent->d_reclen <= result - offset);
-      
+
          /* Add another dent pointer to the dents array. */
          newDents = realloc(myDents, sizeof *myDents * (myNumDents + 1));
          if (newDents == NULL) {
@@ -2544,9 +2544,9 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
             goto exit;
          }
          myDents = newDents;
-      
-         /* 
-          * Allocate the new dent and set it up. We do a straight memcpy of 
+
+         /*
+          * Allocate the new dent and set it up. We do a straight memcpy of
           * the entire record to avoid dealing with platform-specific fields.
           */
          myDents[myNumDents] = malloc(newDent->d_reclen);
@@ -2556,7 +2556,7 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
          }
          memcpy(myDents[myNumDents], newDent, newDent->d_reclen);
 
-         /* 
+         /*
           * Dent is done. Bump the offset to the batched buffer to process the
           * next dent within it.
           */
@@ -2579,7 +2579,7 @@ HgfsServerScandir(char const *baseDir,      // IN: Directory to search in
               strerror(status)));
    }
 
-   /* 
+   /*
     * On error, free all allocated dents. On success, set the dents pointer
     * given to us by the client.
     */
@@ -2689,7 +2689,7 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
                                     openInfo.caseFlags,
                                     &localName,
                                     NULL,
-                                    NULL); 
+                                    NULL);
    if (nameStatus != HGFS_NAME_STATUS_COMPLETE) {
       LOG(4, ("HgfsServerOpen: access check failed\n"));
       status = HgfsConvertFromNameStatus(nameStatus);
@@ -2698,7 +2698,7 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
 
    ASSERT(localName);
    openInfo.utf8Name = localName;
-   
+
    LOG(4, ("HgfsServerOpen: opening \"%s\", mode %u, flags %u, perms "
            "%u%u%u%u\n", openInfo.utf8Name,
            (openInfo.mask & HGFS_OPEN_VALID_MODE) ? openInfo.mode : 0,
@@ -2712,11 +2712,11 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
            (openInfo.mask & HGFS_OPEN_VALID_OTHER_PERMS) ?
            openInfo.otherPerms : 0));
 
-   /* 
-    * XXX: Before opening the file, see if we already have this file opened on 
-    * the server with an oplock on it. If we do, we must fail the new open 
-    * request, otherwise we will trigger an oplock break that the guest cannot 
-    * handle at this time (since the HGFS server is running in the context of 
+   /*
+    * XXX: Before opening the file, see if we already have this file opened on
+    * the server with an oplock on it. If we do, we must fail the new open
+    * request, otherwise we will trigger an oplock break that the guest cannot
+    * handle at this time (since the HGFS server is running in the context of
     * the vcpu thread), and we'll deadlock.
     *
     * Until we overcome this limitation via Crosstalk, we will be extra smart
@@ -2724,7 +2724,7 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
     * already have an oplock. And the server will protect itself like so.
     *
     * XXX: With some extra effort, we could allow a second open for read here,
-    * since that won't break a shared oplock, but the clients should already 
+    * since that won't break a shared oplock, but the clients should already
     * realize that the second open can be avoided via sharing handles, too.
     */
    if (HgfsFileHasServerLock(localName, &serverLock, &newFd)) {
@@ -2739,7 +2739,7 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
    if (status == 0) {
       ASSERT(newFd >= 0);
 
-      /* 
+      /*
        * Open succeeded, so make new node and return its handle. If we fail,
        * it's almost certainly an internal server error.
        */
@@ -2748,7 +2748,7 @@ HgfsServerOpen(char const *packetIn, // IN: incoming packet
          goto exit;
       }
 
-      status = HgfsPackOpenReply(&openInfo, packetOut, packetSize) ? 
+      status = HgfsPackOpenReply(&openInfo, packetOut, packetSize) ?
                   0 :
                   EPROTO;
    }
@@ -2893,7 +2893,7 @@ HgfsServerRead(char const *packetIn, // IN: incoming packet
 #endif
    if (error < 0) {
       status = errno;
-      LOG(4, ("HgfsServerRead: error reading from file: %s\n", 
+      LOG(4, ("HgfsServerRead: error reading from file: %s\n",
               strerror(status)));
       goto error;
    }
@@ -2951,7 +2951,7 @@ HgfsServerWrite(char const *packetIn, // IN: incoming packet
    ASSERT(packetIn);
    ASSERT(packetOut);
    ASSERT(packetSize);
-   
+
    if (header->op == HGFS_OP_WRITE_V3) {
       HgfsRequestWriteV3 *request =
                          (HgfsRequestWriteV3 *)HGFS_REQ_GET_PAYLOAD_V3(packetIn);
@@ -2990,8 +2990,8 @@ HgfsServerWrite(char const *packetIn, // IN: incoming packet
            file, offset, requiredSize, extra));
 
    /* Get the file desriptor from the cache */
-   status = HgfsGetFd(file, ((flags & HGFS_WRITE_APPEND) ? 
-                                      TRUE : FALSE), 
+   status = HgfsGetFd(file, ((flags & HGFS_WRITE_APPEND) ?
+                                      TRUE : FALSE),
                       &fd);
 
    if (status != 0) {
@@ -3057,7 +3057,7 @@ HgfsServerWrite(char const *packetIn, // IN: incoming packet
 #endif
    if (error < 0) {
       status = errno;
-      LOG(4, ("HgfsServerWrite: error writing to file: %s\n", 
+      LOG(4, ("HgfsServerWrite: error writing to file: %s\n",
               strerror(status)));
       goto error;
    }
@@ -3114,14 +3114,14 @@ HgfsServerSearchOpen(char const *packetIn, // IN: incoming packet
    ASSERT(packetOut);
    ASSERT(packetSize);
    header = (HgfsRequest *)packetIn;
-   
+
    if (header->op == HGFS_OP_SEARCH_OPEN_V3) {
       HgfsRequestSearchOpenV3 *requestV3;
       HgfsReplySearchOpenV3 *replyV3;
-      
+
       requestV3 = (HgfsRequestSearchOpenV3 *)HGFS_REQ_GET_PAYLOAD_V3(packetIn);
       replyV3 = (HgfsReplySearchOpenV3 *)HGFS_REP_GET_PAYLOAD_V3(packetOut);
-      
+
       /* Enforced by the dispatch function */
       ASSERT(*packetSize >= HGFS_REQ_PAYLOAD_SIZE_V3(requestV3));
       extra = *packetSize - HGFS_REQ_PAYLOAD_SIZE_V3(requestV3);
@@ -3135,14 +3135,14 @@ HgfsServerSearchOpen(char const *packetIn, // IN: incoming packet
        LOG(4, ("HgfsServerSearchOpen: HGFS_OP_SEARCH_OPEN_V3\n"));
    } else {
       HgfsRequestSearchOpen *request;
-      
+
       request = (HgfsRequestSearchOpen *)packetIn;
       /* Enforced by the dispatch function */
       ASSERT(*packetSize >= sizeof *request);
       extra = *packetSize - sizeof *request;
 
       dirName = request->dirName.name;
-      dirNameLength = request->dirName.length;  
+      dirNameLength = request->dirName.length;
       replySearch = &((HgfsReplySearchOpen *)packetOut)->search;
       replySize = sizeof *request;
    }
@@ -3269,7 +3269,7 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
       return EBADF;
    }
 
-   while ((dent = HgfsGetSearchResult(hgfsSearchHandle, 
+   while ((dent = HgfsGetSearchResult(hgfsSearchHandle,
                                       requestedOffset, FALSE)) != NULL) {
       unsigned int length;
       char *fullName;
@@ -3283,7 +3283,7 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
       switch (search.type) {
       case DIRECTORY_SEARCH_TYPE_DIR:
 
-         /* 
+         /*
           * Construct the UTF8 version of the full path to the file, and call
           * HgfsGetattrFromName to get the attributes of the file.
           */
@@ -3314,13 +3314,13 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
          break;
       case DIRECTORY_SEARCH_TYPE_BASE:
 
-         /* 
+         /*
           * For a search enumerating all shares, give the default attributes
           * for '.' and ".." (which aren't really shares anyway). Each real
           * share gets resolved into its full path, and gets its attributes
           * via HgfsGetattrFromName.
           */
-         if (strcmp(dent->d_name, ".") == 0 || 
+         if (strcmp(dent->d_name, ".") == 0 ||
              strcmp(dent->d_name, "..") == 0) {
             LOG(4, ("HgfsServerSearchRead: assigning %s default "
                     "attributes\n", dent->d_name));
@@ -3343,12 +3343,12 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
             status = HgfsGetattrFromName(sharePath, share, HGFS_FILE_NAME_DEFAULT_CASE,
                                         &attr, NULL);
             if (status != 0) {
-               /* 
+               /*
                 * The dent no longer exists. Remove it from the search and get
-                * the next dent instead. 
+                * the next dent instead.
                 */
                LOG(4, ("HgfsServerSearchRead: stat FAILED, removing\n"));
-               free(HgfsGetSearchResult(hgfsSearchHandle, requestedOffset, 
+               free(HgfsGetSearchResult(hgfsSearchHandle, requestedOffset,
                                         TRUE));
                free(dent);
                continue;
@@ -3357,8 +3357,8 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
          break;
       case DIRECTORY_SEARCH_TYPE_OTHER:
 
-         /* 
-          * The POSIX implementation of HgfsSearchOpen could not have created 
+         /*
+          * The POSIX implementation of HgfsSearchOpen could not have created
           * this kind of search.
           */
          NOT_IMPLEMENTED();
@@ -3377,7 +3377,7 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
 
 #if defined(__APPLE__)
 
-         /* 
+         /*
           * HGFS clients receive names in unicode normal form C,
           * (precomposed) so Mac hosts must convert from normal form D
           * (decomposed).
@@ -3424,8 +3424,8 @@ HgfsServerSearchRead(char const *packetIn, // IN: incoming packet
    /* No entry at this offset */
    free(search.utf8Dir);
    LOG(4, ("HgfsServerSearchRead: no entry\n"));
-   return HgfsPackSearchReadReply(NULL, 0, &attr, packetOut, packetSize) ? 
-             0 : 
+   return HgfsPackSearchReadReply(NULL, 0, &attr, packetOut, packetSize) ?
+             0 :
              EPROTO;
 }
 
@@ -3586,9 +3586,9 @@ HgfsServerSetattr(char const *packetIn, // IN: incoming packet
    if (file != HGFS_INVALID_HANDLE) {
       status = HgfsSetattrFromFd(file, &attr, hints);
    } else {
-      status = HgfsSetattrFromName(cpName, 
-                                   cpNameSize, 
-                                   &attr, 
+      status = HgfsSetattrFromName(cpName,
+                                   cpNameSize,
+                                   &attr,
                                    hints,
                                   caseFlags);
    }
@@ -3651,9 +3651,9 @@ HgfsServerCreateDir(char const *packetIn, // IN: incoming packet
 
    ASSERT(localName);
 
-   /* 
+   /*
     * Create mode_t for use in mkdir(). If owner permissions are missing, use
-    * read/write/execute for the owner permissions. If group or other 
+    * read/write/execute for the owner permissions. If group or other
     * permissions are missing, use the owner permissions.
     *
     * This sort of makes sense. If the Windows driver wants to make a dir
@@ -3954,7 +3954,7 @@ HgfsServerRename(char const *packetIn, // IN: incoming packet
       ASSERT(localOldName);
 
       /* Guest OS is not allowed to rename shared folder. */
-      if (HgfsServerIsSharedFolderOnly(cpOldName, 
+      if (HgfsServerIsSharedFolderOnly(cpOldName,
                                        cpOldNameLen)){
          LOG(4, ("HgfsServerRename: Cannot rename shared folder\n"));
          status = EPERM;
@@ -3992,7 +3992,7 @@ HgfsServerRename(char const *packetIn, // IN: incoming packet
          goto exit;
       }
    }
-   
+
    ASSERT(localNewName);
 
    if (hints & HGFS_RENAME_HINT_NO_REPLACE_EXISTING) {
@@ -4020,14 +4020,14 @@ HgfsServerRename(char const *packetIn, // IN: incoming packet
       goto exit;
    }
 
-   /* 
+   /*
     * Update all file nodes referring to this filename to the new name.
-    * 
+    *
     * XXX: Note that this operation can fail (out of memory), but we'd like
     * the client to see success anyway, because the rename succeeded.
     */
    HgfsUpdateNodeNames(localOldName, localNewName);
-   status = HgfsPackRenameReply(packetOut, packetSize) ? 
+   status = HgfsPackRenameReply(packetOut, packetSize) ?
                0 : EPROTO;
 
   exit:
@@ -4098,13 +4098,13 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
    if (header->op == HGFS_OP_QUERY_VOLUME_INFO_V3) {
       HgfsRequestQueryVolumeV3 *requestV3;
       HgfsReplyQueryVolumeV3 *replyV3;
-      
+
       requestV3 = (HgfsRequestQueryVolumeV3 *)HGFS_REQ_GET_PAYLOAD_V3(packetIn);
       replyV3 = (HgfsReplyQueryVolumeV3 *)HGFS_REP_GET_PAYLOAD_V3(packetOut);
 
       freeBytes = &replyV3->freeBytes;
       totalBytes = &replyV3->totalBytes;
-      
+
       /* Enforced by the dispatch function. */
       ASSERT(*packetSize >= HGFS_REQ_PAYLOAD_SIZE_V3(requestV3));
       extra = *packetSize - HGFS_REQ_PAYLOAD_SIZE_V3(requestV3);
@@ -4117,7 +4117,7 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
    } else {
       HgfsRequestQueryVolume *request = (HgfsRequestQueryVolume *)packetIn;
       HgfsReplyQueryVolume *reply = (HgfsReplyQueryVolume *)packetOut;
-      
+
       freeBytes = &reply->freeBytes;
       totalBytes = &reply->totalBytes;
 
@@ -4164,14 +4164,14 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
          return status;
       }
 
-      /* 
+      /*
        * If we're outside the Tools, find out if we're to compute the minimum
        * values across all shares, or the maximum values.
        */
       infoType = VOLUME_INFO_TYPE_MIN;
 #ifndef VMX86_TOOLS
       {
-         char *volumeInfoType = Config_GetString("min", 
+         char *volumeInfoType = Config_GetString("min",
                                                  "tools.hgfs.volumeInfoType");
          if (!Str_Strcasecmp(volumeInfoType, "max")) {
             infoType = VOLUME_INFO_TYPE_MAX;
@@ -4179,7 +4179,7 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
          free(volumeInfoType);
       }
 #endif
-      
+
       /*
        * Now go through all shares and get share paths on the server.
        * Then retrieve space info for each share's volume.
@@ -4191,16 +4191,16 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
          uint64 freeBytes  = 0;
          uint64 totalBytes = 0;
          unsigned int length;
-         
+
          length = strlen(dent->d_name);
-         
+
          /*
-          * Now that the server is passing '.' and ".." around as dents, we 
-          * need to make sure to handle them properly. In particular, they 
+          * Now that the server is passing '.' and ".." around as dents, we
+          * need to make sure to handle them properly. In particular, they
           * should be ignored within QueryVolume, as they're not real shares.
           */
          if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) {
-            LOG(4, ("HgfsServerQueryVolume: Skipping fake share %s\n", 
+            LOG(4, ("HgfsServerQueryVolume: Skipping fake share %s\n",
                     dent->d_name));
             free(dent);
             continue;
@@ -4211,7 +4211,7 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
           * the share count here.
           */
          shares++;
-         
+
          /*
           * Check permission on the share and get the share path.  It is not
           * fatal if these do not succeed.  Instead we ignore the failures
@@ -4235,7 +4235,7 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
             failed++;
             continue;
          }
-         
+
          if (!HgfsServerStatFs(sharePath, sharePathLen,
                                &freeBytes, &totalBytes)) {
             LOG(4, ("HgfsServerQueryVolume: error getting volume "
@@ -4246,7 +4246,7 @@ HgfsServerQueryVolume(char const *packetIn, // IN: incoming packet
             failed++;
             continue;
          }
-         
+
          /*
           * Pick the drive with amount of space available and return that
           * according to different volume info type.
@@ -4356,7 +4356,7 @@ HgfsServerSymlinkCreate(char const *packetIn, // IN: incoming packet
       symlinkName = requestV3->symlinkName.name;
       symlinkNameLength = requestV3->symlinkName.length;
 
-      /* 
+      /*
        * targetName starts after symlinkName + the variable length array
        * in symlinkName.
        */
@@ -4376,7 +4376,7 @@ HgfsServerSymlinkCreate(char const *packetIn, // IN: incoming packet
       symlinkName = request->symlinkName.name;
       symlinkNameLength = request->symlinkName.length;
 
-      /* 
+      /*
        * targetName starts after symlinkName + the variable length array
        * in symlinkName.
        */
@@ -4609,12 +4609,12 @@ HgfsAckOplockBreak(ServerLockData *lockData, // IN: server lock info
    fileDesc = lockData->fileDesc;
    LOG(4, ("HgfsAckOplockBreak: Acknowledging break on fd %d\n", fileDesc));
 
-   /* 
+   /*
     * The Linux server supports lock downgrading. We only downgrade to a shared
     * lock if our previous call to fcntl() said we could, and if the client
     * wants to downgrade to a shared lock. Otherwise, we break altogether.
     */
-   if (lockData->serverLock == HGFS_LOCK_SHARED && 
+   if (lockData->serverLock == HGFS_LOCK_SHARED &&
        replyLock == HGFS_LOCK_SHARED) {
       newLock = F_RDLCK;
       actualLock = replyLock;
index b690d32440678e515b21c3e61dfad8532500fe29..fc595f3d238ac7a778c14c4a73b5913b03846b67 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libHgfsServerManagerGuest.a
 
 libHgfsServerManagerGuest_a_SOURCES =
 libHgfsServerManagerGuest_a_SOURCES += hgfsServerManagerGuest.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index b937c3592962b6b2a0c22c0c9c5ed084e45c66cd..4411823b4ec91606c193e8262ae04b72fc4ae609 100644 (file)
@@ -92,8 +92,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -104,8 +102,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -116,12 +114,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -132,14 +130,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -154,7 +152,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -162,7 +160,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -222,7 +220,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libHgfsServerManagerGuest.a
 libHgfsServerManagerGuest_a_SOURCES = hgfsServerManagerGuest.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 1b9b2f4c65d379f83c273165566958fc1eb13c2a..31784e7cf861572cb369289fc96ce4e90ae7f0f5 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libHgfsServerPolicyGuest.a
 
 libHgfsServerPolicyGuest_a_SOURCES =
 libHgfsServerPolicyGuest_a_SOURCES += hgfsServerPolicyGuest.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 1a8c4e1f00d51da59f52c10484e3258e37a37b22..de41ebe86b39cc13228cbae1b7a632cec221ae5c 100644 (file)
@@ -92,8 +92,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -104,8 +102,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -116,12 +114,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -132,14 +130,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -154,7 +152,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -162,7 +160,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -222,7 +220,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libHgfsServerPolicyGuest.a
 libHgfsServerPolicyGuest_a_SOURCES = hgfsServerPolicyGuest.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index abda76599a6ed89bd265db81f21a7751718c7f6e..09cbf8e812a5988e9736c711ec956888e16bc1fc 100644 (file)
@@ -21,6 +21,4 @@ libImpersonate_a_SOURCES =
 libImpersonate_a_SOURCES += impersonate.c
 libImpersonate_a_SOURCES += impersonatePosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_IMPERSONATE_CFLAGS@
+AM_CFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
index 47f6192c2cbbe43316b28797351f5025d6efc8f8..8782b6fa552ecba99528a4d082e470059b043461 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -221,7 +219,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libImpersonate.a
 libImpersonate_a_SOURCES = impersonate.c impersonatePosix.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_IMPERSONATE_CFLAGS@
+AM_CFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 3b51f6378e9b8ab6406869f82b3cbc3c925eec3a..74fddea32c6607cebc3a522e0fcdb12e992e4458 100644 (file)
@@ -1,12 +1,12 @@
 #define BUILD_NUMBER \
-       "build-90473"
+       "build-93084"
 #define BUILD_NUMBER_NUMERIC \
-       90473
+       93084
 #define BUILD_NUMBER_NUMERIC_STRING \
-       "90473"
+       "93084"
 #define PRODUCT_BUILD_NUMBER \
-       "product-build-182"
+       "product-build-196"
 #define PRODUCT_BUILD_NUMBER_NUMERIC \
-       182
+       196
 #define PRODUCT_BUILD_NUMBER_NUMERIC_STRING \
-       "182"
+       "196"
index d6bd9e13297692aa3fad121fc524adf2ee9d42d9..fa69e441897dedbaee7ee7997b91cde38dba4255 100644 (file)
 #include "vm_assert.h"
 #include "dynbuf.h"
 
-#   if defined(__FreeBSD__) || defined(VMX86_SERVER) || defined(__APPLE__) \
-                            || (defined(__linux__) && !defined(GLIBC_VERSION_21) \
-                            && !defined(GLIBC_VERSION_22) && !defined(GLIBC_VERSION_23))
+/*
+ * These platforms use UTF-8 (or pretend to):
+ *   FreeBSD: really UTF-8
+ *   ESX: UTF-8 by policy decree
+ *   Mac: really UTF-8
+ *   Netware: don't know (either no iconv, or really UTF-8)
+ */
+
+#if defined(__FreeBSD__) || \
+    defined(VMX86_SERVER) || \
+    defined(__APPLE__) || \
+    defined(N_PLAT_NLM)
 #define CURRENT_IS_UTF8
 #endif
 
index c9db1d6948662ecaf419bb81b042705fd62313c4..43e9ea6b8344e440623c221163b23b908162a8ff 100644 (file)
@@ -148,6 +148,10 @@ EXTERN HGLOBAL DnD_CopyDWORDToGlobal(DWORD *pDWORD);
 EXTERN HGLOBAL DnD_CreateHDrop(ConstUnicode path, ConstUnicode fileList);
 EXTERN HGLOBAL DnD_CreateHDropForGuest(ConstUnicode path,
                                        ConstUnicode fileList);
+EXTERN size_t DnD_CPStringToLocalString(ConstUnicode bufIn,
+                                        utf16_t **bufOut);
+EXTERN size_t DnD_LocalStringToCPString(utf16_t *bufIn,
+                                        char **bufOut);
 EXTERN Bool DnD_FakeMouseEvent(DWORD flag);
 EXTERN Bool DnD_FakeMouseState(DWORD key, Bool isDown);
 EXTERN Bool DnD_FakeEscapeKey(void);
index 775e93bb85d4e6eebc2db6aedee13bcf6e3568f0..9a51b2db2879bbafbededee805892da47a960a61 100644 (file)
 #ifndef _FILE_H_
 #define _FILE_H_
 
+#ifdef __cplusplus
+extern "C"{
+#endif
+
 #include <stdio.h>
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
@@ -62,8 +66,8 @@ EXTERN FileMacosUnmountStatus FileMacos_UnmountDev(char const *bsdDev,
 EXTERN void FileMacos_MountDevAsyncNoResult(char const *bsdSliceDev,
                                             Bool su);
 
-EXTERN Bool FileMacos_IsOnExternalDevice(char const *path);
-EXTERN Bool FileMacos_IsOnSparseDmg(char const *path);
+EXTERN Bool FileMacos_IsOnExternalDevice(int fd);
+EXTERN Bool FileMacos_IsOnSparseDmg(int fd);
 
 EXTERN char *FileMacos_DiskDevToDiskName(char const *bsdDiskDev);
 
@@ -255,4 +259,8 @@ EXTERN Bool File_MakeCfgFileExecutable(ConstUnicode pathName);
 
 EXTERN char *File_ExpandAndCheckDir(const char *dirName);
 
+#ifdef __cplusplus
+} // extern "C" {
+#endif
+
 #endif // ifndef _FILE_H_
index 31dc578b7b4e0c58b2423202df56116024d398b4..6be03995c0ffe2b54f79cdddcc10a9d03b573cb6 100644 (file)
@@ -80,6 +80,8 @@
 #define SYMANTEC_LIVESTATE_EXTENSION "sv2i"
 #define STORAGECRAFT_SHADOWSTOR_EXTENSION "spf"
 #define ACRONIS_EXTENSION "tib"
+#define OPEN_VM_FORMAT_EXTENSION "ovf"
+#define ARCHIVED_OPEN_VM_FORMAT_EXTENSION "ova"
 // "xvm" // VMware console configuration file
 
 /*
index 4142ec020a26c66540f79191793253817c9676c9..e6e382cc0f0d7b21db948ba5255cb0511b291935 100644 (file)
@@ -158,17 +158,12 @@ uint32
 GuestApp_HostCopyStep(uint8 c);  // IN
 
 Bool
-GuestApp_RpcSendOneUtf8(char const *cmd,  // IN: RPCI command
-                        char const *arg,  // IN: string arg to be Utf8 encoded
-                        size_t argSize);  // IN: size of arg
-
-Bool
-GuestApp_RpcSendOneUtf8CPName(char const *cmd,       // IN: RPCI command
-                              char const *arg,       // IN: to UTF8 encode
-                              size_t argSize,        // IN: size of arg
-                              char delimiter,        // IN: delimiter
-                              char const *cpNameArg, // IN: to UTF8/CPName encode
-                              size_t cpNameArgSize); // IN: size of cpNameArg
+GuestApp_RpcSendOneArgCPName(char const *cmd,       // IN: RPCI command
+                             char const *arg,       // IN: UTF-8 encoded string
+                             size_t argSize,        // IN: size of arg
+                             char delimiter,        // IN: delimiter
+                             char const *cpNameArg, // IN: UTF-8 encoded CPName
+                             size_t cpNameArgSize); // IN: size of cpNameArg
 Bool
 GuestApp_RpcSendOneCPName(char const *cmd, // IN: RPCI command
                           char delimiter,  // IN: delimiter
index d401348dec425727b0bafe85c77dafdc9850312e..1b77b8df74e3561fca32f1a1b5ad305d8805cad2 100644 (file)
@@ -31,6 +31,8 @@
 #include "vm_basic_types.h"
 
 #include "dbllnklst.h"
+#include "guestStats.h"
+#include <stdlib.h>     // For inline malloc()/free()
 
 #define GUEST_INFO_COMMAND_TWO "SetGuestInfo2"
 #define GUEST_INFO_COMMAND "SetGuestInfo"
@@ -62,7 +64,7 @@ typedef enum {
 } GuestInfoIPAddressFamilyType;
 
 /*
- * For backward compatibility's sake over wire (from Tools to VMX), new fields 
+ * For backward compatibility's sake over wire (from Tools to VMX), new fields
  * in this struct must be added at the end.  THis is the part that goes over wire.
  */
 typedef struct VmIpAddressEntryProtocol {
@@ -90,10 +92,10 @@ typedef struct NicEntryV1 {
 } NicEntryV1;
 
 /*
- * For backward compatibility's sake over wire (from Tools to VMX), new fields 
+ * For backward compatibility's sake over wire (from Tools to VMX), new fields
  * in this struct must be added at the end.  THis is the part that goes over wire.
  */
-typedef struct NicEntryProtocol {     
+typedef struct NicEntryProtocol {
    char macAddress[MAC_ADDR_SIZE];   /* In the format "12-23-34-45-56-67" */
    char pad[1];                      /* MAC_ADDR_SIZE happens to be 19.  */
                                      /* Pad it to be multiple of 4 bytes */
@@ -103,40 +105,41 @@ typedef struct NicEntryProtocol {
 } NicEntryProtocol;
 
 typedef struct NicEntry {
-   DblLnkLst_Links links;           
+   DblLnkLst_Links links;
    NicEntryProtocol nicEntryProto;
    DblLnkLst_Links ipAddressList;
 /* DblLnkLst_Links gatewayList; */
 } NicEntry;
 
-typedef struct NicInfoV1 {
+typedef struct GuestNicInfoV1 {
    unsigned int numNicEntries;
    NicEntryV1 nicList[MAX_NICS];
-} NicInfoV1;
+} GuestNicInfoV1;
+
 
 /*
- * For backward compatibility's sake over wire (from Tools to VMX), new fields 
+ * For backward compatibility's sake over wire (from Tools to VMX), new fields
  * in this struct must be added at the end.  This is the part that goes over wire.
  */
-typedef struct NicInfoProtocol { 
+typedef struct NicInfoProtocol {
    uint32 version;
    uint32 nicEntrySizeOnWire;      /* length of NicEntry over wire.  Lengths differ */
                                    /* with different versions. */
    uint32 numNicEntries;
-   uint32 totalInfoSizeOnWire;    
+   uint32 totalInfoSizeOnWire;
 } NicInfoProtocol;
 
-typedef struct NicInfo {
+typedef struct GuestNicInfo {
    NicInfoProtocol    nicInfoProto;
    DblLnkLst_Links    nicList;     /* Pointers in it must be initialized to NULL */
-} NicInfo;
+} GuestNicInfo;
 
 typedef
 #include "vmware_pack_begin.h"
 struct _PartitionEntry {
    uint64 freeBytes;
    uint64 totalBytes;
-   char name[PARTITION_NAME_SIZE]; 
+   char name[PARTITION_NAME_SIZE];
 }
 #include "vmware_pack_end.h"
 PartitionEntry, *PPartitionEntry;
@@ -144,44 +147,21 @@ PartitionEntry, *PPartitionEntry;
 typedef struct _DiskInfo {
    unsigned int numEntries;
    PPartitionEntry partitionList;
-} DiskInfo, *PDiskInfo;
+} GuestDiskInfo, *PGuestDiskInfo;
+
+
+
+/*
+ * Global functions
+ */
+
+extern Bool GuestInfo_GetFqdn(int outBufLen, char fqdn[]);
+extern Bool GuestInfo_GetNicInfo(GuestNicInfo *nicInfo);
+extern Bool GuestInfo_GetDiskInfo(PGuestDiskInfo di);
+extern Bool GuestInfo_GetOSName(unsigned int outBufFullLen,
+                                unsigned int outBufLen, char *osNameFull,
+                                char *osName);
 
-typedef
-#include "vmware_pack_begin.h"
-struct MemInfo {
-   uint32 version;            /* MemInfo structure version. */
-   uint32 flags;              /* Indicates which stats are valid. */
-   uint64 memTotal;           /* Total physical memory in Kb. */
-   uint64 memFree;            /* Physical memory available in Kb. */
-   uint64 memBuff;            /* Physical memory used as buffer cache in Kb. */
-   uint64 memCache;           /* Physical memory used as cache in Kb. */
-   uint64 memActive;          /* Physical memory actively in use in Kb (working set) */
-   uint64 memInactive;        /* Physical memory inactive in Kb (cold pages) */
-   uint64 swapInRate;         /* Memory swapped out in Kb / sec. */
-   uint64 swapOutRate;        /* Memory swapped out in Kb / sec. */
-   uint64 ioInRate;           /* Amount of I/O in in blocks / sec. */
-   uint64 ioOutRate;          /* Amount of I/O out in blocks / sec. */
-   uint64 hugePagesTotal;     /* Total number of huge pages. */
-   uint64 hugePagesFree;      /* Available number of huge pages. */
-   uint64 memPinned;          /* Unreclaimable physical memory in 4K page size. */
-}
-#include "vmware_pack_end.h"
-MemInfo;
-
-/* Flags for MemInfo. */
-#define MEMINFO_MEMTOTAL         (1 << 0)
-#define MEMINFO_MEMFREE          (1 << 1)
-#define MEMINFO_MEMBUFF          (1 << 2)
-#define MEMINFO_MEMCACHE         (1 << 3)
-#define MEMINFO_MEMACTIVE        (1 << 4)
-#define MEMINFO_MEMINACTIVE      (1 << 5)
-#define MEMINFO_SWAPINRATE       (1 << 6)
-#define MEMINFO_SWAPOUTRATE      (1 << 7)
-#define MEMINFO_IOINRATE         (1 << 8)
-#define MEMINFO_IOOUTRATE        (1 << 9)
-#define MEMINFO_HUGEPAGESTOTAL   (1 << 10)
-#define MEMINFO_HUGEPAGESFREE    (1 << 11)
-#define MEMINFO_MEMPINNED        (1 << 12)
 
 /*
  *----------------------------------------------------------------------
@@ -199,7 +179,7 @@ MemInfo;
  *----------------------------------------------------------------------
  */
 
-static INLINE void 
+static INLINE void
 GuestInfo_FreeDynamicMemoryInNic(NicEntry *nicEntry)        // IN
 {
    VmIpAddressEntry *ipAddressCur;
@@ -217,7 +197,7 @@ GuestInfo_FreeDynamicMemoryInNic(NicEntry *nicEntry)        // IN
    DblLnkLst_ForEachSafe(sCurrent, sNext, &nicEntry->ipAddressList) {
 
       ipAddressCur = DblLnkLst_Container(sCurrent,
-                                         VmIpAddressEntry, 
+                                         VmIpAddressEntry,
                                          links);
 
       DblLnkLst_Unlink1(&ipAddressCur->links);
@@ -233,7 +213,7 @@ GuestInfo_FreeDynamicMemoryInNic(NicEntry *nicEntry)        // IN
  *
  * GuestInfo_FreeDynamicMemoryInNicInfo --
  *
- *      Free all dynamically allocated memory in the struct pointed to 
+ *      Free all dynamically allocated memory in the struct pointed to
  *      by nicInfo.
  *
  * Results:
@@ -245,8 +225,8 @@ GuestInfo_FreeDynamicMemoryInNic(NicEntry *nicEntry)        // IN
  *----------------------------------------------------------------------
  */
 
-static INLINE void 
-GuestInfo_FreeDynamicMemoryInNicInfo(NicInfo *nicInfo)      // IN
+static INLINE void
+GuestInfo_FreeDynamicMemoryInNicInfo(GuestNicInfo *nicInfo)      // IN
 {
    NicEntry *nicEntryCur = NULL;
    DblLnkLst_Links *sCurrent;
@@ -262,13 +242,13 @@ GuestInfo_FreeDynamicMemoryInNicInfo(NicInfo *nicInfo)      // IN
 
    DblLnkLst_ForEachSafe(sCurrent, sNext, &nicInfo->nicList) {
       nicEntryCur = DblLnkLst_Container(sCurrent,
-                                        NicEntry, 
+                                        NicEntry,
                                         links);
 
       GuestInfo_FreeDynamicMemoryInNic(nicEntryCur);
       DblLnkLst_Unlink1(&nicEntryCur->links);
       free (nicEntryCur);
-   } 
+   }
 
    DblLnkLst_Init(&nicInfo->nicList);
 }
index ef8949005038b0d2198744ec8d28515e12cce0c7..861e3861477216bbaaff3c08b412ce2772a7659f 100644 (file)
 #include "guestInfo.h"
 
 Bool GuestInfoGetFqdn(int outBufLen, char fqdn[]);
-Bool GuestInfoGetNicInfo(NicInfo *nicInfo);
+Bool GuestInfoGetNicInfo(GuestNicInfo *nicInfo);
 void GuestInfoMemset(void * mem, int value, unsigned int size);
-Bool GuestInfoGetDiskInfo(PDiskInfo di);
-Bool GuestInfoGetOSName(unsigned int outBufFullLen, unsigned int outBufLen, 
+Bool GuestInfoGetDiskInfo(PGuestDiskInfo di);
+Bool GuestInfoGetOSName(unsigned int outBufFullLen, unsigned int outBufLen,
                         char *osNameFull, char *osName);
 int GuestInfo_GetSystemBitness(void);
-Bool GuestInfo_PerfMon(struct MemInfo *vmStats);
+Bool GuestInfo_PerfMon(struct GuestMemInfo *vmStats);
 
-NicEntry *GuestInfoAddNicEntry(NicInfo *nicInfo, const char macAddress[MAC_ADDR_SIZE]);
+NicEntry *GuestInfoAddNicEntry(GuestNicInfo *nicInfo,
+                               const char macAddress[MAC_ADDR_SIZE]);
 VmIpAddressEntry *GuestInfoAddIpAddress(NicEntry *nicEntry,
                                         const char *ipAddr,
                                         const uint32 af_type);
 void GuestInfoAddSubnetMask(VmIpAddressEntry *ipAddressEntry,
                             const uint32 subnetMaskBits);
 
-NicEntry *GuestInfoFindMacAddress(NicInfo *nicInfo, const char *macAddress);
+NicEntry *GuestInfoFindMacAddress(GuestNicInfo *nicInfo, const char *macAddress);
 
 
 #endif
index c855b18626ccabb8020b3cc67f16024a834ba6a4..b29f3feb9dfecea44aff9592505d6e0bd3958f62 100644 (file)
@@ -83,5 +83,10 @@ typedef enum {
 #define GUESTMSG_FLAG_COOKIE 0x80000000
 #define GUESTMSG_FLAG_ALL GUESTMSG_FLAG_COOKIE
 
+/*
+ * Maximum size of incoming message. This is to prevent denial of host service
+ * attacks from guest applications.
+ */
+#define GUESTMSG_MAX_IN_SIZE (64 * 1024)
 
 #endif /* _GUEST_MSG_DEF_H_ */
index 5758ab9439df0e4406cc03d1e7df74a4606cf8ff..ca077d6cc341ae58e652bae2984bb5a8176989b4 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef _GUEST_OS_H_
 #define _GUEST_OS_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
index 715278bb783d8deb1c649b1d6227827f1eb44f39..8d057bcd5eec7499787f4edf0f463dd2aa6ef886 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _HASH_TABLE_H_
 #define _HASH_TABLE_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
index 367d99182ed169457138a42e7f844833709d0e5e..e1a59c58e97744752d25d4a4001640741971ed69 100644 (file)
@@ -112,6 +112,15 @@ typedef enum {
 #define HGFS_VERSION_OLD           (1 << 0)
 #define HGFS_VERSION_3             (1 << 1)
 
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
+#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
+
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
+#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
+
+
 /*
  * File types, used in HgfsAttr. We support regular files,
  * directories, and symlinks.
index 24f70ce7a37a078d17d17cfec4d676f727e4bc12..18cc25aba71587f2e628f67fefc5b662423a53dd 100644 (file)
 
 #include "vm_basic_types.h"
 
-/* 
+/*
  * Definitions of wrapped internal primitives.
  *
  * We wrap open file handles and directory entries so that cross-platform HGFS
  * server code can use them without platform-specific pre-processing.
  *
- * On Linux, we use dirent64 from the kernel headers so as to alleviate any 
- * confusion between what the kernel will give us from the getdents64() 
+ * On Linux, we use dirent64 from the kernel headers so as to alleviate any
+ * confusion between what the kernel will give us from the getdents64()
  * syscall and what userspace will expect. Note that to avoid depending on
  * kernel headers directly, I've copied the dirent struct, replacing certain
  * kernel basic types with our own.
  *
- * On Windows, we define our own DirectoryEntry struct with d_reclen and 
- * d_name, as those are the only two fields we're interested in. It's not 
- * essential that it match the dirents from another platform, because we 
+ * On Windows, we define our own DirectoryEntry struct with d_reclen and
+ * d_name, as those are the only two fields we're interested in. It's not
+ * essential that it match the dirents from another platform, because we
  * control how they get created and populated, and they never pass down a wire.
  *
- * Otherwise, we use the native dirent struct provided by the platform's libc, 
- * as nobody else seems to suffer from the 32-bit vs. 64-bit ino_t and off_t 
+ * Otherwise, we use the native dirent struct provided by the platform's libc,
+ * as nobody else seems to suffer from the 32-bit vs. 64-bit ino_t and off_t
  * insanity that plagues Linux.
  */
 #ifndef _WIN32
@@ -75,8 +75,8 @@
 #include "hgfsUtil.h"   // for HgfsInternalStatus
 #include "syncMutex.h"
 
-/* 
- * Does this platform have oplock support? We define it here to avoid long 
+/*
+ * Does this platform have oplock support? We define it here to avoid long
  * ifdefs all over the code. For now, Linux and Windows hosts only.
  *
  * XXX: Just kidding, no oplock support yet.
@@ -106,7 +106,7 @@ typedef enum {
 typedef enum {
    DIRECTORY_SEARCH_TYPE_DIR,       /* Objects are files and subdirectories */
    DIRECTORY_SEARCH_TYPE_BASE,      /* Objects are shares */
-   DIRECTORY_SEARCH_TYPE_OTHER,     /* Objects are the contents of 
+   DIRECTORY_SEARCH_TYPE_OTHER,     /* Objects are the contents of
                                        "root/drive" or contents of "root" */
 } DirectorySearchType;
 
@@ -116,9 +116,9 @@ typedef enum {
    VOLUME_INFO_TYPE_MAX,
 } VolumeInfoType;
 
-/* 
- * The "default" share access is used in cross-platform code, so it's helpful 
- * to have a single macro for accessing it. 
+/*
+ * The "default" share access is used in cross-platform code, so it's helpful
+ * to have a single macro for accessing it.
  */
 #ifdef _WIN32
 #  define HGFS_DEFAULT_SHARE_ACCESS (FILE_SHARE_READ | FILE_SHARE_WRITE | \
@@ -216,9 +216,9 @@ typedef struct HgfsSearch {
    /* Number of dents */
    uint32 numDents;
 
-   /* 
-    * What type of search is this (what objects does it track)? This is 
-    * important to know so we can do the right kind of stat operation later 
+   /*
+    * What type of search is this (what objects does it track)? This is
+    * important to know so we can do the right kind of stat operation later
     * when we want to retrieve the attributes for each dent.
     */
    DirectorySearchType type;
@@ -232,22 +232,22 @@ typedef struct HgfsSearch {
  * The main reason for these structs is data abstraction -- we pass
  * a struct around instead of the individual parameters. This way
  * as more parameters are implemented, we don't have to add more
- * parameters to the functions, instead just extend the structs. 
+ * parameters to the functions, instead just extend the structs.
  */
+
 typedef struct HgfsFileOpenInfo {
    HgfsOp requestType;
    HgfsHandle file;                  /* Opaque file ID used by the server */
    HgfsOpenValid mask;               /* Bitmask that specified which fields are valid. */
-   HgfsOpenMode mode;                /* Which type of access requested. See desiredAccess */       
-   HgfsOpenFlags flags;              /* Which flags to open the file with */                  
-   HgfsPermissions specialPerms;     /* Desired 'special' permissions for file creation */      
-   HgfsPermissions ownerPerms;       /* Desired 'owner' permissions for file creation */      
-   HgfsPermissions groupPerms;       /* Desired 'group' permissions for file creation */      
-   HgfsPermissions otherPerms;       /* Desired 'other' permissions for file creation */      
-   HgfsAttrFlags attr;               /* Attributes, if any, for file creation */                 
-   uint64 allocationSize;            /* How much space to pre-allocate during creation */       
-   uint32 desiredAccess;             /* Extended support for windows access modes */            
+   HgfsOpenMode mode;                /* Which type of access requested. See desiredAccess */
+   HgfsOpenFlags flags;              /* Which flags to open the file with */
+   HgfsPermissions specialPerms;     /* Desired 'special' permissions for file creation */
+   HgfsPermissions ownerPerms;       /* Desired 'owner' permissions for file creation */
+   HgfsPermissions groupPerms;       /* Desired 'group' permissions for file creation */
+   HgfsPermissions otherPerms;       /* Desired 'other' permissions for file creation */
+   HgfsAttrFlags attr;               /* Attributes, if any, for file creation */
+   uint64 allocationSize;            /* How much space to pre-allocate during creation */
+   uint32 desiredAccess;             /* Extended support for windows access modes */
    uint32 shareAccess;               /* Windows only, share access modes */
    HgfsServerLock desiredLock;       /* The type of lock desired by the client */
    HgfsServerLock acquiredLock;      /* The type of lock acquired by the server */
@@ -453,13 +453,13 @@ HgfsPackOpenReply(HgfsFileOpenInfo *openInfo,   // IN: open info struct
 Bool
 HgfsUnpackGetattrRequest(char const *packetIn,       // IN: request packet
                          size_t packetSize,          // IN: request packet size
-                         HgfsFileAttrInfo *attrInfo, // IN/OUT: unpacked attr struct 
+                         HgfsFileAttrInfo *attrInfo, // IN/OUT: unpacked attr struct
                          HgfsAttrHint *hints,        // OUT: getattr hints
                          char **cpName,              // OUT: cpName
                          size_t *cpNameSize,         // OUT: cpName size
                          HgfsHandle *file,           // OUT: file handle
                         uint32 *caseFlags);         // OUT: case-sensitivity flags
-                                                     
+
 Bool
 HgfsUnpackDeleteRequest(char const *packetIn,       // IN: request packet
                         size_t packetSize,          // IN: request packet size
@@ -467,7 +467,7 @@ HgfsUnpackDeleteRequest(char const *packetIn,       // IN: request packet
                         size_t *cpNameSize,         // OUT: cpName size
                         HgfsDeleteHint *hints,      // OUT: delete hints
                         HgfsHandle *file,           // OUT: file handle
-                       uint32 *caseFlags);         // OUT: case-sensitivity flags 
+                       uint32 *caseFlags);         // OUT: case-sensitivity flags
 
 Bool
 HgfsPackDeleteReply(char *packetOut,               // IN/OUT: outgoing packet
@@ -497,8 +497,8 @@ HgfsPackGetattrReply(HgfsFileAttrInfo *attr,     // IN: attr stucture
                      char *packetOut,            // IN/OUT: outgoing packet
                      size_t *packetSize);        // IN/OUT: size of packet
 
-Bool 
-HgfsUnpackSearchReadRequest(const char *packetIn,         // IN: request packet  
+Bool
+HgfsUnpackSearchReadRequest(const char *packetIn,         // IN: request packet
                             size_t packetSize,            // IN: packet size
                             HgfsFileAttrInfo *attr,       // OUT: unpacked attr struct
                             HgfsHandle *hgfsSearchHandle, // OUT: hgfs search handle
@@ -511,15 +511,15 @@ HgfsPackSearchReadReply(const char *utf8Name,      // IN: file name
                         char *packetOut,           // IN/OUT: outgoing packet
                         size_t *packetSize);       // IN/OUT: size of packet
 
-Bool 
+Bool
 HgfsUnpackSetattrRequest(char const *packetIn,            // IN: request packet
                          size_t packetSize,               // IN: request packet size
-                         HgfsFileAttrInfo *attr,          // IN/OUT: getattr info 
+                         HgfsFileAttrInfo *attr,          // IN/OUT: getattr info
                          HgfsAttrHint *hints,             // OUT: setattr hints
                          char **cpName,                   // OUT: cpName
                          size_t *cpNameSize,              // OUT: cpName size
                          HgfsHandle *file,                // OUT: server file ID
-                        uint32 *caseFlags);              // OUT: case-sensitivity flags 
+                        uint32 *caseFlags);              // OUT: case-sensitivity flags
 
 Bool
 HgfsPackSetattrReply(char *packetOut,           // IN/OUT: outgoing packet
@@ -551,7 +551,7 @@ HgfsIsServerLockAllowed(void);
 
 Bool
 HgfsHandle2FileDesc(HgfsHandle handle,    // IN: Hgfs file handle
-                    fileDesc *fd);        // OUT: OS handle (file descriptor) 
+                    fileDesc *fd);        // OUT: OS handle (file descriptor)
 
 Bool
 HgfsFileDesc2Handle(fileDesc fd,          // IN: OS handle (file descriptor)
@@ -639,7 +639,7 @@ HgfsServerConvertCase(HgfsSharedFolder *share,  // IN
 
 /* All oplock-specific functionality is defined here. */
 #ifdef HGFS_OPLOCKS
-void 
+void
 HgfsServerOplockBreak(ServerLockData *data); // IN: server lock info
 
 void
index 1312802df5cd0fdb627b8c4c6781773dfdb9ed70..81c5f6a1587bb79229edd7dfce98e872b4a1df3b 100644 (file)
@@ -48,27 +48,40 @@ typedef struct HgfsSharedFolder {
                 * Path of share in server's filesystem. Should
                 * not include final path separator.
                 */
-   size_t nameLen;   /* Length of name string */
-   size_t pathLen;   /* Length of path string */
-   Bool readAccess;  /* Read permission for this share */
-   Bool writeAccess; /* Write permission for this share */
+   char *shareTags;     /* Tags associated with this share (comma delimited). */
+   size_t shareTagsLen; /* Length of shareTag string */
+   size_t nameLen;      /* Length of name string */
+   size_t pathLen;      /* Length of path string */
+   Bool readAccess;     /* Read permission for this share */
+   Bool writeAccess;    /* Write permission for this share */
 } HgfsSharedFolder;
 
+typedef struct HgfsServerPolicy_ShareList {
+   size_t count;
+   char **shareNames;
+} HgfsServerPolicy_ShareList;
+
 /* Defined in hgfsServerInt.h */
 HgfsGetNameFunc HgfsServerPolicy_GetShares;
 HgfsInitFunc HgfsServerPolicy_GetSharesInit;
 HgfsCleanupFunc HgfsServerPolicy_GetSharesCleanup;
 
 HgfsNameStatus
-HgfsServerPolicy_GetSharePath(char const *nameIn,         // IN: 
-                              size_t nameInLen,           // IN: 
-                              HgfsOpenMode mode,          // IN: 
-                              size_t *sharePathLen,       // OUT: 
-                              char const **sharePath,     // OUT: 
+HgfsServerPolicy_GetSharePath(char const *nameIn,         // IN:
+                              size_t nameInLen,           // IN:
+                              HgfsOpenMode mode,          // IN:
+                              size_t *sharePathLen,       // OUT:
+                              char const **sharePath,     // OUT:
                               HgfsSharedFolder **share);  // OUT:
 HgfsNameStatus
 HgfsServerPolicy_GetShareMode(char const *nameIn,        // IN: Share name to retrieve
                               size_t nameInLen,          // IN: Length of Share name
                               HgfsOpenMode *mode);       // OUT: Share's access mode
 
+void
+HgfsServerPolicy_FreeShareList(HgfsServerPolicy_ShareList *shareList); // IN: list to free
+
+HgfsServerPolicy_ShareList *
+HgfsServerPolicy_GetSharesWithTag(const char *tag); // IN: tag to search for
+
 #endif // _HGFS_SERVER_POLICY_H_
index 4747844ab0a19973f2f2fe19a81c3dc2a5c3b204..0d61eaed44301ab45b2b7bbbb572a5fc8660894e 100644 (file)
@@ -91,14 +91,6 @@ struct timespec {
 #define HGFS_NAME_BUFFER_SIZE(request) (HGFS_PACKET_MAX - (sizeof *request - 1))
 #define HGFS_NAME_BUFFER_SIZET(sizet) (HGFS_PACKET_MAX - (sizet) - 1)
 
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
-#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
-
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
-#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
-
 #ifndef _WIN32
 /*
  * Routines for converting between Win NT and unix time formats. The
index 23de413756f44c4402cd132a37b2246006549b71..50ee510b015388d490d9dfb0585d712a8e6c9c3a 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef _LOGLEVEL_DEFS_H_
 #define _LOGLEVEL_DEFS_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMMEXT
 #define INCLUDE_ALLOW_VMCORE
index 280e0bfa4e6fac7753b852c93e3189037d954ec1..8b7e38cf7f2c685e2df50e65ff231bf01e9ea387 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef _LOGLEVEL_USER_H_
 #define _LOGLEVEL_USER_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #include "includeCheck.h"
 
@@ -75,6 +76,7 @@
    LOGLEVEL_VAR(pci_hyper), \
    LOGLEVEL_VAR(pcibridge), \
    LOGLEVEL_VAR(vide), \
+   LOGLEVEL_VAR(ideCdrom), \
    LOGLEVEL_VAR(hostonly), \
    LOGLEVEL_VAR(backdoorAbsMouse), \
    LOGLEVEL_VAR(oprom), \
    LOGLEVEL_VAR(macfilter), \
    LOGLEVEL_VAR(macbw), \
    LOGLEVEL_VAR(macfi), \
+   LOGLEVEL_VAR(vmkcfg), \
    LOGLEVEL_VAR(vmxfer), \
    LOGLEVEL_VAR(poll), \
    LOGLEVEL_VAR(barrier), \
index 3733ba54ea8eb93db0c9c44372b41b94b52a2b9c..a6fc3091df918426c03b0474ef867476361fcd09 100644 (file)
@@ -148,6 +148,8 @@ EXTERN void Msg_Append(const char *idFmt, ...)
        PRINTF_DECL(1, 2);
 EXTERN void Msg_Post(MsgSeverity severity, const char *idFmt, ...)
        PRINTF_DECL(2, 3);
+EXTERN void Msg_PostMsgList(MsgSeverity severity, Msg_List *msg);
+
 EXTERN char *Msg_Format(const char *idFmt, ...)
        PRINTF_DECL(1, 2);
 EXTERN char *Msg_VFormat(const char *idFmt, va_list arguments);
@@ -158,6 +160,7 @@ EXTERN void Msg_AppendMsgList(char* id,
                               char* fmt,
                               MsgFmt_Arg *args,
                               int numArgs);
+EXTERN Msg_List *Msg_VCreateMsgList(const char *idFmt, va_list args);
 
 /*
  * Unfortunately, gcc warns about both NULL and "" being passed as format
@@ -178,6 +181,7 @@ EXTERN void Msg_LazyProgressEnd(void *handle);
 EXTERN HintResult Msg_Hint(Bool defaultShow, HintOptions options,
                            const char *idFmt, ...)
        PRINTF_DECL(3, 4);
+EXTERN HintResult Msg_HintMsgList(Bool defaultShow, HintOptions options, Msg_List *msg);
 EXTERN int Msg_CompareAnswer(Msg_String const *buttons, unsigned answer,
                             const char *string);
 EXTERN char *Msg_GetString(const char *idString);
index 30d527d755456de178c79dda5d744c45af8e6708..e07f219b55066a96776de74f289cab821a7a6320 100644 (file)
@@ -27,6 +27,7 @@
 #ifndef STATS_USER_DEFS_H
 #define STATS_USER_DEFS_H
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
index 0f9e25003b9b352563f5056c2a8e2bd4f16a909c..eeb742b048ae1592a663852148e00b833bc553b2 100644 (file)
@@ -16,6 +16,7 @@
  *
  *********************************************************/
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
index 42c7c165934ae040a1e8999bc60319f5a55dd4df..206381d2d59aff8e349b4eac38d55ad897a547c6 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _STR_H_
 #define _STR_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
index 7c2bf1dc22b97827f1dbbdab9b3681ef4029a255..839b453e5b8fd2aa83262379d4b8bb3970b35b81 100644 (file)
@@ -72,11 +72,19 @@ typedef enum {OS_DETAIL_WIN95           = 1,
               OS_DETAIL_WIN2K3_BUS      = 16,
               OS_DETAIL_VISTA           = 17,
               OS_DETAIL_UNKNOWN         = 18} OS_DETAIL_TYPE;
+typedef void (*DesktopSwitchNotifyCB)(void *);
+typedef struct {
+   DesktopSwitchNotifyCB cb;   // callback to invoke.
+   void *cbdata;               // data to pass to callback
+} DesktopSwitchThreadArgs;
 
 BOOL System_SetProcessPrivilege(char *lpszPrivilege, Bool bEnablePrivilege);
 OS_TYPE System_GetOSType(void);
 OS_DETAIL_TYPE System_GetOSDetailType(void);
 int32 System_GetSPVersion(void);
+Bool System_IsLoginScreenActive(void);
+Bool System_StartDesktopSwitchThread(DesktopSwitchThreadArgs *args);
+void System_KillDesktopSwitchThread(void);
 #endif
 
 
index 8b8be3866ca83cb6660eecfff0527dca541e2076..2a4cdfab8058b0389a0d7d6052e6ef1b71b420d7 100644 (file)
@@ -44,6 +44,8 @@
 #define INCLUDE_ALLOW_VMNIXMOD
 #include "includeCheck.h"
 
+#include <string.h>
+
 #include "unicodeBase.h"
 #include "vm_assert.h"
 
@@ -58,6 +60,7 @@ extern "C" {
  * Pass -1 for any length parameter to indicate "from start until end
  * of string".
  */
+
 int Unicode_CompareRange(ConstUnicode str1,
                          UnicodeIndex str1Start,
                          UnicodeIndex str1Length,
@@ -96,6 +99,44 @@ Unicode Unicode_Join(ConstUnicode first,
 Unicode Unicode_Format(const char *fmt, ...);
 
 
+/*
+ * Simple in-line functions that may be used below.
+ */
+
+
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * Unicode_IsIndexAtCodePointBoundary --
+ *
+ *      Check a string index for code point boundary.
+ *
+ *     The index must be valid (>= 0 and <= string length).
+ *     The end of the string is considered a valid boundary.
+ *
+ * Results:
+ *      TRUE if index is at a code point boundary.
+ *
+ * Side effects:
+ *      Panic if index is not valid.
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+static INLINE Bool
+Unicode_IsIndexAtCodePointBoundary(ConstUnicode str,    // IN
+                                   UnicodeIndex index)  // IN
+{
+   ASSERT(index >= 0 && index <= Unicode_LengthInCodeUnits(str));
+
+#ifdef SUPPORT_UNICODE_OPAQUE
+   NOT_IMPLEMENTED();
+#else
+   return (str[index] & 0xc0) != 0x80;
+#endif
+}
+
+
 /*
  * Other operations, each based upon calls to primitives.
  */
@@ -253,20 +294,34 @@ static INLINE Bool
 Unicode_EndsWith(ConstUnicode str,    // IN
                  ConstUnicode suffix) // IN
 {
+#ifdef SUPPORT_UNICODE_OPAQUE
    UnicodeIndex strLength = Unicode_LengthInCodeUnits(str);
    UnicodeIndex suffixLength = Unicode_LengthInCodeUnits(suffix);
+   UnicodeIndex offset = strLength - suffixLength;
 
    if (suffixLength > strLength) {
       return FALSE;
    }
+   if (!Unicode_IsIndexAtCodePointBoundary(str, offset)) {
+      return FALSE;
+   }
 
    return Unicode_CompareRange(str,
-                               strLength - suffixLength,
+                               offset,
                                suffixLength,
                                suffix,
                                0,
                                suffixLength,
                                FALSE) == 0;
+#else
+   size_t strLength = strlen(str);
+   size_t suffixLength = strlen(suffix);
+
+   if (suffixLength > strLength) {
+      return FALSE;
+   }
+   return strcmp(str + strLength - suffixLength, suffix) == 0;
+#endif
 }
 
 
@@ -648,8 +703,17 @@ static INLINE Bool
 Unicode_StartsWith(ConstUnicode str,    // IN
                    ConstUnicode prefix) // IN
 {
+#ifdef SUPPORT_UNICODE_OPAQUE
+   UnicodeIndex strLength = Unicode_LengthInCodeUnits(str);
    UnicodeIndex prefixLength = Unicode_LengthInCodeUnits(prefix);
 
+   if (prefixLength > strLength) {
+      return FALSE;
+   }
+   if (!Unicode_IsIndexAtCodePointBoundary(str, prefixLength)) {
+      return FALSE;
+   }
+
    return Unicode_CompareRange(str,
                                0,
                                prefixLength,
@@ -657,6 +721,9 @@ Unicode_StartsWith(ConstUnicode str,    // IN
                                0,
                                prefixLength,
                                FALSE) == 0;
+#else
+   return strncmp(str, prefix, strlen(prefix)) == 0;
+#endif
 }
 
 
index e2801f9783523b7751512b59f41624c975500f2c..214c5000f6660e32c555a66afd272202c8263e6d 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _UNICODE_TYPES_H_
 #define _UNICODE_TYPES_H_
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #define INCLUDE_ALLOW_VMKERNEL
index 232d68b507e5c6b592e273505c6a55a30c3584c7..de338a4248949b3363a512066e9e3b4a69dce856 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef UTIL_H
 #define UTIL_H
 
+#define INCLUDE_ALLOW_MODULE
 #define INCLUDE_ALLOW_USERLEVEL
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
@@ -83,7 +84,9 @@ EXTERN Bool Util_Data2Buffer(char *buf, size_t bufSize, const void *data0,
                              size_t dataSize);
 EXTERN char *Util_GetCanonicalPath(const char *path);
 #ifdef _WIN32
-EXTERN char *Util_GetLowerCaseCanonicalPath(const char *path);
+EXTERN char *Util_CompatGetCanonicalPath(const char *path);
+EXTERN char *Util_GetCanonicalPathForHash(const char *path);
+EXTERN char *Util_CompatGetLowerCaseCanonicalPath(const char* path);
 #endif
 EXTERN int Util_BumpNoFds(uint32 *cur, uint32 *wanted);
 EXTERN Bool Util_CanonicalPathsIdentical(const char *path1, const char *path2);
index 16698e4b43cf2c48a14e3b4409b2ea3eafca1792..f488d8b50f7bc5e91e8a477f0a590e1e124f9dec 100644 (file)
@@ -897,6 +897,16 @@ struct VixMsgSnapshotUpdateEvent {
 #include "vmware_pack_end.h"
 VixMsgSnapshotUpdateEvent;
 
+typedef
+#include "vmware_pack_begin.h"
+struct VixMsgSnapshotMRURequest {
+   VixCommandRequestHeader    header;
+
+   int32                      snapshotId;
+   int32                      maxMRU;
+}
+#include "vmware_pack_end.h"
+VixMsgSnapshotMRURequest;
 
 /*
  * Fork a running VM.
@@ -949,6 +959,15 @@ struct VixMsgRecordReplayEvent {
 #include "vmware_pack_end.h"
 VixMsgRecordReplayEvent;
 
+typedef
+#include "vmware_pack_begin.h"
+struct VixMsgTimeMarkerEncounteredEvent {
+   VixMsgEventHeader        eventHeader;      
+   uint32                   propertyListSize;
+}
+#include "vmware_pack_end.h"
+VixMsgTimeMarkerEncounteredEvent;
+
 typedef
 #include "vmware_pack_begin.h"
 struct VixMsgDebuggerEvent {
@@ -983,33 +1002,29 @@ struct VixMsgVMSnapshotSetReplaySpeedRequest {
 #include "vmware_pack_end.h"
 VixMsgVMSnapshotSetReplaySpeedRequest;
 
-typedef uint32 VixReplayStopAtType;
-enum {
-   VIX_REPLAY_STOPAT_EIPECXBRCNT  = 1,
-};
-
 typedef
 #include "vmware_pack_begin.h"
-struct VixMsgVMSetReplayStopAtRequest {
+struct VixMsgVMAddTimeMarkerRequest {
    VixCommandRequestHeader    header;
-
-   int32                      options;
-   VixReplayStopAtType        stopAtType;
+   uint32                     options;
+   uint32                     action;
+   uint32                     propertyListSize;
 }
 #include "vmware_pack_end.h"
-VixMsgVMSetReplayStopAtRequest;
+VixMsgVMAddTimeMarkerRequest;
 
 typedef
 #include "vmware_pack_begin.h"
-struct VixMsgVMSetReplayStopAtEipEcxBrCntRequest {
-   VixMsgVMSetReplayStopAtRequest   stopAtCommonRequest;
-   uint32                           mask;
-   uint64                           eip;
-   uint64                           ecx;
-   int64                            brCnt;
+struct VixMsgVMGetTimeMarkerRequest {
+   VixCommandRequestHeader    header;
+   uint32                     options;
+   uint32                     whence;
+   uint32                     index;
+   uint32                     propertyListSize;
 }
 #include "vmware_pack_end.h"
-VixMsgVMSetReplayStopAtEipEcxBrCntRequest;
+VixMsgVMGetTimeMarkerRequest;
+
 
 /*
  * Fault Tolerance Automation
@@ -1825,7 +1840,19 @@ struct VixMsgDetachDebuggerResponse {
 #include "vmware_pack_end.h"
 VixMsgDetachDebuggerResponse;
 
+/*
+ * **********************************************************
+ * VM Pause state change event format
+ */
 
+typedef
+#include "vmware_pack_begin.h"
+struct VixMsgPauseStateChangedEvent {
+   VixMsgEventHeader          eventHeader;
+   Bool                       paused;
+}
+#include "vmware_pack_end.h"
+VixMsgPauseStateChangedEvent;
 
 
 /*
@@ -2034,7 +2061,7 @@ enum {
    VIX_COMMAND_REFRESH_RUNTIME_PROPERTIES       = 129,
 
    VIX_COMMAND_GET_SNAPSHOT_SCREENSHOT          = 130,
-   VIX_COMMAND_SET_REPLAY_STOP_POINT            = 131,
+   VIX_COMMAND_ADD_TIMEMARKER                   = 131,
 
    VIX_COMMAND_WAIT_FOR_USER_ACTION_IN_GUEST    = 132,
    VIX_COMMAND_VMDB_END_TRANSACTION             = 133,
@@ -2062,7 +2089,13 @@ enum {
    
    VIX_COMMAND_GET_VMX_DEVICE_STATE             = 151,
 
-   VIX_COMMAND_LAST_NORMAL_COMMAND              = 152,
+   VIX_COMMAND_GET_NUM_TIMEMARKERS              = 152,
+   VIX_COMMAND_GET_TIMEMARKER                   = 153,
+   VIX_COMMAND_REMOVE_TIMEMARKER                = 154,
+
+   VIX_COMMAND_SNAPSHOT_SET_MRU                 = 156,
+
+   VIX_COMMAND_LAST_NORMAL_COMMAND              = 157,
    VIX_TEST_UNSUPPORTED_TOOLS_OPCODE_COMMAND    = 998,
    VIX_TEST_UNSUPPORTED_VMX_OPCODE_COMMAND      = 999,
 };
index 7dc4e165264c0f28a78bce231e0c7c525f09b722..ed82f45b3889b332d30f34842080ceaa6ab8d00a 100644 (file)
@@ -286,7 +286,7 @@ uint64set(void *dst, uint64 val, uint64 count)
  *-----------------------------------------------------------------------------
  */
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(_MSC_VER)
 
 static INLINE void
 Div643232(uint64 dividend,   // IN
@@ -294,8 +294,8 @@ Div643232(uint64 dividend,   // IN
           uint32 *quotient,  // OUT
           uint32 *remainder) // OUT
 {
-   *quotient = dividend / divisor;
-   *remainder = dividend % divisor;
+   *quotient = (uint32)(dividend / divisor);
+   *remainder = (uint32)(dividend % divisor);
 }
 
 #endif
index 05674b8c50306a23bda4e0719be9fe8926508479..f82aabb9adaae67fd39ee5a68f6aa60586783b9f 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index 2522d12fb0f75536af6337420338bb189890a58a..b033753b9ca537eb935aada4597890a6c0546c76 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index 6ccf149aca9fdfc65bcff4f1426df0a588580ff8..e24ee3e1006f880a29719acbc00ce98635cc4883 100644 (file)
  *
  * XXX: The extract-macro script should be updated to handle this special case.
  */
-#define TOOLS_VERSION "2008.05.02"
+#define TOOLS_VERSION "2008.05.15"
 
 #ifdef VMX86_VPX
 #define VIM_API_TYPE "VirtualCenter"
index 69b3b382e26f4a441f78376b5fcf3602e13fe843..7171d0a30740cc34b197072106240cb0a19827ba 100644 (file)
 #define VMBACKUP_EVENT_WRITER_ERROR       "req.writerError"
 #define VMBACKUP_EVENT_KEEP_ALIVE         "req.keepAlive"
 
+/* These are the event codes sent with the events */
+typedef enum {
+   VMBACKUP_SUCCESS = 0,
+   VMBACKUP_INVALID_STATE,
+   VMBACKUP_SCRIPT_ERROR,
+   VMBACKUP_SYNC_ERROR,
+   VMBACKUP_REMOTE_ABORT,
+   VMBACKUP_UNEXPECTED_ERROR
+} VmBackupStatus;
+
 /* Event name used for communnication between the VSS components. */
 #ifdef _WIN32
 #define VMVSS_RESUME_MSG   TEXT("VmVss_ResumeSnapshotProvider")
index fe58c02ec01ba47e25fb52eb870b3b7578c97350..934b0d34bcc74161916377a806b1b08b2b7d6599 100644 (file)
 # define VMBLOCK_CONTROL_DIRNAME        VMBLOCK_FS_NAME
 # define VMBLOCK_CONTROL_DEVNAME        "dev"
 # define VMBLOCK_CONTROL_MOUNTPOINT     "mountPoint"
+# define VMBLOCK_CONTROL_PROC_DIRNAME  "fs/" VMBLOCK_CONTROL_DIRNAME
 
-# define VMBLOCK_MOUNT_POINT            "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_MOUNT_POINT            "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_MOUNTPOINT
-# define VMBLOCK_DEVICE                 "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_DEVICE                 "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_DEVNAME
 # define VMBLOCK_DEVICE_MODE            O_WRONLY
 # define VMBLOCK_CONTROL(fd, op, path)  write(fd, path, op)
index 45729115ec80d966594a81c4683a421ce0bcf09f..c84a9c9c4c416c0cb40fea169da1796965b631d1 100644 (file)
@@ -390,10 +390,14 @@ FLAGDEFA( 81, EDX, AMD,    31,  1, 3DNOW,               HOST,    0, TRUE,  3DNOW
 
 /*    LEVEL, REG, VENDOR, POS, SIZE, NAME,   MASK TYPE, SET TO, CPL3, [FUNC] */
 #define CPUID_FIELD_DATA_LEVEL_8x                                              \
-FIELDDEF( 86, ECX, AMD,     0,  8, CACHE_LINE,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,     8,  4, CACHE_LINE_PER_TAG,  IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    12,  4, CACHE_WAYS,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    16, 16, CACHE_SIZE,          IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     0,  8, L2CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     8,  4, L2CACHE_LINE_PER_TAG, IGNORE, 0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    12,  4, L2CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    16, 16, L2CACHE_SIZE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     0,  8, L3CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     8,  4, L3CACHE_LINE_PER_TAG,IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    12,  4, L3CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    18, 14, L3CACHE_SIZE,        IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     0,  1, TS,                  IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     1,  1, FID,                 IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     2,  1, VID,                 IGNORE,  0, FALSE)            \
@@ -595,6 +599,7 @@ FIELD_FUNC(MWAIT_C4_SUBSTATE, CPUID_INTEL_ID5EDX_MWAIT_C4_SUBSTATE)
 #define CPUID_MODEL_CORE       14
 #define CPUID_MODEL_CORE2      15
 #define CPUID_MODEL_PENRYN     0x17  // Effective model
+#define CPUID_MODEL_NEHALEM    0x1a  // Effective model
 
 static INLINE uint32
 CPUID_EFFECTIVE_FAMILY(uint32 v) /* %eax from CPUID with %eax=1. */
index 6ae9c6c67d6aee853c15979b996cd507c3b6398f..924dec43539afe87efa4d212e0916903d0ddbe94 100644 (file)
@@ -22,8 +22,5 @@ libMessage_a_SOURCES += message.c
 libMessage_a_SOURCES += messageBackdoor.c
 libMessage_a_SOURCES += messageStub.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 SUBDIRS =
 SUBDIRS += shared
index 913657dd8d8829f78b9e0b1d414c5619004cf9d3..6a03c8b76ad9192fd398a913c99b19e54ea6f6c0 100644 (file)
@@ -101,8 +101,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -113,8 +111,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -125,12 +123,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -141,14 +139,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -163,7 +161,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -171,7 +169,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -231,7 +229,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libMessage.a
 libMessage_a_SOURCES = message.c messageBackdoor.c messageStub.c
-AM_CFLAGS = @COMMON_CFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index 4113d2f21a9731fb63151e3b2476e12d411ae873..b07d6cd959efecb7b2474579523a5ccc34f9789a 100644 (file)
@@ -21,6 +21,3 @@ libMessage_la_SOURCES =
 libMessage_la_SOURCES += ../message.c
 libMessage_la_SOURCES += ../messageBackdoor.c
 libMessage_la_SOURCES += ../messageStub.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index b193ad23a3c7869ceb5e743a8cbdfe2f8ab8b8e5..b373c2bd4fa9c1cc3078a61b588d2c03c1a7d4a6 100644 (file)
@@ -89,8 +89,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -101,8 +99,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -113,12 +111,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -129,14 +127,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -151,7 +149,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -159,7 +157,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libMessage.la
 libMessage_la_SOURCES = ../message.c ../messageBackdoor.c \
        ../messageStub.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 2d004b85f4385f8397590364e1bf44ff1cdcec7b..ce0d242ac6ba64aba459557a4cf6b3c17f244afa 100644 (file)
@@ -43,9 +43,7 @@ if NO_ICU
 libMisc_a_SOURCES += codeset.c
 endif
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_MISC_CFLAGS@
+AM_CFLAGS = @LIB_MISC_CPPFLAGS@
 
 SUBDIRS =
 SUBDIRS += shared
index 7e276ce2349abcbb0c4e281f799942d736f1e16b..62ccd7b830333a564796d02b5608d463c263064b 100644 (file)
@@ -114,8 +114,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -126,8 +124,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -138,12 +136,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -154,14 +152,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -176,7 +174,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -184,7 +182,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -248,7 +246,7 @@ libMisc_a_SOURCES = atomic.c base64.c codesetOld.c dbllnklst.c \
        hostname.c idLinux.c iovector.c machineID.c miscSolaris.c \
        random.c timeutil.c util_misc.c vmstdio.c posixPosix.c \
        posixDlopen.c $(am__append_1)
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_MISC_CFLAGS@
+AM_CFLAGS = @LIB_MISC_CPPFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index cdb969ee60c1137a192e81e007e55f775874ace1..762a07763a5fc9f07554352ee42000918c8325e4 100644 (file)
  */
 
 
-/*
- * Windows have their own logic for conversion.  On Posix systems with iconv
- * available we use iconv.  On systems without iconv use simple 1:1 translation
- * for UTF8 <-> Current.  We also use 1:1 translation also for MacOS's conversion
- * between 'current' and 'UTF-8', as MacOS is UTF-8 only.
- */
-
 #if defined(_WIN32)
 #   include <windows.h>
 #   include <malloc.h>
 #   include <str.h>
 #else
-#   define _GNU_SOURCE
+#   if defined(__linux__)
+#      define _GNU_SOURCE      // see nl_langinfo_l explanation below
+#   endif
 #   include <string.h>
 #   include <stdlib.h>
 #   include <errno.h>
-#   if !defined(CURRENT_IS_UTF8)
-#      include <locale.h>
-#      ifndef LC_CTYPE_MASK  // Prior to glibc 2.3
-#         define LC_CTYPE_MASK (1 << LC_CTYPE)
-#         define locale_t __locale_t
-#         define newlocale __newlocale
-#         define freelocale __freelocale
-#         define nl_langinfo_l __nl_langinfo_l
-#      endif
-#      if !defined(N_PLAT_NLM) && !defined(__FreeBSD__)
-#         define USE_ICONV
-#         include <dlfcn.h>
-#         include <iconv.h>
-#         include <langinfo.h>
-#      endif
-#   endif
 #endif
 
 #if defined(__APPLE__)
 #   include <CoreFoundation/CoreFoundation.h> /* for CFString */
 #endif
 
-#include "vm_assert.h"
+#include "vmware.h"
 #include "codeset.h"
 #include "codesetOld.h"
 #include "unicodeTypes.h"
 #include "util.h"
 #include "str.h"
 
-#define CSGTG_NORMAL    0x0000  /* Without any information loss. */
-#define CSGTG_TRANSLIT  0x0001  /* Transliterate unknown characters. */
-#define CSGTG_IGNORE    0x0002  /* Skip over untranslatable characters. */
+/*
+ * These systems use iconv and nl_langinfo.
+ * See the definition of CURRENT_IS_UTF8.
+ *
+ * In addition, Linux has nl_langinfo_l.  To get the nl_langinfo_l
+ * related definitions in local.h, we need to define _GNU_SOURCE,
+ * which has to be done above because one of the other standard include
+ * files sucks it in.
+ */
+
+#if !defined(CURRENT_IS_UTF8) && !defined(_WIN32)
+   #include <locale.h>
+   #if defined(__linux__) && !defined(LC_CTYPE_MASK)  // Prior to glibc 2.3
+      #define LC_CTYPE_MASK (1 << LC_CTYPE)
+      #define locale_t __locale_t
+      #define newlocale __newlocale
+      #define freelocale __freelocale
+      #define nl_langinfo_l __nl_langinfo_l
+   #endif
+   #define USE_ICONV
+   #include <dlfcn.h>
+   #include <iconv.h>
+   #include <langinfo.h>
+#endif
+
 
-#if defined(__FreeBSD__) || defined(sun) || defined(VMX86_SERVER)
+#if defined(__FreeBSD__) || defined(sun)
 static const char nul[] = {'\0', '\0'};
 #else
 static const wchar_t nul = L'\0';
@@ -296,9 +297,8 @@ CodeSetOldUtf8ToUtf16le(const char *bufIn,  // IN
 }
 
 
-#if defined(_WIN32)
+#if defined(_WIN32) // {
 
-static Bool IsWin95(void);
 static DWORD GetInvalidCharsFlag(void);
 
 /*
@@ -439,7 +439,7 @@ CodeSetOldGenericToUtf16le(UINT codeIn,         // IN
 
 static Bool
 CodeSetOldUtf16leToGeneric(char const *bufIn,   // IN
-                           size_t sizeIn, // IN
+                           size_t sizeIn,       // IN
                            UINT codeOut,        // IN
                            DynBuf *db)          // IN
 {
@@ -450,29 +450,31 @@ CodeSetOldUtf16leToGeneric(char const *bufIn,   // IN
     */
    if (sizeIn) {
       size_t initialSize;
+      Bool canHaveSubstitution = codeOut != CP_UTF8 && codeOut != CP_UTF7;
 
       initialSize = DynBuf_GetSize(db);
       for (;;) {
          int result;
          DWORD error;
+         BOOL usedSubstitution = FALSE;
 
          if (DynBuf_Enlarge(db, 1) == FALSE) {
             return FALSE;
          }
 
          result = WideCharToMultiByte(codeOut,
-                     0,
+                     canHaveSubstitution ? WC_NO_BEST_FIT_CHARS : 0,
                      (wchar_t const *)bufIn,
                      sizeIn / sizeof(wchar_t),
                      (char *)DynBuf_Get(db) + initialSize,
                      DynBuf_GetAllocatedSize(db) - initialSize,
                      NULL,
-                     /*
-                      * XXX We may need to pass that argument
-                      *     to know when the conversion was
-                      *     not possible --hpreg
-                      */
-                     NULL);
+                     canHaveSubstitution ? &usedSubstitution : NULL);
+
+         if (usedSubstitution) {
+            return FALSE;
+         }
+
          if (result > 0) {
             DynBuf_SetSize(db, initialSize + result);
             break;
@@ -533,7 +535,8 @@ CodeSetOldUtf16leToCurrent(char const *bufIn,     // IN
    ok = CodeSetOldUtf16leToGeneric(bufIn, sizeIn, CP_ACP, &db);
    return CodeSetOldDynBufFinalize(ok, &db, bufOut, sizeOut);
 }
-#endif
+
+#endif // }
 
 
 #if defined(__APPLE__)
@@ -544,7 +547,7 @@ CodeSetOldUtf16leToCurrent(char const *bufIn,     // IN
  *
  *    Convert the content of a buffer (that uses the UTF-8 encoding) into
  *    another buffer (that uses the UTF-8 encoding) that is in precomposed
     (Normalization Form C) or decomposed (Normalization Form D).
*    (Normalization Form C) or decomposed (Normalization Form D).
  *
  * Results:
  *    TRUE on success: '*bufOut' contains a NUL terminated buffer.
@@ -646,6 +649,73 @@ exit:
  *   --hpreg
  */
 
+
+#if defined(USE_ICONV) // {
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * CodeSetOldGetCodeSetFromLocale --
+ *
+ *    Extract the native code set from LC_CTYPE.  
+ *
+ * Results:
+ *
+ *    The name of the current code set on success.  The return value depends
+ *    on how LC_CTYPE is set in the locale, even if setlocale has not been
+ *    previously called.
+ *
+ * Side effects:
+ *
+ *    May briefly set and restore locale on some systems, which is not
+ *    thread-safe.
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+static char *
+CodeSetOldGetCodeSetFromLocale(void)
+{
+   char *codeset;
+
+#if defined(__linux__)
+
+   locale_t new = newlocale(LC_CTYPE_MASK, "", NULL);
+   if (!new) {
+      /*
+       * If the machine is configured incorrectly (no current locale),
+       * newlocale() could return NULL.  Try to fall back on the "C"
+       * locale.
+       */
+
+      new = newlocale(LC_CTYPE_MASK, "C", NULL); 
+      ASSERT(new); 
+   } 
+   codeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
+   freelocale(new);
+
+#elif defined(sun)
+
+   char *locale = setlocale(LC_CTYPE, NULL);
+   if (!setlocale(LC_CTYPE, "")) {
+      /*
+       * If the machine is configured incorrectly (no current locale),
+       * setlocale() can fail.  Try to fall back on the "C" locale.
+       */
+
+      setlocale(LC_CTYPE, "C");
+   }
+   codeset = Util_SafeStrdup(nl_langinfo(CODESET));
+   setlocale(LC_CTYPE, locale);
+
+#else
+#error
+#endif
+
+   return codeset;
+}
+#endif // } USE_ICONV
+
+
 /*
  *-----------------------------------------------------------------------------
  *
@@ -682,35 +752,66 @@ CodeSetOld_GetCurrentCodeSet(void)
    }
 
    return ret;
-#elif defined(__linux__) && (defined(GLIBC_VERSION_21) || \
-      defined(GLIBC_VERSION_22) || defined(GLIBC_VERSION_23))
+#elif defined(USE_ICONV)
    static char *cachedCodeset;
 
-   if (!cachedCodeset) {
-      locale_t new = newlocale(LC_CTYPE_MASK, "", NULL);
-      cachedCodeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
-      freelocale(new);
-   }
-
-   return cachedCodeset;
-#else // Solaris, Netware
-   static char *cachedCodeset;
+   /*
+    * Mirror GLib behavior:
+    *
+    *    $G_FILENAME_ENCODING can have one or more encoding names
+    *    in a comma separated list.
+    *
+    *    If the first entry in $G_FILENAME_ENCODING is set to
+    *    "@locale", get the code set from the environment.
+    *
+    *    If the first entry in $G_FILENAME_ENCODING is not set to
+    *    "@locale", then it is the encoding name.
+    *
+    *    If $G_FILENAME_ENCODING is not set and $G_BROKEN_FILENAMES
+    *    is set, the get the code set from the environment.
+    *
+    *    If none of the above are met, the code set is UTF-8.
+    *
+    *    XXX - TODO - Support multiple encodings in the list.
+    *    While G_FILENAME_ENCODING is documented to be a list,
+    *    the current implementation (GLib 2.16) ignores all but
+    *    the first entry when converting to/from UTF-8.
+    */
 
    if (!cachedCodeset) {
-      char *locale;
+      char *gFilenameEncoding = getenv("G_FILENAME_ENCODING");
+      char *p;
+
+      if (gFilenameEncoding && *gFilenameEncoding) {
+         gFilenameEncoding = Util_SafeStrdup(gFilenameEncoding);
+         p = strchr(gFilenameEncoding, ',');
+         if (p) {
+            *p = '\0';
+         }
+         if (!strcmp(gFilenameEncoding, "@locale")) {
+            free(gFilenameEncoding);
+            cachedCodeset = CodeSetOldGetCodeSetFromLocale();
+            return cachedCodeset;
+         }
+         cachedCodeset = gFilenameEncoding;
+         return cachedCodeset;
+      }
 
-      locale = setlocale(LC_CTYPE, NULL);
-      setlocale(LC_CTYPE, "");
-      cachedCodeset = Util_SafeStrdup(nl_langinfo(CODESET));
-      setlocale(LC_CTYPE, locale);
+      if (getenv("G_BROKEN_FILENAMES")) {
+         cachedCodeset = CodeSetOldGetCodeSetFromLocale();
+         return cachedCodeset;
+      }
+
+      cachedCodeset = "UTF-8";
    }
 
    return cachedCodeset;
-
+#else
+#error
 #endif
 }
 
-#if defined(USE_ICONV)
+#if defined(USE_ICONV) // {
 
 /*
  *-----------------------------------------------------------------------------
@@ -893,7 +994,7 @@ error:
    return FALSE;
 }
 
-#else // USE_ICONV
+#else // USE_ICONV } {
 
 /*
  *-----------------------------------------------------------------------------
@@ -998,7 +1099,7 @@ CodeSetOld_GenericToGenericDb(char const *codeIn,  // IN
    return ret;
 }
 
-#endif // USE_ICONV
+#endif // USE_ICONV }
 
 /*
  *-----------------------------------------------------------------------------
@@ -1121,14 +1222,6 @@ CodeSetOld_Utf8ToCurrent(char const *bufIn,     // IN
    Bool status;
 
    if (CodeSetOld_Utf8ToUtf16le(bufIn, sizeIn, &buf, &size) == FALSE) {
-      if (IsWin95()) {
-         /*
-          * Win95 doesnt support UTF-8 by default. If we are here,
-          * it means that the application was not linked with unicows.lib.
-          * So simply copy the buffer as is.
-          */
-         return CodeSetOldDuplicateStr(bufIn, sizeIn, bufOut, sizeOut);
-      }
       return FALSE;
    }
 
@@ -1137,7 +1230,7 @@ CodeSetOld_Utf8ToCurrent(char const *bufIn,     // IN
 
    return status;
 #else
-   return FALSE;
+#error
 #endif
 }
 
@@ -1187,14 +1280,6 @@ CodeSetOld_Utf8ToCurrentTranslit(char const *bufIn,     // IN
    Bool status;
 
    if (CodeSetOld_Utf8ToUtf16le(bufIn, sizeIn, &buf, &size) == FALSE) {
-      if (IsWin95()) {
-         /*
-          * Win95 doesnt support UTF-8 by default. If we are here,
-          * it means that the application was not linked with unicows.lib.
-          * So simply copy the buffer as is.
-          */
-         return CodeSetOldDuplicateStr(bufIn, sizeIn, bufOut, sizeOut);
-      }
       return FALSE;
    }
 
@@ -1203,7 +1288,7 @@ CodeSetOld_Utf8ToCurrentTranslit(char const *bufIn,     // IN
 
    return status;
 #else
-   return FALSE;
+#error
 #endif
 }
 
@@ -1255,17 +1340,9 @@ CodeSetOld_CurrentToUtf8(char const *bufIn,     // IN
 
    status = CodeSetOld_Utf16leToUtf8(buf, size, bufOut, sizeOut);
    free(buf);
-   if (!status && IsWin95()) {
-      /*
-       * Win95 doesnt support UTF-8 by default. If we are here,
-       * it means that the application was not linked with unicows.lib.
-       * So simply copy the buffer as is.
-       */
-      return CodeSetOldDuplicateStr(bufIn, sizeIn, bufOut, sizeOut);
-   }
-  return status;
+   return status;
 #else
-   return FALSE;
+#error
 #endif
 }
 
@@ -1604,7 +1681,7 @@ CodeSetOld_CurrentToUtf16le(char const *bufIn,     // IN
    /* XXX We should probably use CP_THREAD_ACP on Windows 2000/XP. */
    ok = CodeSetOldGenericToUtf16le(CP_ACP, bufIn, sizeIn, &db);
 #else
-   ok = FALSE;
+#error
 #endif
    return CodeSetOldDynBufFinalize(ok, &db, bufOut, sizeOut);
 }
@@ -1636,7 +1713,9 @@ CodeSetOld_Utf16leToCurrent(char const *bufIn,     // IN
                             char **bufOut,         // OUT
                             size_t *sizeOut) // OUT
 {
-#if defined(USE_ICONV)
+#if defined(CURRENT_IS_UTF8)
+   NOT_IMPLEMENTED();
+#elif defined(USE_ICONV)
    DynBuf db;
    Bool ok;
 
@@ -1646,8 +1725,8 @@ CodeSetOld_Utf16leToCurrent(char const *bufIn,     // IN
    return CodeSetOldDynBufFinalize(ok, &db, bufOut, sizeOut);
 #elif defined(_WIN32)
    return CodeSetOldUtf16leToCurrent(bufIn, sizeIn, bufOut, sizeOut);
-#else // Not Windows or Linux or Solaris
-   return FALSE;
+#else
+#error
 #endif
 }
 
@@ -1678,7 +1757,9 @@ CodeSetOld_Utf16beToCurrent(char const *bufIn,     // IN
                             char **bufOut,         // OUT
                             size_t *sizeOut) // OUT
 {
-#if defined(USE_ICONV)
+#if defined(CURRENT_IS_UTF8)
+   NOT_IMPLEMENTED();
+#elif defined(USE_ICONV)
    DynBuf db;
    Bool ok;
 
@@ -1716,62 +1797,13 @@ CodeSetOld_Utf16beToCurrent(char const *bufIn,     // IN
   error:
    free(bufIn_dup);
    return status;
-#else // Not Windows or Linux or Solaris
-   return FALSE;
+#else
+#error
 #endif
 }
 
 
 #if defined(_WIN32)
-/*
- *-----------------------------------------------------------------------------
- *
- * IsWin95 --
- *
- *      Is the current OS Windows 95?
- *
- * Results:
- *      TRUE if this is Win95
- *      FALSE if this is not Win95.
- *
- * Side effects:
- *      none
- *
- *-----------------------------------------------------------------------------
- */
-
-static Bool
-IsWin95(void)
-{
-   OSVERSIONINFOEX osvi;
-   BOOL bOsVersionInfoEx;
-
-   /*
-    * Try calling GetVersionEx using the OSVERSIONINFOEX structure.
-    * If that fails, try using the OSVERSIONINFO structure.
-    */
-
-   ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
-   osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
-
-   if(!(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi))) {
-      /* If OSVERSIONINFOEX doesn't work, try OSVERSIONINFO. */
-      osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
-      if (!GetVersionEx((OSVERSIONINFO *) &osvi)) {
-         return FALSE;
-      }
-   }
-
-   if (osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
-      if (osvi.dwMajorVersion == 4 && osvi.dwMinorVersion == 0) {
-         return TRUE;
-      }
-   }
-
-   return FALSE;
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *
index be343cba7ccdc301a37983f94bfb0de897c4b33f..7c4b4518c21f5937213b6b17b506e63d2807bd64 100644 (file)
@@ -41,6 +41,4 @@ if NO_ICU
 libMisc_la_SOURCES += ../codeset.c
 endif
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_MISC_CFLAGS@
+AM_CFLAGS = @LIB_MISC_CPPFLAGS@
index 0561e3ff1a7ed681588588540ff222729ed0db01..fe7b122e0be2eef0934c307e7abacf89f1a30711 100644 (file)
@@ -98,8 +98,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -110,8 +108,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -122,12 +120,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -138,14 +136,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -160,7 +158,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -168,7 +166,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -232,7 +230,7 @@ libMisc_la_SOURCES = ../atomic.c ../base64.c ../codesetOld.c \
        ../hashTable.c ../hostinfo_misc.c ../hostname.c ../idLinux.c \
        ../iovector.c ../machineID.c ../miscSolaris.c ../random.c \
        ../timeutil.c ../util_misc.c ../vmstdio.c $(am__append_1)
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_MISC_CFLAGS@
+AM_CFLAGS = @LIB_MISC_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 7b297f1b6bd4b06fdb2c2911047784d28c9d8f4d..1bf28ae2ded2a3bfdd9222ed64832394aa7e7371 100644 (file)
@@ -138,13 +138,98 @@ Util_GetCanonicalPath(const char *path) // IN
 /*
  *-----------------------------------------------------------------------------
  *
- * Util_GetLowerCaseCanonicalPath --
+ * Util_GetCanonicalPathForHash --
  *
  *      Utility function to both get the canonical version of the input path
- *      and lower case it at the same time.
+ *      and produce a unique case-insensitive version of the path suitable
+ *      for use as a seed to hash functions.
  *
  * Results:
- *      A lower case freshly allocated canonicalized path name.
+ *       Canonicalized UTF-8 pathname suitable for use in hashing. 
+ *
+ * Side effects:
+ *      None.
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+char *
+Util_GetCanonicalPathForHash(const char *path) // IN: UTF-8
+{
+   char *ret = NULL;
+   char *cpath = Util_GetCanonicalPath(path);
+   
+   if (cpath != NULL) {
+      ret = Unicode_FoldCase(cpath);
+      free(cpath);
+   }   
+
+   return ret;
+}
+
+
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * UtilGetLegacyEncodedString --
+ *
+ *      Takes a UTF-8 string, and allocates a new string in legacy encoding.
+ *      This is necessary to maintain compatibility with older versions of
+ *      the product, which may have stored strings (paths) in legacy
+ *      encoding.  Hence, the use of WideCharToMultiByte().
+ *
+ * Results:
+ *      An allocated string in legacy encoding (MBCS when applicable).  
+ *      NULL on failure.
+ *      
+ * Side effects:
+ *      None.
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+static char*
+UtilGetLegacyEncodedString(const char *path) // IN: UTF-8
+{
+   char *ret = NULL;
+   char *cpath = Util_GetCanonicalPath(path);
+  
+   if (cpath != NULL) {
+      char *apath = NULL;
+      int retlen;
+      WCHAR *wcpath = Unicode_GetAllocUTF16(cpath);
+
+      /* First get the length of multibyte string */
+      int alen = WideCharToMultiByte(CP_ACP, WC_COMPOSITECHECK, wcpath, -1, 
+                                     NULL, 0, NULL, NULL);
+      if (alen > 0) {
+         /* Now get the converted string */
+         ret = Util_SafeMalloc(alen);
+         retlen = WideCharToMultiByte(CP_ACP, WC_COMPOSITECHECK, wcpath, -1, 
+                                      ret, alen, NULL, NULL);
+         if (retlen != alen) {
+            free(ret);
+            ret = NULL;
+         }
+      }
+      free(cpath);
+      free(wcpath);
+   }
+  
+   return ret;
+}
+
+
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * Util_CompatGetCanonicalPath --
+ *
+ *      Canonicalizes a path name (compatibility version).
+ *
+ * Results:
+ *      A freshly allocated canonicalized path name in legacy encoding
+ *      (MBCS when applicable).
  *
  * Side effects:
  *      None.
@@ -153,12 +238,16 @@ Util_GetCanonicalPath(const char *path) // IN
  */
 
 char*
-Util_GetLowerCaseCanonicalPath(const char* path) // IN
+Util_CompatGetCanonicalPath(const char *path) // IN: UTF-8
 {
-   char *ret = Util_GetCanonicalPath(path);
-   if (ret != NULL) {
-      ret = _strlwr(ret);
+   char *cpath = Util_GetCanonicalPath(path);
+   char *ret = NULL;
+
+   if (cpath != NULL) {
+      ret = UtilGetLegacyEncodedString(cpath);
+      free(cpath);
    }
+   
    return ret;
 }
 #endif
index 55dd6f56e82cefa4d68c74451a15c866e321a221..2de71ddfa4411e77ba71ab71fd165808cf739b0a 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libNetUtil.a
 
 libNetUtil_a_SOURCES =
 libNetUtil_a_SOURCES += netUtilLinux.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 9d50aac882af0f06b6b591d02cb99e4f4a5c4cee..fa001c3cee010b75b73af71b594ff144486de8fd 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libNetUtil.a
 libNetUtil_a_SOURCES = netUtilLinux.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 8a731298cb8af9802f364f5a547a86266eb63886..c9df33150962a0dfce746b102b9b0cb2add513e2 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libPanic.a
 
 libPanic_a_SOURCES =
 libPanic_a_SOURCES += panic.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 621e9c0a1a12aebdf05dc355d64fdb5f70d98162..29d89c6213f8dbde509c1e99e83acbc0c982e075 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libPanic.a
 libPanic_a_SOURCES = panic.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 00ed060f7a67b377a683d96c57af091c369e4e3f..244474093d465227e8294f9d8c793e3985d69dfa 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libPanicDefault.a
 
 libPanicDefault_a_SOURCES =
 libPanicDefault_a_SOURCES += panic.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 237b1bfd84b9d129ba537c9020cb8a9fdf556d06..0ce6598c619ab556dc437f82725afd77782c07dd 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libPanicDefault.a
 libPanicDefault_a_SOURCES = panic.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 90df839f6d8382df2daaa048181f14af168cfd6f..8a9494d62906050478acda8a60c134f3d8df634c 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libPrinter.a
 
 libPrinter_a_SOURCES =
 libPrinter_a_SOURCES += printer.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 9893c9d788cc3927590caed3237ac2e7e9bc3676..2df0361b23e0788e797cfccf0ac98ee46d88b989 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libPrinter.a
 libPrinter_a_SOURCES = printer.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 6588705174c9520724802b8a19110d56060de072..5547f14aec19ecbe25ca300a7640de80f7f1876b 100644 (file)
@@ -20,6 +20,4 @@ noinst_LIBRARIES = libProcMgr.a
 libProcMgr_a_SOURCES =
 libProcMgr_a_SOURCES += procMgrPosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_PROC_MGR_CFLAGS@
+AM_CFLAGS = @LIB_PROC_MGR_CPPFLAGS@
index 995c0981e4e6c997470673c32c59aa8c9c949fb3..73dbb1d9fdada68910d9fc3481afa053ab775643 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libProcMgr.a
 libProcMgr_a_SOURCES = procMgrPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_PROC_MGR_CFLAGS@
+AM_CFLAGS = @LIB_PROC_MGR_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 3558bef0f71db7eb5162ce81d1ffc79c8fb1e5ce..24ab7ea9576325b614630f75dacf658d4556a0ff 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libRpcIn.a
 
 libRpcIn_a_SOURCES =
 libRpcIn_a_SOURCES += rpcin.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index e6c5e4bfaea44bb44a8ee895879e46061b30ead8..241362807f49ed559438d961729f53753d87ba76 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libRpcIn.a
 libRpcIn_a_SOURCES = rpcin.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 379874bee5f60993e9c88765c961a6ae2813c4a2..df50a0840c7ab0c6cf3e1899eab291e3f1e88706 100644 (file)
@@ -20,8 +20,5 @@ noinst_LIBRARIES = libRpcOut.a
 libRpcOut_a_SOURCES =
 libRpcOut_a_SOURCES += rpcout.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 SUBDIRS =
 SUBDIRS += shared
index 5cceffe2d1bf83271f8f103e77aa00f9e3fd6966..a64d7b77c71c89e8ae0ead6ec0f283b90ebaa7ab 100644 (file)
@@ -100,8 +100,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -112,8 +110,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -124,12 +122,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -140,14 +138,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -162,7 +160,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -170,7 +168,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -230,7 +228,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libRpcOut.a
 libRpcOut_a_SOURCES = rpcout.c
-AM_CFLAGS = @COMMON_CFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index 2c661eb3836c791f4836d3d75b243277863ad4e5..42818b1b28a3197614be288cc43f8520b06fbb4e 100644 (file)
@@ -19,6 +19,3 @@ noinst_LTLIBRARIES = libRpcOut.la
 
 libRpcOut_la_SOURCES =
 libRpcOut_la_SOURCES += ../rpcout.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 702d06ee4382732055deae1159a5081c1008c342..48498a78bf91078ea730202fc9e5bd157c21e22c 100644 (file)
@@ -88,8 +88,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -100,8 +98,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -112,12 +110,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -128,14 +126,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -150,7 +148,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -158,7 +156,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -218,7 +216,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libRpcOut.la
 libRpcOut_la_SOURCES = ../rpcout.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index ec144af5fe5ae13f68aca212249101fb9af4bf9e..aafe9dfc77de4d32d88ad13f3629319ec6692334 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libRpcVmx.a
 
 libRpcVmx_a_SOURCES =
 libRpcVmx_a_SOURCES += rpcvmx.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index ab9aaa746d7535fb4e6b2f870a983b0a96b9d7ac..1cb0a3be65cf45b3e0c88fd45492b73115510e02 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libRpcVmx.a
 libRpcVmx_a_SOURCES = rpcvmx.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index cd5453da469b2939f202c524c276e23eaf0939d9..8f4a076d59a0372d5450f0e3a605051ae460617e 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libSocketMgr.a
 
 libSocketMgr_a_SOURCES =
 libSocketMgr_a_SOURCES += socketMgr.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index ad99be03d091af16d10456a380347ec760efe8ff..a28f48bc3b926f340c6f0643213c6c25e7a49e94 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libSocketMgr.a
 libSocketMgr_a_SOURCES = socketMgr.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index eb04ab9d3c1e6783bb41e28b8d7d4bb295ebe227..ffefd7742c4f9d5fc38843a09c7c52445d2d6231 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libStrUtil.a
 
 libStrUtil_a_SOURCES =
 libStrUtil_a_SOURCES += strutil.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 401ce0f8a8a21a18b3e5a1cb6fd8eed8e236d08f..8cd494a36f9d2c104a60e38a5095bfbe1dbab8dd 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libStrUtil.a
 libStrUtil_a_SOURCES = strutil.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index a075e24ac48afd29e257f462debdee0970c5f168..ccb03b08c26c1dba0e74bffaa2574b765f5b9e27 100644 (file)
@@ -24,9 +24,7 @@ libString_a_SOURCES += bsd_vsnwprintf.c
 libString_a_SOURCES += convertutf.c
 libString_a_SOURCES += str.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_STRING_CFLAGS@
+AM_CFLAGS = @LIB_STRING_CPPFLAGS@
 
 SUBDIRS =
 SUBDIRS += shared
index 959579513b1dc78b9d62d0246f8af16285a7cd1a..8beb4e3065ef3c5288188b3cee45acb73e6e7dac 100644 (file)
@@ -102,8 +102,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -114,8 +112,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -126,12 +124,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -142,14 +140,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -164,7 +162,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -172,7 +170,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -233,7 +231,7 @@ top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libString.a
 libString_a_SOURCES = bsd_output_shared.c bsd_vsnprintf.c \
        bsd_vsnwprintf.c convertutf.c str.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_STRING_CFLAGS@
+AM_CFLAGS = @LIB_STRING_CPPFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index 968f03189851e563784eb1837a7452ecb56a290f..0be013b313faae99e70910c5c96eb1952db1b4b7 100644 (file)
@@ -24,6 +24,4 @@ libString_la_SOURCES += ../bsd_vsnwprintf.c
 libString_la_SOURCES += ../convertutf.c
 libString_la_SOURCES += ../str.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_STRING_CFLAGS@
+AM_CFLAGS = @LIB_STRING_CPPFLAGS@
index 1e69b01df0a5c9a07c011a660a516cb9ef6f840f..fc67b76af2a46b187ed927b4984f4877baf9c441 100644 (file)
@@ -89,8 +89,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -101,8 +99,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -113,12 +111,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -129,14 +127,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -151,7 +149,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -159,7 +157,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,7 @@ top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libString.la
 libString_la_SOURCES = ../bsd_output_shared.c ../bsd_vsnprintf.c \
        ../bsd_vsnwprintf.c ../convertutf.c ../str.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_STRING_CFLAGS@
+AM_CFLAGS = @LIB_STRING_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 703f4226b6283d5d6e970aa4d1723725d013c95e..3034297c626375ba391571bfb01a2817431838a6 100644 (file)
@@ -21,8 +21,5 @@ libSync_a_SOURCES =
 libSync_a_SOURCES += syncMutex.c
 libSync_a_SOURCES += syncWaitQPosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 SUBDIRS =
 SUBDIRS += shared
index 8bb2d1dfbc7451555efdba9681760a01e4c08b64..7a0c9c24979a72b6974d2f8350002f7dc20c843a 100644 (file)
@@ -100,8 +100,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -112,8 +110,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -124,12 +122,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -140,14 +138,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -162,7 +160,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -170,7 +168,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -230,7 +228,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libSync.a
 libSync_a_SOURCES = syncMutex.c syncWaitQPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 SUBDIRS = shared
 all: all-recursive
 
index 10b1bb1d90a574a95094beeb619486112c6173f6..d9440ace4e5dab22e0498b815cb87d01f1e1563a 100644 (file)
@@ -20,6 +20,3 @@ noinst_LTLIBRARIES = libSync.la
 libSync_la_SOURCES =
 libSync_la_SOURCES += ../syncMutex.c
 libSync_la_SOURCES += ../syncWaitQPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 1b32c96c23ee79f65a41ef69fd9c6ada759f4e2f..18bdce68bf12ec8342e3ba9ebe974a31ca6b99fc 100644 (file)
@@ -88,8 +88,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -100,8 +98,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -112,12 +110,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -128,14 +126,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -150,7 +148,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -158,7 +156,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -218,7 +216,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libSync.la
 libSync_la_SOURCES = ../syncMutex.c ../syncWaitQPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index c8d89a44cc5ea92664276d8c5ffe91f0076625c0..b46cf2382061674f58001ecd5ddb2467e85b000e 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libSyncDriver.a
 
 libSyncDriver_a_SOURCES =
 libSyncDriver_a_SOURCES += syncDriverPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 4833db770af81910a93adc71db8a063c42f17ad8..31a6a75c190842c6876c2220e032f9697172fd04 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libSyncDriver.a
 libSyncDriver_a_SOURCES = syncDriverPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 2d79bf7aeb73bd30fec9cc1c3146ea8e16f9889f..aef90b409305146bf03871d790d02de548d8fe6b 100644 (file)
@@ -18,6 +18,3 @@
 noinst_LIBRARIES = libSystem.a
 
 libSystem_a_SOURCES = systemLinux.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index 1b797aa3d18a45957b6b7b52a13d6b8143cd65d8..b650081d1e23b02baf638f656b01d34323431694 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libSystem.a
 libSystem_a_SOURCES = systemLinux.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 5efd8543425d76e5022bf5207e0078e32d07c280..450b377c988ac7e6a7b1110c08e61a63f5d5d469 100644 (file)
@@ -61,6 +61,7 @@
 #include "vm_assert.h"
 #include "system.h"
 #include "debug.h"
+#include "posix.h"
 #include "unicode.h"
 
 #define MAX_IFACES      4
@@ -365,10 +366,10 @@ System_Shutdown(Bool reboot)  // IN: "reboot or shutdown" flag
  *----------------------------------------------------------------------
  *
  * System_GetEnv --
- *
+ *    Read environment variables.
  *
  * Results:
- *    A copy of the string
+ *    A copy of the environment variable encoded in UTF-8.
  *
  * Side effects:
  *    None.
@@ -378,14 +379,14 @@ System_Shutdown(Bool reboot)  // IN: "reboot or shutdown" flag
 
 char *
 System_GetEnv(Bool global,       // IN
-              char *valueName)   // IN
+              char *valueName)   // IN: UTF-8
 {
    char *result;
    
 #if defined(sun)
    result = NULL;
 #else
-   result = getenv(valueName);
+   result = Posix_Getenv(valueName);
 #endif
 
    if (NULL != result) {
@@ -417,13 +418,13 @@ System_GetEnv(Bool global,       // IN
 
 int
 System_SetEnv(Bool global,      // IN
-              char *valueName,  // IN
-              char *value)      // IN
+              char *valueName,  // IN: UTF-8
+              char *value)      // IN: UTF-8
 {
 #if defined(sun)
    return(-1);
 #else
-   return(setenv(valueName, value, 1));
+   return Posix_Setenv(valueName, value, 1);
 #endif
 } // System_SetEnv
 
index cb4fd87500bd6eab5bffb469e6b75f6e300f1629..dd31847042303b173d48451c166456b38f8d836b 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libToolsLogger.a
 
 libToolsLogger_a_SOURCES =
 libToolsLogger_a_SOURCES += logger.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index edc71a3e7ea7af2918e30f5742a688a1ce7a1072..075aca952dbd17c2dcbf7b0d144834f1f6b487ed 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libToolsLogger.a
 libToolsLogger_a_SOURCES = logger.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index be3b272624d215271406f8e2401eb9a3be23800c..c558b0ce5f93d4455f59d86d6183881660cdf0ee 100644 (file)
@@ -17,7 +17,7 @@
 
 noinst_LIBRARIES = libUnicode.a
 
-libUnicode_a_SOURCES = 
+libUnicode_a_SOURCES =
 libUnicode_a_SOURCES += unicodeCommon.c
 libUnicode_a_SOURCES += unicodeSimpleBase.c
 libUnicode_a_SOURCES += unicodeSimpleCaseFolding.c
@@ -29,6 +29,3 @@ libUnicode_a_SOURCES += unicodeStatic.c
 if NO_ICU
 libUnicode_a_SOURCES += unicodeICU.c
 endif
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index b559daf9a978c8fa7b4d1bf5e7befe48a51cfefc..8ffb33f39568280315334efed0222e31f4ef2d22 100644 (file)
@@ -100,8 +100,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -112,8 +110,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -124,12 +122,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -140,14 +138,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -162,7 +160,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -170,7 +168,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -233,7 +231,6 @@ libUnicode_a_SOURCES = unicodeCommon.c unicodeSimpleBase.c \
        unicodeSimpleCaseFolding.c unicodeSimpleTypes.c \
        unicodeSimpleOperations.c unicodeSimpleTransforms.c \
        unicodeStatic.c $(am__append_1)
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index ef941743f8dd23141d99f9e2896b6883e957a219..5d553eb520acde1b6bf8c64463511b27d695981a 100644 (file)
@@ -20,6 +20,4 @@ noinst_LIBRARIES = libunityStub.a
 libunityStub_a_SOURCES =
 libunityStub_a_SOURCES += unityStub.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
index fd678ff86c94105b9b92e40bc80e4bfc8d2c9de5..bac99802b6258d0cc885bcc2d607b4c8e09fc452 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libunityStub.a
 libunityStub_a_SOURCES = unityStub.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_FILE_CFLAGS@
+AM_CFLAGS = @LIB_FILE_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index 04c7985a127e620bf344e1bdb0b8e5b0c75e8899..4fa78fa4fc0cfb34fe7c95af88149e224c012fb8 100644 (file)
@@ -23,6 +23,4 @@ libUser_a_SOURCES += hostinfoPosix.c
 libUser_a_SOURCES += util.c
 libUser_a_SOURCES += utilPosix.c
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @LIB_USER_CFLAGS@
+AM_CFLAGS = @LIB_USER_CPPFLAGS@
index ac528c84314a574641735c5afbba4d4b6083386c..76e5639b5923ad47977c5bd1598ddf6252652064 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -221,7 +219,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libUser.a
 libUser_a_SOURCES = hostinfo.c hostinfoPosix.c util.c utilPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@ @LIB_USER_CFLAGS@
+AM_CFLAGS = @LIB_USER_CPPFLAGS@
 all: all-am
 
 .SUFFIXES:
index f1b4bceee04f654b0b9f270a61ef4d554c5020d7..5daa48b6d418a2fce20700d42b04d1684ef926e0 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libVixTools.a
 
 libVixTools_a_SOURCES =
 libVixTools_a_SOURCES += vixTools.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index fbf6333ba21e7bf4ded0e078aee6afb7609124c2..70565734f325a7d4a966a30201c8896eeaeeab89 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libVixTools.a
 libVixTools_a_SOURCES = vixTools.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 23913b0af1b43cb10d65e420e68a264ea85a9227..13d319bf0d0845737b6d65ead4c7de7dcb62a14c 100644 (file)
@@ -1477,11 +1477,10 @@ abort:
 
 VixError
 VixToolsCreateTempFile(VixCommandRequestHeader *requestMsg,   // IN
-                       char **result)                         // OUT
+                       char **result)                         // OUT: UTF-8
 {
    VixError err = VIX_OK;
    char *filePathName = NULL;
-   static char resultBuffer[FILE_MAXPATH];
    int fd = -1;
    Bool impersonatingVMWareUser = FALSE;
    void *userToken = NULL;
@@ -1508,8 +1507,7 @@ VixToolsCreateTempFile(VixCommandRequestHeader *requestMsg,   // IN
       Debug("Unable to close a file, errno is %d.\n", errno);
    }
 
-   Str_Sprintf(resultBuffer, sizeof(resultBuffer), "%s", filePathName);
-   *result = resultBuffer;
+   *result = filePathName;
 
 abort:
    if (impersonatingVMWareUser) {
@@ -1517,8 +1515,6 @@ abort:
    }
    VixToolsLogoutUser(userToken);
 
-   free(filePathName);
-
    return err;
 } // VixToolsCreateTempFile
 
@@ -1528,7 +1524,8 @@ abort:
  *
  * VixToolsReadVariable --
  *
- *    Write an environment variable in the guest.
+ *    Read an environment variable in the guest. The name of the environment
+ *    variable is expected to be in UTF-8.
  *
  * Return value:
  *    VixError
@@ -1541,11 +1538,10 @@ abort:
 
 VixError
 VixToolsReadVariable(VixCommandRequestHeader *requestMsg,   // IN
-                     char **result)                         // OUT
+                     char **result)                         // OUT: UTF-8
 {
    VixError err = VIX_OK;
    char *value = "";
-   static char resultBuffer[FILE_MAXPATH];
    Bool impersonatingVMWareUser = FALSE;
    void *userToken = NULL;
    VixMsgReadVariableRequest *readRequest;
@@ -1580,15 +1576,13 @@ VixToolsReadVariable(VixCommandRequestHeader *requestMsg,   // IN
       break;
    } // switch (readRequest->variableType)
 
-   Str_Sprintf(resultBuffer, sizeof(resultBuffer), "%s", value);
-   *result = resultBuffer;
+   *result = value;
 
 abort:
    if (impersonatingVMWareUser) {
       VixToolsUnimpersonateUser(userToken);
    }
    VixToolsLogoutUser(userToken);
-   free(value);
 
    return err;
 } // VixToolsReadVariable
@@ -1599,7 +1593,8 @@ abort:
  *
  * VixToolsWriteVariable --
  *
- *    Write an environment variable in the guest.
+ *    Write an environment variable in the guest. The name of the environment
+ *    variable and its value are expected to be in UTF-8.
  *
  * Return value:
  *    VixError
@@ -2045,7 +2040,7 @@ VixToolsListDirectory(VixCommandRequestHeader *requestMsg,    // IN
     * Calculate the size of the result buffer and keep track of the
     * max number of entries we can store.
     */
-   resultBufferSize = 2; // truncation bool + space
+   resultBufferSize = 3; // truncation bool + space + '\0'
    formatStringLength = strlen(fileInfoFormatString);
 
    for (fileNum = offset; fileNum < numFiles; fileNum++) {
@@ -2069,7 +2064,6 @@ VixToolsListDirectory(VixCommandRequestHeader *requestMsg,    // IN
          break;
       }
    }
-   numFiles = lastGoodNumFiles;
    resultBufferSize = lastGoodResultBufferSize;
 
    /*
@@ -2094,8 +2088,8 @@ VixToolsListDirectory(VixCommandRequestHeader *requestMsg,    // IN
       }
    }
 
-   /* File_ListDirectory never returns "." or ".." */
-   for (fileNum = offset; fileNum < numFiles; fileNum++) {
+   for (fileNum = offset; fileNum < lastGoodNumFiles; fileNum++) {
+      /* File_ListDirectory never returns "." or ".." */
       char *pathName;
 
       currentFileName = fileNameList[fileNum];
@@ -2106,7 +2100,7 @@ VixToolsListDirectory(VixCommandRequestHeader *requestMsg,    // IN
       VixToolsPrintFileInfo(pathName, currentFileName, &destPtr, endDestPtr);
 
       free(pathName);
-   } // for (fileNum = 0; fileNum < numFiles; fileNum++)
+   } // for (fileNum = 0; fileNum < lastGoodNumFiles; fileNum++)
    *destPtr = '\0';
 
 abort:
@@ -3695,13 +3689,13 @@ VixTools_ProcessVixCommand(VixCommandRequestHeader *requestMsg,   // IN
       ////////////////////////////////////
       case VIX_COMMAND_CREATE_TEMPORARY_FILE:
          err = VixToolsCreateTempFile(requestMsg, &resultValue);
-         // resultValue is static. Do not free it.
+         deleteResultValue = TRUE;
          break;
 
       ///////////////////////////////////
       case VIX_COMMAND_READ_VARIABLE:
          err = VixToolsReadVariable(requestMsg, &resultValue);
-         // resultValue is static. Do not free it.
+         deleteResultValue = TRUE;
          break;
 
       ///////////////////////////////////
index 61a381bbe675bf867c56545398d83c2f5dd2b504..11125d8b6bc1fd3738aa7d656cdf0aeeab66333d 100644 (file)
@@ -21,6 +21,3 @@ libVmBackupLib_a_SOURCES =
 libVmBackupLib_a_SOURCES += scriptOps.c
 libVmBackupLib_a_SOURCES += stateMachine.c
 libVmBackupLib_a_SOURCES += syncDriverOps.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index bb2ee1565d932efe7cb19ff576d5f67467e71580..e33765db82f86b1489301e0b8e47086ba88cb7b9 100644 (file)
@@ -91,8 +91,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -103,8 +101,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -115,12 +113,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -131,14 +129,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -153,7 +151,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -161,7 +159,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -221,7 +219,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libVmBackupLib.a
 libVmBackupLib_a_SOURCES = scriptOps.c stateMachine.c syncDriverOps.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index a9c956b76887548bbed7a4d5d4ce9d218bfa6157..2f0c99eea405d346b459c6248796accefba1c164 100644 (file)
@@ -218,27 +218,32 @@ VmBackupScriptOpQuery(VmBackupOp *_op) // IN
    VmBackupScript *scripts = op->state->scripts;
    VmBackupScript *currScript = NULL;
 
-   if (scripts != NULL) {
+   if (scripts != NULL && op->state->currentScript >= 0) {
       currScript = &scripts[op->state->currentScript];
    }
 
    if (op->canceled) {
       ret = VMBACKUP_STATUS_CANCELED;
       goto exit;
-   } else if (scripts == NULL || currScript->proc == NULL) {
+   } else if (scripts == NULL || currScript == NULL || currScript->proc == NULL) {
       ret = VMBACKUP_STATUS_FINISHED;
       goto exit;
    }
 
    if (!ProcMgr_IsAsyncProcRunning(currScript->proc)) {
       int exitCode;
+      Bool succeeded;
+
+      succeeded = (ProcMgr_GetExitCode(currScript->proc, &exitCode) == 0 &&
+                   exitCode == 0);
+      ProcMgr_Free(currScript->proc);
+      currScript->proc = NULL;
 
       /*
        * If thaw scripts fail, keep running and only notify the failure after
        * all others have run.
        */
-      if (ProcMgr_GetExitCode(currScript->proc, &exitCode) != 0 ||
-          exitCode != 0) {
+      if (!succeeded) {
           if (op->type == VMBACKUP_SCRIPT_FREEZE) {
              ret = VMBACKUP_STATUS_ERROR;
              goto exit;
@@ -247,9 +252,6 @@ VmBackupScriptOpQuery(VmBackupOp *_op) // IN
           }
       }
 
-      ProcMgr_Free(currScript->proc);
-      currScript->proc = NULL;
-
       switch (VmBackupRunNextScript(op)) {
       case -1:
          ret = VMBACKUP_STATUS_ERROR;
@@ -265,6 +267,12 @@ VmBackupScriptOpQuery(VmBackupOp *_op) // IN
    }
 
 exit:
+   if (ret == VMBACKUP_STATUS_ERROR) {
+      /* Report the script error to the host */
+      op->state->SendEvent(VMBACKUP_EVENT_REQUESTOR_ERROR,
+                           VMBACKUP_SCRIPT_ERROR,
+                           "Custom script failed.");
+   }
    return ret;
 }
 
index 6d967db78c7567c4ee1719e5cb31bd9adde65ba7..a40d3d6e0eec298024d88ffacb703e3d0c611dfc 100644 (file)
 #include "util.h"
 #include "vmstdio.h"
 
-typedef enum {
-   VMBACKUP_SUCCESS = 0,
-   VMBACKUP_INVALID_STATE,
-   VMBACKUP_SCRIPT_ERROR,
-   VMBACKUP_SYNC_ERROR,
-   VMBACKUP_REMOTE_ABORT,
-   VMBACKUP_UNEXPECTED_ERROR
-} VmBackupStatus;
-
-
 #define VMBACKUP_ENQUEUE_EVENT() {                                      \
    gBackupState->timerEvent = EventManager_Add(gEventQueue,             \
                                                gBackupState->pollPeriod,\
index 8b6600d5e847ff29edeaceea2f19ab6a719ffde0..245a01023875167a29cb33f75b40a2692b28c3c6 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libVmCheck.a
 
 libVmCheck_a_SOURCES =
 libVmCheck_a_SOURCES += vmcheck.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index b172020fa6fd7b77031e9c1e120cd176aeecc038..6be3fa475c7280d36eed4c0627075c928e61484d 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libVmCheck.a
 libVmCheck_a_SOURCES = vmcheck.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index bed6039e39f7a39b6f76343419fedba745cc05ff..b9c984edcd39d4257deb0fecbe4e37827b87c783 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libVmSignal.a
 
 libVmSignal_a_SOURCES =
 libVmSignal_a_SOURCES += vmsignal.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index eedeb02b657cc07b2323bf20e0b13f9990b7cc7d..e8bd7e75702df19c7e2d411d3116c2cf543e2c54 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libVmSignal.a
 libVmSignal_a_SOURCES = vmsignal.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index de873854c2f5670b6a49c65a6ac2a41f6b0d30c6..1e8cf69666df5a5d2a685deea1e84572d983c8d0 100644 (file)
@@ -19,6 +19,3 @@ noinst_LIBRARIES = libWiper.a
 
 libWiper_a_SOURCES =
 libWiper_a_SOURCES += wiperPosix.c
-
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
index f6663a21e44e18533eab620bee1c23c1b3e91ac4..430619a209156dc8355cf842153b4ce2a8f15382 100644 (file)
@@ -90,8 +90,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -102,8 +100,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -114,12 +112,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -130,14 +128,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -152,7 +150,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -160,7 +158,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LIBRARIES = libWiper.a
 libWiper_a_SOURCES = wiperPosix.c
-AM_CFLAGS = @COMMON_CFLAGS@
 all: all-am
 
 .SUFFIXES:
index 537f417cc4326468ec4f71c6b3feea790ea645ff..e25f5a2e8f8155ffb22a6fbddbb7f0f42b68333f 100644 (file)
@@ -17,9 +17,6 @@
 
 lib_LTLIBRARIES = libguestlib.la
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 libguestlib_la_LIBADD =
 libguestlib_la_LIBADD += ../lib/rpcOut/shared/libRpcOut.la
 libguestlib_la_LIBADD += ../lib/string/shared/libString.la
index b0dce72021f4b85a1f2f0a20a4a1b56dd61ce442..f5192344030584be68663579a30e86c3bc845354 100644 (file)
@@ -102,8 +102,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -114,8 +112,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -126,12 +124,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -142,14 +140,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -164,7 +162,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -172,7 +170,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -231,7 +229,6 @@ target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 lib_LTLIBRARIES = libguestlib.la
-AM_CFLAGS = @COMMON_CFLAGS@
 # In the absence of the linker options --start-group and --end-group (which can't
 # be put in LDADD), we need to bring the following libraries out of the alphebetical
 # order so their symbols are properly resolved.
index c267c27db071c993d2f4e55a17a9d1e36a6b6341..edbf7436797593fe40960cb3775d655371924218 100644 (file)
@@ -52,8 +52,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -64,8 +62,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -76,12 +74,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -92,14 +90,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -114,7 +112,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -122,7 +120,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
index d52f303c4757c671b3342ba8a452b26d9e71b5eb..f3bf70c8a13291b5beff8607538dd8e5ccc32a1c 100644 (file)
@@ -122,7 +122,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -563,4 +562,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index c952cae9984eb8f9dc50a4b18d980b0b90c1e4e9..b6a1025e9bf88b7c0fc3db3206060140830710a6 100644 (file)
@@ -104,10 +104,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -266,7 +262,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -651,6 +652,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index f0c729c4760be6c8cc42932448e95bdb1d494af3..1ccdd2db90ef79f693566b29f8fbc52239749029 100644 (file)
 # define VMBLOCK_CONTROL_DIRNAME        VMBLOCK_FS_NAME
 # define VMBLOCK_CONTROL_DEVNAME        "dev"
 # define VMBLOCK_CONTROL_MOUNTPOINT     "mountPoint"
+# define VMBLOCK_CONTROL_PROC_DIRNAME  "fs/" VMBLOCK_CONTROL_DIRNAME
 
-# define VMBLOCK_MOUNT_POINT            "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_MOUNT_POINT            "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_MOUNTPOINT
-# define VMBLOCK_DEVICE                 "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_DEVICE                 "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_DEVNAME
 # define VMBLOCK_DEVICE_MODE            O_WRONLY
 # define VMBLOCK_CONTROL(fd, op, path)  write(fd, path, op)
index 292bfd024139bf9660d518c7a0691b22f2b30e65..737df619d8a4fbc5d5d5bc1c046b84b908f87a0f 100644 (file)
@@ -83,5 +83,10 @@ typedef enum {
 #define GUESTMSG_FLAG_COOKIE 0x80000000
 #define GUESTMSG_FLAG_ALL GUESTMSG_FLAG_COOKIE
 
+/*
+ * Maximum size of incoming message. This is to prevent denial of host service
+ * attacks from guest applications.
+ */
+#define GUESTMSG_MAX_IN_SIZE (64 * 1024)
 
 #endif /* _GUEST_MSG_DEF_H_ */
index 244ec31153667f33977855b18a76065c455fc02a..c4cb2654e93b8e80a5e111fe77a7151e0ee55a5e 100644 (file)
@@ -112,6 +112,15 @@ typedef enum {
 #define HGFS_VERSION_OLD           (1 << 0)
 #define HGFS_VERSION_3             (1 << 1)
 
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
+#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
+
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
+#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
+
+
 /*
  * File types, used in HgfsAttr. We support regular files,
  * directories, and symlinks.
index 66dc72d4c6a3e11e3af9386af328e4f2ceaa0dcf..1b98bf76147c5f87d2e68bc3a3a3b9970f2b16ac 100644 (file)
@@ -91,14 +91,6 @@ struct timespec {
 #define HGFS_NAME_BUFFER_SIZE(request) (HGFS_PACKET_MAX - (sizeof *request - 1))
 #define HGFS_NAME_BUFFER_SIZET(sizet) (HGFS_PACKET_MAX - (sizet) - 1)
 
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
-#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
-
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
-#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
-
 #ifndef _WIN32
 /*
  * Routines for converting between Win NT and unix time formats. The
index 0df135df3e388d6c1bcace653db9deb341dfcedc..ace958a598f5587ad2f94110384cbdb547962c05 100644 (file)
  */
 
 #include "dbllnklst.h"
-#include "hgfs.h"
-#include "hgfsProto.h"
 
 #include "request.h"
 #include "state.h"
+#include "hgfs.h"
+#include "hgfsProto.h"
 
 #include "vm_basic_types.h"
 #include "vm_assert.h"
index 9ec83eca0558ad1d39d2ef36a18d1f4616741a17..26c2ca7f0f26e0922cafa9973d445bf309ad79fe 100644 (file)
@@ -286,7 +286,7 @@ uint64set(void *dst, uint64 val, uint64 count)
  *-----------------------------------------------------------------------------
  */
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(_MSC_VER)
 
 static INLINE void
 Div643232(uint64 dividend,   // IN
@@ -294,8 +294,8 @@ Div643232(uint64 dividend,   // IN
           uint32 *quotient,  // OUT
           uint32 *remainder) // OUT
 {
-   *quotient = dividend / divisor;
-   *remainder = dividend % divisor;
+   *quotient = (uint32)(dividend / divisor);
+   *remainder = (uint32)(dividend % divisor);
 }
 
 #endif
index bd264c975d5f88fb2c7b906dea02a0c0ca2cc25e..41b969b875b2e00fcee847b5b5b52f246616abf3 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index 07e500d680c6a0aa639bc241c8eb7e7adadcedef..6d8a1111442b991fb7c89eec489bc66573169660 100644 (file)
@@ -390,10 +390,14 @@ FLAGDEFA( 81, EDX, AMD,    31,  1, 3DNOW,               HOST,    0, TRUE,  3DNOW
 
 /*    LEVEL, REG, VENDOR, POS, SIZE, NAME,   MASK TYPE, SET TO, CPL3, [FUNC] */
 #define CPUID_FIELD_DATA_LEVEL_8x                                              \
-FIELDDEF( 86, ECX, AMD,     0,  8, CACHE_LINE,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,     8,  4, CACHE_LINE_PER_TAG,  IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    12,  4, CACHE_WAYS,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    16, 16, CACHE_SIZE,          IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     0,  8, L2CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     8,  4, L2CACHE_LINE_PER_TAG, IGNORE, 0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    12,  4, L2CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    16, 16, L2CACHE_SIZE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     0,  8, L3CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     8,  4, L3CACHE_LINE_PER_TAG,IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    12,  4, L3CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    18, 14, L3CACHE_SIZE,        IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     0,  1, TS,                  IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     1,  1, FID,                 IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     2,  1, VID,                 IGNORE,  0, FALSE)            \
@@ -595,6 +599,7 @@ FIELD_FUNC(MWAIT_C4_SUBSTATE, CPUID_INTEL_ID5EDX_MWAIT_C4_SUBSTATE)
 #define CPUID_MODEL_CORE       14
 #define CPUID_MODEL_CORE2      15
 #define CPUID_MODEL_PENRYN     0x17  // Effective model
+#define CPUID_MODEL_NEHALEM    0x1a  // Effective model
 
 static INLINE uint32
 CPUID_EFFECTIVE_FAMILY(uint32 v) /* %eax from CPUID with %eax=1. */
index bd264c975d5f88fb2c7b906dea02a0c0ca2cc25e..41b969b875b2e00fcee847b5b5b52f246616abf3 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index ac7a82cedc278373e45437be0d2ab2ef8f13cb5d..84538ceb44989a45cfde58e7c314f972ad8a1a4e 100644 (file)
 #define SCSI_MAX_CONTROLLERS    4        // Need more than 1 for MSCS clustering
 #define        SCSI_MAX_DEVICES         16       // BT-958 emulates only 16
 #define SCSI_IDE_CHANNEL         SCSI_MAX_CONTROLLERS
-#define SCSI_MAX_CHANNELS        (SCSI_MAX_CONTROLLERS + 1)
+#define SCSI_IDE_HOSTED_CHANNEL  (SCSI_MAX_CONTROLLERS + 1)
+#define SCSI_MAX_CHANNELS        (SCSI_MAX_CONTROLLERS + 2)
 
 /************* Strings for the VESA BIOS Identity Fields *****************/
 #define VBE_OEM_STRING COMPANY_NAME " SVGA"
index 1aa7bb4546074d6cb7c15ed3ac0aeff7dbb3ea64..561064b1842ea98e3abadbd4fb058ffa8f8c2c74 100644 (file)
@@ -58,4 +58,7 @@
 #define VMNET_CAP_LPD           0x10000 /* large pkt delivery */
 #define VMNET_CAP_BPF           0x20000 /* BPF Support in VMXNET Virtual Hardware */
 #define VMNET_CAP_SG_SPAN_PAGES 0x40000        /* Can do scatter-gather span multiple pages transmits. */
+#define VMNET_CAP_IP6_CSUM      0x80000        /* Can do IPv6 csum offload. */
+#define VMNET_CAP_TSO6         0x100000        /* Can do TSO segmentation offload for IPv6 pkts. */
+#define VMNET_CAP_TSO256k      0x200000        /* Can do TSO segmentation offload for pkts up to 256kB. */
 #endif // _VMNET_DEF_H_
index bd264c975d5f88fb2c7b906dea02a0c0ca2cc25e..41b969b875b2e00fcee847b5b5b52f246616abf3 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index b6c6727d3507cb5f35fb2a059e130c4bf45c31d1..9a300b3f2a95d57b64615b0b2779e18deda7813d 100644 (file)
 # define VMBLOCK_CONTROL_DIRNAME        VMBLOCK_FS_NAME
 # define VMBLOCK_CONTROL_DEVNAME        "dev"
 # define VMBLOCK_CONTROL_MOUNTPOINT     "mountPoint"
+# define VMBLOCK_CONTROL_PROC_DIRNAME  "fs/" VMBLOCK_CONTROL_DIRNAME
 
-# define VMBLOCK_MOUNT_POINT            "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_MOUNT_POINT            "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_MOUNTPOINT
-# define VMBLOCK_DEVICE                 "/proc/fs/" VMBLOCK_CONTROL_DIRNAME   \
+# define VMBLOCK_DEVICE                 "/proc/" VMBLOCK_CONTROL_PROC_DIRNAME   \
                                        "/" VMBLOCK_CONTROL_DEVNAME
 # define VMBLOCK_DEVICE_MODE            O_WRONLY
 # define VMBLOCK_CONTROL(fd, op, path)  write(fd, path, op)
index b55513d7ca9725bf746a845e7fbb22a5f4b553c3..5bca851c926a3f9b88d2a5173de187ce1f884f8a 100644 (file)
@@ -149,11 +149,10 @@ SetupProcDevice(void)
    struct proc_dir_entry *controlProcMountpoint;
 
    /* Create /proc/fs/vmblock */
-   controlProcDirEntry = proc_mkdir(VMBLOCK_CONTROL_DIRNAME,
-                                    VMBLOCK_CONTROL_PARENT);
+   controlProcDirEntry = proc_mkdir(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
    if (!controlProcDirEntry) {
-      Warning("SetupProcDevice: could not create /proc/fs/"
-              VMBLOCK_CONTROL_DIRNAME "\n");
+      Warning("SetupProcDevice: could not create /proc/"
+              VMBLOCK_CONTROL_PROC_DIRNAME "\n");
       return -EINVAL;
    }
 
@@ -163,9 +162,9 @@ SetupProcDevice(void)
    controlProcMountpoint = proc_mkdir(VMBLOCK_CONTROL_MOUNTPOINT,
                                       controlProcDirEntry);
    if (!controlProcMountpoint) {
-      Warning("SetupProcDevice: could not create /proc/fs/"
-              VMBLOCK_CONTROL_MOUNTPOINT "\n");
-      remove_proc_entry(VMBLOCK_CONTROL_DIRNAME, VMBLOCK_CONTROL_PARENT);
+      Warning("SetupProcDevice: could not create "
+              VMBLOCK_MOUNT_POINT "\n");
+      remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
       return -EINVAL;
    }
 
@@ -176,10 +175,9 @@ SetupProcDevice(void)
                                         VMBLOCK_CONTROL_MODE,
                                         controlProcDirEntry);
    if (!controlProcEntry) {
-      Warning("SetupProcDevice: could not create /proc/fs/"
-              VMBLOCK_CONTROL_DIRNAME "/" VMBLOCK_CONTROL_DEVNAME "\n");
+      Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n");
       remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry);
-      remove_proc_entry(VMBLOCK_CONTROL_DIRNAME, VMBLOCK_CONTROL_PARENT);
+      remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
       return -EINVAL;
    }
 
@@ -210,7 +208,7 @@ CleanupProcDevice(void)
    if (controlProcDirEntry) {
       remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry);
       remove_proc_entry(VMBLOCK_CONTROL_DEVNAME, controlProcDirEntry);
-      remove_proc_entry(VMBLOCK_CONTROL_DIRNAME, VMBLOCK_CONTROL_PARENT);
+      remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
    }
    return 0;
 }
index bff7bbc6dbf413e1ae0e17768de86dd5f4156864..db8e420e0d4b3b978d0c5eec8b7daf1ed472c78b 100644 (file)
@@ -64,7 +64,6 @@ extern int LOGLEVEL_THRESHOLD;
 #endif /* __KERNEL__ */
 
 #define VMBLOCK_CONTROL_MODE       S_IRUSR | S_IFREG
-#define VMBLOCK_CONTROL_PARENT     proc_root_fs
 
 /*
  * Our modules may be compatible with kernels built for different processors.
index 3afbedadf1b5fa1bdd4a4e96e5c18a1889bded2d..88e1add93789ef99d5ceef45bdebdadfad5dd3ae 100644 (file)
@@ -106,7 +106,7 @@ HgfsWakeWaitingClient(HgfsReq *req)  // IN: Request
  *----------------------------------------------------------------------
  */
 
-static inline void 
+static inline void
 HgfsCompleteReq(HgfsReq *req,       // IN: Request
                 char const *reply,  // IN: Reply packet
                 size_t replySize)   // IN: Size of reply packet
@@ -117,7 +117,7 @@ HgfsCompleteReq(HgfsReq *req,       // IN: Request
    req->payloadSize = replySize;
    req->state = HGFS_REQ_STATE_COMPLETED;
    list_del_init(&req->list);
-   HgfsWakeWaitingClient(req);         
+   HgfsWakeWaitingClient(req);
 }
 
 
@@ -149,7 +149,7 @@ HgfsSendUnsentReqs(void)
    list_for_each_safe(cur, tmp, &hgfsReqsUnsent) {
       req = list_entry(cur, HgfsReq, list);
 
-      /* 
+      /*
        * A big "wtf" from the driver is in order. Perhaps by "wtf" I really
        * mean BUG_ON().
        */
@@ -165,9 +165,9 @@ HgfsSendUnsentReqs(void)
       LOG(8, (KERN_DEBUG "VMware hgfs: HgfsSendUnsentReqs: Sending packet "
               "over backdoor\n"));
 
-      /* 
-       * We should attempt to reopen the backdoor channel with every request, 
-       * because the HGFS server in the host can be enabled or disabled at any 
+      /*
+       * We should attempt to reopen the backdoor channel with every request,
+       * because the HGFS server in the host can be enabled or disabled at any
        * time.
        */
       if (!HgfsBd_OpenBackdoor(&hgfsRpcOut)) {
@@ -183,7 +183,7 @@ HgfsSendUnsentReqs(void)
          LOG(8, (KERN_DEBUG "VMware hgfs: HgfsSendUnsentReqs: Backdoor "
                  "reply received\n"));
       } else {
-         
+
          /* Pass the error into the request. */
          req->state = HGFS_REQ_STATE_ERROR;
          list_del_init(&req->list);
@@ -259,7 +259,7 @@ HgfsResetOps(void)
  *----------------------------------------------------------------------
  */
 
-int 
+int
 HgfsBdHandler(void *data) // Ignored
 {
    LOG(6, (KERN_DEBUG "VMware hgfs: HgfsBdHandler: Thread starting\n"));
@@ -269,16 +269,16 @@ HgfsBdHandler(void *data) // Ignored
 
       /* Sleep, waiting for a request or exit. */
       wait_event_interruptible(hgfsReqThreadWait,
-                               test_bit(HGFS_REQ_THREAD_SEND, 
+                               test_bit(HGFS_REQ_THREAD_SEND,
                                         &hgfsReqThreadFlags) ||
                                compat_kthread_should_stop());
-      
-      /* 
+
+      /*
        * First, check for suspend. I'm not convinced that this actually
        * has to come first, but whatever.
        */
       if (compat_try_to_freeze()) {
-        LOG(6, (KERN_DEBUG 
+        LOG(6, (KERN_DEBUG
                 "VMware hgfs: HgfsBdHandler: Closing backdoor after resume\n"));
         HgfsBd_CloseBackdoor(&hgfsRpcOut);
       }
@@ -290,7 +290,7 @@ HgfsBdHandler(void *data) // Ignored
       }
 
       /* Kill yourself. */
-      if (compat_kthread_should_stop()) { 
+      if (compat_kthread_should_stop()) {
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsBdHandler: Told to exit\n"));
          break;
       }
index 5fdb261e455266a655c98a6cc649c79b64f37fe2..b9ada3bcfc89b9b12a26ab44716dbe363104ce33 100644 (file)
@@ -116,7 +116,7 @@ HgfsUnpackSearchReadReply(HgfsReq *req,        // IN: Reply packet
    case HGFS_OP_SEARCH_READ_V3: {
       HgfsReplySearchReadV3 *replyV3;
       HgfsDirEntry *dirent;
-      
+
       /* Currently V3 returns only 1 entry. */
       replyV3 = (HgfsReplySearchReadV3 *)(HGFS_REP_PAYLOAD_V3(req));
       replyV3->count = 1;
@@ -128,7 +128,7 @@ HgfsUnpackSearchReadReply(HgfsReq *req,        // IN: Reply packet
    }
    case HGFS_OP_SEARCH_READ_V2: {
       HgfsReplySearchReadV2 *replyV2;
-      
+
       replyV2 = (HgfsReplySearchReadV2 *)(HGFS_REQ_PAYLOAD(req));
       replySize = sizeof *replyV2;
       fileName = replyV2->fileName.name;
@@ -137,7 +137,7 @@ HgfsUnpackSearchReadReply(HgfsReq *req,        // IN: Reply packet
    }
    case HGFS_OP_SEARCH_READ: {
       HgfsReplySearchRead *replyV1;
-      
+
       replyV1 = (HgfsReplySearchRead *)(HGFS_REQ_PAYLOAD(req));
       replySize = sizeof *replyV1;
       fileName = replyV1->fileName.name;
@@ -157,9 +157,9 @@ HgfsUnpackSearchReadReply(HgfsReq *req,        // IN: Reply packet
        fileNameLength > HGFS_PACKET_MAX - replySize) {
       return -ENAMETOOLONG;
    }
-      
+
    /*
-    * If the size of the name is valid (meaning the end of the directory has 
+    * If the size of the name is valid (meaning the end of the directory has
     * not yet been reached), copy the name to the AttrInfo struct.
     *
     * XXX: This operation happens often and the length of the filename is
@@ -170,7 +170,7 @@ HgfsUnpackSearchReadReply(HgfsReq *req,        // IN: Reply packet
       /* Sanity check on name length. */
       if (fileNameLength != strlen(fileName)) {
          LOG(4, (KERN_DEBUG "VMware hgfs: HgfsUnpackSearchReadReply: name "
-                 "length mismatch %u/%Zu, name \"%s\"\n", 
+                 "length mismatch %u/%Zu, name \"%s\"\n",
                  fileNameLength, strlen(fileName), fileName));
          return -EPROTO;
       }
@@ -242,16 +242,16 @@ HgfsGetNextDirEntry(HgfsSuperInfo *si,       // IN: Superinfo for this SB
       HgfsRequestSearchReadV3 *request;
 
       header = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
-      header->op = attr->requestType = opUsed; 
+      header->op = attr->requestType = opUsed;
       header->id = req->id;
-      
+
       request = (HgfsRequestSearchReadV3 *)(HGFS_REQ_PAYLOAD_V3(req));
       request->search = searchHandle;
       request->offset = offset;
       req->payloadSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestSearchRead *request;
-      
+
       request = (HgfsRequestSearchRead *)(HGFS_REQ_PAYLOAD(req));
       request->header.op = attr->requestType = opUsed;
       request->header.id = req->id;
@@ -321,7 +321,7 @@ HgfsGetNextDirEntry(HgfsSuperInfo *si,       // IN: Superinfo for this SB
  *    Setup the directory open request, depending on the op version.
  *
  * Results:
- *    Returns zero on success, or negative error on failure. 
+ *    Returns zero on success, or negative error on failure.
  *
  * Side effects:
  *    None
@@ -329,7 +329,7 @@ HgfsGetNextDirEntry(HgfsSuperInfo *si,       // IN: Superinfo for this SB
  *----------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
                        struct file *file,   // IN: File pointer for this open
                        HgfsOp opUsed,       // IN: Op to be used
@@ -339,7 +339,7 @@ HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
    uint32 *nameLength;
    size_t requestSize;
    int result;
-   
+
    ASSERT(inode);
    ASSERT(file);
    ASSERT(req);
@@ -348,12 +348,12 @@ HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
    case HGFS_OP_SEARCH_OPEN_V3: {
       HgfsRequest *requestHeader;
       HgfsRequestSearchOpenV3 *requestV3;
-      
+
       requestHeader = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       requestHeader->op = opUsed;
       requestHeader->id = req->id;
 
-      requestV3 = (HgfsRequestSearchOpenV3 *)HGFS_REQ_PAYLOAD_V3(req); 
+      requestV3 = (HgfsRequestSearchOpenV3 *)HGFS_REQ_PAYLOAD_V3(req);
 
       /* We'll use these later. */
       name = requestV3->dirName.name;
@@ -366,7 +366,7 @@ HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
 
    case HGFS_OP_SEARCH_OPEN: {
       HgfsRequestSearchOpen *request;
-      
+
       request = (HgfsRequestSearchOpen *)(HGFS_REQ_PAYLOAD(req));
       request->header.op = opUsed;
       request->header.id = req->id;
@@ -385,7 +385,7 @@ HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
    }
 
    /* Build full name to send to server. */
-   if (HgfsBuildPath(name, HGFS_PACKET_MAX - (requestSize - 1), 
+   if (HgfsBuildPath(name, HGFS_PACKET_MAX - (requestSize - 1),
                      file->f_dentry) < 0) {
       LOG(4, (KERN_DEBUG "VMware hgfs: HgfsPackDirOpenRequest: build path failed\n"));
       return -EINVAL;
@@ -394,7 +394,7 @@ HgfsPackDirOpenRequest(struct inode *inode, // IN: Inode of the file to open
            name));
 
    /* Convert to CP name. */
-   result = CPName_ConvertTo(name, 
+   result = CPName_ConvertTo(name,
                              HGFS_PACKET_MAX - (requestSize - 1),
                              name);
    if (result < 0) {
@@ -465,10 +465,10 @@ HgfsDirOpen(struct inode *inode,  // IN: Inode of the dir to open
       opUsed = HGFS_OP_SEARCH_OPEN_V3;
       replySearch = &((HgfsReplySearchOpenV3 *)HGFS_REP_PAYLOAD_V3(req))->search;
    }
-   
+
    result = HgfsPackDirOpenRequest(inode, file, opUsed, req);
    if (result != 0) {
-      LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDirOpen: error packing request\n"));  
+      LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDirOpen: error packing request\n"));
       goto out;
    }
 
@@ -496,7 +496,7 @@ HgfsDirOpen(struct inode *inode,  // IN: Inode of the dir to open
                goto retry;
             }
             break;
-         
+
          default:
             LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDirOpen: server "
                     "returned error: %d\n", result));
@@ -626,9 +626,9 @@ HgfsReaddir(struct file *file, // IN:  Directory to read from
                                    &attr,
                                    &done);
       if (result == -ENAMETOOLONG) {
-         /* 
+         /*
           * Skip dentry if its name is too long (see below).
-          * 
+          *
           * XXX: If a bad server sends us bad packets, we can loop here
           * forever, as I did while testing *grumble*. Maybe we should error
           * in that case.
@@ -674,9 +674,9 @@ HgfsReaddir(struct file *file, // IN:  Directory to read from
        * just check its return value.
        */
       if (result < 0) {
-         /* 
+         /*
           * XXX: Another area where a bad server could cause us to loop
-          * forever. 
+          * forever.
           */
          file->f_pos++;
          continue;
@@ -727,11 +727,11 @@ HgfsReaddir(struct file *file, // IN:  Directory to read from
          if (attr.mask & HGFS_ATTR_VALID_FILEID) {
             ino = attr.hostFileId;
          } else {
-            ino = iunique(file->f_dentry->d_inode->i_sb, 
+            ino = iunique(file->f_dentry->d_inode->i_sb,
                           HGFS_RESERVED_INO);
          }
       }
-       
+
       /*
        * Call filldir for this dentry.
        */
@@ -821,7 +821,7 @@ HgfsDirRelease(struct inode *inode,  // IN: Inode that the file* points to
       req->payloadSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestSearchClose *request;
-   
+
       request = (HgfsRequestSearchClose *)(HGFS_REQ_PAYLOAD(req));
       request->header.id = req->id;
       request->header.op = opUsed = HGFS_OP_SEARCH_CLOSE;
@@ -835,7 +835,7 @@ HgfsDirRelease(struct inode *inode,  // IN: Inode that the file* points to
       /* Get the reply. */
       replyStatus = HgfsReplyStatus(req);
       result = HgfsStatusConvertToLinux(replyStatus);
-      
+
       switch (result) {
       case 0:
          LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDirRelease: release handle %u\n",
index a72908857e5bbd37fda27be41ccc4e735d7f5284..82d4c146af188abd14c7756674e89ac9393e2fbb 100644 (file)
@@ -179,9 +179,9 @@ HgfsPackOpenRequest(struct inode *inode, // IN: Inode of the file to open
       HgfsRequestOpenV3 *requestV3;
 
       requestHeader = (HgfsRequest *)HGFS_REQ_PAYLOAD(req);
-      requestHeader->op = opUsed; 
+      requestHeader->op = opUsed;
       requestHeader->id = req->id;
-      
+
       requestV3 = (HgfsRequestOpenV3 *)HGFS_REQ_PAYLOAD_V3(req);
       requestSize = HGFS_REQ_PAYLOAD_SIZE_V3(requestV3);
 
@@ -228,11 +228,11 @@ HgfsPackOpenRequest(struct inode *inode, // IN: Inode of the file to open
 
    case HGFS_OP_OPEN_V2: {
       HgfsRequestOpenV2 *requestV2;
-      
+
       requestV2 = (HgfsRequestOpenV2 *)(HGFS_REQ_PAYLOAD(req));
-      requestV2->header.op = opUsed; 
+      requestV2->header.op = opUsed;
       requestV2->header.id = req->id;
-      
+
       /* We'll use these later. */
       name = requestV2->fileName.name;
       nameLength = &requestV2->fileName.length;
@@ -271,9 +271,9 @@ HgfsPackOpenRequest(struct inode *inode, // IN: Inode of the file to open
    }
    case HGFS_OP_OPEN: {
       HgfsRequestOpen *request;
-      
+
       request = (HgfsRequestOpen *)(HGFS_REQ_PAYLOAD(req));
-      request->header.op = opUsed; 
+      request->header.op = opUsed;
       request->header.id = req->id;
 
       /* We'll use these later. */
@@ -652,7 +652,7 @@ HgfsOpen(struct inode *inode,  // IN: Inode of the file to open
             atomic_set(&hgfsVersionOpen, HGFS_OP_OPEN_V2);
             goto retry;
          }
-         
+
          /* Retry with Version 1 of Open. Set globally. */
          if (opUsed == HGFS_OP_OPEN_V2) {
             LOG(4, (KERN_DEBUG "VMware hgfs: HgfsOpen: Version 2 not "
index e9c6bacf119373e0c2fbd2c43d790ade57c27294..b04c415b6ecfa2eb74307d2da3ffd560354c1e3c 100644 (file)
@@ -19,7 +19,7 @@
 /*
  * filesystem.h --
  *
- * High-level filesystem operations for the filesystem portion of 
+ * High-level filesystem operations for the filesystem portion of
  * the vmhgfs driver.
  */
 
index 8943b231b09299026c718d61141d6ae9a6295104..cd48e95353dec9ef816907b13497abc5ffe7e59f 100644 (file)
@@ -37,7 +37,7 @@
 #include "vm_basic_types.h"
 #include "hgfsProto.h"
 
-/* 
+/*
  * Struct used to pass around attributes that Linux cares about.
  * These aren't just the attributes seen in HgfsAttr[V2]; we add a filename
  * pointer for convenience (used by SearchRead and Getattr).
index 292bfd024139bf9660d518c7a0691b22f2b30e65..737df619d8a4fbc5d5d5bc1c046b84b908f87a0f 100644 (file)
@@ -83,5 +83,10 @@ typedef enum {
 #define GUESTMSG_FLAG_COOKIE 0x80000000
 #define GUESTMSG_FLAG_ALL GUESTMSG_FLAG_COOKIE
 
+/*
+ * Maximum size of incoming message. This is to prevent denial of host service
+ * attacks from guest applications.
+ */
+#define GUESTMSG_MAX_IN_SIZE (64 * 1024)
 
 #endif /* _GUEST_MSG_DEF_H_ */
index 244ec31153667f33977855b18a76065c455fc02a..c4cb2654e93b8e80a5e111fe77a7151e0ee55a5e 100644 (file)
@@ -112,6 +112,15 @@ typedef enum {
 #define HGFS_VERSION_OLD           (1 << 0)
 #define HGFS_VERSION_3             (1 << 1)
 
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
+#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
+
+/* XXX: Needs change when VMCI is supported. */
+#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
+#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
+
+
 /*
  * File types, used in HgfsAttr. We support regular files,
  * directories, and symlinks.
index 66dc72d4c6a3e11e3af9386af328e4f2ceaa0dcf..1b98bf76147c5f87d2e68bc3a3a3b9970f2b16ac 100644 (file)
@@ -91,14 +91,6 @@ struct timespec {
 #define HGFS_NAME_BUFFER_SIZE(request) (HGFS_PACKET_MAX - (sizeof *request - 1))
 #define HGFS_NAME_BUFFER_SIZET(sizet) (HGFS_PACKET_MAX - (sizet) - 1)
 
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
-#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))
-
-/* XXX: Needs change when VMCI is supported. */
-#define HGFS_REQ_GET_PAYLOAD_V3(hgfsReq) ((char *)(hgfsReq) + sizeof(HgfsRequest))
-#define HGFS_REP_GET_PAYLOAD_V3(hgfsRep) ((char *)(hgfsRep) + sizeof(HgfsReply))
-
 #ifndef _WIN32
 /*
  * Routines for converting between Win NT and unix time formats. The
index 382c89b51340fdf549e4c6d2d3a1af38192c0281..d57adcdc44599c375057f8c93537ba3453cbd768 100644 (file)
@@ -249,7 +249,7 @@ HgfsDelete(struct inode *dir,      // IN: Parent dir of file/dir to delete
       reqSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestDelete *request;
-      
+
       request = (HgfsRequestDelete *)(HGFS_REQ_PAYLOAD(req));
       /* Fill out the request packet. */
       request->header.id = req->id;
@@ -424,11 +424,11 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
    case HGFS_OP_SETATTR_V3: {
       HgfsRequest *requestHeader;
       HgfsRequestSetattrV3 *requestV3;
-      
+
       requestHeader = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       requestHeader->op = opUsed;
       requestHeader->id = req->id;
-      
+
       requestV3 = (HgfsRequestSetattrV3 *)HGFS_REQ_PAYLOAD_V3(req);
       attrV2 = &requestV3->attr;
       hints = &requestV3->hints;
@@ -441,9 +441,9 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
       memset(attrV2, 0, sizeof *attrV2);
       memset(hints, 0, sizeof *hints);
 
-      /* 
-       * When possible, issue a setattr using an existing handle. This will 
-       * give us slightly better performance on a Windows server, and is more 
+      /*
+       * When possible, issue a setattr using an existing handle. This will
+       * give us slightly better performance on a Windows server, and is more
        * correct regardless. If we don't find a handle, fall back on setattr
        * by name.
        *
@@ -451,11 +451,11 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
        * the times also requires write permissions on Windows, so we require it
        * here too. Otherwise, any handle will do.
        */
-      if (allowHandleReuse && HgfsGetHandle(dentry->d_inode, 
-                                            (valid & ATTR_SIZE) || 
-                                            (valid & ATTR_ATIME) || 
-                                            (valid & ATTR_MTIME) ? 
-                                            HGFS_OPEN_MODE_WRITE_ONLY + 1 : 0, 
+      if (allowHandleReuse && HgfsGetHandle(dentry->d_inode,
+                                            (valid & ATTR_SIZE) ||
+                                            (valid & ATTR_ATIME) ||
+                                            (valid & ATTR_MTIME) ?
+                                            HGFS_OPEN_MODE_WRITE_ONLY + 1 : 0,
                                             &handle) == 0) {
          *hints = HGFS_ATTR_HINT_USE_FILE_DESC;
          requestV3->file = handle;
@@ -478,17 +478,17 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
        */
 
       if (valid & ATTR_MODE) {
-         attrV2->mask |= HGFS_ATTR_VALID_SPECIAL_PERMS | 
-            HGFS_ATTR_VALID_OWNER_PERMS | HGFS_ATTR_VALID_GROUP_PERMS | 
+         attrV2->mask |= HGFS_ATTR_VALID_SPECIAL_PERMS |
+            HGFS_ATTR_VALID_OWNER_PERMS | HGFS_ATTR_VALID_GROUP_PERMS |
             HGFS_ATTR_VALID_OTHER_PERMS;
-         attrV2->specialPerms = ((iattr->ia_mode & 
+         attrV2->specialPerms = ((iattr->ia_mode &
                                   (S_ISUID | S_ISGID | S_ISVTX)) >> 9);
          attrV2->ownerPerms = ((iattr->ia_mode & S_IRWXU) >> 6);
          attrV2->groupPerms = ((iattr->ia_mode & S_IRWXG) >> 3);
          attrV2->otherPerms = (iattr->ia_mode & S_IRWXO);
          *changed = TRUE;
       }
-      
+
       if (valid & ATTR_UID) {
          attrV2->mask |= HGFS_ATTR_VALID_USERID;
          attrV2->userId = iattr->ia_uid;
@@ -506,7 +506,7 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
          attrV2->size = iattr->ia_size;
          *changed = TRUE;
       }
-      
+
       if (valid & ATTR_ATIME) {
          attrV2->mask |= HGFS_ATTR_VALID_ACCESS_TIME;
          attrV2->accessTime = HGFS_GET_TIME(iattr->ia_atime);
@@ -515,7 +515,7 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
          }
          *changed = TRUE;
       }
-      
+
       if (valid & ATTR_MTIME) {
          attrV2->mask |= HGFS_ATTR_VALID_WRITE_TIME;
          attrV2->writeTime = HGFS_GET_TIME(iattr->ia_mtime);
@@ -529,11 +529,11 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
 
    case HGFS_OP_SETATTR_V2: {
       HgfsRequestSetattrV2 *requestV2;
-      
+
       requestV2 = (HgfsRequestSetattrV2 *)(HGFS_REQ_PAYLOAD(req));
       requestV2->header.op = opUsed;
       requestV2->header.id = req->id;
-      
+
       attrV2 = &requestV2->attr;
       hints = &requestV2->hints;
 
@@ -632,11 +632,11 @@ HgfsPackSetattrRequest(struct iattr *iattr,   // IN: Inode attrs to update from
 
    case HGFS_OP_SETATTR: {
       HgfsRequestSetattr *request;
-      
+
       request = (HgfsRequestSetattr *)(HGFS_REQ_PAYLOAD(req));
       request->header.op = opUsed;
       request->header.id = req->id;
-      
+
       attr = &request->attr;
       update = &request->update;
 
@@ -761,11 +761,11 @@ HgfsPackCreateDirRequest(struct dentry *dentry, // IN: Directory to create
    case HGFS_OP_CREATE_DIR_V3: {
       HgfsRequest *requestHeader;
       HgfsRequestCreateDirV3 *requestV3;
-      
+
       requestHeader = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       requestHeader->op = opUsed;
       requestHeader->id = req->id;
-      
+
       requestV3 = (HgfsRequestCreateDirV3 *)(HGFS_REQ_PAYLOAD_V3(req));
 
       /* We'll use these later. */
@@ -787,7 +787,7 @@ HgfsPackCreateDirRequest(struct dentry *dentry, // IN: Directory to create
    }
    case HGFS_OP_CREATE_DIR_V2: {
       HgfsRequestCreateDirV2 *requestV2;
-      
+
       requestV2 = (HgfsRequestCreateDirV2 *)(HGFS_REQ_PAYLOAD(req));
       requestV2->header.op = opUsed;
       requestV2->header.id = req->id;
@@ -808,7 +808,7 @@ HgfsPackCreateDirRequest(struct dentry *dentry, // IN: Directory to create
    }
    case HGFS_OP_CREATE_DIR: {
       HgfsRequestCreateDir *request;
-      
+
       request = (HgfsRequestCreateDir *)(HGFS_REQ_PAYLOAD(req));
 
       /* We'll use these later. */
@@ -1364,7 +1364,7 @@ retry:
 
       header->op = opUsed = HGFS_OP_RENAME_V3;
       header->id = req->id;
-      
+
       oldName = request->oldName.name;
       oldNameLength = &request->oldName.length;
       request->oldName.flags = 0;
@@ -1372,7 +1372,7 @@ retry:
       reqSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestRename *request = (HgfsRequestRename *)HGFS_REQ_PAYLOAD(req);
-      
+
       request->header.op = opUsed = HGFS_OP_RENAME;
       oldName = request->oldName.name;
       oldNameLength = &request->oldName.length;
@@ -1496,7 +1496,7 @@ out:
  *    Setup the create symlink request, depending on the op version.
  *
  * Results:
- *    Returns zero on success, or negative error on failure. 
+ *    Returns zero on success, or negative error on failure.
  *
  * Side effects:
  *    None
@@ -1528,11 +1528,11 @@ HgfsPackSymlinkCreateRequest(struct dentry *dentry,   // IN: File pointer for th
    switch (opUsed) {
    case HGFS_OP_CREATE_SYMLINK_V3: {
       HgfsRequest *requestHeader;
-      
+
       requestHeader = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       requestHeader->op = opUsed;
       requestHeader->id = req->id;
-      
+
       requestV3 = (HgfsRequestSymlinkCreateV3 *)HGFS_REQ_PAYLOAD_V3(req);
 
       /* We'll use these later. */
@@ -1544,7 +1544,7 @@ HgfsPackSymlinkCreateRequest(struct dentry *dentry,   // IN: File pointer for th
       break;
    }
    case HGFS_OP_CREATE_SYMLINK: {
-      
+
       request = (HgfsRequestSymlinkCreate *)(HGFS_REQ_PAYLOAD(req));
       request->header.op = opUsed;
       request->header.id = req->id;
@@ -1820,7 +1820,7 @@ HgfsSetattr(struct dentry *dentry,  // IN: File to set attributes of
    if (atomic_read(&hgfsProtocolVersion) == HGFS_VERSION_3) {
       opUsed = HGFS_OP_SETATTR_V3;
    }
-   
+
    result = HgfsPackSetattrRequest(iattr, dentry, allowHandleReuse,
                                    opUsed, req, &changed);
    if (result != 0 || !changed) {
index b7162345e79451d6eda2e6ea239d7803e7af0558..e684fb202e70fcec1e6238a5acdec296580b2042 100644 (file)
@@ -19,7 +19,7 @@
 /*
  * link.c --
  *
- * Symlink-specific inode operations for the filesystem portion of the 
+ * Symlink-specific inode operations for the filesystem portion of the
  * vmhgfs driver.
  */
 
 
 /* HGFS symlink operations. */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
-static void *HgfsFollowlink(struct dentry *dentry, 
+static void *HgfsFollowlink(struct dentry *dentry,
                             struct nameidata *nd);
 #else
-static int HgfsFollowlink(struct dentry *dentry, 
+static int HgfsFollowlink(struct dentry *dentry,
                           struct nameidata *nd);
 #endif
 static int HgfsReadlink(struct dentry *dentry,
@@ -52,8 +52,8 @@ struct inode_operations HgfsLinkInodeOperations = {
    .readlink      = HgfsReadlink,
 };
 
-/* 
- * HGFS symlink operations. 
+/*
+ * HGFS symlink operations.
  */
 
 /*
@@ -103,14 +103,14 @@ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link
    attr.fileName = NULL;
    error = HgfsPrivateGetattr(dentry, &attr);
    if (!error) {
-      
+
       /* Let's make sure we got called on a symlink. */
       if (attr.type != HGFS_FILE_TYPE_SYMLINK ||
           attr.fileName == NULL) {
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsFollowlink: got called "
                  "on something that wasn't a symlink\n"));
          error = -EINVAL;
-      } else {         
+      } else {
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsFollowlink: calling "
                  "vfs_follow_link\n"));
          error = vfs_follow_link(nd, attr.fileName);
@@ -144,7 +144,7 @@ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link
  *----------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsReadlink(struct dentry *dentry,  // IN:  Dentry containing link
              char __user *buffer,    // OUT: User buffer to copy link into
              int buflen)             // IN:  Length of user buffer
@@ -166,14 +166,14 @@ HgfsReadlink(struct dentry *dentry,  // IN:  Dentry containing link
    attr.fileName = NULL;
    error = HgfsPrivateGetattr(dentry, &attr);
    if (!error) {
-      
+
       /* Let's make sure we got called on a symlink. */
       if (attr.type != HGFS_FILE_TYPE_SYMLINK ||
           attr.fileName == NULL) {
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: got called "
                  "on something that wasn't a symlink\n"));
          error = -EINVAL;
-      } else {         
+      } else {
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling "
                  "vfs_readlink\n"));
          error = vfs_readlink(dentry, buffer, buflen, attr.fileName);
index 62211d5c2f0f2f4a5171eb80f7593ce21d28510a..f4764c685badbe000eb536df92b44826f9697916 100644 (file)
@@ -59,7 +59,7 @@ extern int LOGLEVEL_THRESHOLD;
 /* The amount of time we'll wait for the backdoor to process our request. */
 #define HGFS_REQUEST_TIMEOUT (30 * HZ)
 
-/* 
+/*
  * Inode number of the root inode. We set this to be non-zero because,
  * according to glibc source, when the returned inode number in a dirent
  * is zero, that entry has been deleted. This is presumably when you've done
@@ -127,7 +127,7 @@ extern int LOGLEVEL_THRESHOLD;
 
 /*
  * The writeback support we're using (set_page_dirty()) was added in
- * 2.5.12, so we only support writeback from then on. 
+ * 2.5.12, so we only support writeback from then on.
  */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 12)
 #define HGFS_ENABLE_WRITEBACK
@@ -162,8 +162,8 @@ typedef struct HgfsSuperInfo {
    size_t shareNameLen;             /* To avoid repeated strlen() calls. */
 } HgfsSuperInfo;
 
-/* 
- * HGFS specific per-inode data. 
+/*
+ * HGFS specific per-inode data.
  */
 typedef struct HgfsInodeInfo {
 #ifdef VMW_EMBED_INODE
@@ -195,9 +195,9 @@ typedef struct HgfsFileInfo {
    /* Handle to be sent to the server. Needed for writepage(). */
    HgfsHandle handle;
 
-   /* 
-    * Mode with which handle was opened. When we reuse a handle, we need to 
-    * choose one with appropriate permissions. 
+   /*
+    * Mode with which handle was opened. When we reuse a handle, we need to
+    * choose one with appropriate permissions.
     */
    HgfsOpenMode mode;
 } HgfsFileInfo;
@@ -208,18 +208,18 @@ typedef struct HgfsFileInfo {
  */
 
 /*
- * We use hgfsBigLock to protect certain global structures that are locked for 
+ * We use hgfsBigLock to protect certain global structures that are locked for
  * a very short amount of time.
  */
 extern spinlock_t hgfsBigLock;
 
-/* 
+/*
  * The request handler thread uses hgfsReqThreadWait to wake up and handle
  * IO. Possible operations include:
  *   -Sending outgoing HGFS requests.
  *   -Shutting down the request handler thread.
  *
- * Finally, we use hgfsReqThread to synchronize the stopping of the 
+ * Finally, we use hgfsReqThread to synchronize the stopping of the
  * backdoor handler thread.
  */
 extern long hgfsReqThreadFlags;
index 0d3f23c7f2f28aeff0ff7dfc19e890c29fb9d242..38dd0d7f261a7eb9a19e29d267f0f8992d7edbb9 100644 (file)
 #include "vm_basic_types.h"
 
 /*
- * Max amount of read/write data per server request. Must be smaller than 
- * HGFS_PACKET_MAX by a large enough margin to allow for headers and 
+ * Max amount of read/write data per server request. Must be smaller than
+ * HGFS_PACKET_MAX by a large enough margin to allow for headers and
  * other request fields.
  */
-#define HGFS_IO_MAX 4096               
+#define HGFS_IO_MAX 4096
 
 /* Private functions. */
 static int HgfsDoWrite(HgfsHandle handle,
@@ -71,21 +71,21 @@ static int HgfsDoWritepage(HgfsHandle handle,
                            unsigned pageTo);
 
 /* HGFS address space operations. */
-static int HgfsReadpage(struct file *file, 
+static int HgfsReadpage(struct file *file,
                         struct page *page);
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 52)
-static int HgfsWritepage(struct page *page, 
+static int HgfsWritepage(struct page *page,
                          struct writeback_control *wbc);
 #else
 static int HgfsWritepage(struct page *page);
 #endif
-static int HgfsPrepareWrite(struct file *file, 
+static int HgfsPrepareWrite(struct file *file,
                             struct page *page,
-                            unsigned pageFrom, 
+                            unsigned pageFrom,
                             unsigned pageTo);
-static int HgfsCommitWrite(struct file *file, 
+static int HgfsCommitWrite(struct file *file,
                            struct page *page,
-                           unsigned pageFrom, 
+                           unsigned pageFrom,
                            unsigned pageTo);
 
 /* HGFS address space operations structure. */
@@ -100,8 +100,8 @@ struct address_space_operations HgfsAddressSpaceOperations = {
 };
 
 
-/* 
- * Private functions. 
+/*
+ * Private functions.
  */
 
 /*
@@ -114,7 +114,7 @@ struct address_space_operations HgfsAddressSpaceOperations = {
  *
  *    We send a "Read" request to the server with the given handle.
  *
- *    It is assumed that this function is never called with a larger read than 
+ *    It is assumed that this function is never called with a larger read than
  *    what can be sent in one request.
  *
  * Results:
@@ -153,11 +153,11 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
    if (atomic_read(&hgfsProtocolVersion) == HGFS_VERSION_3) {
       HgfsRequest *header;
       HgfsRequestReadV3 *request;
-      
+
       header = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       header->id = req->id;
       header->op = opUsed = HGFS_OP_READ_V3;
-      
+
       request = (HgfsRequestReadV3 *)(HGFS_REQ_PAYLOAD_V3(req));
       request->file = handle;
       request->offset = offset;
@@ -165,7 +165,7 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
       req->payloadSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestRead *request;
-      
+
       request = (HgfsRequestRead *)(HGFS_REQ_PAYLOAD(req));
       request->header.id = req->id;
       request->header.op = opUsed = HGFS_OP_READ;
@@ -182,7 +182,7 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
       /* Get the reply. */
       replyStatus = HgfsReplyStatus(req);
       result = HgfsStatusConvertToLinux(replyStatus);
-      
+
       switch (result) {
       case 0:
          if (opUsed == HGFS_OP_READ_V3) {
@@ -199,7 +199,7 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
             result = -EPROTO;
             goto out;
          }
-      
+
          if (!actualSize) {
             /* We got no bytes, so don't need to copy to user. */
             LOG(6, (KERN_DEBUG "VMware hgfs: HgfsDoRead: server returned "
@@ -212,7 +212,7 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
          memcpy(buf, payload, actualSize);
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsDoRead: copied %u\n",
                  actualSize));
-         result = actualSize;         
+         result = actualSize;
         break;
 
       case -EPROTO:
@@ -249,13 +249,13 @@ out:
  *
  * HgfsDoWrite --
  *
- *    Do one write request. Called by HgfsDoWritepage, possibly multiple 
- *    times if the size of the write is too big to be handled by one server 
+ *    Do one write request. Called by HgfsDoWritepage, possibly multiple
+ *    times if the size of the write is too big to be handled by one server
  *    request.
  *
  *    We send a "Write" request to the server with the given handle.
  *
- *    It is assumed that this function is never called with a larger write 
+ *    It is assumed that this function is never called with a larger write
  *    than what can be sent in one request.
  *
  * Results:
@@ -296,7 +296,7 @@ HgfsDoWrite(HgfsHandle handle,       // IN: Handle for this file
    if (atomic_read(&hgfsProtocolVersion) == HGFS_VERSION_3) {
       HgfsRequest *header;
       HgfsRequestWriteV3 *request;
-      
+
       header = (HgfsRequest *)(HGFS_REQ_PAYLOAD(req));
       header->id = req->id;
       header->op = opUsed = HGFS_OP_WRITE_V3;
@@ -311,7 +311,7 @@ HgfsDoWrite(HgfsHandle handle,       // IN: Handle for this file
       reqSize = HGFS_REQ_PAYLOAD_SIZE_V3(request);
    } else {
       HgfsRequestWrite *request;
-      
+
       request = (HgfsRequestWrite *)(HGFS_REQ_PAYLOAD(req));
       request->header.id = req->id;
       request->header.op = opUsed = HGFS_OP_WRITE;
@@ -341,7 +341,7 @@ HgfsDoWrite(HgfsHandle handle,       // IN: Handle for this file
          } else {
             actualSize = ((HgfsReplyWrite *)HGFS_REQ_PAYLOAD(req))->actualSize;
         }
-      
+
          /* Return result. */
          LOG(6, (KERN_DEBUG "VMware hgfs: HgfsDoWrite: wrote %u bytes\n",
                  actualSize));
@@ -399,7 +399,7 @@ out:
  *-----------------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsDoReadpage(HgfsHandle handle,  // IN:     Handle to use for reading
                struct page *page,  // IN/OUT: Page to read into
                unsigned pageFrom,  // IN:     Where to start reading to
@@ -433,15 +433,15 @@ HgfsDoReadpage(HgfsHandle handle,  // IN:     Handle to use for reading
       buffer += result;
    } while ((result > 0) && (remainingCount > 0));
 
-   /* 
+   /*
     * It's possible that despite being asked to read a full page, there is less
-    * than a page in the file from this offset, so we should zero the rest of 
+    * than a page in the file from this offset, so we should zero the rest of
     * the page's memory.
     */
    memset(buffer, 0, remainingCount);
 
-   /* 
-    * We read a full page (or all of the page that actually belongs to the 
+   /*
+    * We read a full page (or all of the page that actually belongs to the
     * file), so mark it up to date. Also, flush the old page data from the data
     * cache.
     */
@@ -489,7 +489,7 @@ HgfsDoReadpage(HgfsHandle handle,  // IN:     Handle to use for reading
  *-----------------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsDoWritepage(HgfsHandle handle,  // IN: Handle to use for writing
                 struct page *page,  // IN: Page containing data to write
                 unsigned pageFrom,  // IN: Beginning page offset
@@ -517,7 +517,7 @@ HgfsDoWritepage(HgfsHandle handle,  // IN: Handle to use for writing
          HGFS_IO_MAX : remainingCount;
       result = HgfsDoWrite(handle, buffer, nextCount, curOffset);
       if (result < 0) {
-         LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDoWritepage: write error %d\n", 
+         LOG(4, (KERN_DEBUG "VMware hgfs: HgfsDoWritepage: write error %d\n",
                  result));
          goto out;
       }
@@ -564,8 +564,8 @@ HgfsDoWritepage(HgfsHandle handle,  // IN: Handle to use for writing
  *-----------------------------------------------------------------------------
  */
 
-static int 
-HgfsReadpage(struct file *file, // IN:     File to read from 
+static int
+HgfsReadpage(struct file *file, // IN:     File to read from
              struct page *page) // IN/OUT: Page to write to
 {
    int result = 0;
@@ -578,7 +578,7 @@ HgfsReadpage(struct file *file, // IN:     File to read from
 
    handle = FILE_GET_FI_P(file)->handle;
    LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadPage: reading from handle %u\n",
-           handle));   
+           handle));
 
    page_cache_get(page);
    result = HgfsDoReadpage(handle, page, 0, PAGE_CACHE_SIZE);
@@ -594,9 +594,9 @@ HgfsReadpage(struct file *file, // IN:     File to read from
  * HgfsWritepage --
  *
  *    The "spontaneous" way to write a page, called when the kernel is under
- *    memory pressure or is asked to sync a memory mapped file. Because 
- *    writepage() can be called from so many different places, we don't get a 
- *    filp with which to write, and we have to be very careful about races and 
+ *    memory pressure or is asked to sync a memory mapped file. Because
+ *    writepage() can be called from so many different places, we don't get a
+ *    filp with which to write, and we have to be very careful about races and
  *    locking.
  *
  * Results:
@@ -609,11 +609,11 @@ HgfsReadpage(struct file *file, // IN:     File to read from
  */
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 52)
-static int 
+static int
 HgfsWritepage(struct page *page,             // IN: Page to write from
               struct writeback_control *wbc) // IN: Ignored
 #else
-static int 
+static int
 HgfsWritepage(struct page *page)             // IN: Page to write from
 #endif
 {
@@ -630,8 +630,8 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
    inode = page->mapping->host;
 
    /* We need a writable file handle. */
-   result = HgfsGetHandle(inode, 
-                          HGFS_OPEN_MODE_WRITE_ONLY + 1, 
+   result = HgfsGetHandle(inode,
+                          HGFS_OPEN_MODE_WRITE_ONLY + 1,
                           &handle);
    if (result) {
       LOG(4, (KERN_DEBUG "VMware hgfs: HgfsWritepage: could not get writable "
@@ -639,7 +639,7 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
       goto exit;
    }
 
-   /* 
+   /*
     * We were given an entire page to write. In most cases this means "start
     * writing from the beginning of the page (byte 0) to the very end (byte
     * PAGE_CACHE_SIZE). But what if this is the last page of the file? Then
@@ -662,7 +662,7 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
       }
    }
 
-   /* 
+   /*
     * This part is fairly intricate, so it deserves some explanation. We're
     * really interested in calling HgfsDoWritepage with our page and
     * handle, without having to then worry about locks or references. See
@@ -670,19 +670,19 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
     * must obey.
     *
     * Firstly, we acquire a reference to the page via page_cache_get() and call
-    * compat_set_page_writeback(). The latter does a number of things: it sets 
-    * the writeback bit on the page, and if it wasn't already set, it sets the 
+    * compat_set_page_writeback(). The latter does a number of things: it sets
+    * the writeback bit on the page, and if it wasn't already set, it sets the
     * writeback bit in the radix tree. Then, if the page isn't dirty, it clears
-    * the dirty bit in the radix tree. The end result is that the radix tree's 
+    * the dirty bit in the radix tree. The end result is that the radix tree's
     * notion of dirty and writeback is fully synced with the page itself.
     *
-    * Secondly, we write the page itself. 
+    * Secondly, we write the page itself.
     *
-    * Thirdly, we end writeback of the page via compat_end_page_writeback(), 
+    * Thirdly, we end writeback of the page via compat_end_page_writeback(),
     * and release our reference on the page.
     *
-    * Finally, we unlock the page, waking up its waiters and making it 
-    * available to anyone else. Note that this step must be performed 
+    * Finally, we unlock the page, waking up its waiters and making it
+    * available to anyone else. Note that this step must be performed
     * regardless of whether we wrote anything, as the VFS locked the page for
     * us.
     */
@@ -705,7 +705,7 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
  *
  *      Called by the generic write path to set up a write request for a page.
  *      We're expected to do any pre-allocation and housekeeping prior to
- *      receiving the write. 
+ *      receiving the write.
  *
  * Results:
  *      Always zero.
@@ -716,7 +716,7 @@ HgfsWritepage(struct page *page)             // IN: Page to write from
  *-----------------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsPrepareWrite(struct file *file,  // IN: Ignored
                  struct page *page,  // IN: Page to prepare
                  unsigned pageFrom,  // IN: Beginning page offset
@@ -734,7 +734,7 @@ HgfsPrepareWrite(struct file *file,  // IN: Ignored
    if ((offset >= currentFileSize) ||
        ((pageFrom == 0) && (offset + pageTo) >= currentFileSize)) {
       void *kaddr = kmap_atomic(page, KM_USER0);
-       
+
       if (pageFrom) {
          memset(kaddr, 0, pageFrom);
       }
@@ -746,11 +746,11 @@ HgfsPrepareWrite(struct file *file,  // IN: Ignored
    }
 #endif
 
-   /* 
-    * Prior to 2.4.10, our caller expected to call page_address(page) between 
+   /*
+    * Prior to 2.4.10, our caller expected to call page_address(page) between
     * the calls to prepare_write() and commit_write(). This meant filesystems
-    * had to kmap() the page in prepare_write() and kunmap() it in 
-    * commit_write(). In 2.4.10, the call to page_address() was replaced with 
+    * had to kmap() the page in prepare_write() and kunmap() it in
+    * commit_write(). In 2.4.10, the call to page_address() was replaced with
     * __copy_to_user(), and while its not clear to me why this is safer,
     * nfs_prepare_write() dropped the kmap()/kunmap() calls in the same patch,
     * so the two events must be related.
@@ -768,9 +768,9 @@ HgfsPrepareWrite(struct file *file,  // IN: Ignored
  * HgfsCommitWrite --
  *
  *    This function is the more common write path for HGFS, called from
- *    generic_file_buffered_write. It is much simpler for us than 
- *    HgfsWritepage above: the caller has obtained a reference to the page 
- *    and will unlock it when we're done. And we don't need to worry about 
+ *    generic_file_buffered_write. It is much simpler for us than
+ *    HgfsWritepage above: the caller has obtained a reference to the page
+ *    and will unlock it when we're done. And we don't need to worry about
  *    properly marking the writeback bit, either. See mm/filemap.c in the
  *    kernel for details about how we are called.
  *
@@ -783,7 +783,7 @@ HgfsPrepareWrite(struct file *file,  // IN: Ignored
  *-----------------------------------------------------------------------------
  */
 
-static int 
+static int
 HgfsCommitWrite(struct file *file, // IN: File we're writing to
                 struct page *page, // IN: Page we're writing from
                 unsigned pageFrom, // IN: Beginning page offset
@@ -810,15 +810,15 @@ HgfsCommitWrite(struct file *file, // IN: File we're writing to
    if (writeTo > currentFileSize) {
       compat_i_size_write(inode, writeTo);
    }
-   
+
    /* We wrote a complete page, so it is up to date. */
    if ((pageTo - pageFrom) == PAGE_CACHE_SIZE) {
       SetPageUptodate(page);
    }
 
 #ifdef HGFS_ENABLE_WRITEBACK
-   /* 
-    * Check if this is a partial write to a new page, which was 
+   /*
+    * Check if this is a partial write to a new page, which was
     * initialized in HgfsPrepareWrite.
     */
    if ((offset >= currentFileSize) ||
@@ -842,8 +842,8 @@ HgfsCommitWrite(struct file *file, // IN: File we're writing to
     * would make it uptodate (ie a complete cached page).
     */
    handle = FILE_GET_FI_P(file)->handle;
-   LOG(6, (KERN_DEBUG "VMware hgfs: HgfsCommitWrite: writing to handle %u\n", 
-           handle));   
+   LOG(6, (KERN_DEBUG "VMware hgfs: HgfsCommitWrite: writing to handle %u\n",
+           handle));
    return HgfsDoWritepage(handle, page, pageFrom, pageTo);
 }
 
index 918f75e7b3bf1cd380ad7d9815fecedf6a1bd665..24c8d16718c3899dfb11c1d4b18af54b2614668e 100644 (file)
@@ -79,13 +79,13 @@ HgfsWaitRequestReply(HgfsReq *req)  // IN/OUT: Request object
       LOG(4, (KERN_DEBUG "VMware hgfs: HgfsWaitRequestReply: null req\n"));
       return -EINVAL;
    }
-   
-   timeleft = wait_event_timeout(req->queue, 
+
+   timeleft = wait_event_timeout(req->queue,
                                  (req->state == HGFS_REQ_STATE_COMPLETED ||
                                   req->state == HGFS_REQ_STATE_ERROR),
                                  HGFS_REQUEST_TIMEOUT);
-   /* 
-    * Did we time out? If so, abandon the request. We have to be careful, 
+   /*
+    * Did we time out? If so, abandon the request. We have to be careful,
     * because a timeout means that the request is still on a list somewhere.
     */
    if (timeleft == 0) {
@@ -95,7 +95,7 @@ HgfsWaitRequestReply(HgfsReq *req)  // IN/OUT: Request object
       }
       spin_unlock(&hgfsBigLock);
 
-      /* 
+      /*
        * Notice that we're completely ignoring any pending signals. That's
        * because the request timed out; it was not interrupted. There's no
        * point in having the client retry the syscall (through -ERESTARTSYS) if
@@ -103,7 +103,7 @@ HgfsWaitRequestReply(HgfsReq *req)  // IN/OUT: Request object
        */
       err = -EIO;
    } else if (req->state == HGFS_REQ_STATE_ERROR) {
-      /* 
+      /*
        * If the backdoor exploded, let's modify the return value so the client
        * knows about it. We only care about this if we didn't timeout.
        */
@@ -195,10 +195,10 @@ HgfsSendRequest(HgfsReq *req)       // IN/OUT: Outgoing request
 
    req->state = HGFS_REQ_STATE_UNSENT;
 
-   LOG(8, (KERN_DEBUG "VMware hgfs: HgfsSendRequest: Sending request id %d\n", 
+   LOG(8, (KERN_DEBUG "VMware hgfs: HgfsSendRequest: Sending request id %d\n",
            req->id));
 
-   /* 
+   /*
     * Add the request to the queue, wake up the backdoor handler thread, and
     * wait for a reply.
     */
@@ -210,7 +210,7 @@ HgfsSendRequest(HgfsReq *req)       // IN/OUT: Outgoing request
    wake_up_interruptible(&hgfsReqThreadWait);
    error = HgfsWaitRequestReply(req);
 
-   return error; 
+   return error;
 }
 
 
@@ -234,7 +234,7 @@ void
 HgfsFreeRequest(HgfsReq *req) // IN: Request to free
 {
    ASSERT(hgfsReqCache);
-   
+
    /* Atomically decrement counter. */
    spin_lock(&hgfsBigLock);
    hgfsIdCounter--;
index ef5f37973286f088bf20c6f2d1072c2f99e33b7c..76164ac5ffd106e2270abbcf7dddf9290e724fef 100644 (file)
@@ -60,7 +60,7 @@
  *    asynchronously. The request is now on the sent list, and whenever
  *    the reply arrives, the backdoor handler will remove the request from
  *    the sent list and stuff the reply into the request's packet buffer.
- *    
+ *
  * HGFS_REQ_STATE_ERROR:
  *    The backdoor handler encountered an error while sending the request
  *    or getting the reply. The filesystem half of the driver should
@@ -83,11 +83,11 @@ typedef enum {
  * A request to be sent to the user process.
  */
 typedef struct HgfsReq {
+
    /* Links to place the object on various lists. */
    struct list_head list;
-   /* 
+
+   /*
     * When clients wait for the reply to a request, they'll wait on this
     * wait queue.
     */
@@ -102,7 +102,7 @@ typedef struct HgfsReq {
    /* Total size of the payload.*/
    size_t payloadSize;
 
-   /* 
+   /*
     * Packet of data, for both incoming and outgoing messages.
     * Include room for the command.
     */
index 9ec83eca0558ad1d39d2ef36a18d1f4616741a17..26c2ca7f0f26e0922cafa9973d445bf309ad79fe 100644 (file)
@@ -286,7 +286,7 @@ uint64set(void *dst, uint64 val, uint64 count)
  *-----------------------------------------------------------------------------
  */
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(_MSC_VER)
 
 static INLINE void
 Div643232(uint64 dividend,   // IN
@@ -294,8 +294,8 @@ Div643232(uint64 dividend,   // IN
           uint32 *quotient,  // OUT
           uint32 *remainder) // OUT
 {
-   *quotient = dividend / divisor;
-   *remainder = dividend % divisor;
+   *quotient = (uint32)(dividend / divisor);
+   *remainder = (uint32)(dividend % divisor);
 }
 
 #endif
index bd264c975d5f88fb2c7b906dea02a0c0ca2cc25e..41b969b875b2e00fcee847b5b5b52f246616abf3 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index 07e500d680c6a0aa639bc241c8eb7e7adadcedef..6d8a1111442b991fb7c89eec489bc66573169660 100644 (file)
@@ -390,10 +390,14 @@ FLAGDEFA( 81, EDX, AMD,    31,  1, 3DNOW,               HOST,    0, TRUE,  3DNOW
 
 /*    LEVEL, REG, VENDOR, POS, SIZE, NAME,   MASK TYPE, SET TO, CPL3, [FUNC] */
 #define CPUID_FIELD_DATA_LEVEL_8x                                              \
-FIELDDEF( 86, ECX, AMD,     0,  8, CACHE_LINE,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,     8,  4, CACHE_LINE_PER_TAG,  IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    12,  4, CACHE_WAYS,          IGNORE,  0, FALSE)            \
-FIELDDEF( 86, ECX, AMD,    16, 16, CACHE_SIZE,          IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     0,  8, L2CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,     8,  4, L2CACHE_LINE_PER_TAG, IGNORE, 0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    12,  4, L2CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, ECX, AMD,    16, 16, L2CACHE_SIZE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     0,  8, L3CACHE_LINE,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,     8,  4, L3CACHE_LINE_PER_TAG,IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    12,  4, L3CACHE_WAYS,        IGNORE,  0, FALSE)            \
+FIELDDEF( 86, EDX, AMD,    18, 14, L3CACHE_SIZE,        IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     0,  1, TS,                  IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     1,  1, FID,                 IGNORE,  0, FALSE)            \
 FLAGDEF(  87, EDX, AMD,     2,  1, VID,                 IGNORE,  0, FALSE)            \
@@ -595,6 +599,7 @@ FIELD_FUNC(MWAIT_C4_SUBSTATE, CPUID_INTEL_ID5EDX_MWAIT_C4_SUBSTATE)
 #define CPUID_MODEL_CORE       14
 #define CPUID_MODEL_CORE2      15
 #define CPUID_MODEL_PENRYN     0x17  // Effective model
+#define CPUID_MODEL_NEHALEM    0x1a  // Effective model
 
 static INLINE uint32
 CPUID_EFFECTIVE_FAMILY(uint32 v) /* %eax from CPUID with %eax=1. */
index bd264c975d5f88fb2c7b906dea02a0c0ca2cc25e..41b969b875b2e00fcee847b5b5b52f246616abf3 100644 (file)
@@ -110,7 +110,6 @@ Max(int a, int b)
 
 #define IMPLIES(a,b) (!(a) || (b))
 
-
 /*
  * Not everybody (e.g., the monitor) has NULL
  */
@@ -551,4 +550,20 @@ typedef int pid_t;
 #define VMW_INVALID_HANDLE -1
 #endif
 
+/*
+ * Debug output macros for Windows drivers (the Eng variant is for
+ * display/printer drivers only.
+ */
+#ifdef _WIN32
+#ifndef USES_OLD_WINDDK
+#if defined(VMX86_DEBUG) || defined(ASSERT_ALWAYS_AVAILABLE)
+#define WinDrvPrint(arg, ...) DbgPrint(arg, __VA_ARGS__)
+#define WinDrvEngPrint(arg, ...) EngDbgPrint(arg, __VA_ARGS__)
+#else
+#define WinDrvPrint(arg, ...)
+#define WinDrvEngPrint(arg, ...)
+#endif
+#endif
+#endif // _WIN32
+
 #endif // ifndef _VM_BASIC_DEFS_H_
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index f5c96f9ea17c61aaccbb5522578d8d9b11df057f..bba5f12d7c21dc9011178e18dc5b65e2ec6c41ef 100644 (file)
@@ -92,10 +92,6 @@ typedef signed __int64 int64;
 #pragma warning (disable :4305) // truncation from 'const int' to 'short'
 #pragma warning (disable :4244) // conversion from 'unsigned short' to 'unsigned char'
 #pragma warning (disable :4267) // truncation of 'size_t'
-#if !defined VMX86_DEVEL // XXX until we clean up all the code -- edward
-#pragma warning (disable :4133) // incompatible types - from 'struct VM *' to 'int *'
-#pragma warning (disable :4047) // differs in levels of indirection
-#endif
 #pragma warning (disable :4146) // unary minus operator applied to unsigned type, result still unsigned
 #pragma warning (disable :4142) // benign redefinition of type
 
@@ -254,7 +250,12 @@ typedef int64 VmTimeVirtualClock;  /* Virtual Clock kept in CPU cycles */
       || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
       /* BSD/Darwin, Linux */
       #define FMTSZ     "z"
-      #define FMTPD     "t"
+
+      #ifdef VM_X86_64
+         #define FMTPD  "l"
+      #else
+         #define FMTPD  ""
+      #endif
    #else
       /* Systems with a pre-C99 libc */
       #define FMTSZ     "Z"
@@ -639,6 +640,12 @@ typedef void * UserVA;
 # define PRINTF_DECL(fmtPos, varPos)
 #endif
 
+#if defined(__GNUC__)
+# define SCANF_DECL(fmtPos, varPos) __attribute__((__format__(__scanf__, fmtPos, varPos)))
+#else
+# define SCANF_DECL(fmtPos, varPos)
+#endif
+
 /*
  * UNUSED_PARAM should surround the parameter name and type declaration,
  * e.g. "int MyFunction(int var1, UNUSED_PARAM(int var2))"
index ac7a82cedc278373e45437be0d2ab2ef8f13cb5d..84538ceb44989a45cfde58e7c314f972ad8a1a4e 100644 (file)
 #define SCSI_MAX_CONTROLLERS    4        // Need more than 1 for MSCS clustering
 #define        SCSI_MAX_DEVICES         16       // BT-958 emulates only 16
 #define SCSI_IDE_CHANNEL         SCSI_MAX_CONTROLLERS
-#define SCSI_MAX_CHANNELS        (SCSI_MAX_CONTROLLERS + 1)
+#define SCSI_IDE_HOSTED_CHANNEL  (SCSI_MAX_CONTROLLERS + 1)
+#define SCSI_MAX_CHANNELS        (SCSI_MAX_CONTROLLERS + 2)
 
 /************* Strings for the VESA BIOS Identity Fields *****************/
 #define VBE_OEM_STRING COMPANY_NAME " SVGA"
index 1aa7bb4546074d6cb7c15ed3ac0aeff7dbb3ea64..561064b1842ea98e3abadbd4fb058ffa8f8c2c74 100644 (file)
@@ -58,4 +58,7 @@
 #define VMNET_CAP_LPD           0x10000 /* large pkt delivery */
 #define VMNET_CAP_BPF           0x20000 /* BPF Support in VMXNET Virtual Hardware */
 #define VMNET_CAP_SG_SPAN_PAGES 0x40000        /* Can do scatter-gather span multiple pages transmits. */
+#define VMNET_CAP_IP6_CSUM      0x80000        /* Can do IPv6 csum offload. */
+#define VMNET_CAP_TSO6         0x100000        /* Can do TSO segmentation offload for IPv6 pkts. */
+#define VMNET_CAP_TSO256k      0x200000        /* Can do TSO segmentation offload for pkts up to 256kB. */
 #endif // _VMNET_DEF_H_
index 7d678c887065a4ebe39a709b792b9987bdcf422e..ed0e9e345f86120044418218a48bbb5fe485cc6e 100644 (file)
@@ -17,9 +17,7 @@
 
 noinst_PROGRAMS = toolbox
 
-AM_CFLAGS =
-AM_CFLAGS += @GTK_CFLAGS@
-AM_CFLAGS += @COMMON_CFLAGS@
+AM_CFLAGS = @GTK_CPPFLAGS@
 
 toolbox_LDADD =
 toolbox_LDADD += ../lib/conf/libConf.a
index 4a3ea679ca39b4eb86f5e37e8fee0a72e125c6d2..1f918de5269bbef5c98528890191a991fd4e7d55 100644 (file)
@@ -104,8 +104,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -116,8 +114,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -128,12 +126,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -144,14 +142,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -166,7 +164,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -174,7 +172,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -232,7 +230,7 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @GTK_CFLAGS@ @COMMON_CFLAGS@
+AM_CFLAGS = @GTK_CPPFLAGS@
 # In the absence of the linker options --start-group and --end-group (which
 # can't be put in LDADD), we need to bring the following libraries out of
 # the alphabetical order so their symbols are properly resolved.
index dd6c4a2e2d863834932c6acc1286db37d32a2d7d..a0f41f49c62ba1b3a4417405d771446543d9d738 100644 (file)
@@ -18,9 +18,8 @@
 noinst_PROGRAMS = vmware-user
 
 AM_CFLAGS =
-AM_CFLAGS += @GTK_CFLAGS@
-AM_CFLAGS += @COMMON_CFLAGS@
-AM_CFLAGS += @VMWARE_USER_CFLAGS@
+AM_CFLAGS += @GTK_CPPFLAGS@
+AM_CFLAGS += @VMWARE_USER_CPPFLAGS@
 
 vmware_user_LDADD =
 vmware_user_LDADD += ../lib/conf/libConf.a
index 2e5147469068cdc4251107b3b063d418aba98747..37e74cf23eeae9eca371707d1567baa0a33814e8 100644 (file)
@@ -116,8 +116,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -128,8 +126,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -140,12 +138,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -156,14 +154,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -178,7 +176,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -186,7 +184,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -244,7 +242,7 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @GTK_CFLAGS@ @COMMON_CFLAGS@ @VMWARE_USER_CFLAGS@
+AM_CFLAGS = @GTK_CPPFLAGS@ @VMWARE_USER_CPPFLAGS@
 # In the absence of the linker options --start-group and --end-group (which
 # can't be put in LDADD), we need to bring the following libraries out of
 # the alphabetical order so their symbols are properly resolved.
index d675a1b2f1d1a30be9bf51920a7c5372fcb7740d..0b2848659c0813444b3aad3af1643e62bf5eb1b9 100644 (file)
@@ -86,7 +86,7 @@ typedef int socklen_t;
  *
  * We cannot link with winsock, since the DLL may not be present in all guests.
  * That would create a dll link problem that would prevent the tools from loading.
- * Instead, we try to get the procedure pointer ourselves at runtime, and quietly 
+ * Instead, we try to get the procedure pointer ourselves at runtime, and quietly
  * fail if it is not there.
  *-----------------------------------------------------------------------------
  */
@@ -147,8 +147,8 @@ typedef int (WSAAPI *SendToProcType)(SOCKET s,
                                      int tolen);
 
 typedef int (WSAAPI *SendSockOptProcType)(SOCKET s,
-                                          int level, 
-                                          int optname, 
+                                          int level,
+                                          int optname,
                                           const void *optval,
                                           socklen_t optlen);
 
@@ -215,7 +215,7 @@ static RecvfromProcType             VMToolsNet_Recvfrom = NULL;
 #define VMToolsNet_FDIsSet                  FD_ISSET
 #define VMToolsNet_Recvfrom                 recvfrom
 
-#endif 
+#endif
 
 
 Bool ForeignToolsMakeNonBlocking(int fd);
@@ -265,7 +265,7 @@ ForeignTools_InitializeNetworking(void)
    char *ipAddressStr = NULL;
    char *destPtr;
    char *endDestPtr;
-   NicInfo nicInfo;
+   GuestNicInfo nicInfo;
 #ifdef _WIN32
    HMODULE hWs2_32 = NULL;
    WSADATA wsaData;
@@ -412,13 +412,13 @@ ForeignTools_InitializeNetworking(void)
                            VixSocketListenerPort);
 
    /*
-    * Find out how big the IP_ADAPTER_INFO table needs to be. 
+    * Find out how big the IP_ADAPTER_INFO table needs to be.
     */
    success = GuestInfoGetNicInfo(&nicInfo);
    if (success) {
       NicEntry *nicEntryPtr = NULL;
       DblLnkLst_Links *nicEntryLink;
-    
+
       DblLnkLst_ForEach(nicEntryLink, &nicInfo.nicList) {
          nicEntryPtr = DblLnkLst_Container(nicEntryLink, NicEntry, links);
          destPtr += Str_Snprintf(destPtr,
@@ -426,7 +426,7 @@ ForeignTools_InitializeNetworking(void)
                                  "%s=%s;",
                                  VIX_SLPV2_PROPERTY_MAC_ADDR,
                                  nicEntryPtr->nicEntryProto.macAddress);
-      } 
+      }
 
       GuestInfo_FreeDynamicMemoryInNicInfo(&nicInfo);
    }
@@ -601,8 +601,8 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
       goto abort;
    }
    //success = ForeignToolsMakeNonBlocking(tcpListenerSocket);
-   success = ForeignToolsSocketBind(tcpListenerSocket, 
-                                    INADDR_ANY, 
+   success = ForeignToolsSocketBind(tcpListenerSocket,
+                                    INADDR_ANY,
                                     VixSocketListenerPort);
    if (!success) {
       goto abort;
@@ -615,16 +615,16 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
       goto abort;
    }
    //success = ForeignToolsMakeNonBlocking(tcpListenerSocket);
-   success = ForeignToolsSocketBind(udpListenerSocket, 
-                                    INADDR_ANY, 
+   success = ForeignToolsSocketBind(udpListenerSocket,
+                                    INADDR_ANY,
                                     SLPv2SocketListenerPort);
    if (!success) {
       goto abort;
    }
-   VMToolsNet_SetSockOpt(udpListenerSocket, 
-                         SOL_SOCKET, 
+   VMToolsNet_SetSockOpt(udpListenerSocket,
+                         SOL_SOCKET,
                          SO_BROADCAST,
-                         (const void *) &bcast, 
+                         (const void *) &bcast,
                          sizeof(bcast));
 
 #ifdef _WIN32
@@ -639,14 +639,14 @@ ForeignToolsSelectLoop(FoundryWorkerThread *threadState)    // IN
          DWORD dwBytesReturned = 0;
          BOOL bNewBehavior = FALSE;
          DWORD status;
-         status = VMToolsNet_WSAIoctl(udpListenerSocket, 
+         status = VMToolsNet_WSAIoctl(udpListenerSocket,
                                       SIO_UDP_CONNRESET,
-                                      &bNewBehavior, 
+                                      &bNewBehavior,
                                       sizeof(bNewBehavior),
-                                      NULL, 
-                                      0, 
+                                      NULL,
+                                      0,
                                       &dwBytesReturned,
-                                      NULL, 
+                                      NULL,
                                       NULL);
          if (SOCKET_ERROR == status) {
          }
@@ -732,7 +732,7 @@ abort:
    if (udpListenerSocket != -1) {
       VMToolsNet_CloseSocket(udpListenerSocket);
       udpListenerSocket = -1;
-   }   
+   }
 } // ForeignToolsSelectLoop
 
 
@@ -773,9 +773,9 @@ ForeignToolsAcceptConnection(int tcpListenerSocket)   // IN
       }
    }
 
-         
+
    VIX_ENTER_LOCK(&globalLock);
-         
+
    /*
     * Allocate some state for the connection
     */
@@ -818,8 +818,8 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
    /*
     * Read the message header.
     */
-   result = VMToolsNet_Recv(connectionState->socket, 
-                            (char *) &(connectionState->requestHeader), 
+   result = VMToolsNet_Recv(connectionState->socket,
+                            (char *) &(connectionState->requestHeader),
                             sizeof(connectionState->requestHeader),
                             0);
    if (result <= 0) {
@@ -835,7 +835,7 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
       goto abort;
    }
 
-   connectionState->completeRequest 
+   connectionState->completeRequest
        = Util_SafeMalloc(connectionState->requestHeader.commonHeader.totalMessageLength);
    memcpy(connectionState->completeRequest,
           &(connectionState->requestHeader),
@@ -843,12 +843,12 @@ ForeignToolsReadRequest(ForeignVMToolsConnection *connectionState)   // IN
 
    /*
     * If this request has a variable-sized part, like a body or a user credential,
-    * then start reading that. Otherwise, if the request only has a fixed-size header, 
+    * then start reading that. Otherwise, if the request only has a fixed-size header,
     * then we can start processing it now.
     */
    if (connectionState->requestHeader.commonHeader.totalMessageLength > result) {
-      result = VMToolsNet_Recv(connectionState->socket, 
-                              connectionState->completeRequest + result, 
+      result = VMToolsNet_Recv(connectionState->socket,
+                              connectionState->completeRequest + result,
                               connectionState->requestHeader.commonHeader.totalMessageLength - result,
                               0);
       if (result <= 0) {
@@ -908,9 +908,9 @@ ForeignToolsSendResponse(ForeignVMToolsConnection *connectionState,  // IN
 
    responseHeader->responseFlags |= responseFlags;
 
-   result = VMToolsNet_Send(connectionState->socket, 
+   result = VMToolsNet_Send(connectionState->socket,
                             (const char *) responseHeader,
-                            totalMessageSize, 
+                            totalMessageSize,
                             0);
    if (result <= 0) {
    }
@@ -958,9 +958,9 @@ ForeignToolsSendResponseUsingTotalMessage(ForeignVMToolsConnection *connectionSt
 
    responseHeader->responseFlags |= responseFlags;
 
-   result = VMToolsNet_Send(connectionState->socket, 
+   result = VMToolsNet_Send(connectionState->socket,
                             (const char *) responseHeader,
-                            totalMessageSize, 
+                            totalMessageSize,
                             0);
    if (result <= 0) {
    }
@@ -997,11 +997,11 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
    char *replyPacket = NULL;
    int replyPacketSize = 0;
 
-   actualPacketLength = VMToolsNet_Recvfrom(udpListenerSocket, 
-                                             receiveBuffer, 
+   actualPacketLength = VMToolsNet_Recvfrom(udpListenerSocket,
+                                             receiveBuffer,
                                              sizeof(receiveBuffer),
                                              0,
-                                             (struct sockaddr *) &clientAddr, 
+                                             (struct sockaddr *) &clientAddr,
                                              &clientAddrLen);
    if (actualPacketLength <= 0) {
       goto abort;
@@ -1025,9 +1025,9 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
                                               "", // LDAPv3 predicate
                                               &xid);
    if (match) {
-       Str_Sprintf(urlBuffer, 
-                   sizeof urlBuffer, 
-                   "%s://%s/", 
+       Str_Sprintf(urlBuffer,
+                   sizeof urlBuffer,
+                   "%s://%s/",
                    VIX_SLPV2_SERVICE_NAME_TOOLS_SERVICE,
                    globalHostName);
        success = SLPv2MsgAssembler_ServiceReply(&replyPacket,
@@ -1063,11 +1063,11 @@ ForeignToolsProcessUDP(int udpListenerSocket)   // IN
        * for more responses.
        */
       if (NULL != replyPacket) {
-         VMToolsNet_Sendto(udpListenerSocket, 
-                           replyPacket, 
+         VMToolsNet_Sendto(udpListenerSocket,
+                           replyPacket,
                            replyPacketSize,
                            0, // flags
-                           (struct sockaddr *) &clientAddr, 
+                           (struct sockaddr *) &clientAddr,
                            clientAddrLen);
       }
 
@@ -1111,7 +1111,7 @@ ForeignToolsCloseConnection(ForeignVMToolsConnection *connectionState,  // IN
 
    /*
     * It's possible that data on a connection arrives late, after we have
-    * closed it. In that case, VMAutomationReceiveMessage will correctly 
+    * closed it. In that case, VMAutomationReceiveMessage will correctly
     * not process the data. But, be careful that we don't try to close
     * the connection again.
     */
@@ -1145,7 +1145,7 @@ ForeignToolsCloseConnection(ForeignVMToolsConnection *connectionState,  // IN
 
          ForeignToolsDiscardCommand(command);
       }
-      
+
       command = nextCommand;
    } // while (NULL != command)
 
@@ -1210,11 +1210,11 @@ ForeignToolsWakeSelectThread(void)    // IN
    localAddr.sin_addr.s_addr = VMToolsNet_htonl(INADDR_ANY);
    localAddr.sin_port = VMToolsNet_htons(SLPv2SocketListenerPort);
 
-   VMToolsNet_Sendto(udpListenerSocket, 
-                     packet, 
+   VMToolsNet_Sendto(udpListenerSocket,
+                     packet,
                      sizeof(packet),
                      0, // flags
-                     (struct sockaddr *) &localAddr, 
+                     (struct sockaddr *) &localAddr,
                      sizeof(localAddr));
 } // ForeignToolsWakeSelectThread
 
index f04f299a4956ce843526592c4bb41a4ddc688f73..e1530a5f74900235875cd14b0d950a08c7ff477d 100644 (file)
@@ -131,6 +131,7 @@ static int const gSignals[] = {
    SIGTERM,
    SIGUSR1,
    SIGUSR2,
+   SIGPIPE
 };
 
 
index 652425db12072ff00a64d680f5ebc3f95423d18c..005d06f4c286e41475da674c2336eaae0618779c 100644 (file)
@@ -17,9 +17,6 @@
 
 noinst_PROGRAMS = xferlogs
 
-AM_CFLAGS =
-AM_CFLAGS += @COMMON_CFLAGS@
-
 xferlogs_LDADD =
 xferlogs_LDADD += ../lib/rpcVmx/libRpcVmx.a
 xferlogs_LDADD += ../lib/string/libString.a
index 37ffdfd6420d02eef384689755b04cbfc470f263..357fc7a718f3c6131e79b24fa5f20c5cbbdde11f 100644 (file)
@@ -92,8 +92,6 @@ AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-COMMON_CFLAGS = @COMMON_CFLAGS@
-COMMON_PROG_CFLAGS = @COMMON_PROG_CFLAGS@
 COMMON_XLIBS = @COMMON_XLIBS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -104,8 +102,8 @@ CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
-DNET_CFLAGS = @DNET_CFLAGS@
 DNET_CONFIG = @DNET_CONFIG@
+DNET_CPPFLAGS = @DNET_CPPFLAGS@
 DNET_LIBS = @DNET_LIBS@
 ECHO = @ECHO@
 ECHO_C = @ECHO_C@
@@ -116,12 +114,12 @@ EXEEXT = @EXEEXT@
 F77 = @F77@
 FFLAGS = @FFLAGS@
 GREP = @GREP@
-GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CPPFLAGS = @GTK_CPPFLAGS@
 GTK_LIBS = @GTK_LIBS@
 GUESTD_LDADD = @GUESTD_LDADD@
 HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
-ICU_CFLAGS = @ICU_CFLAGS@
 ICU_CONFIG = @ICU_CONFIG@
+ICU_CPPFLAGS = @ICU_CPPFLAGS@
 ICU_LIBS = @ICU_LIBS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -132,14 +130,14 @@ LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
-LIB_AUTH_CFLAGS = @LIB_AUTH_CFLAGS@
-LIB_FILE_CFLAGS = @LIB_FILE_CFLAGS@
-LIB_HGFS_SERVER_CFLAGS = @LIB_HGFS_SERVER_CFLAGS@
-LIB_IMPERSONATE_CFLAGS = @LIB_IMPERSONATE_CFLAGS@
-LIB_MISC_CFLAGS = @LIB_MISC_CFLAGS@
-LIB_PROC_MGR_CFLAGS = @LIB_PROC_MGR_CFLAGS@
-LIB_STRING_CFLAGS = @LIB_STRING_CFLAGS@
-LIB_USER_CFLAGS = @LIB_USER_CFLAGS@
+LIB_AUTH_CPPFLAGS = @LIB_AUTH_CPPFLAGS@
+LIB_FILE_CPPFLAGS = @LIB_FILE_CPPFLAGS@
+LIB_HGFS_SERVER_CPPFLAGS = @LIB_HGFS_SERVER_CPPFLAGS@
+LIB_IMPERSONATE_CPPFLAGS = @LIB_IMPERSONATE_CPPFLAGS@
+LIB_MISC_CPPFLAGS = @LIB_MISC_CPPFLAGS@
+LIB_PROC_MGR_CPPFLAGS = @LIB_PROC_MGR_CPPFLAGS@
+LIB_STRING_CPPFLAGS = @LIB_STRING_CPPFLAGS@
+LIB_USER_CPPFLAGS = @LIB_USER_CPPFLAGS@
 LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
@@ -154,7 +152,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
-PROCPS_CFLAGS = @PROCPS_CFLAGS@
+PROCPS_CPPFLAGS = @PROCPS_CPPFLAGS@
 PROCPS_LIBS = @PROCPS_LIBS@
 RANLIB = @RANLIB@
 SED = @SED@
@@ -162,7 +160,7 @@ SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
 VERSION = @VERSION@
-VMWARE_USER_CFLAGS = @VMWARE_USER_CFLAGS@
+VMWARE_USER_CPPFLAGS = @VMWARE_USER_CPPFLAGS@
 VMWARE_USER_LDADD = @VMWARE_USER_LDADD@
 XMKMF = @XMKMF@
 X_CFLAGS = @X_CFLAGS@
@@ -220,7 +218,6 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = @COMMON_CFLAGS@
 # In the absence of the linker options --start-group and --end-group (which can't
 # be put in LDADD), we need to bring the following libraries out of the alphebetical
 # order so their symbols are properly resolved.