node-linux-s390x 20.3.1 → 20.5.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +256 -1
  2. package/LICENSE +515 -520
  3. package/README.md +8 -2
  4. package/bin/node +0 -0
  5. package/include/node/common.gypi +49 -21
  6. package/include/node/config.gypi +4 -2
  7. package/include/node/js_native_api.h +18 -0
  8. package/include/node/node.h +10 -0
  9. package/include/node/node_version.h +2 -2
  10. package/include/node/openssl/asn1_no-asm.h +2 -0
  11. package/include/node/openssl/asn1t_no-asm.h +2 -0
  12. package/include/node/openssl/bio_no-asm.h +2 -0
  13. package/include/node/openssl/bn_conf_no-asm.h +2 -0
  14. package/include/node/openssl/cmp_no-asm.h +2 -0
  15. package/include/node/openssl/cms_no-asm.h +2 -0
  16. package/include/node/openssl/conf_no-asm.h +2 -0
  17. package/include/node/openssl/configuration_no-asm.h +2 -0
  18. package/include/node/openssl/crmf_no-asm.h +2 -0
  19. package/include/node/openssl/crypto_no-asm.h +2 -0
  20. package/include/node/openssl/ct_no-asm.h +2 -0
  21. package/include/node/openssl/dso_conf_no-asm.h +2 -0
  22. package/include/node/openssl/err_no-asm.h +2 -0
  23. package/include/node/openssl/ess_no-asm.h +2 -0
  24. package/include/node/openssl/fipskey_no-asm.h +2 -0
  25. package/include/node/openssl/lhash_no-asm.h +2 -0
  26. package/include/node/openssl/ocsp_no-asm.h +2 -0
  27. package/include/node/openssl/opensslv_no-asm.h +2 -0
  28. package/include/node/openssl/pkcs12_no-asm.h +2 -0
  29. package/include/node/openssl/pkcs7_no-asm.h +2 -0
  30. package/include/node/openssl/safestack_no-asm.h +2 -0
  31. package/include/node/openssl/srp_no-asm.h +2 -0
  32. package/include/node/openssl/ssl_no-asm.h +2 -0
  33. package/include/node/openssl/ui_no-asm.h +2 -0
  34. package/include/node/openssl/x509_no-asm.h +2 -0
  35. package/include/node/openssl/x509_vfy_no-asm.h +2 -0
  36. package/include/node/openssl/x509v3_no-asm.h +2 -0
  37. package/include/node/uv/darwin.h +3 -3
  38. package/include/node/uv/errno.h +6 -0
  39. package/include/node/uv/linux.h +1 -1
  40. package/include/node/uv/threadpool.h +1 -1
  41. package/include/node/uv/unix.h +25 -23
  42. package/include/node/uv/version.h +1 -1
  43. package/include/node/uv/win.h +2 -2
  44. package/include/node/uv.h +25 -4
  45. package/include/node/zconf.h +1 -1
  46. package/include/node/zlib.h +175 -175
  47. package/package.json +1 -1
  48. package/share/man/man1/node.1 +3 -0
@@ -92,8 +92,8 @@ typedef struct uv__io_s uv__io_t;
92
92
 
93
93
  struct uv__io_s {
94
94
  uv__io_cb cb;
95
- void* pending_queue[2];
96
- void* watcher_queue[2];
95
+ struct uv__queue pending_queue;
96
+ struct uv__queue watcher_queue;
97
97
  unsigned int pevents; /* Pending event mask i.e. mask at next tick. */
98
98
  unsigned int events; /* Current event mask. */
99
99
  int fd;
@@ -220,21 +220,21 @@ typedef struct {
220
220
  #define UV_LOOP_PRIVATE_FIELDS \
221
221
  unsigned long flags; \
222
222
  int backend_fd; \
223
- void* pending_queue[2]; \
224
- void* watcher_queue[2]; \
223
+ struct uv__queue pending_queue; \
224
+ struct uv__queue watcher_queue; \
225
225
  uv__io_t** watchers; \
226
226
  unsigned int nwatchers; \
227
227
  unsigned int nfds; \
228
- void* wq[2]; \
228
+ struct uv__queue wq; \
229
229
  uv_mutex_t wq_mutex; \
230
230
  uv_async_t wq_async; \
231
231
  uv_rwlock_t cloexec_lock; \
232
232
  uv_handle_t* closing_handles; \
233
- void* process_handles[2]; \
234
- void* prepare_handles[2]; \
235
- void* check_handles[2]; \
236
- void* idle_handles[2]; \
237
- void* async_handles[2]; \
233
+ struct uv__queue process_handles; \
234
+ struct uv__queue prepare_handles; \
235
+ struct uv__queue check_handles; \
236
+ struct uv__queue idle_handles; \
237
+ struct uv__queue async_handles; \
238
238
  void (*async_unused)(void); /* TODO(bnoordhuis) Remove in libuv v2. */ \
239
239
  uv__io_t async_io_watcher; \
240
240
  int async_wfd; \
@@ -257,7 +257,7 @@ typedef struct {
257
257
  #define UV_PRIVATE_REQ_TYPES /* empty */
258
258
 
259
259
  #define UV_WRITE_PRIVATE_FIELDS \
260
- void* queue[2]; \
260
+ struct uv__queue queue; \
261
261
  unsigned int write_index; \
262
262
  uv_buf_t* bufs; \
263
263
  unsigned int nbufs; \
@@ -265,12 +265,12 @@ typedef struct {
265
265
  uv_buf_t bufsml[4]; \
266
266
 
267
267
  #define UV_CONNECT_PRIVATE_FIELDS \
268
- void* queue[2]; \
268
+ struct uv__queue queue; \
269
269
 
270
270
  #define UV_SHUTDOWN_PRIVATE_FIELDS /* empty */
271
271
 
272
272
  #define UV_UDP_SEND_PRIVATE_FIELDS \
273
- void* queue[2]; \
273
+ struct uv__queue queue; \
274
274
  struct sockaddr_storage addr; \
275
275
  unsigned int nbufs; \
276
276
  uv_buf_t* bufs; \
@@ -286,8 +286,8 @@ typedef struct {
286
286
  uv_connect_t *connect_req; \
287
287
  uv_shutdown_t *shutdown_req; \
288
288
  uv__io_t io_watcher; \
289
- void* write_queue[2]; \
290
- void* write_completed_queue[2]; \
289
+ struct uv__queue write_queue; \
290
+ struct uv__queue write_completed_queue; \
291
291
  uv_connection_cb connection_cb; \
292
292
  int delayed_error; \
293
293
  int accepted_fd; \
@@ -300,30 +300,30 @@ typedef struct {
300
300
  uv_alloc_cb alloc_cb; \
301
301
  uv_udp_recv_cb recv_cb; \
302
302
  uv__io_t io_watcher; \
303
- void* write_queue[2]; \
304
- void* write_completed_queue[2]; \
303
+ struct uv__queue write_queue; \
304
+ struct uv__queue write_completed_queue; \
305
305
 
306
306
  #define UV_PIPE_PRIVATE_FIELDS \
307
- const char* pipe_fname; /* strdup'ed */
307
+ const char* pipe_fname; /* NULL or strdup'ed */
308
308
 
309
309
  #define UV_POLL_PRIVATE_FIELDS \
310
310
  uv__io_t io_watcher;
311
311
 
312
312
  #define UV_PREPARE_PRIVATE_FIELDS \
313
313
  uv_prepare_cb prepare_cb; \
314
- void* queue[2]; \
314
+ struct uv__queue queue; \
315
315
 
316
316
  #define UV_CHECK_PRIVATE_FIELDS \
317
317
  uv_check_cb check_cb; \
318
- void* queue[2]; \
318
+ struct uv__queue queue; \
319
319
 
320
320
  #define UV_IDLE_PRIVATE_FIELDS \
321
321
  uv_idle_cb idle_cb; \
322
- void* queue[2]; \
322
+ struct uv__queue queue; \
323
323
 
324
324
  #define UV_ASYNC_PRIVATE_FIELDS \
325
325
  uv_async_cb async_cb; \
326
- void* queue[2]; \
326
+ struct uv__queue queue; \
327
327
  int pending; \
328
328
 
329
329
  #define UV_TIMER_PRIVATE_FIELDS \
@@ -352,7 +352,7 @@ typedef struct {
352
352
  int retcode;
353
353
 
354
354
  #define UV_PROCESS_PRIVATE_FIELDS \
355
- void* queue[2]; \
355
+ struct uv__queue queue; \
356
356
  int status; \
357
357
 
358
358
  #define UV_FS_PRIVATE_FIELDS \
@@ -417,6 +417,8 @@ typedef struct {
417
417
  # define UV_FS_O_DIRECT 0x04000
418
418
  #elif defined(__linux__) && defined(__x86_64__)
419
419
  # define UV_FS_O_DIRECT 0x04000
420
+ #elif defined(__linux__) && defined(__loongarch__)
421
+ # define UV_FS_O_DIRECT 0x04000
420
422
  #elif defined(O_DIRECT)
421
423
  # define UV_FS_O_DIRECT O_DIRECT
422
424
  #else
@@ -31,7 +31,7 @@
31
31
  */
32
32
 
33
33
  #define UV_VERSION_MAJOR 1
34
- #define UV_VERSION_MINOR 45
34
+ #define UV_VERSION_MINOR 46
35
35
  #define UV_VERSION_PATCH 0
36
36
  #define UV_VERSION_IS_RELEASE 1
37
37
  #define UV_VERSION_SUFFIX ""
@@ -357,7 +357,7 @@ typedef struct {
357
357
  /* Counter to started timer */ \
358
358
  uint64_t timer_counter; \
359
359
  /* Threadpool */ \
360
- void* wq[2]; \
360
+ struct uv__queue wq; \
361
361
  uv_mutex_t wq_mutex; \
362
362
  uv_async_t wq_async;
363
363
 
@@ -486,7 +486,7 @@ typedef struct {
486
486
  uint32_t payload_remaining; \
487
487
  uint64_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
488
488
  } ipc_data_frame; \
489
- void* ipc_xfer_queue[2]; \
489
+ struct uv__queue ipc_xfer_queue; \
490
490
  int ipc_xfer_queue_length; \
491
491
  uv_write_t* non_overlapped_writes_tail; \
492
492
  CRITICAL_SECTION readfile_thread_lock; \
package/include/node/uv.h CHANGED
@@ -59,6 +59,12 @@ extern "C" {
59
59
  #include <stdio.h>
60
60
  #include <stdint.h>
61
61
 
62
+ /* Internal type, do not use. */
63
+ struct uv__queue {
64
+ struct uv__queue* next;
65
+ struct uv__queue* prev;
66
+ };
67
+
62
68
  #if defined(_WIN32)
63
69
  # include "uv/win.h"
64
70
  #else
@@ -150,6 +156,7 @@ extern "C" {
150
156
  XX(EILSEQ, "illegal byte sequence") \
151
157
  XX(ESOCKTNOSUPPORT, "socket type not supported") \
152
158
  XX(ENODATA, "no data available") \
159
+ XX(EUNATCH, "protocol driver not attached") \
153
160
 
154
161
  #define UV_HANDLE_TYPE_MAP(XX) \
155
162
  XX(ASYNC, async) \
@@ -283,13 +290,13 @@ UV_EXTERN int uv_loop_init(uv_loop_t* loop);
283
290
  UV_EXTERN int uv_loop_close(uv_loop_t* loop);
284
291
  /*
285
292
  * NOTE:
286
- * This function is DEPRECATED (to be removed after 0.12), users should
293
+ * This function is DEPRECATED, users should
287
294
  * allocate the loop manually and use uv_loop_init instead.
288
295
  */
289
296
  UV_EXTERN uv_loop_t* uv_loop_new(void);
290
297
  /*
291
298
  * NOTE:
292
- * This function is DEPRECATED (to be removed after 0.12). Users should use
299
+ * This function is DEPRECATED. Users should use
293
300
  * uv_loop_close and free the memory manually instead.
294
301
  */
295
302
  UV_EXTERN void uv_loop_delete(uv_loop_t*);
@@ -459,7 +466,7 @@ struct uv_shutdown_s {
459
466
  uv_handle_type type; \
460
467
  /* private */ \
461
468
  uv_close_cb close_cb; \
462
- void* handle_queue[2]; \
469
+ struct uv__queue handle_queue; \
463
470
  union { \
464
471
  int fd; \
465
472
  void* reserved[4]; \
@@ -801,6 +808,10 @@ inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
801
808
 
802
809
  UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);
803
810
 
811
+ enum {
812
+ UV_PIPE_NO_TRUNCATE = 1u << 0
813
+ };
814
+
804
815
  /*
805
816
  * uv_pipe_t is a subclass of uv_stream_t.
806
817
  *
@@ -817,10 +828,20 @@ struct uv_pipe_s {
817
828
  UV_EXTERN int uv_pipe_init(uv_loop_t*, uv_pipe_t* handle, int ipc);
818
829
  UV_EXTERN int uv_pipe_open(uv_pipe_t*, uv_file file);
819
830
  UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name);
831
+ UV_EXTERN int uv_pipe_bind2(uv_pipe_t* handle,
832
+ const char* name,
833
+ size_t namelen,
834
+ unsigned int flags);
820
835
  UV_EXTERN void uv_pipe_connect(uv_connect_t* req,
821
836
  uv_pipe_t* handle,
822
837
  const char* name,
823
838
  uv_connect_cb cb);
839
+ UV_EXTERN int uv_pipe_connect2(uv_connect_t* req,
840
+ uv_pipe_t* handle,
841
+ const char* name,
842
+ size_t namelen,
843
+ unsigned int flags,
844
+ uv_connect_cb cb);
824
845
  UV_EXTERN int uv_pipe_getsockname(const uv_pipe_t* handle,
825
846
  char* buffer,
826
847
  size_t* size);
@@ -1849,7 +1870,7 @@ struct uv_loop_s {
1849
1870
  void* data;
1850
1871
  /* Loop reference counting. */
1851
1872
  unsigned int active_handles;
1852
- void* handle_queue[2];
1873
+ struct uv__queue handle_queue;
1853
1874
  union {
1854
1875
  void* unused;
1855
1876
  unsigned int count;
@@ -539,7 +539,7 @@ typedef uLong FAR uLongf;
539
539
  #if !defined(_WIN32) && defined(Z_LARGE64)
540
540
  # define z_off64_t off64_t
541
541
  #else
542
- # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
542
+ # if defined(_WIN32) && !defined(__GNUC__)
543
543
  # define z_off64_t __int64
544
544
  # else
545
545
  # define z_off64_t z_off_t