summaryrefslogtreecommitdiff
path: root/sys/lib/man/permind/ptx1.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-05-04 09:02:04 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-05-04 09:02:04 +0000
commit54a313181ed74ab117531bbf1354b98329a90f44 (patch)
treec128c63359aa4c3e747d9ee82976103904c2192f /sys/lib/man/permind/ptx1.c
parentb1955840c58c667de6a95631d1f4b9b0a70202c3 (diff)
fix manpages
Diffstat (limited to 'sys/lib/man/permind/ptx1.c')
-rw-r--r--sys/lib/man/permind/ptx1.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/sys/lib/man/permind/ptx1.c b/sys/lib/man/permind/ptx1.c
index 06acb47c5..fac218d7c 100644
--- a/sys/lib/man/permind/ptx1.c
+++ b/sys/lib/man/permind/ptx1.c
@@ -32,7 +32,7 @@
#define TILDE 0177 /* actually RUBOUT, not ~ */
#define N 30
#define MAX N*BUFSIZ
-#define LMAX 2048
+#define LMAX 4096
#define MAXT 2048
#define MASK 03777
#define ON 1
@@ -239,12 +239,12 @@ main(int argc, char **argv)
fclose(sortptr);
if(fork()==0){
- execl("/bin/sort", "sort", sortopt, "+0", "-1", "+1",
- sortfile, "-o", sortfile, 0);
- diag("Sort exec failed","");
+ execl("/bin/sort", "sort", sortopt, "+0", "-1", "+1", "-o",
+ sortfile, sortfile, 0);
+ diag("sort exec failed","");
}
if((w = wait()) == NULL || w->msg[0] != '\0')
- diag("Sort failed","");
+ diag("sort failed","");
free(w);
makek();
@@ -252,17 +252,13 @@ main(int argc, char **argv)
if(dup(create(wfile,OWRITE|OTRUNC,0666),1) == -1)
diag("Cannot create width file:",wfile);
execl(roff, roff, "-a", kfile, 0);
- diag("Sort exec failed","");
+ diag("troff exec failed","");
}
if((w = wait()) == NULL || w->msg[0] != '\0')
- diag("Sort failed","");
+ diag("troff failed", "");
free(w);
getsort();
-/*
- remove(sortfile);
- remove(kfile);
- */
fflush(0);
_exits(0);
/* I don't know what's wrong with the atexit func... */
@@ -288,10 +284,6 @@ void
diag(char *s, char *arg)
{
msg(s,arg);
-/*
- remove(sortfile);
- remove(kfile);
-*/
exits(s);
}