print position on ^T
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 25 Aug 1990 08:47:13 +0000 (00:47 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 25 Aug 1990 08:47:13 +0000 (00:47 -0800)
SCCS-vsn: bin/dd/dd.c 4.9

usr/src/bin/dd/dd.c

index c2f7d77..2bca290 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)dd.c        4.8 (Berkeley) %G%";
+static char *sccsid = "@(#)dd.c        4.9 (Berkeley) %G%";
 #endif
 
 #include <sys/types.h>
 #endif
 
 #include <sys/types.h>
@@ -159,6 +159,7 @@ char        **argv;
        register char *ip;
        register c;
        int ebcdic(), ibm(), ascii(), null(), cnull(), term(), block(), unblock();
        register char *ip;
        register c;
        int ebcdic(), ibm(), ascii(), null(), cnull(), term(), block(), unblock();
+       int stats();
        int a;
 
        conv = null;
        int a;
 
        conv = null;
@@ -296,6 +297,7 @@ char        **argv;
 
        if (signal(SIGINT, SIG_IGN) != SIG_IGN)
                signal(SIGINT, term);
 
        if (signal(SIGINT, SIG_IGN) != SIG_IGN)
                signal(SIGINT, term);
+       signal(SIGINFO, stats);
        if (skip)
            switch (iftype) {
                case tape: {
        if (skip)
            switch (iftype) {
                case tape: {