about summary refs log tree commit diff
path: root/src/liblibc/lib.rs
AgeCommit message (Collapse)AuthorLines
2015-05-05Add TCP_* constants for mips/mipsel LinuxKevin Mehall-0/+24
PR #24611 added these for other architectures, but missed the `#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]` version of the module. The values are the same.
2015-04-27std: Prepare for linking to muslAlex Crichton-1/+5
This commit modifies the standard library and its dependencies to link correctly when built against MUSL. This primarily ensures that the right libraries are linked against and when they're linked against they're linked against statically.
2015-04-21add TCP_* consts for linuxYoung Wu-0/+24
2015-04-21Implement Debug for FileChris Wong-0/+2
This patch adds a `Debug` impl for `std::fs::File`. On all platforms (Unix and Windows) it shows the file descriptor. On Linux, it displays the path and access mode as well. Ideally we should show the path/mode for all platforms, not just Linux, but this will do for now. cc #24570
2015-04-18Auto merge of #24464 - lambdaburrito:master, r=alexcrichtonbors-0/+127
resolves #24462
2015-04-16Auto merge of #24306 - l0kod:libc-noctty, r=alexcrichtonbors-0/+5
cf. open(2): If the open file refers to a terminal device it will not become the process's controlling terminal even if the process does not have one.
2015-04-15fix tabspez-93/+93
2015-04-15add all SC constants for macosJames Perry-1/+128
2015-04-13remove duplicated linux sysconf modpez-6/+2
2015-04-13added _SC_NPROCESSORS_ONLN constants for linux and macos for fix #24374pez-0/+15
2015-04-11libc: Add O_NOCTTYMickaël Salaün-0/+5
2015-04-02unary negation of unsigned integersSébastien Marie-3/+3
unbreak build for: - linux (mips/mipsel) - freebsd - dragonfly - bitrig - openbsd by converting unsigned integers `-1` to `!0`
2015-04-02don't derive Clone, but impl itSébastien Marie-6/+24
affected struct: - sockaddr_storage - sockaddr_un apply the same method used for linux for: - bitrig/openbsd - freebsd - dragonfly
2015-04-02Tweak relese notes + rebase fixesAlex Crichton-11/+34
2015-04-01Test fixes and rebase conflicts, round 2Alex Crichton-3/+3
2015-04-01rollup merge of #23860: nikomatsakis/copy-requires-cloneAlex Crichton-141/+148
Conflicts: src/test/compile-fail/coherence-impls-copy.rs
2015-04-02Test fixes and rebase conflicts, round 2Alex Crichton-1/+1
Conflicts: src/libcore/num/mod.rs
2015-04-01fallout from feature-gating unary negation on unsigned integers.Felix S. Klock II-1/+1
2015-04-01Fix enum timezone across all platforms.Niko Matsakis-5/+5
2015-04-01Fallout in public-facing and semi-public-facing libsNiko Matsakis-141/+148
2015-03-28libc: Don't use unstable apisAlex Crichton-1/+4
Right now the `std::isize::BYTES` typedef is `#[unstable]`, but liblibc is using this, preventing it from compiling on stable Rust.
2015-03-26Register new snapshotsAlex Crichton-1/+1
2015-03-24Test fixes and rebase conflicts, round 2Alex Crichton-0/+1
2015-03-24rollup merge of #23659: GBGamer/masterAlex Crichton-0/+48
For other permissions beside USR permissions, we need these constants. fixes #23658
2015-03-24Add the other S_I(RWX)(GRP/OTH) for posix `creat`Nicholas Mazzuca-0/+48
2015-03-23rollup merge of #23598: brson/gateAlex Crichton-1/+1
Conflicts: src/compiletest/compiletest.rs src/libcollections/lib.rs src/librustc_back/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/libtest/lib.rs src/test/run-make/rustdoc-default-impl/foo.rs src/test/run-pass/env-home-dir.rs
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-1/+1
2015-03-19Socket options constants for *BSD/Linux/WindowsValerii Hiora-12/+91
2015-03-19Adding sys/socket.h constants for iOS/Mac, particularly for SO_SOCKET options.Drew Crawford-1/+16
This is probably more broadly applicable than these two platforms (since it's part of the bsd4.4 standard) but that's outside my problem domain today. If this goes well, I may submit Linux/64 support in a separate PR. Reviewers should take a look at http://www.opensource.apple.com/source/xnu/xnu-792.17.14/bsd/sys/socket.h?txt which defines constants for OSX. iOS uses the same header. I release this patch under the MIT license.
2015-03-19Rollup merge of #23457 - nagisa:get-set-resources, r=alexcrichtonManish Goregaokar-0/+300
Hopefully didn’t miss or mess up anything. ~~EDIT: ah, as usual, just didn’t bother running build before pushing a submit request button. Build pending.~~
2015-03-18Add {get,set}rlimit and getrusage to libcSimonas Kazlauskas-0/+300
2015-03-17libc: Fix definition of sockaddr_storage on 32-bit linuxAlex Crichton-2/+2
The alignment field is actually a "pointer sized" type instead of always i64, requiring that the size of the padding field is also calculated slightly differently. Closes #23425
2015-03-15[BREAKING] Rename two instances of MAP_NONRESERVENicholas-2/+2
To the correct MAP_NORESERVE. Every other thing is known as MAP_NORESERVE, so this is just a basic typo. I really doubt this will break anybody's but my own code.
2015-03-06Rollup merge of #23056 - awlnx:master, r=nrcManish Goregaokar-0/+2
2015-03-06Rollup merge of #23070 - krdln:fix-stat-arm, r=alexcrichtonManish Goregaokar-4/+6
This separates definitions of struct stat and other typedefs between Android and Linux on ARM (Android has a non-standard one). This makes functions such as `File::metadata()` work correctly and makes one able to check file's size. All tests from std (and also run-pass: stat.rs) now pass on ARM Linux. Fixes #20007.
2015-03-06Rollup merge of #22862 - vhbit:broken-open, r=alexcrichtonManish Goregaokar-2/+29
According to Apple's [arm64 calling convention](https://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html#//apple_ref/doc/uid/TP40013702-SW1) varargs always are passed through stack. Since `open` is actually a vararg function on Darwin, it means that older declaration caused permissions to be taken from stack, while passed through register => it set file permissions to garbage and it was simply impossible to read/delete files after they were created. They way this commit handles it is to preserve compatibility with existing code - it simply creates a shim unsafe function so all existing callers continue work as nothing happened.
2015-03-05fix for new attributes failing. issue #22964awlnx-0/+2
2015-03-05iOS: open file on aarch64 breaks permissionsValerii Hiora-2/+29
According to Apple arm64 calling convention varargs always are passed through stack. Since `open` is actually a vararg function on Darwin's, it means that older declaration caused permissions to be taken from stack, while passed through register => it set file permissions to garbage and it was simply impossible to read/delete files after they were created. They way this commit handles it is to preserve compatibility with existing code - it simply creates a shim unsafe function so all existing callers continue work as nothing happened.
2015-03-05Rollup merge of #22994 - eddyb:unsuffix-ints-good, r=alexcrichtonManish Goregaokar-25/+25
Automatic has-same-types testing methodology can be found in #22501. Because most of them don't work with `--pretty=typed`, compile-fail tests were manually audited. r? @aturon
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-25/+25
2015-03-04Fix struct stat on arm linuxMichał Krasnoborski-4/+6
2015-03-03libc: Move features behind a cfg_attr gateAlex Crichton-6/+3
This same source is being built in the Cargo ecosystem and hence needs to build on stable Rust as well. This commit places the `no_std` attribute along with the `no_std` feature behind a `cfg_attr` flag so they are not processed when compiled on crates.io
2015-03-01unbreak dragonfly build after nacl integrationSébastien Marie-1/+0
this is the same problem as openbsd (#22792). without the patch, liblibc don't build.
2015-02-25unbreak openbsd after nacl intergrationSébastien Marie-1/+0
2015-02-21Add cfgs to `liblibc` for NaCl targets.Richard Diamond-238/+241
2015-02-21Auto merge of #21959 - dhuseby:bitrig-support, r=brsonbors-80/+92
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-18Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.Niko Matsakis-1/+1
2015-02-18 Manual merge of #22475 - alexcrichton:rollup, r=alexcrichtonHuon Wilson-7/+0
One windows bot failed spuriously.
2015-02-17Register new snapshotsAlex Crichton-7/+0
2015-02-17Auto merge of #21774 - ejjeong:enable-test-for-android, r=alexcrichtonbors-0/+1
- Now "make check-stage2-T-aarch64-linux-android-H-x86_64-unknown-linux-gnu" works (#21773) - Fix & enable debuginfo tests for android (#10381) - Fix & enable more tests for android (both for arm/aarch64) - Enable many already-pass tests on android (both for arm/aarch64)