Re: fread/fwrite/fflush bug
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: HoffmanLabs LLC User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031) Norm Green writes: There are platforms that can handle this, and platforms that can't. Failed opening the reader: non-translatable vms error code: 0x1828A %rms-e-flk, file currently locked by another user Failed when calling fread() on the reader: error 0 But I'd not tend to depend on sharing within a file in portable code. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I've found what I consider to be a stream IO bug. Not the answer you want, but -- since you're apparently looking for portability -- I'll send it anyway. Write sharing within a file is usually a somewhat hazardous assumption. It's not particularly portable. Here's what was received when invoking this (ported) test case on another platform: Sharing was explicitly blocked by the platform (because of the issues that can arise), and the platform (as expected) punted this request. The program source was tweaked to allow file-level sharing (including distributed locking and sharing, which the platform can provide), and received: Having worked with the code some, it doesn't directly port -- not without more time than can be assigned to the effort right now. There are various other portability concerns here, which can be provided off-list -- if you're interested. If there's a language lawyer on the list, s/he can let us know what write-sharing semantics exist in this environment. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephen Hoffman