Add PS_OR_OIA_MODIFIED (in the Unix environment).
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 17 Jun 1987 08:20:28 +0000 (00:20 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 17 Jun 1987 08:20:28 +0000 (00:20 -0800)
SCCS-vsn: usr.bin/tn3270/ctlr/api.c 1.12
SCCS-vsn: usr.bin/tn3270/ctlr/api.h 1.11

usr/src/usr.bin/tn3270/ctlr/api.c
usr/src/usr.bin/tn3270/ctlr/api.h

index 422ed63..820e5fe 100644 (file)
@@ -553,6 +553,13 @@ struct SREGS *sregs;
 {
     if (regs->h.ah == NAME_RESOLUTION) {
        name_resolution(regs, sregs);
 {
     if (regs->h.ah == NAME_RESOLUTION) {
        name_resolution(regs, sregs);
+#if    defined(unix)
+    } else if (regs->h.ah == PS_OR_OIA_MODIFIED) {
+       while ((oia_modified == 0) && (ps_modified == 0)) {
+           (void) Scheduler(1);
+       }
+       oia_modified = ps_modified = 0;
+#endif /* defined(unix) */
     } else if (regs->h.ah != 0x09) {
        regs->h.ch = 0x12;
        regs->h.cl = 0x0f;              /* XXX Invalid environmental access */
     } else if (regs->h.ah != 0x09) {
        regs->h.ch = 0x12;
        regs->h.cl = 0x0f;              /* XXX Invalid environmental access */
index 2e518c4..e97b362 100644 (file)
  * Name Resolution is specified in AH.
  */
 
  * Name Resolution is specified in AH.
  */
 
-#define        NAME_RESOLUTION 0x81
+#define        NAME_RESOLUTION         0x81
+
+#if    defined(unix)
+/*
+ * In unix, we offer a service to allow the application to keep from
+ * having to poll us constantly.
+ */
+#define        PS_OR_OIA_MODIFIED      0x99
+
+#endif /* defined(unix) */
 
 /*
  * Codes specified in AL for various services.
 
 /*
  * Codes specified in AL for various services.