Commit Graph

407 Commits

Author SHA1 Message Date
Shuhei Tanuma
141de07e0e now, uv_fs functions accepts php's stream, socket and fd 2012-07-15 03:56:29 +09:00
Shuhei Tanuma
f5bf49b415 for now, add uv_walk function. but it does not work yet. 2012-07-15 01:40:34 +09:00
Shuhei Tanuma
0e8eb9fcbb for now, add uv_write2 2012-07-14 23:24:56 +09:00
Shuhei Tanuma
fb3f2e5930 Merge branch 'feature/dtrace-support' 2012-07-14 22:57:56 +09:00
Shuhei Tanuma
20ab459846 adjust dtrace support 2012-07-14 22:57:18 +09:00
Shuhei Tanuma
96c64de3da remove unused include line 2012-07-13 13:18:03 +09:00
Shuhei Tanuma
232ed1f90d dtrace just work on OSX box. Yay 2012-07-13 12:59:15 +09:00
Shuhei Tanuma
bd2d6ce7fe use common function for tcp_connect 2012-07-13 00:19:11 +09:00
Shuhei Tanuma
fcb6d907aa set no_separation = 1 2012-07-12 23:52:21 +09:00
Shuhei Tanuma
48dfbd42f6 for now, add files 2012-07-12 23:37:47 +09:00
Shuhei Tanuma
bfd6342971 clear old callback 2012-07-12 10:28:17 +09:00
Shuhei Tanuma
f2b56c8b76 remove unused zval 2012-07-12 10:27:08 +09:00
Shuhei Tanuma
985c304ad2 fix uv_read_start segv 2012-07-12 10:20:31 +09:00
Shuhei Tanuma
f6b259bd67 remove unused address zval 2012-07-12 00:48:52 +09:00
Shuhei Tanuma
0c48f290a1 use fci and fcc for getaddr cb 2012-07-12 00:47:24 +09:00
Shuhei Tanuma
98ff7e121b use fci and fcc for read2 cb 2012-07-12 00:45:20 +09:00
Shuhei Tanuma
15fd7624d5 use fci and fcc for pol cb 2012-07-12 00:43:22 +09:00
Shuhei Tanuma
0cbdc2f42e use fci and fcc for fs poll cb 2012-07-12 00:40:33 +09:00
Shuhei Tanuma
e5b8b8d768 fix compile warnings 2012-07-12 00:38:17 +09:00
Shuhei Tanuma
d424bc25f1 use fci and fcc for fs event cb 2012-07-12 00:36:33 +09:00
Shuhei Tanuma
759849c6a2 use fci and fcc for fs cb 2012-07-12 00:34:41 +09:00
Shuhei Tanuma
92ce41343d use fci and fcc for queue callbacks 2012-07-12 00:20:09 +09:00
Shuhei Tanuma
79103b8e12 use fci and fcc for pipe_connect_cb 2012-07-12 00:14:53 +09:00
Shuhei Tanuma
6ffc7a34b7 use fci and fcc for proc_close_cb 2012-07-12 00:11:53 +09:00
Shuhei Tanuma
04023a572f use fci and fcc for async_cb 2012-07-11 22:49:03 +09:00
Shuhei Tanuma
f81ae681e8 use fci and fcc for check_cb 2012-07-11 22:27:57 +09:00
Shuhei Tanuma
907f6f1882 use fci and fcc for prepare_cb 2012-07-11 22:24:05 +09:00
Shuhei Tanuma
a5e2ddd48d use fci and fcc for send_cb 2012-07-11 22:21:46 +09:00
Shuhei Tanuma
8a5bd17944 use fci and fcc for idle_cb 2012-07-11 22:17:18 +09:00
Shuhei Tanuma
4fc3f9f879 use fci and fcc for timer_cb 2012-07-11 22:15:33 +09:00
Shuhei Tanuma
55921716ed use fci and fcc for close_cb 2012-07-11 22:13:47 +09:00
Shuhei Tanuma
aa0ad16b0f use fci and fcc for shutdown_cb 2012-07-11 22:01:00 +09:00
Shuhei Tanuma
2c3954f56c use fci and fcc for write_cb 2012-07-11 21:58:16 +09:00
Shuhei Tanuma
8589280609 use fci and fcc for listen_cb 2012-07-11 21:57:24 +09:00
Shuhei Tanuma
675d794060 use fci and fcc for read_cb 2012-07-11 21:52:44 +09:00
Shuhei Tanuma
10d2eadeff for now, initialize array here 2012-07-11 13:50:40 +09:00
Shuhei Tanuma
937a4e0673 use common function for initialize callback 2012-07-11 13:36:25 +09:00
Shuhei Tanuma
899ccf4b56 remove unused connect_cb zval 2012-07-11 13:09:19 +09:00
Shuhei Tanuma
cd35fa861b don't use magic number 2012-07-11 13:07:57 +09:00
Shuhei Tanuma
e1904a6d25 - use fci and fcc instead of zval. 2012-07-11 13:07:08 +09:00
Shuhei Tanuma
2da0e2b198 fix typo 2012-07-11 13:07:08 +09:00
Shuhei Tanuma
d2e7897e42 fix unexpected key length for php_uv_address_to_zval 2012-07-11 13:05:13 +09:00
Shuhei Tanuma
456e50c7e8 refactor resource initializer 2012-07-10 23:44:54 +09:00
Shuhei Tanuma
c313b64bcc use macro instead of copy & paste 2012-07-10 21:45:56 +09:00
Shuhei Tanuma
98c73fb2d7 fix proto docs 2012-07-10 21:24:27 +09:00
Shuhei Tanuma
23a5b43dd2 fix arginfo count 2012-07-10 21:22:16 +09:00
Shuhei Tanuma
e4f8e042cc add proto docs 2012-07-09 23:44:15 +09:00
Shuhei Tanuma
93c9bc021d change statbuf keys 2012-07-09 13:49:43 +09:00
Shuhei Tanuma
9e603ef603 add poll api 2012-07-09 12:24:35 +09:00
Shuhei Tanuma
9a35ffd419 add arginfo 2012-07-09 11:47:20 +09:00
Shuhei Tanuma
8f262a3f70 add fs_poll_start/stop functions 2012-07-09 01:27:02 +09:00
Shuhei Tanuma
9f3e5f3cdd change timer cb signature 2012-07-09 01:26:42 +09:00
Shuhei Tanuma
c56e30b487 add several semaphore functions 2012-07-09 00:23:25 +09:00
Shuhei Tanuma
86e5defb47 fix memory leak 2012-07-09 00:19:49 +09:00
Shuhei Tanuma
b9d5715635 add uv_sem_init 2012-07-09 00:18:26 +09:00
Shuhei Tanuma
89aba91e94 add udp_send6 function 2012-07-08 23:24:31 +09:00
Shuhei Tanuma
0bc6c44146 WIP: uv_queue_work 2012-07-07 22:50:35 +09:00
Shuhei Tanuma
7b8a99fe0f change uv_async callback signature 2012-07-07 22:02:57 +09:00
Shuhei Tanuma
48e9255d86 change uv_check and uv_prepare callback signature 2012-07-07 21:36:52 +09:00
Shuhei Tanuma
39aebb322e refactor getsockname 2012-07-07 19:40:55 +09:00
Shuhei Tanuma
013eb7d2c1 align indents 2012-07-07 19:34:54 +09:00
Shuhei Tanuma
d14604fcec refactor udp_bind 2012-07-07 19:28:26 +09:00
Shuhei Tanuma
32bc6e6cfb refactor tcp_bind 2012-07-07 19:23:22 +09:00
Shuhei Tanuma
2b2a7cb07b refacotr fs cb 2012-07-07 19:13:15 +09:00
Shuhei Tanuma
1dc58c224a refactoring uv_ip4_name 2012-07-07 18:59:43 +09:00
Shuhei Tanuma
caa4c88463 fix windows compile error 2012-07-07 07:52:29 +09:00
Shuhei Tanuma
f3105a07a7 fix uv_tcp_bind6 2012-07-07 00:20:22 +09:00
Shuhei Tanuma
0e5e110e52 add http-parser version info 2012-07-06 23:55:45 +09:00
Shuhei Tanuma
6eef75b96e add error check for uv_ip[46]_name 2012-07-06 23:49:56 +09:00
Shuhei Tanuma
5eb1541762 fix several fs issues. 2012-07-05 22:42:38 +09:00
Shuhei Tanuma
55bd9d48d7 WIP: fs 2012-07-05 22:12:25 +09:00
Shuhei Tanuma
302d9ae0a1 WIP: fixing fs event 2012-07-04 09:40:06 +09:00
Shuhei Tanuma
f6a2bd4858 change uv_fs_read cb signature: use same callback signature as uv_read_cb 2012-07-03 08:20:50 +09:00
Shuhei Tanuma
1733e1e404 add pipe_bind test case 2012-07-03 08:01:32 +09:00
Shuhei Tanuma
2edefe2d55 prevent SEGV when throws Fatal error on callback context. 2012-07-02 23:37:44 +09:00
Shuhei Tanuma
d3d245d4fc add tcp bind test 2012-07-02 13:32:19 +09:00
Shuhei Tanuma
506f06a33e remove unused variable 2012-07-02 13:08:54 +09:00
Shuhei Tanuma
40118b27ae do not initialize ares on startup. 2012-07-02 01:05:09 +09:00
Shuhei Tanuma
4852ac5a5c change function signature: uv_udp_recv, uv_udp_recv_start 2012-07-01 22:35:22 +09:00
Shuhei Tanuma
7cee41bbb7 change function signature. (respects native function signature) 2012-07-01 22:28:57 +09:00
Shuhei Tanuma
c80410fb08 add more error information : uv_shutdown 2012-07-01 20:21:33 +09:00
Shuhei Tanuma
65c638fdef add error handling 2012-07-01 20:09:38 +09:00
Shuhei Tanuma
8eff213350 add http parser support:
currently, php-uv has socket handling problem. (https://github.com/chobie/php-uv/issues/5)
if I don't support httpparser. hard to explain it.
2012-07-01 13:15:14 +09:00
Shuhei Tanuma
15effdd452 for now, force remove resource when calling uv_close 2012-07-01 09:08:23 +09:00
Shuhei Tanuma
56bdf3b76f add pending parameter. 2012-07-01 08:42:50 +09:00
Shuhei Tanuma
96baa735e3 PHP_UV_DEBUG should be 0 2012-07-01 08:32:05 +09:00
Shuhei Tanuma
b9d2debe61 for now, add uv_read2 2012-07-01 08:25:16 +09:00
Shuhei Tanuma
c2aa852c2a fix gethostbyname_cb test 2012-07-01 02:13:12 +09:00
Shuhei Tanuma
0f13955271 add uv_shutdown 2012-07-01 01:57:08 +09:00
Shuhei Tanuma
f633aa788c change uv_read_start signature. 2012-06-30 22:15:29 +09:00
Shuhei Tanuma
5f7d8610a0 fix debug macro 2012-06-30 16:45:40 +09:00
Shuhei Tanuma
392c146810 add proto comment for uv_mutex 2012-06-30 16:31:19 +09:00
Shuhei Tanuma
fa9e1ecd48 fix windows compile error 2012-06-30 14:54:58 +09:00
Shuhei Tanuma
bcdd3a21e9 improve uv_mutex functions and add test case 2012-06-30 14:42:06 +09:00
Shuhei Tanuma
449205e213 add uv_rwlock test cases and improve uv-rwlock functions 2012-06-30 14:10:58 +09:00
Shuhei Tanuma
87334570b1 add uv_idle test case 2012-06-30 13:02:53 +09:00
Shuhei Tanuma
4d90f621f8 add ares_gethostbyname testcase 2012-06-30 12:35:01 +09:00
Shuhei Tanuma
3abb548c43 use macro instead of copy and pasted codes 2012-06-30 00:58:20 +09:00
Shuhei Tanuma
023a096a1e prettify codes: use common macro 2012-06-30 00:42:33 +09:00
Shuhei Tanuma
6198618233 prettify codes 2012-06-28 22:49:08 +09:00
Shuhei Tanuma
4e9af23f04 add several arginfo 2012-06-28 22:33:10 +09:00
Shuhei Tanuma
44487e51ad add several arginfo 2012-06-27 01:32:56 +09:00
Shuhei Tanuma
e059b19cc5 fix compile warnings 2012-06-27 01:12:28 +09:00
Shuhei Tanuma
354832a102 add arginfo for fs functions 2012-06-27 01:03:34 +09:00
Shuhei Tanuma
7570549079 fix timer 2012-06-26 09:02:52 +09:00
Shuhei Tanuma
b300fe2562 fix windows compile 2012-06-26 01:34:25 +09:00
Shuhei Tanuma
ef2a5a6e7f fix uv_timer functions 2012-06-26 01:27:06 +09:00
Shuhei Tanuma
a221153bcd fix several compile warnings 2012-06-26 01:04:16 +09:00
Shuhei Tanuma
9ced1cbafc fix compile warnings 2012-06-26 00:49:16 +09:00
Shuhei Tanuma
ccc05f1032 use wrapper macro fro zend_list_insert 2012-06-26 00:30:45 +09:00
Shuhei Tanuma
b9f45169b0 remove uv_get_process_title and uv_setup_args api
https://github.com/joyent/libuv/issues/477#issuecomment-6549751
2012-06-26 00:14:01 +09:00
Shuhei Tanuma
3964e3ad7d this should be okay 2012-06-26 00:10:40 +09:00
Shuhei Tanuma
958065cbfd fix windows compile 2012-06-25 23:59:49 +09:00
Shuhei Tanuma
3ea33c216b add uv_setup_args and fix uv_get_process_title. should i call uv_setup_args at RINIT phase ? 2012-06-25 13:34:47 +09:00
Shuhei Tanuma
9a0624ecfc fix uv_cwd 2012-06-25 13:05:42 +09:00
Shuhei Tanuma
b97ae4dcb5 fix uv_spawn. I should consider uv_spawn params. 2012-06-25 01:29:22 +09:00
Shuhei Tanuma
2f4a2b25c8 remove debug function 2012-06-25 00:41:54 +09:00
Shuhei Tanuma
de6729a999 prettify function entries 2012-06-25 00:38:13 +09:00
Shuhei Tanuma
7e8d837719 add minfo 2012-06-25 00:29:10 +09:00
Shuhei Tanuma
7f026cf1b2 add several test cases 2012-06-25 00:20:19 +09:00
Shuhei Tanuma
f57217a8e1 add uv_udp_set_membership api 2012-06-24 22:33:47 +09:00
Shuhei Tanuma
eb60baf01f add several ipv6 functions 2012-06-24 16:28:04 +09:00
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