src/solaris/native/sun/awt/fontpath.c

Print this page




  24  */
  25 
  26 #if defined(__linux__) || defined(MACOSX)
  27 #include <string.h>
  28 #endif /* __linux__ */
  29 #include <stdio.h>
  30 #include <stdlib.h>
  31 #include <strings.h>
  32 #include <sys/types.h>
  33 #include <sys/stat.h>
  34 #include <sys/mman.h>
  35 #include <fcntl.h>
  36 #include <unistd.h>
  37 #ifdef __solaris__
  38 #include <sys/systeminfo.h>
  39 #endif
  40 
  41 #include <jni.h>
  42 #include <jni_util.h>
  43 #include <jvm_md.h>
  44 #include <sun_font_FontManager.h>
  45 #ifndef HEADLESS
  46 #include <X11/Xlib.h>
  47 #include <awt.h>
  48 #else
  49 /* locks ought to be included from awt.h */
  50 #define AWT_LOCK()
  51 #define AWT_UNLOCK()
  52 #endif /* !HEADLESS */
  53 
  54 #if defined(__linux__) && !defined(MAP_FAILED)
  55 #define MAP_FAILED ((caddr_t)-1)
  56 #endif
  57 
  58 #ifndef HEADLESS
  59 extern Display *awt_display;
  60 #endif /* !HEADLESS */
  61 
  62 #ifdef MACOSX
  63 
  64 //




  24  */
  25 
  26 #if defined(__linux__) || defined(MACOSX)
  27 #include <string.h>
  28 #endif /* __linux__ */
  29 #include <stdio.h>
  30 #include <stdlib.h>
  31 #include <strings.h>
  32 #include <sys/types.h>
  33 #include <sys/stat.h>
  34 #include <sys/mman.h>
  35 #include <fcntl.h>
  36 #include <unistd.h>
  37 #ifdef __solaris__
  38 #include <sys/systeminfo.h>
  39 #endif
  40 
  41 #include <jni.h>
  42 #include <jni_util.h>
  43 #include <jvm_md.h>

  44 #ifndef HEADLESS
  45 #include <X11/Xlib.h>
  46 #include <awt.h>
  47 #else
  48 /* locks ought to be included from awt.h */
  49 #define AWT_LOCK()
  50 #define AWT_UNLOCK()
  51 #endif /* !HEADLESS */
  52 
  53 #if defined(__linux__) && !defined(MAP_FAILED)
  54 #define MAP_FAILED ((caddr_t)-1)
  55 #endif
  56 
  57 #ifndef HEADLESS
  58 extern Display *awt_display;
  59 #endif /* !HEADLESS */
  60 
  61 #ifdef MACOSX
  62 
  63 //