Christian Poveda
|
8392a0c589
|
only expose environ on linux
|
2020-03-08 10:16:31 -05:00 |
|
Christian Poveda
|
18a71ef7b3
|
minor corrections
|
2020-03-07 11:35:00 -05:00 |
|
Christian Poveda
|
aedc34c6e5
|
deallocate old environ
|
2020-03-06 18:11:05 -05:00 |
|
Ralf Jung
|
7882dfb3f5
|
fix env update, and expand test
|
2020-03-06 08:21:53 -05:00 |
|
Christian Poveda
|
4f5fdc5810
|
update the environ shim when environment changes
|
2020-03-06 08:21:52 -05:00 |
|
Christian Poveda
|
d13fe01f82
|
add working shim for environ
|
2020-03-06 08:19:56 -05:00 |
|
Ralf Jung
|
92a28f8d8f
|
HashMap -> FxHashMap
|
2020-03-02 22:36:15 +01:00 |
|
Ralf Jung
|
5d8fbfcb5f
|
rename memory kind: Env -> Machine
|
2020-03-02 09:01:23 +01:00 |
|
David Cook
|
ad8c784009
|
Return length from write_os_str_to_c_str
|
2020-02-24 19:50:25 -06:00 |
|
bors
|
39146c44bd
|
Auto merge of #1130 - christianpoveda:ignore-close-read-only, r=RalfJung
Ignore close errors in read-only files.
this fixes https://github.com/rust-lang/miri/issues/999
r? @RalfJung
|
2019-12-31 11:00:08 +00:00 |
|
JOE1994
|
a4bd68a45f
|
Add helper 'alloc_os_str_as_c_str' and use it in env_var emulation
|
2019-12-27 20:32:20 -05:00 |
|
Christian Poveda
|
f00fd3990b
|
avoid excluding TERM env var
|
2019-12-27 08:37:52 -05:00 |
|
Christian Poveda
|
75f7a118e6
|
remove restrictions due to stat unavailability
|
2019-12-25 12:38:34 -05:00 |
|
Christian Poveda
|
b0c7625dd1
|
add statx shim for linux
|
2019-12-22 11:46:02 -05:00 |
|
Ralf Jung
|
94732aaf7b
|
rename helper methods a bit
|
2019-12-04 10:43:36 +01:00 |
|
Ralf Jung
|
b91383b068
|
implement proper panicking for other MIR assertions
Requires generalizing the call_function helper to arbitrary Immediate arguments
|
2019-12-02 16:04:31 +01:00 |
|
Ralf Jung
|
37b1190def
|
rustup
|
2019-11-08 22:07:52 +01:00 |
|
Christian Poveda
|
fb4cb5bf4a
|
Make size error distinguishable from other errors
|
2019-10-22 16:57:07 -05:00 |
|
Christian Poveda
|
be415dbeda
|
Use new write_bytes method
|
2019-10-22 11:44:49 -05:00 |
|
Ralf Jung
|
2690f5948a
|
rustup: fix for write_bytes and new union rules
|
2019-10-22 10:13:11 +02:00 |
|
Christian Poveda
|
72bd25de83
|
Fix merge conflicts
|
2019-10-21 08:49:49 -05:00 |
|
Christian Poveda
|
4232939319
|
Move last error functions to helpers
|
2019-10-20 07:42:59 -05:00 |
|
Christian Poveda
|
85941c7249
|
Rename write/read os string functions
|
2019-10-18 09:49:56 -05:00 |
|
Christian Poveda
|
68fec4b3fe
|
Use conditional compilation properly and work with OsStr s instead
|
2019-10-18 09:49:56 -05:00 |
|
Christian Poveda
|
1241abbec4
|
Change helper functions to read/write
|
2019-10-18 09:49:55 -05:00 |
|
Christian Poveda
|
61da8b8428
|
Add OsString from/to bytes helper functions
|
2019-10-18 09:47:19 -05:00 |
|
Ralf Jung
|
5481afbaf6
|
cleanup now that borrow checker knows memory is a field
|
2019-10-18 11:33:12 +02:00 |
|
Yuki Okushi
|
a353e90eed
|
Use memory field instead of memory()
|
2019-10-18 11:11:50 +09:00 |
|
Christian Poveda
|
78311a7132
|
Add function to error with enabled isolation
|
2019-10-15 07:33:14 -05:00 |
|
Christian Poveda
|
003b257f87
|
Change error handling style for consistency
|
2019-10-11 08:20:32 -05:00 |
|
Christian Poveda
|
60cf06a03f
|
Use existing tcx instead
|
2019-10-11 04:20:18 -05:00 |
|
Christian Poveda
|
67ea454647
|
Correct style of comments
|
2019-10-11 04:17:43 -05:00 |
|
Christian Poveda
|
12040aae88
|
Add comment explaining why buffer isn't overflowed
|
2019-10-11 03:43:20 -05:00 |
|
Christian Poveda
|
459c65a4f9
|
Add method to consume io::Error
|
2019-10-08 08:18:51 -05:00 |
|
Christian Poveda
|
11d7be9c6f
|
Move last_error into memory
|
2019-10-07 09:15:32 -05:00 |
|
Christian Poveda
|
0eed5e64de
|
Add chdir shim
|
2019-09-24 15:50:00 -05:00 |
|
Christian Poveda
|
02261e4be2
|
Fix comments
|
2019-09-24 09:29:16 -05:00 |
|
Christian Poveda
|
0f58289b3d
|
fetch ERANGE value from libc
|
2019-09-20 11:32:07 -05:00 |
|
Christian Poveda
|
c0a6b5ff69
|
Set errno when getcwd fails
|
2019-09-20 03:30:55 -05:00 |
|
Christian Poveda
|
49275d4269
|
Avoid writing more bytes than necessary
|
2019-09-20 02:13:48 -05:00 |
|
Christian Poveda
|
133c2b39db
|
Only use getcwd without isolation
|
2019-09-19 10:32:18 -05:00 |
|
Christian Poveda
|
5cf90bc786
|
Add getcwd shim
|
2019-09-18 16:13:59 -05:00 |
|
Christian Poveda
|
4afa3bccb0
|
Rewrite alloc_env_var
|
2019-08-29 15:03:10 -05:00 |
|
Christian Poveda
|
814fe99516
|
Add cargo-miri test for no isolation
|
2019-08-29 10:13:02 -05:00 |
|
Christian Poveda
|
9c54368cca
|
Exclude TERM env var by default
|
2019-08-29 04:07:20 -05:00 |
|
Christian Poveda
|
c1cec3b247
|
Exclude env vars using flag
|
2019-08-28 17:57:41 -05:00 |
|
Christian Poveda
|
7d93cc7b5e
|
Add docs
|
2019-08-27 08:45:37 -05:00 |
|
Christian Poveda
|
ace3416cf2
|
Write name and value for each env var
|
2019-08-26 18:08:26 -05:00 |
|
Ralf Jung
|
f9241be734
|
fix warning
|
2019-08-15 11:24:04 +02:00 |
|
Christian Poveda
|
aee8f173ec
|
Delegate writing to emulate_foreign_item
|
2019-08-14 16:50:36 -05:00 |
|