Remove all usages of std::vec::vbuf
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
|
||||
import str::sbuf;
|
||||
import vec::vbuf;
|
||||
|
||||
|
||||
// FIXME Somehow merge stuff duplicated here and macosx_os.rs. Made difficult
|
||||
// by https://github.com/graydon/rust/issues#issue/268
|
||||
native "cdecl" mod libc = "" {
|
||||
fn read(fd: int, buf: *u8, count: uint) -> int;
|
||||
fn write(fd: int, buf: *u8, count: uint) -> int;
|
||||
fn fread(buf: *u8, size: uint, n: uint, f: libc::FILE) -> uint;
|
||||
fn fwrite(buf: *u8, size: uint, n: uint, f: libc::FILE) -> uint;
|
||||
fn open(s: sbuf, flags: int, mode: uint) -> int;
|
||||
fn read(fd: int, buf: vbuf, count: uint) -> int;
|
||||
fn write(fd: int, buf: vbuf, count: uint) -> int;
|
||||
fn close(fd: int) -> int;
|
||||
type FILE;
|
||||
fn fopen(path: sbuf, mode: sbuf) -> FILE;
|
||||
@@ -17,8 +18,6 @@ native "cdecl" mod libc = "" {
|
||||
fn fgetc(f: FILE) -> int;
|
||||
fn ungetc(c: int, f: FILE);
|
||||
fn feof(f: FILE) -> int;
|
||||
fn fread(buf: vbuf, size: uint, n: uint, f: FILE) -> uint;
|
||||
fn fwrite(buf: vbuf, size: uint, n: uint, f: FILE) -> uint;
|
||||
fn fseek(f: FILE, offset: int, whence: int) -> int;
|
||||
fn ftell(f: FILE) -> int;
|
||||
type dir;
|
||||
@@ -33,13 +32,6 @@ native "cdecl" mod libc = "" {
|
||||
fn waitpid(pid: int, status: &mutable int, options: int) -> int;
|
||||
}
|
||||
|
||||
native "cdecl" mod libc_ivec = "" {
|
||||
fn read(fd: int, buf: *u8, count: uint) -> int;
|
||||
fn write(fd: int, buf: *u8, count: uint) -> int;
|
||||
fn fread(buf: *u8, size: uint, n: uint, f: libc::FILE) -> uint;
|
||||
fn fwrite(buf: *u8, size: uint, n: uint, f: libc::FILE) -> uint;
|
||||
}
|
||||
|
||||
mod libc_constants {
|
||||
fn O_RDONLY() -> int { ret 0; }
|
||||
fn O_WRONLY() -> int { ret 1; }
|
||||
|
||||
Reference in New Issue
Block a user