|
@ -1,8 +1,10 @@ |
|
|
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
|
|
|
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
|
|
|
|
|
|
|
|
|
#include <node.h> |
|
|
#include <node.h> |
|
|
|
|
|
|
|
|
#include <locale.h> |
|
|
#include <v8-debug.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <locale.h> |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <strings.h> |
|
|
#include <strings.h> |
|
@ -14,17 +16,18 @@ |
|
|
#include <sys/types.h> |
|
|
#include <sys/types.h> |
|
|
#include <unistd.h> /* setuid, getuid */ |
|
|
#include <unistd.h> /* setuid, getuid */ |
|
|
|
|
|
|
|
|
#include "platform.h" |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __MINGW32__ |
|
|
#ifdef __MINGW32__ |
|
|
# include <platform_win32.h> /* winapi_perror() */ |
|
|
# include <platform_win32.h> /* winapi_perror() */ |
|
|
# include <platform_win32_winsock.h> /* wsa_init() */ |
|
|
# include <platform_win32_winsock.h> /* wsa_init() */ |
|
|
#else // __POSIX__
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __POSIX__ |
|
|
# include <dlfcn.h> /* dlopen(), dlsym() */ |
|
|
# include <dlfcn.h> /* dlopen(), dlsym() */ |
|
|
# include <pwd.h> /* getpwnam() */ |
|
|
# include <pwd.h> /* getpwnam() */ |
|
|
# include <grp.h> /* getgrnam() */ |
|
|
# include <grp.h> /* getgrnam() */ |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#include <platform.h> |
|
|
#include <node_buffer.h> |
|
|
#include <node_buffer.h> |
|
|
#include <node_io_watcher.h> |
|
|
#include <node_io_watcher.h> |
|
|
#include <node_net.h> |
|
|
#include <node_net.h> |
|
@ -45,12 +48,10 @@ |
|
|
#include <node_javascript.h> |
|
|
#include <node_javascript.h> |
|
|
#include <node_version.h> |
|
|
#include <node_version.h> |
|
|
#ifdef HAVE_OPENSSL |
|
|
#ifdef HAVE_OPENSSL |
|
|
#include <node_crypto.h> |
|
|
# include <node_crypto.h> |
|
|
#endif |
|
|
#endif |
|
|
#include <node_script.h> |
|
|
#include <node_script.h> |
|
|
|
|
|
|
|
|
#include <v8-debug.h> |
|
|
|
|
|
|
|
|
|
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) |
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) |
|
|
|
|
|
|
|
|
using namespace v8; |
|
|
using namespace v8; |
|
|