Skip to content
This repository
Browse code

build: install eio-emul.h

  • Loading branch information...
commit 1b22f5376bd8b9276030333558136f4bfab05745 1 parent f405517
Ben Noordhuis bnoordhuis authored

Showing 3 changed files with 75 additions and 1 deletion. Show diff stats Hide diff stats

  1. +73 0 src/eio-emul.h
  2. +1 0  src/node.h
  3. +1 1  tools/installer.js
73 src/eio-emul.h
... ... @@ -0,0 +1,73 @@
  1 +/* Copyright Joyent, Inc. and other Node contributors.
  2 + *
  3 + * Permission is hereby granted, free of charge, to any person obtaining a
  4 + * copy of this software and associated documentation files (the
  5 + * "Software"), to deal in the Software without restriction, including
  6 + * without limitation the rights to use, copy, modify, merge, publish,
  7 + * distribute, sublicense, and/or sell copies of the Software, and to permit
  8 + * persons to whom the Software is furnished to do so, subject to the
  9 + * following conditions:
  10 + *
  11 + * The above copyright notice and this permission notice shall be included
  12 + * in all copies or substantial portions of the Software.
  13 + *
  14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  15 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  17 + * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  18 + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  19 + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  20 + * USE OR OTHER DEALINGS IN THE SOFTWARE.
  21 + */
  22 +
  23 +#ifndef NODE_EIO_EMUL_H_
  24 +#define NODE_EIO_EMUL_H_
  25 +
  26 +# ifndef _WIN32
  27 +# define eio_nop(a,b,c) eio_nop(a,b,c,(&uv_default_loop()->uv_eio_channel))
  28 +# define eio_busy(a,b,c,d) eio_busy(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  29 +# define eio_sync(a,b,c) eio_sync(a,b,c,(&uv_default_loop()->uv_eio_channel))
  30 +# define eio_fsync(a,b,c,d) eio_fsync(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  31 +# define eio_msync(a,b,c,d,e,f) eio_msync(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  32 +# define eio_fdatasync(a,b,c,d) eio_fdatasync(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  33 +# define eio_syncfs(a,b,c,d) eio_syncfs(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  34 +# define eio_sync_file_range(a,b,c,d,e,f,g) eio_sync_file_range(a,b,c,d,e,f,g,(&uv_default_loop()->uv_eio_channel))
  35 +# define eio_mtouch(a,b,c,d,e,f) eio_mtouch(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  36 +# define eio_mlock(a,b,c,d,e) eio_mlock(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  37 +# define eio_mlockall(a,b,c,d) eio_mlockall(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  38 +# define eio_fallocate(a,b,c,d,e,f,g) eio_fallocate(a,b,c,d,e,f,g,(&uv_default_loop()->uv_eio_channel))
  39 +# define eio_close(a,b,c,d) eio_close(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  40 +# define eio_readahead(a,b,c,d,e,f) eio_readahead(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  41 +# define eio_read(a,b,c,d,e,f,g) eio_read(a,b,c,d,e,f,g,(&uv_default_loop()->uv_eio_channel))
  42 +# define eio_write(a,b,c,d,e,f,g) eio_write(a,b,c,d,e,f,g,(&uv_default_loop()->uv_eio_channel))
  43 +# define eio_fstat(a,b,c,d) eio_fstat(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  44 +# define eio_fstatvfs(a,b,c,d) eio_fstatvfs(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  45 +# define eio_futime(a,b,c,d,e,f) eio_futime(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  46 +# define eio_ftruncate(a,b,c,d,e) eio_ftruncate(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  47 +# define eio_fchmod(a,b,c,d,e) eio_fchmod(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  48 +# define eio_fchown(a,b,c,d,e,f) eio_fchown(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  49 +# define eio_dup2(a,b,c,d,e) eio_dup2(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  50 +# define eio_sendfile(a,b,c,d,e,f,g) eio_sendfile(a,b,c,d,e,f,g,(&uv_default_loop()->uv_eio_channel))
  51 +# define eio_open(a,b,c,d,e,f) eio_open(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  52 +# define eio_utime(a,b,c,d,e,f) eio_utime(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  53 +# define eio_truncate(a,b,c,d,e) eio_truncate(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  54 +# define eio_chown(a,b,c,d,e,f) eio_chown(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  55 +# define eio_chmod(a,b,c,d,e) eio_chmod(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  56 +# define eio_mkdir(a,b,c,d,e) eio_mkdir(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  57 +# define eio_readlink(a,b,c,d) eio_readlink(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  58 +# define eio_realpath(a,b,c,d) eio_realpath(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  59 +# define eio_stat(a,b,c,d) eio_stat(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  60 +# define eio_lstat(a,b,c,d) eio_lstat(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  61 +# define eio_statvfs(a,b,c,d) eio_statvfs(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  62 +# define eio_unlink(a,b,c,d) eio_unlink(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  63 +# define eio_rmdir(a,b,c,d) eio_rmdir(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  64 +# define eio_readdir(a,b,c,d,e) eio_readdir(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  65 +# define eio_mknod(a,b,c,d,e,f) eio_mknod(a,b,c,d,e,f,(&uv_default_loop()->uv_eio_channel))
  66 +# define eio_link(a,b,c,d,e) eio_link(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  67 +# define eio_symlink(a,b,c,d,e) eio_symlink(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  68 +# define eio_rename(a,b,c,d,e) eio_rename(a,b,c,d,e,(&uv_default_loop()->uv_eio_channel))
  69 +# define eio_custom(a,b,c,d) eio_custom(a,b,c,d,(&uv_default_loop()->uv_eio_channel))
  70 +# define eio_grp(a,b) eio_grp(a,b,(&uv_default_loop()->uv_eio_channel))
  71 +# endif /* !_WIN32 */
  72 +
  73 +#endif /* NODE_EIO_EMUL_H_ */
1  src/node.h
@@ -276,6 +276,7 @@ MakeCallback(const v8::Handle<v8::Object> object,
276 276
277 277 #if !defined(NODE_WANT_INTERNALS)
278 278 # include "ev-emul.h"
  279 +# include "eio-emul.h"
279 280 #endif
280 281
281 282 } // namespace node
2  tools/installer.js
@@ -92,7 +92,7 @@ if (cmd === 'install') {
92 92 copy([
93 93 // Node
94 94 'src/node.h', 'src/node_buffer.h', 'src/node_object_wrap.h',
95   - 'src/node_version.h', 'src/ev-emul.h',
  95 + 'src/node_version.h', 'src/ev-emul.h', 'src/eio-emul.h',
96 96 // v8
97 97 'deps/v8/include/v8-debug.h', 'deps/v8/include/v8-preparser.h',
98 98 'deps/v8/include/v8-profiler.h', 'deps/v8/include/v8-testing.h',

0 comments on commit 1b22f53

Please sign in to comment.
Something went wrong with that request. Please try again.