Commit Graph

65 Commits

Author SHA1 Message Date
Ben Noordhuis
ec37d05d66 Revert "build: compile with -D__DARWIN_64_BIT_INO_T on OS X"
This reverts commit 01fbe7bf37.

__DARWIN_64_BIT_INO_T is a no-op in most cases and might be actively harmful in
some others.
2011-12-01 21:02:29 +01:00
Ben Noordhuis
01fbe7bf37 build: compile with -D__DARWIN_64_BIT_INO_T on OS X
Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Solution proposed by Paddy Byers.
2011-11-18 21:16:24 +01:00
Frank Denis
89ea3be6c2 Add support for DragonFly BSD by sharing code for FreeBSD. 2011-11-13 19:46:24 +01:00
Ben Noordhuis
e4d6509211 build: compile in dl.c on unix 2011-10-29 01:12:15 +02:00
Frank DENIS
4ab1990064 unix: add support for OpenBSD 2011-10-14 01:59:45 +02:00
Ben Noordhuis
6936d60cde build: don't set CC and AR
Allows user to override compiler and archiver through the CC and AR environment
variables. Note that this already worked as expected with `make CC=clang`.
2011-10-11 18:27:12 +02:00
Ben Noordhuis
8e9a3384c9 unix: implement kqueue file watcher API
kqueue fds are not embeddable into other pollsets (select, poll, kqueue).
Hack the libev event loop to receive kqueue events with filter flags intact.
2011-10-04 23:28:36 +02:00
Fedor Indutny
33cb8775bc os: implement memory bindings
* us_get_free_memory
* us_get_total_memory
2011-10-04 18:10:35 +02:00
Marek Jelen
d9fb84c02c build: absorb CFLAGS from environment 2011-09-22 17:37:44 +02:00
Ryan Dahl
4484d61fe1 Add interfaces for uv_pipe_open, uv_tty_init, uv_tty_set_mode
Nothing works - no tests. This is just to coordinate efforts between Bert
and I.
2011-09-12 14:32:14 -07:00
Matthew Sporleder
4320874fcf unix: netbsd support 2011-09-08 13:20:43 +02:00
Ben Noordhuis
bb0c6e6d53 unix: move linux feature detection macros to internal.h 2011-09-05 16:05:28 +02:00
Ryan Dahl
6fd340b8ca unix: split out stream into its own file 2011-08-31 13:41:22 -07:00
Ryan Dahl
38ce213b6a unix: split out pipe 2011-08-31 13:29:17 -07:00
Ryan Dahl
510407c03d unix: split out tcp module 2011-08-31 13:11:38 -07:00
Ryan Dahl
b9120d0b0a Simplify Unix makefile 2011-08-31 12:07:49 -07:00
Ryan Dahl
e553f96f94 unix: split out uv_spawn into src/unix/process.c 2011-08-31 11:50:08 -07:00
Ryan Dahl
490c83dd35 move src/uv-unix.c to src/unix/core.c 2011-08-31 11:26:43 -07:00
Ryan Dahl
6144c93bbc unix: split out error code into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
e97958ac3b unix: Split out c-ares integration into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
58461d5ae7 split out unix's udp source 2011-08-31 11:23:29 -07:00
Ryan Dahl
b47c474cfd Move private headers into include/uv-private 2011-08-31 00:43:55 -07:00
Ryan Dahl
1408ac4c4f Move src/ev to src/unix/ev 2011-08-31 00:33:14 -07:00
Ryan Dahl
5fd68a016a Move unix platform files into src/unix 2011-08-31 00:29:47 -07:00
Ryan Dahl
231298a5e8 move eio stuff into src/unix 2011-08-31 00:24:07 -07:00
Ryan Dahl
3be275bad7 Begin implementation of UNIX uv_fs_ functions
Adding this incomplete work now to ease rebase troubles later as it moves
the functions to src/unix/fs.c and introduces src/unix/internal.h.
2011-08-29 14:36:45 -07:00
Ben Noordhuis
d01676fc73 build: define _XOPEN_SOURCE=500 on SunOS
Exposes msghdr.msg_flags, required for UDP support.
2011-08-22 14:27:39 +00:00
Ben Noordhuis
7b5d28e4b9 build: use -pthreads on sunos, -pthread everywhere else 2011-08-12 02:51:16 +02:00
Ben Noordhuis
c952352f77 build: use -pthreads, older gccs don't recognize -pthread 2011-08-11 23:43:52 +00:00
Ryan Dahl
75c109055d Bring back standalone makefiles for a better transition 2011-08-08 13:42:01 -07:00
Ryan Dahl
a30a7336f0 Build with gyp 2011-08-06 02:17:56 -07:00
Ryan Dahl
22ec2db413 solaris fixes 2011-08-02 06:29:25 +00:00
Ryan Dahl
d0e1e62d87 Increase eio thread stacksize 2011-07-28 18:53:20 -07:00
Ben Noordhuis
80d804b909 unix: build with -Wall -Wextra -Wno-unused-parameter 2011-07-22 01:42:55 +02:00
Ben Noordhuis
ce5eb6d85a config-unix: drop --std=c89 on cygwin, hides CLOCK_MONOTONIC.
Fixes #112.
2011-07-20 17:58:27 +02:00
Ben Noordhuis
8d3d4a4244 Revert 9518ab65: Allow user to specify CC env var (CC=clang make)
Conditional assignment (assign if not set) to CC and AR never works
because their default values with GNU make are `cc` and `ar` respectively.
Build with `make AR=your-ar CC=your-cc` if you want to override them.

Fixes #89.
2011-07-10 17:22:32 +02:00
Robert Mustacchi
ee599ec114 Fix Linux build 2011-07-07 23:55:58 -07:00
Robert Mustacchi
8c00b369b4 C99 compatibility.
Get 99% of the way there for --std=c89 -pedantic for core files. Also cleans
up follow up warnings and others in tests.
2011-07-07 21:39:08 -07:00
Ryan Dahl
9518ab6594 Allow user to specify CC env var (CC=clang make) 2011-07-07 08:32:37 -07:00
Ryan Dahl
ce8ff3031c src/ and include/ directories
Helps #71 but does not update the MSVC files.
2011-07-07 07:52:57 -07:00
Bert Belder
49baaa4731 Add cygwin support
Fails a few tests
2011-07-06 02:54:47 +02:00
Ryan Dahl
736dd8bfb3 Remove -Wno-variadic-macros
Helps #63.
Fixes #80.
2011-07-04 10:47:27 -07:00
Ryan Dahl
17ee7732c3 unix: All objects should be compiled with _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64
Fixes uv_getaddrinfo on linux
2011-07-01 11:52:54 -04:00
Ryan Dahl
8cd3d71229 fix linux build 2011-07-01 06:52:05 -07:00
Ryan Dahl
08809b2d04 unix: initial attempt at uv_getaddrinfo 2011-06-30 13:04:11 -07:00
Ryan Dahl
bde908f565 unix: Include libeio 2011-06-30 11:43:17 -07:00
Ryan Dahl
daa499c567 unix: Remove c-ares and libev configure scripts
Instead let's be a bit more clever.
2011-06-27 18:29:35 +02:00
Ryan Dahl
c4c022fb0c move uv_get_exepath() to platform files 2011-06-17 13:13:27 +02:00
Robert Mustacchi
cf45384a93 Add high-resolution timestamp support 2011-06-17 11:35:36 +02:00
Ryan Dahl
49a2ed6120 c-ares unix 2011-06-15 14:23:46 +02:00