about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeff Olson <olson.jeffery@gmail.com>2013-08-20 15:35:40 -0700
committerJeff Olson <olson.jeffery@gmail.com>2013-08-22 16:31:57 -0700
commit48d67610285b423e806e0c44be43d01d5c1a7dbc (patch)
tree2282fe74c64a558e98614400190bb9936667f483
parent4015b4a9b4ec90b5b5d6542474e396181c7df8b5 (diff)
downloadrust-48d67610285b423e806e0c44be43d01d5c1a7dbc.tar.gz
rust-48d67610285b423e806e0c44be43d01d5c1a7dbc.zip
std: adding #[fixed_stack_segment] as needed in new uvll calls
-rw-r--r--src/libstd/rt/uv/uvll.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libstd/rt/uv/uvll.rs b/src/libstd/rt/uv/uvll.rs
index caac418b733..1e189e90885 100644
--- a/src/libstd/rt/uv/uvll.rs
+++ b/src/libstd/rt/uv/uvll.rs
@@ -619,34 +619,50 @@ pub unsafe fn ip6_port(addr: *sockaddr_in6) -> c_uint {
 
 pub unsafe fn fs_open(loop_ptr: *uv_loop_t, req: *uv_fs_t, path: *c_char, flags: int, mode: int,
                 cb: *u8) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_open(loop_ptr, req, path, flags as c_int, mode as c_int, cb)
 }
 
 pub unsafe fn fs_unlink(loop_ptr: *uv_loop_t, req: *uv_fs_t, path: *c_char,
                 cb: *u8) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_unlink(loop_ptr, req, path, cb)
 }
 pub unsafe fn fs_write(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int, buf: *c_void,
                        len: uint, offset: i64, cb: *u8) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_write(loop_ptr, req, fd, buf, len as c_uint, offset, cb)
 }
 pub unsafe fn fs_read(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int, buf: *c_void,
                        len: uint, offset: i64, cb: *u8) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_read(loop_ptr, req, fd, buf, len as c_uint, offset, cb)
 }
 pub unsafe fn fs_close(loop_ptr: *uv_loop_t, req: *uv_fs_t, fd: c_int,
                 cb: *u8) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_close(loop_ptr, req, fd, cb)
 }
 pub unsafe fn fs_req_cleanup(req: *uv_fs_t) {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_fs_req_cleanup(req);
 }
 
 // data access helpers
 pub unsafe fn get_result_from_fs_req(req: *uv_fs_t) -> c_int {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_get_result_from_fs_req(req)
 }
 pub unsafe fn get_loop_from_fs_req(req: *uv_fs_t) -> *uv_loop_t {
+    #[fixed_stack_segment]; #[inline(never)];
+
     rust_uv_get_loop_from_fs_req(req)
 }
 pub unsafe fn get_loop_for_uv_handle<T>(handle: *T) -> *c_void {