File: hostinfo.h

package info (click to toggle)
hercules 2.17.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,972 kB
  • ctags: 10,281
  • sloc: ansic: 89,345; sh: 3,874; makefile: 456; yacc: 316; sed: 16
file content (42 lines) | stat: -rw-r--r-- 1,528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* HOSTINFO.H   (c) Copyright "Fish" (David B. Trout), 2002-2003     */

/*   Released under the Q Public License                             */
/*      (http://www.conmicro.cx/hercules/herclic.html)               */
/*   as modifications to Hercules.                                   */

/*-------------------------------------------------------------------*/
/* Header file contains host system information                      */
/*-------------------------------------------------------------------*/

#if !defined(_HOSTINFO_H_)

#define _HOSTINFO_H_

#if defined(HAVE_CONFIG_H)
#include <config.h>                     /* (need WIN32 flag defined) */
#endif /*defined(HAVE_CONFIG_H)*/

#include <stdio.h>                      /* (need FILE type defined)  */

typedef struct _HOST_INFO               /* Host system info          */
{
#if defined(WIN32)
    int     trycritsec_avail;           /* 1=TryEnterCriticalSection */
    int     multi_proc;                 /* 1=multi-CPU               */
#else /*!defined(WIN32)*/
    int     dummy;                      /* (not defined yet)         */
#endif /*defined(WIN32)*/
}
HOST_INFO;

extern  HOST_INFO  hostinfo;
extern  void  init_hostinfo ();
extern  void  display_hostinfo (FILE *f);

#if defined(WIN32)
extern  int   get_process_directory(char* dirbuf, size_t bufsiz);
extern  int is_win32_directory(char* dir);
extern void convert_win32_directory_to_posix_directory(const char *win32_dir, char *posix_dir);
#endif /*defined(WIN32)*/

#endif /*!defined(_HOSTINFO_H_)*/