diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-09 14:20:58 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-09 14:20:58 -0400 |
commit | 5fd83771641d15c418f747bd343ba6738d3875f7 (patch) | |
tree | 5abf0f78f680d9837dbd93d4d4c3933bb7509599 /patch_cmds/diffstat/porting/system.h | |
download | apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.tar.gz apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.tar.zst apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.zip |
Import macOS userland
adv_cmds-176
basic_cmds-55
bootstrap_cmds-116.100.1
developer_cmds-66
diskdev_cmds-667.40.1
doc_cmds-53.60.1
file_cmds-321.40.3
mail_cmds-35
misc_cmds-34
network_cmds-606.40.1
patch_cmds-17
remote_cmds-63
shell_cmds-216.60.1
system_cmds-880.60.2
text_cmds-106
Diffstat (limited to 'patch_cmds/diffstat/porting/system.h')
-rw-r--r-- | patch_cmds/diffstat/porting/system.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/patch_cmds/diffstat/porting/system.h b/patch_cmds/diffstat/porting/system.h new file mode 100644 index 0000000..02dc60e --- /dev/null +++ b/patch_cmds/diffstat/porting/system.h @@ -0,0 +1,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 |