[Simh] Simh on Windows - long startup delays and long shutdown delays

Villy Madsen Villy.Madsen at shaw.ca
Mon Dec 17 23:54:13 EST 2007


The only advantage to using fopen_s is that it locks the file - preventing any
other process from opening it, and perhaps allowing the OS to optimize how it's
accessed - since it now doesn't have to worry about concurrent access to the
file.

Villy 

-----Original Message-----
From: simh-bounces at trailing-edge.com [mailto:simh-bounces at trailing-edge.com] On
Behalf Of dave porter
Sent: Monday, December 17, 2007 20:00
To: simh at trailing-edge.com
Subject: Re: [Simh] Simh on Windows - long startup delays and long shutdown
delays


I think I started this digreession, so let me try and state my opinions
succinctly. Then I'll shut up.

This is not a question about whether the C RTL could have been better designed,
safer, etc. Of course it could have. It's simply a question as to whether
fopen_s offers any advantage in this particular case. There is no advantage that
I see. The ability to get an error handler called on null fopen arguments is no
advantage  if you don't call it with null arguments, which of course you're not
going to do.  On the other hand, there are
disadvantages: (1) you're tied to one compiler system, (2) the code is no longer
idiomatic and thus is slightly harder to comprehend.

_______________________________________________
Simh mailing list
Simh at trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh





More information about the Simh mailing list