about summary refs log tree commit diff
path: root/src/librustc_data_structures/flock.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-214/+0
2020-05-21Comment flock usage on LinuxGary Guo-0/+5
2020-05-20Use fcntl-based file lock for non-Linux unixGary Guo-10/+67
2020-05-13Replace fcntl-based file lock with flockGary Guo-48/+19
WSL1 does not support `fcntl`-based lock and will always report success, therefore creating a race condition when multiple rustc processes are modifying shared data such as `search-index.js`. WSL1 does however support `flock`. `flock` is supported by all unix-like platforms. The only caveat is that Linux 2.6.11 or earlier does not support `flock` on NFS mounts, but as the minimum supported Linux version is 2.6.18, it is not an issue. Fixes #72157
2020-01-11use winapi for non-stdlib Windows bindingsAndy Russell-31/+3
2020-01-04remove bespoke flock bindingsAndy Russell-106/+15
2019-11-23rustdoc: Don't panic when failing to write .lock fileOliver Middleton-12/+0
It can be treated like any other unexpected IO error.
2019-07-23normalize use of backticks for compiler messages in remaining modulesSamy Kacimi-6/+6
https://github.com/rust-lang/rust/issues/60532
2019-05-13Remove bitrig support from rustMarcel Hellwig-1/+0
2019-02-09librustc_data_structures => 2018Taiki Endo-13/+0
2019-01-06flock: Use fcntl constants directly from libc crate on Unix targetsJohn Paul Adrian Glaubitz-41/+5
Since the values for the fcntl constants can vary from architecture to architecture, it is better to use the values defined in the libc crate instead of assigning literals in the flock code which would make the assumption that all architectures use the same values. Fixes #57007
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-06refactor: use shorthand fieldsteresy-1/+1
2018-09-07Fix compiling some rustc crates to wasmAlex Crichton-292/+298
I was dabbling recently seeing what it would take to compile `rustfmt` to the `wasm32-unknown-unknown` target and it turns out not much effort is needed! Currently `rustfmt` depends on a few rustc crates published to crates.io, so this commit touches up those crates to compile for wasm themselves. Notably: * The `rustc_data_structures` crate's `flock` implementation is stubbed out to unconditionally return errors on unsupported platforms. * The `rustc_errors` crate is extended to not do any locking for all non-windows platforms. In both of these cases if we port the compiler to new platforms the functionality isn't critical but will be discovered over time as it comes up, so this hopefully doesn't make it too too hard to compile to new platforms!
2018-08-29Replace usages of 'bad_style' with 'nonstandard_style'.Corey Farwell-1/+1
`bad_style` is being deprecated in favor of `nonstandard_style`: - https://github.com/rust-lang/rust/issues/41646
2018-08-09A few cleanups for rustc_data_structuresljedrz-2/+2
2017-05-06Fix definitions of ULONG_PTRJoshua Sheard-2/+2
2017-04-22Haiku: fix initial platform supportJessica Hamilton-0/+1
2017-02-10Allow rustc data structures compile to androidMarco A L Barbosa-1/+1
flock structure is defined in asm*/fcntl.h. This file on android is generated from the linux kernel source, so they are the same.
2016-12-16flock needs repr(C)Austin Hicks-0/+6
2016-09-25Add support for the Haiku operating system on x86 and x86_64 machinesNiels Sascha Reedijk-0/+21
* Hand rebased from Niels original work on 1.9.0
2016-08-29incr.comp.: Move lock files out of directory being lockedMichael Woerister-19/+34
2016-08-29Implement copy-on-write scheme for managing the incremental compilation cache.Michael Woerister-0/+2
2016-08-29Add some features to flock.Michael Woerister-21/+105
2016-08-29Move `flock.rs` from librustdoc to librustc_data_structures.Michael Woerister-0/+237