A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
nccmp
common.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2004, Remik Ziemlinski <first d0t surname att n0aa d0t g0v>
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2, or (at your option)
7
any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; see the file COPYING.
16
If not, write to the Free Software Foundation,
17
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*/
19
20
#ifndef COMMON_H
21
#define COMMON_H 1
22
23
#if HAVE_CONFIG_H
24
#include <
config.h
>
25
#endif
26
27
#include <stdio.h>
28
29
#if HAVE_SYS_TYPES_H
30
#include <sys/types.h>
31
#endif
32
33
#if HAVE_SYS_STAT_H
34
#include <sys/stat.h>
35
#endif
36
37
#if HAVE_FCNTL_H
38
#include <fcntl.h>
39
#endif
40
41
#if STDC_HEADERS
42
#include <stdlib.h>
43
#include <stddef.h>
44
#else
45
#if HAVE_STDLIB_H
46
#include <stdlib.h>
47
#endif
48
#endif
/*STDC_HEADERS*/
49
50
#if HAVE_STRING_H
51
#if !STDC_HEADERS && HAVE_MEMORY_H
52
#include <memory.h>
53
#endif
54
#include <string.h>
55
#endif
56
57
#if HAVE_STRINGS_H
58
#include <strings.h>
59
#endif
60
61
#if HAVE_UNISTD_H
62
#include <unistd.h>
63
#endif
64
65
#if HAVE_ERRNO_H
66
#include <errno.h>
67
#endif
/*HAVE_ERRNO_H*/
68
69
#ifndef errno
70
extern
int
errno
;
71
#endif
72
73
#include "
xmalloc.h
"
74
75
#if HAVE_LIMITS_H
76
#include <limits.h>
77
#endif
78
79
#if HAVE_INTTYPES_H
80
#include <inttypes.h>
81
#endif
82
83
#define EXIT_SUCCESS 0
84
#define EXIT_DIFFER 1
85
#define EXIT_FATAL 2
86
#define EXIT_FAILED 3
87
#define EXIT_IDENTICAL 4
88
89
#endif
/* !COMMON_H */
errno
int errno
config.h
xmalloc.h