Skip to content

Commit 044e107

Browse files
author
chad-iris
committed
Update libmseed to 2.19.4
1 parent fb987a2 commit 044e107

File tree

164 files changed

+16226
-9888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+16226
-9888
lines changed

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2017.136: 3.7
2-
2+
- Update libmseed to 2.19.4.
33
- Remove Windows/Watcom build files and documentation, this will not build
44
on Windows with the current uses of system regex usage.
55
- Update licensing to GNU GPL 3.

libmseed/.clang-format

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BasedOnStyle: LLVM
2+
AlwaysBreakAfterDefinitionReturnType: TopLevel
3+
SpaceBeforeParens: Always
4+
BreakBeforeBraces: Allman
5+
AlignConsecutiveAssignments: true
6+
ColumnLimit: 0

libmseed/ChangeLog

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,129 @@
1+
2017.118: 2.19.4
2+
- Add global LM_SIZEOF_OFF_T variable that is set to the size of
3+
the off_t data type as determined at compile time.
4+
5+
2017.075: 2.19.3
6+
- Add missing public, global symbols to libmseed.map, thanks
7+
to Elliott Sales de Andrade.
8+
9+
2017.061: 2.19.2
10+
- Provide install target in Makefile thanks to by Pierre Duperray.
11+
- Deprecate dynamic build target, the shared target will now build
12+
shared or dynamic (Darwin) libraries depending on the system.
13+
- Limit symbols exported in shared libraries to public interfaces
14+
as defined in libmseed.map, thanks again to Pierre Duperray.
15+
- Allow tests to work on Darwin with dynamic libraries.
16+
17+
2017.060: 2.19.1
18+
- Derive versioning of shared/dynamic library from canonical version
19+
defined as LIBMSEED_VERSION in libmseed.h.
20+
- Apply updates to more standardized use of NAME and typos in man pages,
21+
submitted by Pierre Duperray.
22+
23+
2017.053: 2.19
24+
- Incorporate lmplatform.h details into libmseed.h for improved usage.
25+
All that is needed is the static/shared/dynamic library and libmseed.h.
26+
- Avoid undefined left shifts of signed values that would go out of
27+
range and specify the types of some constants.
28+
29+
2016.290:
30+
- Remove dependency on ntwin32.mak for Windows nmake makefiles, now
31+
building works in plain MSVC development environments.
32+
33+
2016.286: 2.18
34+
- Remove limitation on sample rate before calling ms_genfactmult()
35+
in the normal path of packing records. Previously generating the
36+
factor and multiplier was not attempted for rates higher than
37+
32,767.
38+
39+
2016.281: 2.18rc4
40+
- ms_genfactmult() now support a much larger range of integer
41+
sample rates and periods.
42+
- ms_genfactmult() now sets the factor and multiplier using the
43+
SECONDS/SAMPLE notation for sample rates less than 1.0 to retain
44+
precision for low rates.
45+
- ms_genfactmult() now assumes the specified rate is a sample
46+
period in seconds if the samprate value is negative.
47+
- Add ms_rsqrt64() as a general use reciprocal sqrt for doubles.
48+
- Use memcpy() instead of assignment when unpacking float32 and
49+
float64 samples to avoid problems with NaN's. Thanks Lion Krischer.
50+
- Add test for reading records without Blockette 1000.
51+
- Reformat all source code using included clang-format profile.
52+
53+
2016.277:
54+
- A more elegant sanity check for output length in packing by mbyt.
55+
56+
2016:276: 2.18rc3
57+
- Improvements for test suite, more consistency.
58+
- Remove msr_decode_steim? from libmseed.def, they are internal.
59+
- Add sanity to length check before memset calls in packing functions.
60+
61+
2016:274: 2.18rc2
62+
- Check for environment variables ENCODE_DEBUG and DECODE_DEBUG
63+
and set debugging output, at this point it is Steim frame details
64+
and differences being encoded/decoded.
65+
- Fix padding in steim[12] encoding routines.
66+
- Remove unneeded output buffer checks in steim[12] decoding routines.
67+
68+
2016.272: 2.18rc1
69+
- Replace data sample packing and unpacking routines from qlib2 with
70+
new routines developed from scratch. All code is now LGPL licensed.
71+
- Add test suite with tests for encoding, decoding, parsing, etc.
72+
- Update licensing to GNU-LGPL version 3 and include (L)GPL licenses
73+
in LICENSE.txt.
74+
75+
2015.053:
76+
- Define needed C99 int types for MSVC 2012 or earlier. Previously
77+
this was only done for versions earlier than MSVC 2010.
78+
79+
2015.213: 2.17
80+
- Round Fixed Section Data Header start time values to the nearest
81+
tenth of millisecond and restrict the microsecond offset value
82+
to a range between -50 and +49 as recommended in SEED. Previously
83+
start times were truncated at tenths of millisecond resolution
84+
and the microsecond offset value was between 0 and +99. This also
85+
addresses a bug where microsecond offsets were off by 100ms for times
86+
before Jan 1 1970. Thanks to Lion Krischer for reporting.
87+
88+
Note to future hackers: the definition of HPTMODULUS governing the
89+
time tick interval for high precision time values implies that this
90+
tick interval may be changed. In reality, this should not be changed
91+
from the default, microsecond tick value without thorough testing.
92+
Some logic is know to be dependent on the microsecond tick.
93+
94+
2015.134: 2.16m
95+
- Add defines for needed integer types and macros from inttypes.h
96+
missing in older MSVC versions. MSVC 2010 and later appear to have
97+
enough C99 support.
98+
- Add define tests for _WIN32 and _WIN64 to cover all WINs.
99+
- ms_fread(): Add cast to quiet warning for conversion from size_t
100+
to int. In this case the read will always be <= MAXRECLEN, much
101+
smaller than int, making the conversion safe.
102+
103+
2015.113: 2.16
104+
- Update minor release version in Makefile.
105+
106+
2015.108:
107+
- Cleanup of lmplatform.h removing unneeded headers and using C99
108+
standard headers except for a few platform specific cases.
109+
- Convert all printf() and scanf() usage of %lld for 64-bit integers
110+
to use the C99 PRId64 and SCNd64 macros for portability (MinGW).
111+
- Change detection of Linux/Cygwin to set global define LMP_LINUX
112+
instead of LMP_GLIB2 (now marked as deprecated).
113+
- Change detection of Windows to set global define LMP_WIN instead
114+
of LMP_WIN32 (now marked as deprecated).
115+
- Add detection of __MINGW64__ define.
116+
- Tested building on Win7 with: Open Watcom 1.9, MinGW gcc 4.8.1 and
117+
Cygwin 1.7.35 (gcc 2.9.2).
118+
119+
2015.074:
120+
- Define NTP-Posix time epoch conversion constant specifically as
121+
a long long integer to avoid warnings on some compilers.
122+
123+
2015.070: 2.15
124+
- Fix infinite loop if blockette chain is corrupt. Patch submitted
125+
by Elliott Sales de Andrade.
126+
1127
2015.062: 2.14
2128
- Fix memory leak when msr_pack() returns after an error. Patch
3129
contributed by Larry Baker and Eric Thomas.

libmseed/INSTALL

Lines changed: 0 additions & 35 deletions
This file was deleted.

libmseed/INSTALL.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
The library requires that C99 integer types are available on the
3+
target computer. Specifically the int8_t, int16_t, int32_t, int64_t
4+
and their unsigned counterpart types.
5+
6+
## Unix, Linux, macOS
7+
8+
A simple 'make' on most Unix-like systems should build the library.
9+
10+
The included Makefile should work for most Unix-like environments and
11+
most make variants. It is know to work with GNU make, which, if not the
12+
default, is sometimes installed as gmake.
13+
14+
The CC, CFLAGS, LDFLAGS and CPPFLAGS environment variables can be set
15+
to control the build.
16+
17+
By default a statically linked version of the library is built: 'libmseed.a'.
18+
19+
With GCC, clang or compatible build tools it is possible to build a shared
20+
library with 'make shared'.
21+
22+
A simple install method for the shared library can be invoked with
23+
'make install'. By default the installation destination is /usr/local.
24+
The install destination may be specified using the PREFIX variable, for
25+
example:
26+
27+
make install PREFIX=/path/to/install/
28+
29+
## Windows (Win32)
30+
31+
On a WIN32 platform the library can be compiled by using the
32+
Nmake compatible Makefile.win (e.g. 'nmake -f Makefile.win') or Open
33+
Watcom's Wmake with Makefile.wat (e.g. 'wmake -f Makefile.wat'). The
34+
default target is a static library 'libmseed.lib'. The library has
35+
been tested with Open Watcom 1.8. A libmseed.def file is included
36+
for use building and linking a DLL.

0 commit comments

Comments
 (0)