Rafael Espindola
f30ac8f5ec
Don't allow pwrite to resize a stream.
...
The current implementations could exhibit some behavior differences:
raw_fd_ostream: Whatever the underlying fd does with seek+write. In a normal
file, the write position would be back to the old offset.
raw_svector_ostream: The write position is always the end of the stream, so
after pwrite the write position would be the new end. This matches what OS_X
(all BSD?) do with a pwrite in a O_APPEND fd.
Given that we don't need that feature and don't use O_APPEND a lot in LLVM,
just disallow it.
I am open to suggestions on renaming pwrite to something else, but this fixes
the issue for now.
Thanks to Yaron Keren for reporting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235303 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-20 13:04:30 +00:00
..
2015-04-19 20:51:55 +00:00
2015-04-17 19:35:44 +00:00
2015-04-05 17:02:25 +00:00
2015-03-26 17:05:54 +00:00
2014-08-13 16:26:38 +00:00
2014-09-11 21:46:33 +00:00
2014-11-24 03:13:02 +00:00
2014-08-13 16:26:38 +00:00
2015-04-11 02:11:45 +00:00
2014-11-07 04:46:10 +00:00
2015-02-18 19:32:05 +00:00
2015-03-04 18:52:32 +00:00
2015-04-07 00:14:27 +00:00
2015-03-23 18:07:13 +00:00
2015-01-26 19:51:00 +00:00
2015-03-23 18:07:13 +00:00
2015-03-23 18:07:13 +00:00
2014-11-04 01:12:21 +00:00
2014-11-04 01:12:21 +00:00
2015-03-23 18:07:13 +00:00
2015-03-17 21:32:46 +00:00
2015-02-13 01:05:00 +00:00
2014-08-27 18:13:25 +00:00
2015-03-09 18:40:45 +00:00
2015-03-16 06:55:45 +00:00
2015-02-05 03:30:08 +00:00
2015-02-15 22:00:20 +00:00
2015-02-15 22:54:22 +00:00
2015-04-11 18:57:14 +00:00
2015-03-18 10:17:07 +00:00
2015-03-04 07:35:04 +00:00
2015-04-11 02:11:45 +00:00
2015-01-23 23:09:27 +00:00
2015-04-14 19:49:26 +00:00
2015-01-14 19:59:18 +00:00
2015-03-23 18:07:13 +00:00
2014-09-17 18:23:07 +00:00
2014-09-17 15:43:01 +00:00
2015-02-15 22:54:22 +00:00
2014-12-24 00:16:51 +00:00
2014-08-13 16:26:38 +00:00
2015-04-10 22:58:48 +00:00
2014-10-06 13:48:07 +00:00
2015-03-23 18:07:13 +00:00
2014-11-13 04:56:41 +00:00
2015-02-15 22:54:22 +00:00
2015-02-15 22:54:22 +00:00
2015-04-11 18:00:28 +00:00
2015-04-14 20:52:58 +00:00
2014-08-30 16:48:02 +00:00
2015-02-15 22:54:22 +00:00
2014-12-04 16:59:36 +00:00
2015-03-23 18:07:13 +00:00
2015-02-15 22:54:22 +00:00
2015-04-11 02:11:45 +00:00
2015-04-20 13:04:30 +00:00
2015-03-23 18:07:13 +00:00
2015-02-15 22:54:22 +00:00
2015-02-15 22:54:22 +00:00
2015-01-14 11:23:27 +00:00
2015-04-07 20:43:23 +00:00
2015-02-15 22:54:22 +00:00
2015-02-15 22:54:22 +00:00
2015-03-23 18:07:13 +00:00
2015-03-23 18:07:13 +00:00
2015-02-06 23:25:38 +00:00
2015-03-23 18:07:13 +00:00
2015-04-14 22:14:34 +00:00
2014-11-24 14:51:41 +00:00
2014-12-15 01:04:45 +00:00
2015-03-23 18:07:13 +00:00
2014-08-29 01:05:12 +00:00
2015-04-08 13:52:09 +00:00
2015-02-20 16:35:42 +00:00
2015-03-01 18:10:07 +00:00
2015-02-15 22:54:22 +00:00
2015-02-15 22:54:22 +00:00
2014-09-11 21:46:33 +00:00
2014-08-13 16:26:38 +00:00
2015-03-23 18:07:13 +00:00
2015-04-11 02:11:45 +00:00