File: system.h

package info (click to toggle)
diffstat 1.62-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,028 kB
  • sloc: sh: 3,129; ansic: 2,587; makefile: 170
file content (85 lines) | stat: -rw-r--r-- 1,489 bytes parent folder | download | duplicates (11)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* $Id: system.h,v 1.1 2002/11/22 22:36:56 tom Exp $ */

#ifdef HAVE_CONFIG_H

# include "config.h"
# define SYS_UNIX 1

#else
	/* provide values for non-UNIX systems */
# if defined(vms)
#  include <stsdef.h>
#  define SYS_VMS 1
#  define EXIT_SUCCESS (STS$M_INHIB_MSG | STS$K_SUCCESS)
#  define EXIT_FAILURE (STS$M_INHIB_MSG | STS$K_ERROR)
# endif

# if defined(MSDOS) || defined(__MSDOS__)
#  define SYS_MSDOS 1
# endif

# if !defined(SYS_VMS) || !defined(SYS_MSDOS) || defined(WIN32)
#  define SYS_UNIX 1		/* assume we're autoconfiguring */
# endif

#define HAVE_STRCHR 1

#endif /* HAVE_CONFIG_H */

#ifndef HAVE_GETOPT_H
#define HAVE_GETOPT_H 0
#endif

#ifndef HAVE_MALLOC_H
#define HAVE_MALLOC_H 0
#endif

#ifndef HAVE_STDLIB_H
#define HAVE_STDLIB_H 1
#endif

#ifndef HAVE_STRING_H
#define HAVE_STRING_H 1
#endif

#ifndef SYS_MSDOS
#define SYS_MSDOS 0
#endif

#ifndef SYS_UNIX
#define SYS_UNIX 0
#endif

#ifndef SYS_VMS
#define SYS_VMS 0
#endif

#ifndef HAVE_GETOPT_HEADER
#define HAVE_GETOPT_HEADER 0
#endif

#ifndef PRINT_ROUNDS_DOWN
#define PRINT_ROUNDS_DOWN 0
#endif

#ifdef lint
#define typeCalloc(type,elts) (type *)(elts)
#else
#define typeCalloc(type,elts) (type *)calloc(elts,sizeof(type))
#endif

#ifndef TRUE
#define TRUE  (1)
#define FALSE (0)
#endif

#undef EOS
#define EOS	'\0'

	/* On VMS and MSDOS we can fake wildcards by embedding a directory
	 * scanning loop...
	 */
#if !SYS_UNIX
extern int has_wildcard(char *);
extern int expand_wildcard(char *, int);
#endif