projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Efficiency changes -- replace inline loops on getc() with calls
[unix-history]
/
usr
/
src
/
usr.bin
/
mail
/
cmdtab.c
diff --git
a/usr/src/usr.bin/mail/cmdtab.c
b/usr/src/usr.bin/mail/cmdtab.c
index
e33de13
..
c569902
100644
(file)
--- a/
usr/src/usr.bin/mail/cmdtab.c
+++ b/
usr/src/usr.bin/mail/cmdtab.c
@@
-1,6
+1,12
@@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
#ifndef lint
-static char
sccsid[] = "@(#)cmdtab.c 2.10
(Berkeley) %G%";
-#endif
+static char
*sccsid = "@(#)cmdtab.c 5.2
(Berkeley) %G%";
+#endif
not lint
#include "def.h"
#include "def.h"
@@
-17,7
+23,7
@@
extern int messize(), psalloc(), deltype(), unset(), set(), source();
extern int pversion(), group(), top(), core(), null(), stouch(), visual();
extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
extern int pversion(), group(), top(), core(), null(), stouch(), visual();
extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
-extern int local(), folders(), igfield(), Type();
+extern int local(), folders(), igfield(), Type()
, retfield(), more(), More()
;
struct cmd cmdtab[] = {
"next", next, NDMLIST, 0, MMNDEL,
struct cmd cmdtab[] = {
"next", next, NDMLIST, 0, MMNDEL,
@@
-37,6
+43,10
@@
struct cmd cmdtab[] = {
"unset", unset, M|RAWLIST, 1, 1000,
"mail", sendmail, R|M|I|STRLIST, 0, 0,
"mbox", mboxit, W|MSGLIST, 0, 0,
"unset", unset, M|RAWLIST, 1, 1000,
"mail", sendmail, R|M|I|STRLIST, 0, 0,
"mbox", mboxit, W|MSGLIST, 0, 0,
+ "more", more, MSGLIST, 0, MMNDEL,
+ "page", more, MSGLIST, 0, MMNDEL,
+ "More", More, MSGLIST, 0, MMNDEL,
+ "Page", More, MSGLIST, 0, MMNDEL,
"!", shell, I|STRLIST, 0, 0,
"copy", copycmd, M|STRLIST, 0, 0,
"chdir", schdir, M|STRLIST, 0, 0,
"!", shell, I|STRLIST, 0, 0,
"copy", copycmd, M|STRLIST, 0, 0,
"chdir", schdir, M|STRLIST, 0, 0,
@@
-76,6
+86,7
@@
struct cmd cmdtab[] = {
"alternates", alternates, M|RAWLIST, 0, 1000,
"ignore", igfield, M|RAWLIST, 0, 1000,
"discard", igfield, M|RAWLIST, 0, 1000,
"alternates", alternates, M|RAWLIST, 0, 1000,
"ignore", igfield, M|RAWLIST, 0, 1000,
"discard", igfield, M|RAWLIST, 0, 1000,
+ "retain", retfield, M|RAWLIST, 0, 1000,
"core", core, M|NOLIST, 0, 0,
"#", null, M|NOLIST, 0, 0,
"clobber", clobber, M|RAWLIST, 0, 1,
"core", core, M|NOLIST, 0, 0,
"#", null, M|NOLIST, 0, 0,
"clobber", clobber, M|RAWLIST, 0, 1,