• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:target

22 #include "env-inl.h"
25 #include "util-inl.h"
71 void DefineErrnoConstants(Local<Object> target) { in DefineErrnoConstants() argument
73 NODE_DEFINE_CONSTANT(target, E2BIG); in DefineErrnoConstants()
77 NODE_DEFINE_CONSTANT(target, EACCES); in DefineErrnoConstants()
81 NODE_DEFINE_CONSTANT(target, EADDRINUSE); in DefineErrnoConstants()
85 NODE_DEFINE_CONSTANT(target, EADDRNOTAVAIL); in DefineErrnoConstants()
89 NODE_DEFINE_CONSTANT(target, EAFNOSUPPORT); in DefineErrnoConstants()
93 NODE_DEFINE_CONSTANT(target, EAGAIN); in DefineErrnoConstants()
97 NODE_DEFINE_CONSTANT(target, EALREADY); in DefineErrnoConstants()
101 NODE_DEFINE_CONSTANT(target, EBADF); in DefineErrnoConstants()
105 NODE_DEFINE_CONSTANT(target, EBADMSG); in DefineErrnoConstants()
109 NODE_DEFINE_CONSTANT(target, EBUSY); in DefineErrnoConstants()
113 NODE_DEFINE_CONSTANT(target, ECANCELED); in DefineErrnoConstants()
117 NODE_DEFINE_CONSTANT(target, ECHILD); in DefineErrnoConstants()
121 NODE_DEFINE_CONSTANT(target, ECONNABORTED); in DefineErrnoConstants()
125 NODE_DEFINE_CONSTANT(target, ECONNREFUSED); in DefineErrnoConstants()
129 NODE_DEFINE_CONSTANT(target, ECONNRESET); in DefineErrnoConstants()
133 NODE_DEFINE_CONSTANT(target, EDEADLK); in DefineErrnoConstants()
137 NODE_DEFINE_CONSTANT(target, EDESTADDRREQ); in DefineErrnoConstants()
141 NODE_DEFINE_CONSTANT(target, EDOM); in DefineErrnoConstants()
145 NODE_DEFINE_CONSTANT(target, EDQUOT); in DefineErrnoConstants()
149 NODE_DEFINE_CONSTANT(target, EEXIST); in DefineErrnoConstants()
153 NODE_DEFINE_CONSTANT(target, EFAULT); in DefineErrnoConstants()
157 NODE_DEFINE_CONSTANT(target, EFBIG); in DefineErrnoConstants()
161 NODE_DEFINE_CONSTANT(target, EHOSTUNREACH); in DefineErrnoConstants()
165 NODE_DEFINE_CONSTANT(target, EIDRM); in DefineErrnoConstants()
169 NODE_DEFINE_CONSTANT(target, EILSEQ); in DefineErrnoConstants()
173 NODE_DEFINE_CONSTANT(target, EINPROGRESS); in DefineErrnoConstants()
177 NODE_DEFINE_CONSTANT(target, EINTR); in DefineErrnoConstants()
181 NODE_DEFINE_CONSTANT(target, EINVAL); in DefineErrnoConstants()
185 NODE_DEFINE_CONSTANT(target, EIO); in DefineErrnoConstants()
189 NODE_DEFINE_CONSTANT(target, EISCONN); in DefineErrnoConstants()
193 NODE_DEFINE_CONSTANT(target, EISDIR); in DefineErrnoConstants()
197 NODE_DEFINE_CONSTANT(target, ELOOP); in DefineErrnoConstants()
201 NODE_DEFINE_CONSTANT(target, EMFILE); in DefineErrnoConstants()
205 NODE_DEFINE_CONSTANT(target, EMLINK); in DefineErrnoConstants()
209 NODE_DEFINE_CONSTANT(target, EMSGSIZE); in DefineErrnoConstants()
213 NODE_DEFINE_CONSTANT(target, EMULTIHOP); in DefineErrnoConstants()
217 NODE_DEFINE_CONSTANT(target, ENAMETOOLONG); in DefineErrnoConstants()
221 NODE_DEFINE_CONSTANT(target, ENETDOWN); in DefineErrnoConstants()
225 NODE_DEFINE_CONSTANT(target, ENETRESET); in DefineErrnoConstants()
229 NODE_DEFINE_CONSTANT(target, ENETUNREACH); in DefineErrnoConstants()
233 NODE_DEFINE_CONSTANT(target, ENFILE); in DefineErrnoConstants()
237 NODE_DEFINE_CONSTANT(target, ENOBUFS); in DefineErrnoConstants()
241 NODE_DEFINE_CONSTANT(target, ENODATA); in DefineErrnoConstants()
245 NODE_DEFINE_CONSTANT(target, ENODEV); in DefineErrnoConstants()
249 NODE_DEFINE_CONSTANT(target, ENOENT); in DefineErrnoConstants()
253 NODE_DEFINE_CONSTANT(target, ENOEXEC); in DefineErrnoConstants()
257 NODE_DEFINE_CONSTANT(target, ENOLCK); in DefineErrnoConstants()
261 NODE_DEFINE_CONSTANT(target, ENOLINK); in DefineErrnoConstants()
265 NODE_DEFINE_CONSTANT(target, ENOMEM); in DefineErrnoConstants()
269 NODE_DEFINE_CONSTANT(target, ENOMSG); in DefineErrnoConstants()
273 NODE_DEFINE_CONSTANT(target, ENOPROTOOPT); in DefineErrnoConstants()
277 NODE_DEFINE_CONSTANT(target, ENOSPC); in DefineErrnoConstants()
281 NODE_DEFINE_CONSTANT(target, ENOSR); in DefineErrnoConstants()
285 NODE_DEFINE_CONSTANT(target, ENOSTR); in DefineErrnoConstants()
289 NODE_DEFINE_CONSTANT(target, ENOSYS); in DefineErrnoConstants()
293 NODE_DEFINE_CONSTANT(target, ENOTCONN); in DefineErrnoConstants()
297 NODE_DEFINE_CONSTANT(target, ENOTDIR); in DefineErrnoConstants()
301 NODE_DEFINE_CONSTANT(target, ENOTEMPTY); in DefineErrnoConstants()
305 NODE_DEFINE_CONSTANT(target, ENOTSOCK); in DefineErrnoConstants()
309 NODE_DEFINE_CONSTANT(target, ENOTSUP); in DefineErrnoConstants()
313 NODE_DEFINE_CONSTANT(target, ENOTTY); in DefineErrnoConstants()
317 NODE_DEFINE_CONSTANT(target, ENXIO); in DefineErrnoConstants()
321 NODE_DEFINE_CONSTANT(target, EOPNOTSUPP); in DefineErrnoConstants()
325 NODE_DEFINE_CONSTANT(target, EOVERFLOW); in DefineErrnoConstants()
329 NODE_DEFINE_CONSTANT(target, EPERM); in DefineErrnoConstants()
333 NODE_DEFINE_CONSTANT(target, EPIPE); in DefineErrnoConstants()
337 NODE_DEFINE_CONSTANT(target, EPROTO); in DefineErrnoConstants()
341 NODE_DEFINE_CONSTANT(target, EPROTONOSUPPORT); in DefineErrnoConstants()
345 NODE_DEFINE_CONSTANT(target, EPROTOTYPE); in DefineErrnoConstants()
349 NODE_DEFINE_CONSTANT(target, ERANGE); in DefineErrnoConstants()
353 NODE_DEFINE_CONSTANT(target, EROFS); in DefineErrnoConstants()
357 NODE_DEFINE_CONSTANT(target, ESPIPE); in DefineErrnoConstants()
361 NODE_DEFINE_CONSTANT(target, ESRCH); in DefineErrnoConstants()
365 NODE_DEFINE_CONSTANT(target, ESTALE); in DefineErrnoConstants()
369 NODE_DEFINE_CONSTANT(target, ETIME); in DefineErrnoConstants()
373 NODE_DEFINE_CONSTANT(target, ETIMEDOUT); in DefineErrnoConstants()
377 NODE_DEFINE_CONSTANT(target, ETXTBSY); in DefineErrnoConstants()
381 NODE_DEFINE_CONSTANT(target, EWOULDBLOCK); in DefineErrnoConstants()
385 NODE_DEFINE_CONSTANT(target, EXDEV); in DefineErrnoConstants()
389 void DefineWindowsErrorConstants(Local<Object> target) { in DefineWindowsErrorConstants() argument
391 NODE_DEFINE_CONSTANT(target, WSAEINTR); in DefineWindowsErrorConstants()
395 NODE_DEFINE_CONSTANT(target, WSAEBADF); in DefineWindowsErrorConstants()
399 NODE_DEFINE_CONSTANT(target, WSAEACCES); in DefineWindowsErrorConstants()
403 NODE_DEFINE_CONSTANT(target, WSAEFAULT); in DefineWindowsErrorConstants()
407 NODE_DEFINE_CONSTANT(target, WSAEINVAL); in DefineWindowsErrorConstants()
411 NODE_DEFINE_CONSTANT(target, WSAEMFILE); in DefineWindowsErrorConstants()
415 NODE_DEFINE_CONSTANT(target, WSAEWOULDBLOCK); in DefineWindowsErrorConstants()
419 NODE_DEFINE_CONSTANT(target, WSAEINPROGRESS); in DefineWindowsErrorConstants()
423 NODE_DEFINE_CONSTANT(target, WSAEALREADY); in DefineWindowsErrorConstants()
427 NODE_DEFINE_CONSTANT(target, WSAENOTSOCK); in DefineWindowsErrorConstants()
431 NODE_DEFINE_CONSTANT(target, WSAEDESTADDRREQ); in DefineWindowsErrorConstants()
435 NODE_DEFINE_CONSTANT(target, WSAEMSGSIZE); in DefineWindowsErrorConstants()
439 NODE_DEFINE_CONSTANT(target, WSAEPROTOTYPE); in DefineWindowsErrorConstants()
443 NODE_DEFINE_CONSTANT(target, WSAENOPROTOOPT); in DefineWindowsErrorConstants()
447 NODE_DEFINE_CONSTANT(target, WSAEPROTONOSUPPORT); in DefineWindowsErrorConstants()
451 NODE_DEFINE_CONSTANT(target, WSAESOCKTNOSUPPORT); in DefineWindowsErrorConstants()
455 NODE_DEFINE_CONSTANT(target, WSAEOPNOTSUPP); in DefineWindowsErrorConstants()
459 NODE_DEFINE_CONSTANT(target, WSAEPFNOSUPPORT); in DefineWindowsErrorConstants()
463 NODE_DEFINE_CONSTANT(target, WSAEAFNOSUPPORT); in DefineWindowsErrorConstants()
467 NODE_DEFINE_CONSTANT(target, WSAEADDRINUSE); in DefineWindowsErrorConstants()
471 NODE_DEFINE_CONSTANT(target, WSAEADDRNOTAVAIL); in DefineWindowsErrorConstants()
475 NODE_DEFINE_CONSTANT(target, WSAENETDOWN); in DefineWindowsErrorConstants()
479 NODE_DEFINE_CONSTANT(target, WSAENETUNREACH); in DefineWindowsErrorConstants()
483 NODE_DEFINE_CONSTANT(target, WSAENETRESET); in DefineWindowsErrorConstants()
487 NODE_DEFINE_CONSTANT(target, WSAECONNABORTED); in DefineWindowsErrorConstants()
491 NODE_DEFINE_CONSTANT(target, WSAECONNRESET); in DefineWindowsErrorConstants()
495 NODE_DEFINE_CONSTANT(target, WSAENOBUFS); in DefineWindowsErrorConstants()
499 NODE_DEFINE_CONSTANT(target, WSAEISCONN); in DefineWindowsErrorConstants()
503 NODE_DEFINE_CONSTANT(target, WSAENOTCONN); in DefineWindowsErrorConstants()
507 NODE_DEFINE_CONSTANT(target, WSAESHUTDOWN); in DefineWindowsErrorConstants()
511 NODE_DEFINE_CONSTANT(target, WSAETOOMANYREFS); in DefineWindowsErrorConstants()
515 NODE_DEFINE_CONSTANT(target, WSAETIMEDOUT); in DefineWindowsErrorConstants()
519 NODE_DEFINE_CONSTANT(target, WSAECONNREFUSED); in DefineWindowsErrorConstants()
523 NODE_DEFINE_CONSTANT(target, WSAELOOP); in DefineWindowsErrorConstants()
527 NODE_DEFINE_CONSTANT(target, WSAENAMETOOLONG); in DefineWindowsErrorConstants()
531 NODE_DEFINE_CONSTANT(target, WSAEHOSTDOWN); in DefineWindowsErrorConstants()
535 NODE_DEFINE_CONSTANT(target, WSAEHOSTUNREACH); in DefineWindowsErrorConstants()
539 NODE_DEFINE_CONSTANT(target, WSAENOTEMPTY); in DefineWindowsErrorConstants()
543 NODE_DEFINE_CONSTANT(target, WSAEPROCLIM); in DefineWindowsErrorConstants()
547 NODE_DEFINE_CONSTANT(target, WSAEUSERS); in DefineWindowsErrorConstants()
551 NODE_DEFINE_CONSTANT(target, WSAEDQUOT); in DefineWindowsErrorConstants()
555 NODE_DEFINE_CONSTANT(target, WSAESTALE); in DefineWindowsErrorConstants()
559 NODE_DEFINE_CONSTANT(target, WSAEREMOTE); in DefineWindowsErrorConstants()
563 NODE_DEFINE_CONSTANT(target, WSASYSNOTREADY); in DefineWindowsErrorConstants()
567 NODE_DEFINE_CONSTANT(target, WSAVERNOTSUPPORTED); in DefineWindowsErrorConstants()
571 NODE_DEFINE_CONSTANT(target, WSANOTINITIALISED); in DefineWindowsErrorConstants()
575 NODE_DEFINE_CONSTANT(target, WSAEDISCON); in DefineWindowsErrorConstants()
579 NODE_DEFINE_CONSTANT(target, WSAENOMORE); in DefineWindowsErrorConstants()
583 NODE_DEFINE_CONSTANT(target, WSAECANCELLED); in DefineWindowsErrorConstants()
587 NODE_DEFINE_CONSTANT(target, WSAEINVALIDPROCTABLE); in DefineWindowsErrorConstants()
591 NODE_DEFINE_CONSTANT(target, WSAEINVALIDPROVIDER); in DefineWindowsErrorConstants()
595 NODE_DEFINE_CONSTANT(target, WSAEPROVIDERFAILEDINIT); in DefineWindowsErrorConstants()
599 NODE_DEFINE_CONSTANT(target, WSASYSCALLFAILURE); in DefineWindowsErrorConstants()
603 NODE_DEFINE_CONSTANT(target, WSASERVICE_NOT_FOUND); in DefineWindowsErrorConstants()
607 NODE_DEFINE_CONSTANT(target, WSATYPE_NOT_FOUND); in DefineWindowsErrorConstants()
611 NODE_DEFINE_CONSTANT(target, WSA_E_NO_MORE); in DefineWindowsErrorConstants()
615 NODE_DEFINE_CONSTANT(target, WSA_E_CANCELLED); in DefineWindowsErrorConstants()
619 NODE_DEFINE_CONSTANT(target, WSAEREFUSED); in DefineWindowsErrorConstants()
623 void DefineSignalConstants(Local<Object> target) { in DefineSignalConstants() argument
625 NODE_DEFINE_CONSTANT(target, SIGHUP); in DefineSignalConstants()
629 NODE_DEFINE_CONSTANT(target, SIGINT); in DefineSignalConstants()
633 NODE_DEFINE_CONSTANT(target, SIGQUIT); in DefineSignalConstants()
637 NODE_DEFINE_CONSTANT(target, SIGILL); in DefineSignalConstants()
641 NODE_DEFINE_CONSTANT(target, SIGTRAP); in DefineSignalConstants()
645 NODE_DEFINE_CONSTANT(target, SIGABRT); in DefineSignalConstants()
649 NODE_DEFINE_CONSTANT(target, SIGIOT); in DefineSignalConstants()
653 NODE_DEFINE_CONSTANT(target, SIGBUS); in DefineSignalConstants()
657 NODE_DEFINE_CONSTANT(target, SIGFPE); in DefineSignalConstants()
661 NODE_DEFINE_CONSTANT(target, SIGKILL); in DefineSignalConstants()
665 NODE_DEFINE_CONSTANT(target, SIGUSR1); in DefineSignalConstants()
669 NODE_DEFINE_CONSTANT(target, SIGSEGV); in DefineSignalConstants()
673 NODE_DEFINE_CONSTANT(target, SIGUSR2); in DefineSignalConstants()
677 NODE_DEFINE_CONSTANT(target, SIGPIPE); in DefineSignalConstants()
681 NODE_DEFINE_CONSTANT(target, SIGALRM); in DefineSignalConstants()
684 NODE_DEFINE_CONSTANT(target, SIGTERM); in DefineSignalConstants()
687 NODE_DEFINE_CONSTANT(target, SIGCHLD); in DefineSignalConstants()
691 NODE_DEFINE_CONSTANT(target, SIGSTKFLT); in DefineSignalConstants()
696 NODE_DEFINE_CONSTANT(target, SIGCONT); in DefineSignalConstants()
700 NODE_DEFINE_CONSTANT(target, SIGSTOP); in DefineSignalConstants()
704 NODE_DEFINE_CONSTANT(target, SIGTSTP); in DefineSignalConstants()
708 NODE_DEFINE_CONSTANT(target, SIGBREAK); in DefineSignalConstants()
712 NODE_DEFINE_CONSTANT(target, SIGTTIN); in DefineSignalConstants()
716 NODE_DEFINE_CONSTANT(target, SIGTTOU); in DefineSignalConstants()
720 NODE_DEFINE_CONSTANT(target, SIGURG); in DefineSignalConstants()
724 NODE_DEFINE_CONSTANT(target, SIGXCPU); in DefineSignalConstants()
728 NODE_DEFINE_CONSTANT(target, SIGXFSZ); in DefineSignalConstants()
732 NODE_DEFINE_CONSTANT(target, SIGVTALRM); in DefineSignalConstants()
736 NODE_DEFINE_CONSTANT(target, SIGPROF); in DefineSignalConstants()
740 NODE_DEFINE_CONSTANT(target, SIGWINCH); in DefineSignalConstants()
744 NODE_DEFINE_CONSTANT(target, SIGIO); in DefineSignalConstants()
748 NODE_DEFINE_CONSTANT(target, SIGPOLL); in DefineSignalConstants()
752 NODE_DEFINE_CONSTANT(target, SIGLOST); in DefineSignalConstants()
756 NODE_DEFINE_CONSTANT(target, SIGPWR); in DefineSignalConstants()
760 NODE_DEFINE_CONSTANT(target, SIGINFO); in DefineSignalConstants()
764 NODE_DEFINE_CONSTANT(target, SIGSYS); in DefineSignalConstants()
768 NODE_DEFINE_CONSTANT(target, SIGUNUSED); in DefineSignalConstants()
772 void DefinePriorityConstants(Local<Object> target) { in DefinePriorityConstants() argument
775 NODE_DEFINE_CONSTANT(target, PRIORITY_LOW); in DefinePriorityConstants()
781 NODE_DEFINE_CONSTANT(target, PRIORITY_BELOW_NORMAL); in DefinePriorityConstants()
787 NODE_DEFINE_CONSTANT(target, PRIORITY_NORMAL); in DefinePriorityConstants()
793 NODE_DEFINE_CONSTANT(target, PRIORITY_ABOVE_NORMAL); in DefinePriorityConstants()
799 NODE_DEFINE_CONSTANT(target, PRIORITY_HIGH); in DefinePriorityConstants()
805 NODE_DEFINE_CONSTANT(target, PRIORITY_HIGHEST); in DefinePriorityConstants()
810 void DefineCryptoConstants(Local<Object> target) { in DefineCryptoConstants() argument
812 NODE_DEFINE_CONSTANT(target, OPENSSL_VERSION_NUMBER); in DefineCryptoConstants()
816 NODE_DEFINE_CONSTANT(target, SSL_OP_ALL); in DefineCryptoConstants()
820 NODE_DEFINE_CONSTANT(target, SSL_OP_ALLOW_NO_DHE_KEX); in DefineCryptoConstants()
824 NODE_DEFINE_CONSTANT(target, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION); in DefineCryptoConstants()
828 NODE_DEFINE_CONSTANT(target, SSL_OP_CIPHER_SERVER_PREFERENCE); in DefineCryptoConstants()
832 NODE_DEFINE_CONSTANT(target, SSL_OP_CISCO_ANYCONNECT); in DefineCryptoConstants()
836 NODE_DEFINE_CONSTANT(target, SSL_OP_COOKIE_EXCHANGE); in DefineCryptoConstants()
840 NODE_DEFINE_CONSTANT(target, SSL_OP_CRYPTOPRO_TLSEXT_BUG); in DefineCryptoConstants()
844 NODE_DEFINE_CONSTANT(target, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS); in DefineCryptoConstants()
848 NODE_DEFINE_CONSTANT(target, SSL_OP_EPHEMERAL_RSA); in DefineCryptoConstants()
852 NODE_DEFINE_CONSTANT(target, SSL_OP_LEGACY_SERVER_CONNECT); in DefineCryptoConstants()
856 NODE_DEFINE_CONSTANT(target, SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER); in DefineCryptoConstants()
860 NODE_DEFINE_CONSTANT(target, SSL_OP_MICROSOFT_SESS_ID_BUG); in DefineCryptoConstants()
864 NODE_DEFINE_CONSTANT(target, SSL_OP_MSIE_SSLV2_RSA_PADDING); in DefineCryptoConstants()
868 NODE_DEFINE_CONSTANT(target, SSL_OP_NETSCAPE_CA_DN_BUG); in DefineCryptoConstants()
872 NODE_DEFINE_CONSTANT(target, SSL_OP_NETSCAPE_CHALLENGE_BUG); in DefineCryptoConstants()
876 NODE_DEFINE_CONSTANT(target, SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG); in DefineCryptoConstants()
880 NODE_DEFINE_CONSTANT(target, SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG); in DefineCryptoConstants()
884 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_COMPRESSION); in DefineCryptoConstants()
888 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_ENCRYPT_THEN_MAC); in DefineCryptoConstants()
892 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_QUERY_MTU); in DefineCryptoConstants()
896 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_RENEGOTIATION); in DefineCryptoConstants()
900 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); in DefineCryptoConstants()
904 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_SSLv2); in DefineCryptoConstants()
908 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_SSLv3); in DefineCryptoConstants()
912 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TICKET); in DefineCryptoConstants()
916 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1); in DefineCryptoConstants()
920 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1_1); in DefineCryptoConstants()
924 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1_2); in DefineCryptoConstants()
928 NODE_DEFINE_CONSTANT(target, SSL_OP_NO_TLSv1_3); in DefineCryptoConstants()
932 NODE_DEFINE_CONSTANT(target, SSL_OP_PKCS1_CHECK_1); in DefineCryptoConstants()
936 NODE_DEFINE_CONSTANT(target, SSL_OP_PKCS1_CHECK_2); in DefineCryptoConstants()
940 NODE_DEFINE_CONSTANT(target, SSL_OP_PRIORITIZE_CHACHA); in DefineCryptoConstants()
944 NODE_DEFINE_CONSTANT(target, SSL_OP_SINGLE_DH_USE); in DefineCryptoConstants()
948 NODE_DEFINE_CONSTANT(target, SSL_OP_SINGLE_ECDH_USE); in DefineCryptoConstants()
952 NODE_DEFINE_CONSTANT(target, SSL_OP_SSLEAY_080_CLIENT_DH_BUG); in DefineCryptoConstants()
956 NODE_DEFINE_CONSTANT(target, SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG); in DefineCryptoConstants()
960 NODE_DEFINE_CONSTANT(target, SSL_OP_TLS_BLOCK_PADDING_BUG); in DefineCryptoConstants()
964 NODE_DEFINE_CONSTANT(target, SSL_OP_TLS_D5_BUG); in DefineCryptoConstants()
968 NODE_DEFINE_CONSTANT(target, SSL_OP_TLS_ROLLBACK_BUG); in DefineCryptoConstants()
974 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_RSA); in DefineCryptoConstants()
978 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_DSA); in DefineCryptoConstants()
982 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_DH); in DefineCryptoConstants()
986 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_RAND); in DefineCryptoConstants()
990 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_EC); in DefineCryptoConstants()
994 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_CIPHERS); in DefineCryptoConstants()
998 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_DIGESTS); in DefineCryptoConstants()
1002 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_PKEY_METHS); in DefineCryptoConstants()
1006 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_PKEY_ASN1_METHS); in DefineCryptoConstants()
1010 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_ALL); in DefineCryptoConstants()
1014 NODE_DEFINE_CONSTANT(target, ENGINE_METHOD_NONE); in DefineCryptoConstants()
1020 NODE_DEFINE_CONSTANT(target, DH_CHECK_P_NOT_SAFE_PRIME); in DefineCryptoConstants()
1024 NODE_DEFINE_CONSTANT(target, DH_CHECK_P_NOT_PRIME); in DefineCryptoConstants()
1028 NODE_DEFINE_CONSTANT(target, DH_UNABLE_TO_CHECK_GENERATOR); in DefineCryptoConstants()
1032 NODE_DEFINE_CONSTANT(target, DH_NOT_SUITABLE_GENERATOR); in DefineCryptoConstants()
1036 NODE_DEFINE_CONSTANT(target, ALPN_ENABLED); in DefineCryptoConstants()
1039 NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PADDING); in DefineCryptoConstants()
1043 NODE_DEFINE_CONSTANT(target, RSA_SSLV23_PADDING); in DefineCryptoConstants()
1047 NODE_DEFINE_CONSTANT(target, RSA_NO_PADDING); in DefineCryptoConstants()
1051 NODE_DEFINE_CONSTANT(target, RSA_PKCS1_OAEP_PADDING); in DefineCryptoConstants()
1055 NODE_DEFINE_CONSTANT(target, RSA_X931_PADDING); in DefineCryptoConstants()
1059 NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING); in DefineCryptoConstants()
1063 NODE_DEFINE_CONSTANT(target, RSA_PSS_SALTLEN_DIGEST); in DefineCryptoConstants()
1067 NODE_DEFINE_CONSTANT(target, RSA_PSS_SALTLEN_MAX_SIGN); in DefineCryptoConstants()
1071 NODE_DEFINE_CONSTANT(target, RSA_PSS_SALTLEN_AUTO); in DefineCryptoConstants()
1075 NODE_DEFINE_STRING_CONSTANT(target, in DefineCryptoConstants()
1081 NODE_DEFINE_CONSTANT(target, TLS1_VERSION); in DefineCryptoConstants()
1085 NODE_DEFINE_CONSTANT(target, TLS1_1_VERSION); in DefineCryptoConstants()
1089 NODE_DEFINE_CONSTANT(target, TLS1_2_VERSION); in DefineCryptoConstants()
1093 NODE_DEFINE_CONSTANT(target, TLS1_3_VERSION); in DefineCryptoConstants()
1098 NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_COMPRESSED); in DefineCryptoConstants()
1100 NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_UNCOMPRESSED); in DefineCryptoConstants()
1102 NODE_DEFINE_CONSTANT(target, POINT_CONVERSION_HYBRID); in DefineCryptoConstants()
1106 void DefineSystemConstants(Local<Object> target) { in DefineSystemConstants() argument
1107 NODE_DEFINE_CONSTANT(target, UV_FS_SYMLINK_DIR); in DefineSystemConstants()
1108 NODE_DEFINE_CONSTANT(target, UV_FS_SYMLINK_JUNCTION); in DefineSystemConstants()
1110 NODE_DEFINE_CONSTANT(target, O_RDONLY); in DefineSystemConstants()
1111 NODE_DEFINE_CONSTANT(target, O_WRONLY); in DefineSystemConstants()
1112 NODE_DEFINE_CONSTANT(target, O_RDWR); in DefineSystemConstants()
1115 NODE_DEFINE_CONSTANT(target, UV_DIRENT_UNKNOWN); in DefineSystemConstants()
1116 NODE_DEFINE_CONSTANT(target, UV_DIRENT_FILE); in DefineSystemConstants()
1117 NODE_DEFINE_CONSTANT(target, UV_DIRENT_DIR); in DefineSystemConstants()
1118 NODE_DEFINE_CONSTANT(target, UV_DIRENT_LINK); in DefineSystemConstants()
1119 NODE_DEFINE_CONSTANT(target, UV_DIRENT_FIFO); in DefineSystemConstants()
1120 NODE_DEFINE_CONSTANT(target, UV_DIRENT_SOCKET); in DefineSystemConstants()
1121 NODE_DEFINE_CONSTANT(target, UV_DIRENT_CHAR); in DefineSystemConstants()
1122 NODE_DEFINE_CONSTANT(target, UV_DIRENT_BLOCK); in DefineSystemConstants()
1124 NODE_DEFINE_CONSTANT(target, S_IFMT); in DefineSystemConstants()
1125 NODE_DEFINE_CONSTANT(target, S_IFREG); in DefineSystemConstants()
1126 NODE_DEFINE_CONSTANT(target, S_IFDIR); in DefineSystemConstants()
1127 NODE_DEFINE_CONSTANT(target, S_IFCHR); in DefineSystemConstants()
1129 NODE_DEFINE_CONSTANT(target, S_IFBLK); in DefineSystemConstants()
1133 NODE_DEFINE_CONSTANT(target, S_IFIFO); in DefineSystemConstants()
1137 NODE_DEFINE_CONSTANT(target, S_IFLNK); in DefineSystemConstants()
1141 NODE_DEFINE_CONSTANT(target, S_IFSOCK); in DefineSystemConstants()
1145 NODE_DEFINE_CONSTANT(target, O_CREAT); in DefineSystemConstants()
1149 NODE_DEFINE_CONSTANT(target, O_EXCL); in DefineSystemConstants()
1152 NODE_DEFINE_CONSTANT(target, UV_FS_O_FILEMAP); in DefineSystemConstants()
1155 NODE_DEFINE_CONSTANT(target, O_NOCTTY); in DefineSystemConstants()
1159 NODE_DEFINE_CONSTANT(target, O_TRUNC); in DefineSystemConstants()
1163 NODE_DEFINE_CONSTANT(target, O_APPEND); in DefineSystemConstants()
1167 NODE_DEFINE_CONSTANT(target, O_DIRECTORY); in DefineSystemConstants()
1171 NODE_DEFINE_CONSTANT(target, O_EXCL); in DefineSystemConstants()
1175 NODE_DEFINE_CONSTANT(target, O_NOATIME); in DefineSystemConstants()
1179 NODE_DEFINE_CONSTANT(target, O_NOFOLLOW); in DefineSystemConstants()
1183 NODE_DEFINE_CONSTANT(target, O_SYNC); in DefineSystemConstants()
1187 NODE_DEFINE_CONSTANT(target, O_DSYNC); in DefineSystemConstants()
1192 NODE_DEFINE_CONSTANT(target, O_SYMLINK); in DefineSystemConstants()
1196 NODE_DEFINE_CONSTANT(target, O_DIRECT); in DefineSystemConstants()
1200 NODE_DEFINE_CONSTANT(target, O_NONBLOCK); in DefineSystemConstants()
1204 NODE_DEFINE_CONSTANT(target, S_IRWXU); in DefineSystemConstants()
1208 NODE_DEFINE_CONSTANT(target, S_IRUSR); in DefineSystemConstants()
1212 NODE_DEFINE_CONSTANT(target, S_IWUSR); in DefineSystemConstants()
1216 NODE_DEFINE_CONSTANT(target, S_IXUSR); in DefineSystemConstants()
1220 NODE_DEFINE_CONSTANT(target, S_IRWXG); in DefineSystemConstants()
1224 NODE_DEFINE_CONSTANT(target, S_IRGRP); in DefineSystemConstants()
1228 NODE_DEFINE_CONSTANT(target, S_IWGRP); in DefineSystemConstants()
1232 NODE_DEFINE_CONSTANT(target, S_IXGRP); in DefineSystemConstants()
1236 NODE_DEFINE_CONSTANT(target, S_IRWXO); in DefineSystemConstants()
1240 NODE_DEFINE_CONSTANT(target, S_IROTH); in DefineSystemConstants()
1244 NODE_DEFINE_CONSTANT(target, S_IWOTH); in DefineSystemConstants()
1248 NODE_DEFINE_CONSTANT(target, S_IXOTH); in DefineSystemConstants()
1252 NODE_DEFINE_CONSTANT(target, F_OK); in DefineSystemConstants()
1256 NODE_DEFINE_CONSTANT(target, R_OK); in DefineSystemConstants()
1260 NODE_DEFINE_CONSTANT(target, W_OK); in DefineSystemConstants()
1264 NODE_DEFINE_CONSTANT(target, X_OK); in DefineSystemConstants()
1269 NODE_DEFINE_CONSTANT(target, UV_FS_COPYFILE_EXCL); in DefineSystemConstants()
1270 NODE_DEFINE_CONSTANT(target, COPYFILE_EXCL); in DefineSystemConstants()
1276 NODE_DEFINE_CONSTANT(target, UV_FS_COPYFILE_FICLONE); in DefineSystemConstants()
1277 NODE_DEFINE_CONSTANT(target, COPYFILE_FICLONE); in DefineSystemConstants()
1283 NODE_DEFINE_CONSTANT(target, UV_FS_COPYFILE_FICLONE_FORCE); in DefineSystemConstants()
1284 NODE_DEFINE_CONSTANT(target, COPYFILE_FICLONE_FORCE); in DefineSystemConstants()
1289 void DefineDLOpenConstants(Local<Object> target) { in DefineDLOpenConstants() argument
1291 NODE_DEFINE_CONSTANT(target, RTLD_LAZY); in DefineDLOpenConstants()
1295 NODE_DEFINE_CONSTANT(target, RTLD_NOW); in DefineDLOpenConstants()
1299 NODE_DEFINE_CONSTANT(target, RTLD_GLOBAL); in DefineDLOpenConstants()
1303 NODE_DEFINE_CONSTANT(target, RTLD_LOCAL); in DefineDLOpenConstants()
1307 NODE_DEFINE_CONSTANT(target, RTLD_DEEPBIND); in DefineDLOpenConstants()
1311 void DefineTraceConstants(Local<Object> target) { in DefineTraceConstants() argument
1312 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_BEGIN); in DefineTraceConstants()
1313 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_END); in DefineTraceConstants()
1314 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_COMPLETE); in DefineTraceConstants()
1315 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_INSTANT); in DefineTraceConstants()
1316 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_ASYNC_BEGIN); in DefineTraceConstants()
1317 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_ASYNC_STEP_INTO); in DefineTraceConstants()
1318 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_ASYNC_STEP_PAST); in DefineTraceConstants()
1319 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_ASYNC_END); in DefineTraceConstants()
1320 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN); in DefineTraceConstants()
1321 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_NESTABLE_ASYNC_END); in DefineTraceConstants()
1322 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT); in DefineTraceConstants()
1323 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_FLOW_BEGIN); in DefineTraceConstants()
1324 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_FLOW_STEP); in DefineTraceConstants()
1325 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_FLOW_END); in DefineTraceConstants()
1326 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_METADATA); in DefineTraceConstants()
1327 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_COUNTER); in DefineTraceConstants()
1328 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_SAMPLE); in DefineTraceConstants()
1329 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_CREATE_OBJECT); in DefineTraceConstants()
1330 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_SNAPSHOT_OBJECT); in DefineTraceConstants()
1331 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_DELETE_OBJECT); in DefineTraceConstants()
1332 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_MEMORY_DUMP); in DefineTraceConstants()
1333 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_MARK); in DefineTraceConstants()
1334 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_CLOCK_SYNC); in DefineTraceConstants()
1335 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_ENTER_CONTEXT); in DefineTraceConstants()
1336 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_LEAVE_CONTEXT); in DefineTraceConstants()
1337 NODE_DEFINE_CONSTANT(target, TRACE_EVENT_PHASE_LINK_IDS); in DefineTraceConstants()
1342 void DefineConstants(v8::Isolate* isolate, Local<Object> target) { in DefineConstants() argument
1346 CHECK(os_constants->SetPrototype(env->context(), in DefineConstants()
1347 Null(env->isolate())).FromJust()); in DefineConstants()
1350 CHECK(err_constants->SetPrototype(env->context(), in DefineConstants()
1351 Null(env->isolate())).FromJust()); in DefineConstants()
1354 CHECK(sig_constants->SetPrototype(env->context(), in DefineConstants()
1355 Null(env->isolate())).FromJust()); in DefineConstants()
1358 CHECK(priority_constants->SetPrototype(env->context(), in DefineConstants()
1359 Null(env->isolate())).FromJust()); in DefineConstants()
1362 CHECK(fs_constants->SetPrototype(env->context(), in DefineConstants()
1363 Null(env->isolate())).FromJust()); in DefineConstants()
1366 CHECK(crypto_constants->SetPrototype(env->context(), in DefineConstants()
1367 Null(env->isolate())).FromJust()); in DefineConstants()
1370 CHECK(zlib_constants->SetPrototype(env->context(), in DefineConstants()
1371 Null(env->isolate())).FromJust()); in DefineConstants()
1374 CHECK(dlopen_constants->SetPrototype(env->context(), in DefineConstants()
1375 Null(env->isolate())).FromJust()); in DefineConstants()
1378 CHECK(trace_constants->SetPrototype(env->context(), in DefineConstants()
1379 Null(env->isolate())).FromJust()); in DefineConstants()
1394 os_constants->Set(env->context(), in DefineConstants()
1397 os_constants->Set(env->context(), in DefineConstants()
1400 os_constants->Set(env->context(), in DefineConstants()
1403 os_constants->Set(env->context(), in DefineConstants()
1406 target->Set(env->context(), in DefineConstants()
1409 target->Set(env->context(), in DefineConstants()
1412 target->Set(env->context(), in DefineConstants()
1415 target->Set(env->context(), in DefineConstants()
1418 target->Set(env->context(), in DefineConstants()