Skip to content

Commit 48d6761

Browse files
committed
std: adding #[fixed_stack_segment] as needed in new uvll calls
1 parent 4015b4a commit 48d6761

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/libstd/rt/uv/uvll.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,34 +619,50 @@ pub unsafe fn ip6_port(addr: *sockaddr_in6) -> c_uint {
619619

620620
pub unsafe fn fs_open(loop_ptr: *uv_loop_t, req: *uv_fs_t, path: *c_char, flags: int, mode: int,
621621
cb: *u8) -> c_int {
622+
#[fixed_stack_segment]; #[inline(never)];
623+
622624
rust_uv_fs_open(loop_ptr, req, path, flags as c_int, mode as c_int, cb)
623625
}
624626

625627
pub unsafe fn fs_unlink(loop_ptr: *uv_loop_t, req: *uv_fs_t, path: *c_char,
626628
cb: *u8) -> c_int {
629+
#[fixed_stack_segment]; #[inline(never)];
630+
627631
rust_uv_fs_unlink(loop_ptr, req, path, cb)
628632
}
629633
pub unsafe fn fs_write(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int, buf: *c_void,
630634
len: uint, offset: i64, cb: *u8) -> c_int {
635+
#[fixed_stack_segment]; #[inline(never)];
636+
631637
rust_uv_fs_write(loop_ptr, req, fd, buf, len as c_uint, offset, cb)
632638
}
633639
pub unsafe fn fs_read(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int, buf: *c_void,
634640
len: uint, offset: i64, cb: *u8) -> c_int {
641+
#[fixed_stack_segment]; #[inline(never)];
642+
635643
rust_uv_fs_read(loop_ptr, req, fd, buf, len as c_uint, offset, cb)
636644
}
637645
pub unsafe fn fs_close(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int,
638646
cb: *u8) -> c_int {
647+
#[fixed_stack_segment]; #[inline(never)];
648+
639649
rust_uv_fs_close(loop_ptr, req, fd, cb)
640650
}
641651
pub unsafe fn fs_req_cleanup(req: *uv_fs_t) {
652+
#[fixed_stack_segment]; #[inline(never)];
653+
642654
rust_uv_fs_req_cleanup(req);
643655
}
644656

645657
// data access helpers
646658
pub unsafe fn get_result_from_fs_req(req: *uv_fs_t) -> c_int {
659+
#[fixed_stack_segment]; #[inline(never)];
660+
647661
rust_uv_get_result_from_fs_req(req)
648662
}
649663
pub unsafe fn get_loop_from_fs_req(req: *uv_fs_t) -> *uv_loop_t {
664+
#[fixed_stack_segment]; #[inline(never)];
665+
650666
rust_uv_get_loop_from_fs_req(req)
651667
}
652668
pub unsafe fn get_loop_for_uv_handle<T>(handle: *T) -> *c_void {

0 commit comments

Comments
 (0)