SCCS-vsn: usr.bin/grep/old.ucb.grep/old.ucb.grep.c 4.4
SCCS-vsn: usr.bin/colcrt/colcrt.c 4.4
SCCS-vsn: usr.bin/expand/expand.c 4.3
SCCS-vsn: usr.bin/finger/finger.c 4.8
SCCS-vsn: usr.bin/fold/fold.c 4.3
SCCS-vsn: usr.bin/head/head.c 4.2
SCCS-vsn: usr.bin/ul/ul.c 4.6
SCCS-vsn: usr.bin/w/w.c 4.13
SCCS-vsn: old/dbx/main.c 1.9
SCCS-vsn: old/dbx/main.c 1.9
/* Copyright (c) 1982 Regents of the University of California */
/* Copyright (c) 1982 Regents of the University of California */
-static char sccsid[] = "@(#)main.c 1.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 1.9 (Berkeley) %G%";
/*
* Debugger main routine.
/*
* Debugger main routine.
private Boolean initdone = false; /* true if initialization done */
private jmp_buf env; /* setjmp/longjmp data */
private Boolean initdone = false; /* true if initialization done */
private jmp_buf env; /* setjmp/longjmp data */
-private char outbuf[BUFSIZ]; /* standard output buffer */
private char namebuf[512]; /* possible name of object file */
private int firstarg; /* first program argument (for -r) */
private char namebuf[512]; /* possible name of object file */
private int firstarg; /* first program argument (for -r) */
cmdname = argv[0];
catcherrs();
onsyserr(EINTR, nil);
cmdname = argv[0];
catcherrs();
onsyserr(EINTR, nil);
- setbuf(stdout, outbuf);
setlinebuf(stderr);
printf("dbx version %d of %s.\nType 'help' for help.\n",
versionNumber, date);
setlinebuf(stderr);
printf("dbx version %d of %s.\nType 'help' for help.\n",
versionNumber, date);
-static char *sccsid = "@(#)colcrt.c 4.3 (Berkeley) %G%";
+static char *sccsid = "@(#)colcrt.c 4.4 (Berkeley) %G%";
int outline = 1;
int outcol;
int outline = 1;
int outcol;
char suppresul;
char printall;
char suppresul;
char printall;
do {
if (argc > 0) {
close(0);
do {
if (argc > 0) {
close(0);
) < 0) {
fflush(stdout);
perror(argv[0]);
) < 0) {
fflush(stdout);
perror(argv[0]);
-static char *sccsid = "@(#)expand.c 4.2 (Berkeley) %G%";
+static char *sccsid = "@(#)expand.c 4.3 (Berkeley) %G%";
#include <stdio.h>
/*
* expand - expand tabs to equivalent spaces
*/
#include <stdio.h>
/*
* expand - expand tabs to equivalent spaces
*/
int nstops;
int tabstops[100];
int nstops;
int tabstops[100];
register int c, column;
register int n;
register int c, column;
register int n;
argc--, argv++;
do {
while (argc > 0 && argv[0][0] == '-') {
argc--, argv++;
do {
while (argc > 0 && argv[0][0] == '-') {
-static char *sccsid = "@(#)finger.c 4.7 (Berkeley) %G%";
+static char *sccsid = "@(#)finger.c 4.8 (Berkeley) %G%";
#endif
/* This is a finger program. It prints out useful information about users
#endif
/* This is a finger program. It prints out useful information about users
char LASTLOG[] = "/usr/adm/lastlog"; /* last login info */
char USERLOG[] = "/etc/utmp"; /* who is logged in */
char LASTLOG[] = "/usr/adm/lastlog"; /* last login info */
char USERLOG[] = "/etc/utmp"; /* who is logged in */
-char outbuf[BUFSIZ]; /* output buffer */
char *ctime(), *strcpy();
int unbrief = 1; /* -b option default */
char *ctime(), *strcpy();
int unbrief = 1; /* -b option default */
- setbuf( stdout, outbuf ); /* buffer output */
-
- /* parse command line for (optional) arguments */
+ /* parse command line for (optional) arguments */
i = 1;
if( strcmp( *argv, "sh" ) ) {
i = 1;
if( strcmp( *argv, "sh" ) ) {
-static char *sccsid = "@(#)fold.c 4.2 (Berkeley) %G%";
+static char *sccsid = "@(#)fold.c 4.3 (Berkeley) %G%";
#include <stdio.h>
/*
* fold - fold long lines for finite output devices
#include <stdio.h>
/*
* fold - fold long lines for finite output devices
if (argc > 0 && argv[0][0] == '-') {
fold = 0;
argv[0]++;
if (argc > 0 && argv[0][0] == '-') {
fold = 0;
argv[0]++;
-static char sccsid[] = "@(#)old.ucb.grep.c 4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)old.ucb.grep.c 4.4 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
main(argc, argv)
char **argv;
{
main(argc, argv)
char **argv;
{
while (--argc > 0 && (++argv)[0][0]=='-') {
char *cp = argv[0] + 1;
while (*cp) switch (*cp++) {
while (--argc > 0 && (++argv)[0][0]=='-') {
char *cp = argv[0] + 1;
while (*cp) switch (*cp++) {
-static char *sccsid = "@(#)head.c 4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)head.c 4.2 (Berkeley) %G%";
#include <stdio.h>
/*
* head - give the first few lines of a stream or of each of a set of files
#include <stdio.h>
/*
* head - give the first few lines of a stream or of each of a set of files
char *name;
register char *argp;
static int around;
char *name;
register char *argp;
static int around;
Argc--, argv++;
argc = Argc;
do {
Argc--, argv++;
argc = Argc;
do {
-static char sccsid[] = "@(#)ul.c 4.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)ul.c 4.6 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
struct CHAR obuf[MAXBUF];
int col, maxcol;
int mode;
struct CHAR obuf[MAXBUF];
int col, maxcol;
int mode;
if ( (tgetflag("os") && ENTER_BOLD==NULL ) ||
(tgetflag("ul") && ENTER_UNDERLINE==NULL && UNDER_CHAR==NULL))
must_overstrike = 1;
if ( (tgetflag("os") && ENTER_BOLD==NULL ) ||
(tgetflag("ul") && ENTER_UNDERLINE==NULL && UNDER_CHAR==NULL))
must_overstrike = 1;
initbuf();
if (optind == argc)
filter(stdin);
initbuf();
if (optind == argc)
filter(stdin);
-static char *sccsid = "@(#)w.c 4.12 (Berkeley) %G%";
+static char *sccsid = "@(#)w.c 4.13 (Berkeley) %G%";
#endif
/*
* w - print system status (who and what)
#endif
/*
* w - print system status (who and what)
register int i, j;
char *cp;
register int curpid, empty;
register int i, j;
char *cp;
register int curpid, empty;
login = (argv[0][0] == '-');
cp = rindex(argv[0], '/');
firstchar = login ? argv[0][1] : (cp==0) ? argv[0][0] : cp[1];
login = (argv[0][0] == '-');
cp = rindex(argv[0], '/');
firstchar = login ? argv[0][1] : (cp==0) ? argv[0][0] : cp[1];