auto merge of #9766 : thestinger/rust/fast_ffi, r=huonw

this is no longer used by the compiler
This commit is contained in:
bors 2013-10-08 06:11:35 -07:00
commit 7ba8033113
5 changed files with 0 additions and 490 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2708,12 +2708,9 @@ pub fn setvbuf(stream: *FILE,
pub fn setbuf(stream: *FILE, buf: *c_char);
// Omitted: printf and scanf variants.
pub fn fgetc(stream: *FILE) -> c_int;
#[fast_ffi]
pub fn fgets(buf: *mut c_char, n: c_int, stream: *FILE)
-> *c_char;
#[fast_ffi]
pub fn fputc(c: c_int, stream: *FILE) -> c_int;
#[fast_ffi]
pub fn fputs(s: *c_char, stream: *FILE) -> *c_char;
// Omitted: getc, getchar (might be macros).
@ -2723,13 +2720,11 @@ pub fn fgets(buf: *mut c_char, n: c_int, stream: *FILE)
// Omitted: putc, putchar (might be macros).
pub fn puts(s: *c_char) -> c_int;
pub fn ungetc(c: c_int, stream: *FILE) -> c_int;
#[fast_ffi]
pub fn fread(ptr: *mut c_void,
size: size_t,
nobj: size_t,
stream: *FILE)
-> size_t;
#[fast_ffi]
pub fn fwrite(ptr: *c_void,
size: size_t,
nobj: size_t,
@ -2766,13 +2761,9 @@ pub fn strtol(s: *c_char, endp: **c_char, base: c_int)
-> c_long;
pub fn strtoul(s: *c_char, endp: **c_char, base: c_int)
-> c_ulong;
#[fast_ffi]
pub fn calloc(nobj: size_t, size: size_t) -> *c_void;
#[fast_ffi]
pub fn malloc(size: size_t) -> *c_void;
#[fast_ffi]
pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void;
#[fast_ffi]
pub fn free(p: *c_void);
pub fn abort() -> !;
pub fn exit(status: c_int) -> !;
@ -2865,7 +2856,6 @@ pub mod stdio {
#[link_name = "_pclose"]
pub fn pclose(stream: *FILE) -> c_int;
#[link_name = "_fdopen"]
#[fast_ffi]
pub fn fdopen(fd: c_int, mode: *c_char) -> *FILE;
#[link_name = "_fileno"]
pub fn fileno(stream: *FILE) -> c_int;
@ -2933,7 +2923,6 @@ pub fn lseek(fd: c_int, offset: c_long, origin: c_int)
pub fn pipe(fds: *mut c_int, psize: c_uint, textmode: c_int)
-> c_int;
#[link_name = "_read"]
#[fast_ffi]
pub fn read(fd: c_int, buf: *mut c_void, count: c_uint)
-> c_int;
#[link_name = "_rmdir"]
@ -2941,7 +2930,6 @@ pub fn read(fd: c_int, buf: *mut c_void, count: c_uint)
#[link_name = "_unlink"]
pub fn unlink(c: *c_char) -> c_int;
#[link_name = "_write"]
#[fast_ffi]
pub fn write(fd: c_int, buf: *c_void, count: c_uint) -> c_int;
}
}
@ -3095,7 +3083,6 @@ pub fn lseek(fd: c_int, offset: off_t, whence: c_int)
pub fn pathconf(path: *c_char, name: c_int) -> c_long;
pub fn pause() -> c_int;
pub fn pipe(fds: *mut c_int) -> c_int;
#[fast_ffi]
pub fn read(fd: c_int, buf: *mut c_void, count: size_t)
-> ssize_t;
pub fn rmdir(path: *c_char) -> c_int;
@ -3108,7 +3095,6 @@ pub fn read(fd: c_int, buf: *mut c_void, count: size_t)
pub fn tcgetpgrp(fd: c_int) -> pid_t;
pub fn ttyname(fd: c_int) -> *c_char;
pub fn unlink(c: *c_char) -> c_int;
#[fast_ffi]
pub fn write(fd: c_int, buf: *c_void, count: size_t)
-> ssize_t;
}

View File

@ -107,25 +107,18 @@ pub fn live_allocs() -> *raw::Box<()> {
}
extern {
#[fast_ffi]
fn rust_new_memory_region(detailed_leaks: uintptr_t,
poison_on_free: uintptr_t) -> *MemoryRegion;
#[fast_ffi]
fn rust_delete_memory_region(region: *MemoryRegion);
#[fast_ffi]
fn rust_new_boxed_region(region: *MemoryRegion,
poison_on_free: uintptr_t) -> *BoxedRegion;
#[fast_ffi]
fn rust_delete_boxed_region(region: *BoxedRegion);
#[fast_ffi]
fn rust_boxed_region_malloc(region: *BoxedRegion,
td: *TypeDesc,
size: size_t) -> *OpaqueBox;
#[fast_ffi]
fn rust_boxed_region_realloc(region: *BoxedRegion,
ptr: *OpaqueBox,
size: size_t) -> *OpaqueBox;
#[fast_ffi]
fn rust_boxed_region_free(region: *BoxedRegion, box: *OpaqueBox);
}

View File

@ -52,11 +52,8 @@ pub unsafe fn get(key: Key) -> *mut c_void {
#[cfg(unix)]
extern {
#[fast_ffi]
fn pthread_key_create(key: *mut pthread_key_t, dtor: *u8) -> c_int;
#[fast_ffi]
fn pthread_setspecific(key: pthread_key_t, value: *mut c_void) -> c_int;
#[fast_ffi]
fn pthread_getspecific(key: pthread_key_t) -> *mut c_void;
}

View File

@ -24,31 +24,22 @@ fn new() -> mpz_t {
#[link_args="-lgmp"]
extern {
#[fast_ffi]
#[link_name="__gmpz_add"]
fn mpz_add(x: *mpz_t, y: *mpz_t, z: *mpz_t);
#[fast_ffi]
#[link_name="__gmpz_cmp"]
fn mpz_cmp(x: *mpz_t, y: *mpz_t) -> c_int;
#[fast_ffi]
#[link_name="__gmpz_fdiv_qr"]
fn mpz_fdiv_qr(a: *mpz_t, b: *mpz_t, c: *mpz_t, d: *mpz_t);
#[fast_ffi]
#[link_name="__gmpz_get_ui"]
fn mpz_get_ui(x: *mpz_t) -> c_uint;
#[fast_ffi]
#[link_name="__gmpz_init"]
fn mpz_init(x: *mpz_t);
#[fast_ffi]
#[link_name="__gmpz_init_set_ui"]
fn mpz_init_set_ui(x: *mpz_t, y: c_uint);
#[fast_ffi]
#[link_name="__gmpz_mul_2exp"]
fn mpz_mul_2exp(x: *mpz_t, y: *mpz_t, z: c_uint);
#[fast_ffi]
#[link_name="__gmpz_mul_ui"]
fn mpz_mul_ui(x: *mpz_t, y: *mpz_t, z: c_uint);
#[fast_ffi]
#[link_name="__gmpz_submul_ui"]
fn mpz_submul_ui(x: *mpz_t, y: *mpz_t, z: c_uint);
}