Changeset 364
- Timestamp:
- 06/06/07 23:42:30 (2 years ago)
- Files:
-
- version_0/ext/rubymain.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/ext/rubymain.cpp
r347 r364 327 327 328 328 329 /******** 330 t__epoll 331 ********/ 332 333 static VALUE t__epoll (VALUE self) 334 { 335 // Temporary. 336 evma__epoll(); 337 return Qnil; 338 } 339 340 341 /******************* 342 t_set_rlimit_nofile 343 *******************/ 344 345 static VALUE t_set_rlimit_nofile (VALUE self, VALUE arg) 346 { 347 arg = (NIL_P(arg)) ? -1 : NUM2INT (arg); 348 return INT2NUM (evma_set_rlimit_nofile (arg)); 349 } 329 350 330 351 /*************************** … … 386 407 rb_define_module_function (EmModule, "get_comm_inactivity_timeout", (VALUE(*)(...))t_get_comm_inactivity_timeout, 1); 387 408 rb_define_module_function (EmModule, "set_comm_inactivity_timeout", (VALUE(*)(...))t_set_comm_inactivity_timeout, 2); 409 rb_define_module_function (EmModule, "set_rlimit_nofile", (VALUE(*)(...))t_set_rlimit_nofile, 1); 410 411 // Temporary: 412 rb_define_module_function (EmModule, "epoll", (VALUE(*)(...))t__epoll, 0); 388 413 389 414 rb_define_method (EmConnection, "get_outbound_data_size", (VALUE(*)(...))conn_get_outbound_data_size, 0);
