summaryrefslogtreecommitdiff
path: root/static/unix-v10/man5/minus.z.5
diff options
context:
space:
mode:
Diffstat (limited to 'static/unix-v10/man5/minus.z.5')
-rw-r--r--static/unix-v10/man5/minus.z.577
1 files changed, 77 insertions, 0 deletions
diff --git a/static/unix-v10/man5/minus.z.5 b/static/unix-v10/man5/minus.z.5
new file mode 100644
index 00000000..a80e6138
--- /dev/null
+++ b/static/unix-v10/man5/minus.z.5
@@ -0,0 +1,77 @@
+This shows the changes needed to a System V or UNIX 5.0 UUCP to
+implement the -z option. The -n option is in the standard system,
+but you usually want to be notified if something goes wrong.
+
+I looked at the 4.0 sources and compared them to the 5.0. The programs
+have changed but the changes aren't many. Only uucp.h, uux.c, and uuxqt.c
+need be changed. I'll be putting in the changes once I get permission from
+our systems people.
+
+==============================================================
+---- uucp.h ---- 137,139 ----
+ #define X_USER 'U'
+ #define X_NONOTI 'N'
+ > #define X_NONZERO 'Z' /* don't notify if zero return */
+ #define X_SENDFILE 'S'
+==============================================================
+---- uux.c ---- 54, 55 ----
+ int nonoti = 0;
+ > #ifdef X_NONZERO
+ > int nonzero = 0;
+ > #endif
+ int uid, ret;
+---- uux.c ---- 146,149 ----
+ case 'n':
+ nonoti = 1;
+ break;
+ > #ifdef X_NONZERO
+ > case 'z':
+ > nonzero = 1;
+ > break;
+ > #endif
+ default:
+---- uux.c ---- 218,221 ----
+ if (nonoti)
+ fprintf(fprx,"%c\n", X_NONOTI);
+ > #ifdef X_NONZERO
+ > if (nonzero)
+ > fprintf(fprx,"%c\n", X_NONZERO);
+ > #endif
+ if (statop)
+ fprintf(fprx,"%c %s\n", X_MAILF, Sfile);
+==============================================================
+---- uuxqt.c ---- 185,188 ----
+ int stcico = 0;
+ int argnok;
+ > #ifdef X_NONZERO
+ > int nonzero = 0;
+ > #endif
+ char xcmd[200];
+---- uuxqt.c ---- 43, 45 ----
+ case X_NONOTI:
+ notiok = 0;
+ break;
+ > #ifdef X_NONZERO
+ > /*
+ > * notify only if non-zero status return
+ > */
+ > case X_NONZERO:
+ > nonzero = 1;
+ > break;
+ > #endif
+ default:
+---- uuxqt.c ---- 273,278 ----
+ if (strcmp(xcmd, "rmail") != SAME
+ > #ifndef X_NONZERO
+ && strcmp(xcmd, "mail") != SAME) {
+ > #else
+ > && strcmp(xcmd, "mail") != SAME
+ > && (!nonzero || (nonzero && ret != 0)) {
+ > #endif
+
+ /*
+ * see if user wants respcifiction
+ */
+==============================================================
+
+