node-linux-arm64 18.12.1 → 18.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /* zlib.h -- interface of the 'zlib' general purpose compression library
2
- version 1.2.11, January 15th, 2017
2
+ version 1.2.13, October 13th, 2022
3
3
 
4
- Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
4
+ Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
5
5
 
6
6
  This software is provided 'as-is', without any express or implied
7
7
  warranty. In no event will the authors be held liable for any damages
@@ -37,11 +37,11 @@
37
37
  extern "C" {
38
38
  #endif
39
39
 
40
- #define ZLIB_VERSION "1.2.11"
41
- #define ZLIB_VERNUM 0x12b0
40
+ #define ZLIB_VERSION "1.2.13"
41
+ #define ZLIB_VERNUM 0x12d0
42
42
  #define ZLIB_VER_MAJOR 1
43
43
  #define ZLIB_VER_MINOR 2
44
- #define ZLIB_VER_REVISION 11
44
+ #define ZLIB_VER_REVISION 13
45
45
  #define ZLIB_VER_SUBREVISION 0
46
46
 
47
47
  /*
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
276
276
  == 0), or after each call of deflate(). If deflate returns Z_OK and with
277
277
  zero avail_out, it must be called again after making room in the output
278
278
  buffer because there might be more output pending. See deflatePending(),
279
- which can be used if desired to determine whether or not there is more ouput
279
+ which can be used if desired to determine whether or not there is more output
280
280
  in that case.
281
281
 
282
282
  Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
@@ -359,7 +359,6 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
359
359
  continue compressing.
360
360
  */
361
361
 
362
-
363
362
  ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
364
363
  /*
365
364
  All dynamically allocated data structures for this stream are freed.
@@ -543,8 +542,7 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
543
542
  int strategy));
544
543
 
545
544
  This is another version of deflateInit with more compression options. The
546
- fields next_in, zalloc, zfree and opaque must be initialized before by the
547
- caller.
545
+ fields zalloc, zfree and opaque must be initialized before by the caller.
548
546
 
549
547
  The method parameter is the compression method. It must be Z_DEFLATED in
550
548
  this version of the library.
@@ -661,7 +659,7 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
661
659
  to dictionary. dictionary must have enough space, where 32768 bytes is
662
660
  always enough. If deflateGetDictionary() is called with dictionary equal to
663
661
  Z_NULL, then only the dictionary length is returned, and nothing is copied.
664
- Similary, if dictLength is Z_NULL, then it is not set.
662
+ Similarly, if dictLength is Z_NULL, then it is not set.
665
663
 
666
664
  deflateGetDictionary() may return a length less than the window size, even
667
665
  when more than the window size in input has been provided. It may return up
@@ -712,11 +710,12 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
712
710
  used to switch between compression and straight copy of the input data, or
713
711
  to switch to a different kind of input data requiring a different strategy.
714
712
  If the compression approach (which is a function of the level) or the
715
- strategy is changed, and if any input has been consumed in a previous
716
- deflate() call, then the input available so far is compressed with the old
717
- level and strategy using deflate(strm, Z_BLOCK). There are three approaches
718
- for the compression levels 0, 1..3, and 4..9 respectively. The new level
719
- and strategy will take effect at the next call of deflate().
713
+ strategy is changed, and if there have been any deflate() calls since the
714
+ state was initialized or reset, then the input available so far is
715
+ compressed with the old level and strategy using deflate(strm, Z_BLOCK).
716
+ There are three approaches for the compression levels 0, 1..3, and 4..9
717
+ respectively. The new level and strategy will take effect at the next call
718
+ of deflate().
720
719
 
721
720
  If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does
722
721
  not have enough output space to complete, then the parameter change will not
@@ -865,9 +864,11 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
865
864
  detection, or add 16 to decode only the gzip format (the zlib format will
866
865
  return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
867
866
  CRC-32 instead of an Adler-32. Unlike the gunzip utility and gzread() (see
868
- below), inflate() will not automatically decode concatenated gzip streams.
869
- inflate() will return Z_STREAM_END at the end of the gzip stream. The state
870
- would need to be reset to continue decoding a subsequent gzip stream.
867
+ below), inflate() will *not* automatically decode concatenated gzip members.
868
+ inflate() will return Z_STREAM_END at the end of the gzip member. The state
869
+ would need to be reset to continue decoding a subsequent gzip member. This
870
+ *must* be done if there is more data after a gzip member, in order for the
871
+ decompression to be compliant with the gzip standard (RFC 1952).
871
872
 
872
873
  inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
873
874
  memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
@@ -913,7 +914,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
913
914
  to dictionary. dictionary must have enough space, where 32768 bytes is
914
915
  always enough. If inflateGetDictionary() is called with dictionary equal to
915
916
  Z_NULL, then only the dictionary length is returned, and nothing is copied.
916
- Similary, if dictLength is Z_NULL, then it is not set.
917
+ Similarly, if dictLength is Z_NULL, then it is not set.
917
918
 
918
919
  inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
919
920
  stream state is inconsistent.
@@ -1302,14 +1303,14 @@ typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
1302
1303
  /*
1303
1304
  ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
1304
1305
 
1305
- Opens a gzip (.gz) file for reading or writing. The mode parameter is as
1306
- in fopen ("rb" or "wb") but can also include a compression level ("wb9") or
1307
- a strategy: 'f' for filtered data as in "wb6f", 'h' for Huffman-only
1308
- compression as in "wb1h", 'R' for run-length encoding as in "wb1R", or 'F'
1309
- for fixed code compression as in "wb9F". (See the description of
1310
- deflateInit2 for more information about the strategy parameter.) 'T' will
1311
- request transparent writing or appending with no compression and not using
1312
- the gzip format.
1306
+ Open the gzip (.gz) file at path for reading and decompressing, or
1307
+ compressing and writing. The mode parameter is as in fopen ("rb" or "wb")
1308
+ but can also include a compression level ("wb9") or a strategy: 'f' for
1309
+ filtered data as in "wb6f", 'h' for Huffman-only compression as in "wb1h",
1310
+ 'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression
1311
+ as in "wb9F". (See the description of deflateInit2 for more information
1312
+ about the strategy parameter.) 'T' will request transparent writing or
1313
+ appending with no compression and not using the gzip format.
1313
1314
 
1314
1315
  "a" can be used instead of "w" to request that the gzip stream that will
1315
1316
  be written be appended to the file. "+" will result in an error, since
@@ -1339,9 +1340,9 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
1339
1340
 
1340
1341
  ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
1341
1342
  /*
1342
- gzdopen associates a gzFile with the file descriptor fd. File descriptors
1343
- are obtained from calls like open, dup, creat, pipe or fileno (if the file
1344
- has been previously opened with fopen). The mode parameter is as in gzopen.
1343
+ Associate a gzFile with the file descriptor fd. File descriptors are
1344
+ obtained from calls like open, dup, creat, pipe or fileno (if the file has
1345
+ been previously opened with fopen). The mode parameter is as in gzopen.
1345
1346
 
1346
1347
  The next call of gzclose on the returned gzFile will also close the file
1347
1348
  descriptor fd, just like fclose(fdopen(fd, mode)) closes the file descriptor
@@ -1362,13 +1363,13 @@ ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
1362
1363
 
1363
1364
  ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
1364
1365
  /*
1365
- Set the internal buffer size used by this library's functions. The
1366
- default buffer size is 8192 bytes. This function must be called after
1367
- gzopen() or gzdopen(), and before any other calls that read or write the
1368
- file. The buffer memory allocation is always deferred to the first read or
1369
- write. Three times that size in buffer space is allocated. A larger buffer
1370
- size of, for example, 64K or 128K bytes will noticeably increase the speed
1371
- of decompression (reading).
1366
+ Set the internal buffer size used by this library's functions for file to
1367
+ size. The default buffer size is 8192 bytes. This function must be called
1368
+ after gzopen() or gzdopen(), and before any other calls that read or write
1369
+ the file. The buffer memory allocation is always deferred to the first read
1370
+ or write. Three times that size in buffer space is allocated. A larger
1371
+ buffer size of, for example, 64K or 128K bytes will noticeably increase the
1372
+ speed of decompression (reading).
1372
1373
 
1373
1374
  The new buffer size also affects the maximum length for gzprintf().
1374
1375
 
@@ -1378,9 +1379,9 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
1378
1379
 
1379
1380
  ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
1380
1381
  /*
1381
- Dynamically update the compression level or strategy. See the description
1382
- of deflateInit2 for the meaning of these parameters. Previously provided
1383
- data is flushed before the parameter change.
1382
+ Dynamically update the compression level and strategy for file. See the
1383
+ description of deflateInit2 for the meaning of these parameters. Previously
1384
+ provided data is flushed before applying the parameter changes.
1384
1385
 
1385
1386
  gzsetparams returns Z_OK if success, Z_STREAM_ERROR if the file was not
1386
1387
  opened for writing, Z_ERRNO if there is an error writing the flushed data,
@@ -1389,7 +1390,7 @@ ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
1389
1390
 
1390
1391
  ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
1391
1392
  /*
1392
- Reads the given number of uncompressed bytes from the compressed file. If
1393
+ Read and decompress up to len uncompressed bytes from file into buf. If
1393
1394
  the input file is not in gzip format, gzread copies the given number of
1394
1395
  bytes into the buffer directly from the file.
1395
1396
 
@@ -1420,11 +1421,11 @@ ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
1420
1421
  ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
1421
1422
  gzFile file));
1422
1423
  /*
1423
- Read up to nitems items of size size from file to buf, otherwise operating
1424
- as gzread() does. This duplicates the interface of stdio's fread(), with
1425
- size_t request and return types. If the library defines size_t, then
1426
- z_size_t is identical to size_t. If not, then z_size_t is an unsigned
1427
- integer type that can contain a pointer.
1424
+ Read and decompress up to nitems items of size size from file into buf,
1425
+ otherwise operating as gzread() does. This duplicates the interface of
1426
+ stdio's fread(), with size_t request and return types. If the library
1427
+ defines size_t, then z_size_t is identical to size_t. If not, then z_size_t
1428
+ is an unsigned integer type that can contain a pointer.
1428
1429
 
1429
1430
  gzfread() returns the number of full items read of size size, or zero if
1430
1431
  the end of the file was reached and a full item could not be read, or if
@@ -1435,26 +1436,24 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
1435
1436
 
1436
1437
  In the event that the end of file is reached and only a partial item is
1437
1438
  available at the end, i.e. the remaining uncompressed data length is not a
1438
- multiple of size, then the final partial item is nevetheless read into buf
1439
+ multiple of size, then the final partial item is nevertheless read into buf
1439
1440
  and the end-of-file flag is set. The length of the partial item read is not
1440
1441
  provided, but could be inferred from the result of gztell(). This behavior
1441
1442
  is the same as the behavior of fread() implementations in common libraries,
1442
1443
  but it prevents the direct use of gzfread() to read a concurrently written
1443
- file, reseting and retrying on end-of-file, when size is not 1.
1444
+ file, resetting and retrying on end-of-file, when size is not 1.
1444
1445
  */
1445
1446
 
1446
- ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
1447
- voidpc buf, unsigned len));
1447
+ ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len));
1448
1448
  /*
1449
- Writes the given number of uncompressed bytes into the compressed file.
1450
- gzwrite returns the number of uncompressed bytes written or 0 in case of
1451
- error.
1449
+ Compress and write the len uncompressed bytes at buf to file. gzwrite
1450
+ returns the number of uncompressed bytes written or 0 in case of error.
1452
1451
  */
1453
1452
 
1454
1453
  ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
1455
1454
  z_size_t nitems, gzFile file));
1456
1455
  /*
1457
- gzfwrite() writes nitems items of size size from buf to file, duplicating
1456
+ Compress and write nitems items of size size from buf to file, duplicating
1458
1457
  the interface of stdio's fwrite(), with size_t request and return types. If
1459
1458
  the library defines size_t, then z_size_t is identical to size_t. If not,
1460
1459
  then z_size_t is an unsigned integer type that can contain a pointer.
@@ -1467,22 +1466,22 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
1467
1466
 
1468
1467
  ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
1469
1468
  /*
1470
- Converts, formats, and writes the arguments to the compressed file under
1471
- control of the format string, as in fprintf. gzprintf returns the number of
1469
+ Convert, format, compress, and write the arguments (...) to file under
1470
+ control of the string format, as in fprintf. gzprintf returns the number of
1472
1471
  uncompressed bytes actually written, or a negative zlib error code in case
1473
1472
  of error. The number of uncompressed bytes written is limited to 8191, or
1474
1473
  one less than the buffer size given to gzbuffer(). The caller should assure
1475
1474
  that this limit is not exceeded. If it is exceeded, then gzprintf() will
1476
1475
  return an error (0) with nothing written. In this case, there may also be a
1477
1476
  buffer overflow with unpredictable consequences, which is possible only if
1478
- zlib was compiled with the insecure functions sprintf() or vsprintf()
1477
+ zlib was compiled with the insecure functions sprintf() or vsprintf(),
1479
1478
  because the secure snprintf() or vsnprintf() functions were not available.
1480
1479
  This can be determined using zlibCompileFlags().
1481
1480
  */
1482
1481
 
1483
1482
  ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
1484
1483
  /*
1485
- Writes the given null-terminated string to the compressed file, excluding
1484
+ Compress and write the given null-terminated string s to file, excluding
1486
1485
  the terminating null character.
1487
1486
 
1488
1487
  gzputs returns the number of characters written, or -1 in case of error.
@@ -1490,11 +1489,12 @@ ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
1490
1489
 
1491
1490
  ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
1492
1491
  /*
1493
- Reads bytes from the compressed file until len-1 characters are read, or a
1494
- newline character is read and transferred to buf, or an end-of-file
1495
- condition is encountered. If any characters are read or if len == 1, the
1496
- string is terminated with a null character. If no characters are read due
1497
- to an end-of-file or len < 1, then the buffer is left untouched.
1492
+ Read and decompress bytes from file into buf, until len-1 characters are
1493
+ read, or until a newline character is read and transferred to buf, or an
1494
+ end-of-file condition is encountered. If any characters are read or if len
1495
+ is one, the string is terminated with a null character. If no characters
1496
+ are read due to an end-of-file or len is less than one, then the buffer is
1497
+ left untouched.
1498
1498
 
1499
1499
  gzgets returns buf which is a null-terminated string, or it returns NULL
1500
1500
  for end-of-file or in case of error. If there was an error, the contents at
@@ -1503,13 +1503,13 @@ ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
1503
1503
 
1504
1504
  ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
1505
1505
  /*
1506
- Writes c, converted to an unsigned char, into the compressed file. gzputc
1506
+ Compress and write c, converted to an unsigned char, into file. gzputc
1507
1507
  returns the value that was written, or -1 in case of error.
1508
1508
  */
1509
1509
 
1510
1510
  ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
1511
1511
  /*
1512
- Reads one byte from the compressed file. gzgetc returns this byte or -1
1512
+ Read and decompress one byte from file. gzgetc returns this byte or -1
1513
1513
  in case of end of file or error. This is implemented as a macro for speed.
1514
1514
  As such, it does not do all of the checking the other functions do. I.e.
1515
1515
  it does not check to see if file is NULL, nor whether the structure file
@@ -1518,8 +1518,8 @@ ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
1518
1518
 
1519
1519
  ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
1520
1520
  /*
1521
- Push one character back onto the stream to be read as the first character
1522
- on the next read. At least one character of push-back is allowed.
1521
+ Push c back onto the stream for file to be read as the first character on
1522
+ the next read. At least one character of push-back is always allowed.
1523
1523
  gzungetc() returns the character pushed, or -1 on failure. gzungetc() will
1524
1524
  fail if c is -1, and may fail if a character has been pushed but not read
1525
1525
  yet. If gzungetc is used immediately after gzopen or gzdopen, at least the
@@ -1530,9 +1530,9 @@ ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
1530
1530
 
1531
1531
  ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
1532
1532
  /*
1533
- Flushes all pending output into the compressed file. The parameter flush
1534
- is as in the deflate() function. The return value is the zlib error number
1535
- (see function gzerror below). gzflush is only permitted when writing.
1533
+ Flush all pending output to file. The parameter flush is as in the
1534
+ deflate() function. The return value is the zlib error number (see function
1535
+ gzerror below). gzflush is only permitted when writing.
1536
1536
 
1537
1537
  If the flush parameter is Z_FINISH, the remaining data is written and the
1538
1538
  gzip stream is completed in the output. If gzwrite() is called again, a new
@@ -1547,8 +1547,8 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
1547
1547
  ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
1548
1548
  z_off_t offset, int whence));
1549
1549
 
1550
- Sets the starting position for the next gzread or gzwrite on the given
1551
- compressed file. The offset represents a number of bytes in the
1550
+ Set the starting position to offset relative to whence for the next gzread
1551
+ or gzwrite on file. The offset represents a number of bytes in the
1552
1552
  uncompressed data stream. The whence parameter is defined as in lseek(2);
1553
1553
  the value SEEK_END is not supported.
1554
1554
 
@@ -1565,18 +1565,18 @@ ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
1565
1565
 
1566
1566
  ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
1567
1567
  /*
1568
- Rewinds the given file. This function is supported only for reading.
1568
+ Rewind file. This function is supported only for reading.
1569
1569
 
1570
- gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
1570
+ gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET).
1571
1571
  */
1572
1572
 
1573
1573
  /*
1574
1574
  ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1575
1575
 
1576
- Returns the starting position for the next gzread or gzwrite on the given
1577
- compressed file. This position represents a number of bytes in the
1578
- uncompressed data stream, and is zero when starting, even if appending or
1579
- reading a gzip stream from the middle of a file using gzdopen().
1576
+ Return the starting position for the next gzread or gzwrite on file.
1577
+ This position represents a number of bytes in the uncompressed data stream,
1578
+ and is zero when starting, even if appending or reading a gzip stream from
1579
+ the middle of a file using gzdopen().
1580
1580
 
1581
1581
  gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR)
1582
1582
  */
@@ -1584,22 +1584,22 @@ ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1584
1584
  /*
1585
1585
  ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file));
1586
1586
 
1587
- Returns the current offset in the file being read or written. This offset
1588
- includes the count of bytes that precede the gzip stream, for example when
1589
- appending or when using gzdopen() for reading. When reading, the offset
1590
- does not include as yet unused buffered input. This information can be used
1591
- for a progress indicator. On error, gzoffset() returns -1.
1587
+ Return the current compressed (actual) read or write offset of file. This
1588
+ offset includes the count of bytes that precede the gzip stream, for example
1589
+ when appending or when using gzdopen() for reading. When reading, the
1590
+ offset does not include as yet unused buffered input. This information can
1591
+ be used for a progress indicator. On error, gzoffset() returns -1.
1592
1592
  */
1593
1593
 
1594
1594
  ZEXTERN int ZEXPORT gzeof OF((gzFile file));
1595
1595
  /*
1596
- Returns true (1) if the end-of-file indicator has been set while reading,
1597
- false (0) otherwise. Note that the end-of-file indicator is set only if the
1598
- read tried to go past the end of the input, but came up short. Therefore,
1599
- just like feof(), gzeof() may return false even if there is no more data to
1600
- read, in the event that the last read request was for the exact number of
1601
- bytes remaining in the input file. This will happen if the input file size
1602
- is an exact multiple of the buffer size.
1596
+ Return true (1) if the end-of-file indicator for file has been set while
1597
+ reading, false (0) otherwise. Note that the end-of-file indicator is set
1598
+ only if the read tried to go past the end of the input, but came up short.
1599
+ Therefore, just like feof(), gzeof() may return false even if there is no
1600
+ more data to read, in the event that the last read request was for the exact
1601
+ number of bytes remaining in the input file. This will happen if the input
1602
+ file size is an exact multiple of the buffer size.
1603
1603
 
1604
1604
  If gzeof() returns true, then the read functions will return no more data,
1605
1605
  unless the end-of-file indicator is reset by gzclearerr() and the input file
@@ -1608,7 +1608,7 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file));
1608
1608
 
1609
1609
  ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
1610
1610
  /*
1611
- Returns true (1) if file is being copied directly while reading, or false
1611
+ Return true (1) if file is being copied directly while reading, or false
1612
1612
  (0) if file is a gzip stream being decompressed.
1613
1613
 
1614
1614
  If the input file is empty, gzdirect() will return true, since the input
@@ -1629,8 +1629,8 @@ ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
1629
1629
 
1630
1630
  ZEXTERN int ZEXPORT gzclose OF((gzFile file));
1631
1631
  /*
1632
- Flushes all pending output if necessary, closes the compressed file and
1633
- deallocates the (de)compression state. Note that once file is closed, you
1632
+ Flush all pending output for file, if necessary, close file and
1633
+ deallocate the (de)compression state. Note that once file is closed, you
1634
1634
  cannot call gzerror with file, since its structures have been deallocated.
1635
1635
  gzclose must not be called more than once on the same file, just as free
1636
1636
  must not be called more than once on the same allocation.
@@ -1654,10 +1654,10 @@ ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
1654
1654
 
1655
1655
  ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
1656
1656
  /*
1657
- Returns the error message for the last error which occurred on the given
1658
- compressed file. errnum is set to zlib error number. If an error occurred
1659
- in the file system and not in the compression library, errnum is set to
1660
- Z_ERRNO and the application may consult errno to get the exact error code.
1657
+ Return the error message for the last error which occurred on file.
1658
+ errnum is set to zlib error number. If an error occurred in the file system
1659
+ and not in the compression library, errnum is set to Z_ERRNO and the
1660
+ application may consult errno to get the exact error code.
1661
1661
 
1662
1662
  The application must not modify the returned string. Future calls to
1663
1663
  this function may invalidate the previously returned string. If file is
@@ -1670,7 +1670,7 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
1670
1670
 
1671
1671
  ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
1672
1672
  /*
1673
- Clears the error and end-of-file flags for file. This is analogous to the
1673
+ Clear the error and end-of-file flags for file. This is analogous to the
1674
1674
  clearerr() function in stdio. This is useful for continuing to read a gzip
1675
1675
  file that is being written concurrently.
1676
1676
  */
@@ -1688,8 +1688,9 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
1688
1688
  ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1689
1689
  /*
1690
1690
  Update a running Adler-32 checksum with the bytes buf[0..len-1] and
1691
- return the updated checksum. If buf is Z_NULL, this function returns the
1692
- required initial value for the checksum.
1691
+ return the updated checksum. An Adler-32 value is in the range of a 32-bit
1692
+ unsigned integer. If buf is Z_NULL, this function returns the required
1693
+ initial value for the checksum.
1693
1694
 
1694
1695
  An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed
1695
1696
  much faster.
@@ -1722,12 +1723,13 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1722
1723
  negative, the result has no meaning or utility.
1723
1724
  */
1724
1725
 
1725
- ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1726
+ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1726
1727
  /*
1727
1728
  Update a running CRC-32 with the bytes buf[0..len-1] and return the
1728
- updated CRC-32. If buf is Z_NULL, this function returns the required
1729
- initial value for the crc. Pre- and post-conditioning (one's complement) is
1730
- performed within this function so it shouldn't be done by the application.
1729
+ updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
1730
+ If buf is Z_NULL, this function returns the required initial value for the
1731
+ crc. Pre- and post-conditioning (one's complement) is performed within this
1732
+ function so it shouldn't be done by the application.
1731
1733
 
1732
1734
  Usage example:
1733
1735
 
@@ -1739,7 +1741,7 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1739
1741
  if (crc != original_crc) error();
1740
1742
  */
1741
1743
 
1742
- ZEXTERN uLong ZEXPORT crc32_z OF((uLong adler, const Bytef *buf,
1744
+ ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf,
1743
1745
  z_size_t len));
1744
1746
  /*
1745
1747
  Same as crc32(), but with a size_t length.
@@ -1755,6 +1757,20 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1755
1757
  len2.
1756
1758
  */
1757
1759
 
1760
+ /*
1761
+ ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t len2));
1762
+
1763
+ Return the operator corresponding to length len2, to be used with
1764
+ crc32_combine_op().
1765
+ */
1766
+
1767
+ ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
1768
+ /*
1769
+ Give the same result as crc32_combine(), using op in place of len2. op is
1770
+ is generated from len2 by crc32_combine_gen(). This will be faster than
1771
+ crc32_combine() if the generated op is used more than once.
1772
+ */
1773
+
1758
1774
 
1759
1775
  /* various hacks, don't look :) */
1760
1776
 
@@ -1847,6 +1863,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1847
1863
  ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1848
1864
  ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1849
1865
  ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1866
+ ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t));
1850
1867
  #endif
1851
1868
 
1852
1869
  #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
@@ -1857,6 +1874,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1857
1874
  # define z_gzoffset z_gzoffset64
1858
1875
  # define z_adler32_combine z_adler32_combine64
1859
1876
  # define z_crc32_combine z_crc32_combine64
1877
+ # define z_crc32_combine_gen z_crc32_combine_gen64
1860
1878
  # else
1861
1879
  # ifdef gzopen
1862
1880
  # undef gzopen
@@ -1881,7 +1899,15 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1881
1899
  # ifdef crc32_combine
1882
1900
  # undef crc32_combine
1883
1901
  # endif
1884
- # define crc32_combine crc32_combine64
1902
+ # ifdef crc32_combine64
1903
+ # undef crc32_combine64
1904
+ # endif
1905
+ # ifdef crc32_combine_gen
1906
+ # undef crc32_combine_gen
1907
+ # endif
1908
+ # ifdef crc32_combine_op
1909
+ # undef crc32_combine_op
1910
+ # endif
1885
1911
  # endif
1886
1912
  # ifndef Z_LARGE64
1887
1913
  ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
@@ -1890,6 +1916,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1890
1916
  ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1891
1917
  ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1892
1918
  ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1919
+ ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t));
1893
1920
  # endif
1894
1921
  #else
1895
1922
  ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
@@ -1898,12 +1925,14 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1898
1925
  ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1899
1926
  ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1900
1927
  ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1928
+ ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
1901
1929
  #endif
1902
1930
 
1903
1931
  #else /* Z_SOLO */
1904
1932
 
1905
1933
  ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1906
1934
  ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1935
+ ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
1907
1936
 
1908
1937
  #endif /* !Z_SOLO */
1909
1938
 
@@ -1913,10 +1942,10 @@ ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
1913
1942
  ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
1914
1943
  ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
1915
1944
  ZEXTERN int ZEXPORT inflateValidate OF((z_streamp, int));
1916
- ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF ((z_streamp));
1945
+ ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF((z_streamp));
1917
1946
  ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp));
1918
1947
  ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp));
1919
- #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(Z_SOLO)
1948
+ #if defined(_WIN32) && !defined(Z_SOLO)
1920
1949
  ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
1921
1950
  const char *mode));
1922
1951
  #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-linux-arm64",
3
- "version": "v18.12.1",
3
+ "version": "v18.13.0",
4
4
  "description": "node",
5
5
  "bin": {
6
6
  "node": "bin/node"
@@ -26,6 +26,7 @@
26
26
  .\"
27
27
  .\"======================================================================
28
28
  .
29
+ .tr -\-^\(ha~\(ti`\(ga
29
30
  .Dd 2018
30
31
  .Dt NODE 1
31
32
  .
@@ -159,6 +160,9 @@ Enable experimental support for loading modules using `import` over `https:`.
159
160
  .It Fl -experimental-policy
160
161
  Use the specified file as a security policy.
161
162
  .
163
+ .It Fl -experimental-shadow-realm
164
+ Use this flag to enable ShadowRealm support.
165
+ .
162
166
  .It Fl -no-experimental-fetch
163
167
  Disable experimental support for the Fetch API.
164
168
  .
@@ -1,54 +0,0 @@
1
- /*
2
- * Copyright (c) 1995, 1999
3
- * Berkeley Software Design, Inc. All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions
7
- * are met:
8
- * 1. Redistributions of source code must retain the above copyright
9
- * notice, this list of conditions and the following disclaimer.
10
- *
11
- * THIS SOFTWARE IS PROVIDED BY Berkeley Software Design, Inc. ``AS IS'' AND
12
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
13
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
14
- * ARE DISCLAIMED. IN NO EVENT SHALL Berkeley Software Design, Inc. BE LIABLE
15
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
16
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
17
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
18
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
19
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
20
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21
- * SUCH DAMAGE.
22
- *
23
- * BSDI ifaddrs.h,v 2.5 2000/02/23 14:51:59 dab Exp
24
- */
25
-
26
- #ifndef _IFADDRS_H_
27
- #define _IFADDRS_H_
28
-
29
- struct ifaddrs {
30
- struct ifaddrs *ifa_next;
31
- char *ifa_name;
32
- unsigned int ifa_flags;
33
- struct sockaddr *ifa_addr;
34
- struct sockaddr *ifa_netmask;
35
- struct sockaddr *ifa_dstaddr;
36
- void *ifa_data;
37
- };
38
-
39
- /*
40
- * This may have been defined in <net/if.h>. Note that if <net/if.h> is
41
- * to be included it must be included before this header file.
42
- */
43
- #ifndef ifa_broadaddr
44
- #define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
45
- #endif
46
-
47
- #include <sys/cdefs.h>
48
-
49
- __BEGIN_DECLS
50
- extern int getifaddrs(struct ifaddrs **ifap);
51
- extern void freeifaddrs(struct ifaddrs *ifa);
52
- __END_DECLS
53
-
54
- #endif