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

« back to all changes in this revision

Viewing changes to lib/hgfs/hgfsEscape.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-30 12:56:49 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730125649-97sfj5li8axiseoo
Tags: 2009.07.22-179896-2
* Temporarily building without dumbnet, the recently uploaded
  new dumbnet upstream version broke down (Closes: #539006).
* Using more common name to store local debian additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#ifdef __KERNEL__
41
41
#  include "driver-config.h"
42
42
#  include <linux/string.h>
43
 
#elif defined(__FreeBSD__)
44
 
#   if defined(_KERNEL)
 
43
#elif defined __FreeBSD__
 
44
#   if defined _KERNEL
45
45
#      include <sys/libkern.h>
46
46
#      define strchr(s,c)       index(s,c)
47
47
#   else
48
48
#      include <string.h>
49
49
#   endif
50
50
#   define memmove(s1,s2,n) bcopy(s2,s1,n) 
51
 
#elif defined(__APPLE__) && defined(KERNEL)
 
51
#elif defined __APPLE__ && defined KERNEL
52
52
#  include <string.h>
53
 
#elif !defined(sun)
 
53
#elif !defined sun
54
54
#  include <stdlib.h>
55
55
#  include <string.h>
56
56
#else
102
102
/* There is no special processing for the last character on non-Windows platforms. */
103
103
#define PROCESS_LAST_CHARACTER(b,s,p,c)
104
104
 
105
 
#if defined(__APPLE__)
 
105
#if defined __APPLE__
106
106
/* These characters are illegal in MAC OS file names. */
107
107
const char* HGFS_ILLEGAL_CHARS = "/:";
108
108
const char* HGFS_SUBSTITUTE_CHARS = "!&";