pkgsrc/emulators/hercules/patches/patch-am
agc c11911a0b2 Patches from Wofgang Solfrank:
"Disabling the O_SYNC option when opening printer or punch.

Change the timeout value from 1 usec to 10 msec in the timer thread.
At least with unproven-pthreads, the comment above that is wrong
when stating that a 1 usec timeout would be stretched to the next
system clock tick.

A minor correction to the computation of the SIO rate.

With these changes, I get a decent performance of the system and can
actually get MVS to run."

Require the fixed version of unproven-pthreads.
Bump the hercules version number.
2001-03-23 16:20:55 +00:00

20 lines
660 B
Text

$NetBSD: patch-am,v 1.1 2001/03/23 16:20:56 agc Exp $
Patch from Wolfgang Solfrank:
Disabling the O_SYNC option when opening printer or punch.
--- cardpch.c.orig Sun Jan 28 18:05:38 2001
+++ cardpch.c Fri Mar 23 16:01:53 2001
@@ -155,9 +155,9 @@
{
rc = open (dev->filename,
#ifdef WIN32
- O_WRONLY | O_CREAT | O_TRUNC | O_SYNC | O_BINARY,
+ O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
#else /* WIN32 */
- O_WRONLY | O_CREAT | O_TRUNC | O_SYNC,
+ O_WRONLY | O_CREAT | O_TRUNC,
#endif /* WIN32 */
S_IRUSR | S_IWUSR | S_IRGRP);
if (rc < 0)