Commit Graph

285 Commits

Author SHA1 Message Date
Shuhei Tanuma
fb9bf8c9eb add uv_ip6_name and uv_ip4_name api 2012-06-24 15:39:51 +09:00
Shuhei Tanuma
45ae407966 fix several compile warnings 2012-06-24 15:24:42 +09:00
Shuhei Tanuma
d4ea9a19dd add uv_ip6_addr api 2012-06-24 15:18:33 +09:00
Shuhei Tanuma
61a56b15a7 adjust getaddrinfo api 2012-06-24 03:34:06 +09:00
Shuhei Tanuma
5754a59f4a add getsockname and getpeername api 2012-06-23 20:27:57 +09:00
Shuhei Tanuma
6252d80fb0 add uv_tty apis 2012-06-23 15:05:14 +09:00
Shuhei Tanuma
60d9842928 add fs_event_init api (not tested) 2012-06-23 14:18:52 +09:00
Shuhei Tanuma
f4a8360ae8 add sendfile api (not tested) 2012-06-23 13:40:18 +09:00
Shuhei Tanuma
fd1c14d2e1 add readdir api 2012-06-23 13:27:59 +09:00
Shuhei Tanuma
ff0e26ed84 add stat api 2012-06-23 13:00:27 +09:00
Shuhei Tanuma
6ed669b8d1 use libuv v0.8.0. for now this can compile osx only. i'll fix it soon 2012-06-23 12:07:22 +09:00
Shuhei Tanuma
403cbe90b9 WIP: uv_fs_stat 2012-06-23 12:01:10 +09:00
Shuhei Tanuma
0f28e7f5ee add readlink api 2012-06-23 11:22:41 +09:00
Shuhei Tanuma
380cc0b270 add chown, symlink apis 2012-06-23 02:17:41 +09:00
Shuhei Tanuma
46b12352e8 add chown api 2012-06-23 02:07:56 +09:00
Shuhei Tanuma
1c87ec5fea add chmod api 2012-06-23 02:06:03 +09:00
Shuhei Tanuma
8507b9e07f add fs_utime, fs_ftime api 2012-06-23 01:58:00 +09:00
Shuhei Tanuma
4cf851201b add rename api 2012-06-23 01:48:29 +09:00
Shuhei Tanuma
cd9f1b959e add several fs api 2012-06-23 01:45:00 +09:00
Shuhei Tanuma
1cfb785928 add ftruncate api 2012-06-23 01:26:44 +09:00
Shuhei Tanuma
ade8106ee0 add uv_fs_fdatasync 2012-06-23 01:19:21 +09:00
Shuhei Tanuma
c8b34ad284 refactor uv_fs_fsync 2012-06-23 01:16:27 +09:00
Shuhei Tanuma
34ffc66e9c add fsync api 2012-06-23 00:59:27 +09:00
Shuhei Tanuma
5a397094bd adjust fs_read 2012-06-23 00:53:58 +09:00
Shuhei Tanuma
fba2060afc add fs constants 2012-06-22 23:01:32 +09:00
Shuhei Tanuma
a902f29ea2 adjust uv_fs_write 2012-06-22 12:51:16 +09:00
Shuhei Tanuma
83e9daf1cc add uv_fs_close 2012-06-22 12:13:11 +09:00
Shuhei Tanuma
64deffda15 WIP: uv_fs 2012-06-22 08:20:22 +09:00
Shuhei Tanuma
3b1570d34b WIP: uv_fs_read 2012-06-21 09:43:20 +09:00
Shuhei Tanuma
983568aa1f WIP: fs 2012-06-20 12:40:39 +09:00
Shuhei Tanuma
ceab2df331 fix uv_idle_init 2012-06-19 08:05:50 +09:00
Shuhei Tanuma
6812bfff8a Merge pull request #2 from stealth35/fix_win
Fix windows errors
2012-06-18 07:37:37 -07:00
stealth35
9bbc4e9ef8 Fix windows errors 2012-06-18 15:32:15 +02:00
Shuhei Tanuma
c722e00835 remove uv_loop_refcount 2012-06-18 21:52:43 +09:00
Shuhei Tanuma
31dec36418 added async and queue_work api. TODO: research eio_custom 2012-06-18 01:32:50 +09:00
Shuhei Tanuma
82845ff34c add async api 2012-06-17 23:18:33 +09:00
Shuhei Tanuma
011c874710 add check api 2012-06-17 23:04:54 +09:00
Shuhei Tanuma
b98e8f05b6 add prepare api 2012-06-17 22:50:18 +09:00
Shuhei Tanuma
1f7cdb555f add mutex functions 2012-06-17 21:18:30 +09:00
Shuhei Tanuma
4d57292d8d for now, add rwlock functions 2012-06-17 21:11:16 +09:00
Shuhei Tanuma
efbdc8bef2 for now, add rwlock functions 2012-06-16 17:37:57 +09:00
Shuhei Tanuma
80e3480a97 add uv_rwlock_init 2012-06-16 17:24:55 +09:00
Shuhei Tanuma
3af703c8d0 add uv_chdir 2012-06-16 16:49:38 +09:00
Shuhei Tanuma
735868b5e9 add several functions 2012-06-16 16:43:02 +09:00
Shuhei Tanuma
5b3bf8ac49 add uv_exepath 2012-06-16 16:39:43 +09:00
Shuhei Tanuma
568b3ac313 add several functions 2012-06-16 16:32:46 +09:00
Shuhei Tanuma
60a5824e5f add arginfo_uv_spawn 2012-06-16 16:19:17 +09:00
Shuhei Tanuma
99fc3016e2 add arginfo 2012-06-16 16:17:52 +09:00
Shuhei Tanuma
3e2c488c1e add some functions 2012-06-15 23:29:36 +09:00
Shuhei Tanuma
26d90b8493 for now, implement env 2012-06-15 22:47:46 +09:00
Shuhei Tanuma
cd089816aa use TSRMLS_FETCH_FROM_CTX(); 2012-06-15 00:18:09 +09:00
Shuhei Tanuma
484d5e9bda apply uv_spawn arguments 2012-06-14 23:07:12 +09:00
Shuhei Tanuma
ef8aa9d863 for now, just work uv_spawn 2012-06-14 22:24:19 +09:00
Shuhei Tanuma
c770809e54 WIP: uv_spawn 2012-06-13 19:42:12 +09:00
Shuhei Tanuma
e6102f6546 fix ifdef macro. ifdef is not if lol 2012-06-12 21:46:35 +09:00
Shuhei Tanuma
05d0a6c546 probably this will fix refcounting problem... 2012-06-12 12:08:55 +09:00
Shuhei Tanuma
69307659b0 WIP: refcount 2012-06-12 07:54:57 +09:00
Shuhei Tanuma
4c8d1c6aa7 WIP: improve refcounting 2012-06-11 13:14:15 +09:00
Shuhei Tanuma
2b077cb6ac fix typo 2012-06-11 12:32:12 +09:00
Shuhei Tanuma
9adb753f88 fix typo 2012-06-11 12:30:13 +09:00
Shuhei Tanuma
c18bb9e557 hm, refcounting is difficult 2012-06-10 22:38:18 +09:00
Shuhei Tanuma
cbc24f63f2 add some util functions 2012-06-05 01:12:13 +09:00
Shuhei Tanuma
0899a7ffd9 fix compile error 2012-06-04 12:40:50 +09:00
Shuhei Tanuma
06fa3a1fb0 split aress structures from php_uv_t 2012-06-04 01:23:06 +09:00
Shuhei Tanuma
a241a55602 adjust request example. and fix read_start_cb. it might called mutiple times. 2012-06-04 00:37:45 +09:00
Shuhei Tanuma
a3a1cc887c for now, gethostbyname just works. but needs refactor 2012-06-04 00:10:30 +09:00
Shuhei Tanuma
e7b0c7b4d6 adjust uv_tcp_bind signature 2012-06-02 21:45:43 +09:00
Shuhei Tanuma
789ce066a5 add uv_pipe_pending_instances api (windows only) 2012-06-02 15:29:31 +09:00
Shuhei Tanuma
e0a43a1ca8 *_init accepts loop parameter 2012-06-02 15:28:54 +09:00
Shuhei Tanuma
e74ef7e11a fix uv_read_stop 2012-06-02 15:06:39 +09:00
Shuhei Tanuma
ae12840330 fix recounting issue 2012-06-02 01:37:29 +09:00
Shuhei Tanuma
2beb9f776d fix refcounting 2012-06-01 12:54:52 +09:00
Shuhei Tanuma
d0812b846f add uv_pipe_connect api. I'm still thinking refcount. 2012-06-01 02:23:34 +09:00
Shuhei Tanuma
be3c860c07 add pipe api 2012-05-31 13:39:30 +09:00
Shuhei Tanuma
3614801006 add uv_timer_stop, uv_timer_again, uv_timer_set_repeat, uv_timer_get_repeat api 2012-05-31 07:11:52 +09:00
Shuhei Tanuma
b6b3bfdd75 add uv_is_active, uv_is_readable, uv_is_writable api 2012-05-31 06:59:21 +09:00
Shuhei Tanuma
d181d73516 add uv_read_stop api 2012-05-31 06:43:12 +09:00
Shuhei Tanuma
7fe7fd50ff add uv_now api 2012-05-31 06:39:58 +09:00
Shuhei Tanuma
aef0a631e8 add uv_loop_delete api 2012-05-31 06:36:11 +09:00
Shuhei Tanuma
653307e052 fix SEGV when using uv_idle_stop 2012-05-30 22:34:14 +09:00
Shuhei Tanuma
d9623a895a fix compile warnings 2012-05-30 22:32:11 +09:00
Shuhei Tanuma
9745c02d9c fix callback function signature 2012-05-30 22:18:50 +09:00
Shuhei Tanuma
79e5458f14 remove needless variables 2012-05-30 22:17:19 +09:00
Shuhei Tanuma
b56fadd1da add uv_err_name api 2012-05-30 13:17:01 +09:00
Shuhei Tanuma
c47e9f8021 add uv_udpate_time api 2012-05-30 13:13:36 +09:00
Shuhei Tanuma
383dfad304 fix uv_strerror 2012-05-30 13:09:47 +09:00
Shuhei Tanuma
6964a1643d add comment for upd_recv 2012-05-30 13:07:37 +09:00
Shuhei Tanuma
59a0bd298e fix comment 2012-05-30 13:06:37 +09:00
Shuhei Tanuma
de66977451 add udp api 2012-05-30 01:47:34 +09:00
Shuhei Tanuma
b3d3bbc313 fix idle refcount 2012-05-29 20:10:46 +09:00
Shuhei Tanuma
556cf755ef little bit improve callback codes 2012-05-29 12:40:29 +09:00
Shuhei Tanuma
54bf7cb7dd improve source codes 2012-05-29 08:00:17 +09:00
Shuhei Tanuma
66a44ed07d add folding markers 2012-05-29 07:35:55 +09:00
Shuhei Tanuma
05288d1ba2 re-orederd function entries 2012-05-29 07:31:25 +09:00
Shuhei Tanuma
33d5820b39 for now, use php_error_docref instead of fprintf debug 2012-05-29 07:28:58 +09:00
Shuhei Tanuma
1712419a4e improve declarations 2012-05-29 01:12:09 +09:00
Shuhei Tanuma
486402002b WIP: uv_tcp_connect 2012-05-28 22:55:58 +09:00
Shuhei Tanuma
22594f3758 fix typo 2012-05-28 22:54:54 +09:00
Shuhei Tanuma
40a56c77af add uv_tcp_nodelay 2012-05-28 22:44:54 +09:00
Shuhei Tanuma
be20ff21da fix shutdown leaks 2012-05-28 22:39:25 +09:00
Shuhei Tanuma
e27a660b16 add uv_loop_refcount api for debug 2012-05-28 22:31:13 +09:00
Shuhei Tanuma
aa67d3099c add uv_default_loop function. uv_run and uv_run_once accepts uv_loop resource 2012-05-28 22:18:36 +09:00
Shuhei Tanuma
d67bc173c4 add declarations 2012-05-28 21:52:09 +09:00
Shuhei Tanuma
136af6a8d6 add uv_idle_stop api 2012-05-28 12:37:56 +09:00
Shuhei Tanuma
69f2ebb5ed add idle API 2012-05-28 12:29:15 +09:00
Shuhei Tanuma
b1d3e3ada9 update copyrights 2012-05-28 12:10:49 +09:00
Shuhei Tanuma
ce4ed19660 add fixme 2012-05-27 23:53:59 +09:00
Shuhei Tanuma
2b77f7b1b2 for now, big leak issue were solved. but still there are some leaks. 2012-05-27 23:27:17 +09:00
Shuhei Tanuma
a9faab5fe0 improve allocated memories 2012-05-27 23:13:09 +09:00
Shuhei Tanuma
91a3f9d278 add efree for read_cb 2012-05-27 22:28:26 +09:00
Shuhei Tanuma
21101951f8 WIP: memory leak. I'll read sara's book again.. 2012-05-27 18:17:06 +09:00
Shuhei Tanuma
9db1413351 adjust style 2012-05-27 17:05:25 +09:00
Shuhei Tanuma
c56bb21835 zval_ptr_dtor also will be decrease resource count 2012-05-27 16:53:30 +09:00
Shuhei Tanuma
28daebffca use ZVAL_RESOURCE macro 2012-05-27 15:36:03 +09:00
Shuhei Tanuma
f8cc7dc9b6 remove leaks 2012-05-27 15:14:56 +09:00
Shuhei Tanuma
c22382e858 fixing memory leaks: snapshot 2012-05-27 15:12:13 +09:00
Shuhei Tanuma
8ce82568d2 WIP: fixing memory leak 2012-05-27 14:43:27 +09:00
Shuhei Tanuma
8882e5c44b add error handling 2012-05-27 13:48:10 +09:00
Shuhei Tanuma
6ea7553537 add timer 2012-05-26 23:26:29 +09:00
Shuhei Tanuma
22aefe4ded improve php_uv_t structure 2012-05-26 22:59:59 +09:00
Shuhei Tanuma
57089618bc add uv_last_error 2012-05-26 22:54:43 +09:00
Shuhei Tanuma
6e61335453 don't re-register resources 2012-05-26 22:25:15 +09:00
Shuhei Tanuma
404b8df7e4 add write callback 2012-05-26 22:19:54 +09:00
Shuhei Tanuma
a915b6e462 fix php_uv_listen_cb parameter 2012-05-26 22:08:21 +09:00
Shuhei Tanuma
cb8c646baf fix php_uv_read_cb parameters 2012-05-26 22:03:21 +09:00
Shuhei Tanuma
42ab3ba8d8 WIP: uv_read_cb parameters 2012-05-26 17:29:04 +09:00
Shuhei Tanuma
271b28dd04 uv_read_start just works! the problem was caused by gc. 2012-05-26 16:49:50 +09:00
Shuhei Tanuma
2e815a1b67 WIP 2012-05-26 14:05:17 +09:00
Shuhei Tanuma
0976df55b6 WIP: uv_read_start 2012-05-25 08:07:12 +09:00
Shuhei Tanuma
440e1b3dbe uv_read_start just works 2012-05-24 23:29:54 +09:00
Shuhei Tanuma
32849ea022 WIP: uv_accept 2012-05-24 13:07:52 +09:00
Shuhei Tanuma
c4d01fb060 2012/05/24 snapshot 2012-05-24 02:31:16 +09:00
Shuhei Tanuma
568c29dd34 add uv_tcp_bind and uv_listen 2012-05-23 20:41:04 +09:00
Shuhei Tanuma
9d3bde8942 add some functions. still doesn't work yet 2012-05-23 13:35:28 +09:00
Shuhei Tanuma
db9a66823a add templates 2012-05-23 02:43:11 +09:00