about summary refs log tree commit diff
path: root/src/libstd/libc.rs
AgeCommit message (Collapse)AuthorLines
2013-10-14Remove unused abi attributes.Steve Klabnik-51/+25
They've been replaced by putting the name on the extern block. #[abi = "foo"] goes to extern "foo" { } Closes #9483.
2013-10-14std::libc: rustdoc indicates reexports nowScott Lawrence-3/+2
2013-10-08rm useless fast_ffi attributesDaniel Micay-14/+0
this is no longer used by the compiler
2013-09-25errfunc ptr is nullable, so use Option as part of interface to glob (#7752).Felix S. Klock II-1/+2
2013-09-25#7752: use fcnptr for glob errfunc.Felix S. Klock II-2/+1
2013-09-18fix compilation errors of mips targetJyun-Yan You-26/+139
2013-08-26std: Add Win64 supportklutzy-0/+106
Some extern blobs are duplicated without "stdcall" abi, since Win64 does not use any calling convention. (Giving any abi to them causes llvm producing wrong bytecode.)
2013-08-26std: Add Win64 typesklutzy-0/+166
2013-08-21auto merge of #8602 : sanxiyn/rust/sysconf, r=graydonbors-224/+214
Linux and Android share the kernel, but not the C library, so sysconf constants are different. For example, _SC_PAGESIZE is 30 on Linux, but 39 on Android. This patch * splits sysconf constants to sysconf module * merges non-MIPS and MIPS sysconf constants (they are same) * adds Android sysconf constants This patch also lets mmap tests to pass on Android.
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+2
2013-08-14Add sysconf names for AndroidSeo Sanghyeon-224/+214
2013-08-04std and rustc: explicitly pass c strings to c functionsErick Tryzelaar-2/+2
When strings lose their trailing null, this pattern will become dangerous: let foo = "bar"; let foo_ptr: *u8 = &foo[0]; Instead we should use c_strs to handle this correctly.
2013-08-02librustc: Disallow "unsafe" for external functionsPatrick Walton-452/+371
2013-08-01Add a boatload of Linux x86/x86-64/arm errnosCorey Richardson-0/+107
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-372/+446
Place `pub` or `priv` on individual items instead.
2013-07-10Document std::libc::c_void.Kevin Mehall-0/+7
2013-07-09os: introduce cross-platform MemoryMap bindingsFedor Indutny-4/+5
Basically, one may just do: MemoryMap::new(16, ~[ MapExecutable, MapReadable, MapWritable ]) And executable+readable+writable chunk of at least 16 bytes size will be allocated and freed with the result of `MemoryMap::new`.
2013-07-08libc: add errno valuesFedor Indutny-0/+281
2013-07-08libc: VirtualAlloc and FileMapping bindingsFedor Indutny-4/+132
2013-07-08libc: add _SC_* consts for non-mips linux tooFedor Indutny-0/+57
They was previously missing
2013-07-08libc: fix MAP_ANON value on linuxFedor Indutny-4/+4
2013-07-03auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmrbors-0/+1
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+1
2013-06-30global_heap: inline malloc_raw and add realloc_rawDaniel Micay-1/+1
2013-06-27std: unused import fix for androidYoung-il Choi-1/+0
2013-06-25Deny common lints by default for lib{std,extra}Alex Crichton-1/+1
2013-06-24libc: (u)int => c_(u)int for constsFedor Indutny-749/+784
2013-06-24libc: add POSIX-compatible sysconf constsFedor Indutny-0/+254
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-24libc: support functions from sys/mman.hFedor Indutny-2/+269
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-20auto merge of #7128 : yichoi/rust/fix_sometc, r=brsonbors-1/+49
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs) - Adjust some test cases to rpass for Android - Modify some script to rpass for Android
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-2/+2
2013-06-17std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)Young-il Choi-1/+49
2013-06-16Update doc references to new names for std, extra, and std::libcRalph Bodenner-2/+2
2013-06-06libc: omit memcpy, memmove and memsetDaniel Micay-13/+4
LLVM provides these functions as intrinsics, and will generate calls to libc when appropriate. They are exposed in the `ptr` module as `copy_nonoverlapping_memory`, `copy_memory` and `set_memory`.
2013-05-30Require documentation by default for libstdAlex Crichton-0/+1
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+2054
This only changes the directory names; it does not change the "real" metadata names.