Remove trailing whitespace.
This commit is contained in:
parent
7799f52a32
commit
44204187ec
|
@ -13,7 +13,7 @@ TROFF = /usr/local/lib/troff
|
|||
# Print via speedy for cycles sake...
|
||||
# (assumes postscript printer...)
|
||||
#
|
||||
program:
|
||||
program:
|
||||
@echo printer is $(PRINTER)
|
||||
(cd figs; make)
|
||||
format -P$(PRINTER) -t program.nr | rsh speedy psdit \| lpr -P$(PRINTER)
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* u_short sin_port;
|
||||
* struct in_addr sin_addr;
|
||||
* char sin_zero[8];
|
||||
* };
|
||||
* };
|
||||
*
|
||||
* This program creates a datagram socket, binds a name to it, then reads
|
||||
* from the socket.
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
/*
|
||||
* Here I send a datagram to a receiver whose name I get from the command
|
||||
* line arguments. The form of the command line is dgramsend hostname
|
||||
* portnumber
|
||||
* portnumber
|
||||
*/
|
||||
|
||||
main(argc, argv)
|
||||
|
@ -63,7 +63,7 @@ main(argc, argv)
|
|||
* Construct name, with no wildcards, of the socket to send to.
|
||||
* Getnostbyname() returns a structure including the network address
|
||||
* of the specified host. The port number is taken from the command
|
||||
* line.
|
||||
* line.
|
||||
*/
|
||||
hp = gethostbyname(argv[1]);
|
||||
if (hp == 0) {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
* parent over the pipe. Notice that a pipe is a one-way communications
|
||||
* device. I can write to the output socket (sockets[1], the second socket
|
||||
* of the array returned by pipe()) and read from the input socket
|
||||
* (sockets[0]), but not vice versa.
|
||||
* (sockets[0]), but not vice versa.
|
||||
*/
|
||||
|
||||
main()
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
* This program creates a pair of connected sockets then forks and
|
||||
* communicates over them. This is very similar to communication with pipes,
|
||||
* however, socketpairs are two-way communications objects. Therefore I can
|
||||
* send messages in both directions.
|
||||
* send messages in both directions.
|
||||
*/
|
||||
|
||||
main()
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
/*
|
||||
* This program uses select() to check that someone is trying to connect
|
||||
* before calling accept().
|
||||
* before calling accept().
|
||||
*/
|
||||
|
||||
main()
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
|
||||
/*
|
||||
* This program creates a socket and then begins an infinite loop. Each time
|
||||
* through the loop it accepts a connection and prints out messages from it.
|
||||
* through the loop it accepts a connection and prints out messages from it.
|
||||
* When the connection breaks, or a termination message comes through, the
|
||||
* program accepts a new connection.
|
||||
* program accepts a new connection.
|
||||
*/
|
||||
|
||||
main()
|
||||
|
@ -97,6 +97,6 @@ main()
|
|||
/*
|
||||
* Since this program has an infinite loop, the socket "sock" is
|
||||
* never explicitly closed. However, all sockets will be closed
|
||||
* automatically when a process is killed or terminates normally.
|
||||
* automatically when a process is killed or terminates normally.
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* This program creates a socket and initiates a connection with the socket
|
||||
* given in the command line. One message is sent over the connection and
|
||||
* then the socket is closed, ending the connection. The form of the command
|
||||
* line is streamwrite hostname portnumber
|
||||
* line is streamwrite hostname portnumber
|
||||
*/
|
||||
|
||||
main(argc, argv)
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
* struct sockaddr_un {
|
||||
* short sun_family;
|
||||
* char sun_path[108];
|
||||
* };
|
||||
* };
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
/*
|
||||
* This program creates a UNIX domain datagram socket, binds a name to it,
|
||||
* then reads from the socket.
|
||||
* then reads from the socket.
|
||||
*/
|
||||
main()
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
/*
|
||||
* Here I send a datagram to a receiver whose name I get from the command
|
||||
* line arguments. The form of the command line is udgramsend pathname
|
||||
* line arguments. The form of the command line is udgramsend pathname
|
||||
*/
|
||||
|
||||
main(argc, argv)
|
||||
|
|
|
@ -39,11 +39,11 @@
|
|||
#define NAME "socket"
|
||||
|
||||
/*
|
||||
* This program creates a socket in the UNIX domain and binds a name to it.
|
||||
* This program creates a socket in the UNIX domain and binds a name to it.
|
||||
* After printing the socket's name it begins a loop. Each time through the
|
||||
* loop it accepts a connection and prints out messages from it. When the
|
||||
* connection breaks, or a termination message comes through, the program
|
||||
* accepts a new connection.
|
||||
* accepts a new connection.
|
||||
*/
|
||||
main()
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ main()
|
|||
* system that one is through using NAME. In most programs one uses
|
||||
* the call unlink() as below. Since the user will have to kill this
|
||||
* program, it will be necessary to remove the name by a command from
|
||||
* the shell.
|
||||
* the shell.
|
||||
*/
|
||||
close(sock);
|
||||
unlink(NAME);
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
/*
|
||||
* This program connects to the socket named in the command line and sends a
|
||||
* one line message to that socket. The form of the command line is
|
||||
* ustreamwrite pathname
|
||||
* ustreamwrite pathname
|
||||
*/
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.1 1995/01/11 03:24:15 wollman Exp $
|
||||
|
||||
VOLUME= usd/13.viref
|
||||
SRCS= vi.ref ${.OBJDIR}/index.so
|
||||
FILES= ${SRCS} ex.cmd.roff set.opt.roff vi.cmd.roff
|
||||
FILES= ${SRCS} ex.cmd.roff set.opt.roff vi.cmd.roff
|
||||
MACROS= -me
|
||||
CLEANFILES+=vi.ref.txt index index.so
|
||||
USE_SOELIM= yes
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# From: @(#)Makefile 8.2 (Berkeley) 4/20/94
|
||||
# $Id: Makefile,v 1.2 1995/01/11 03:23:59 wollman Exp $
|
||||
# $Id: Makefile,v 1.3 1995/01/12 20:58:10 wollman Exp $
|
||||
|
||||
# The following modules are encumbered:
|
||||
# 01.begin 02.learn 03.shell 05.dc 06.bc 09.edtut 10.edadv 15.sed 16.awk
|
||||
# 17.msmacros 21.troff 22.trofftut 23.eqn 24.eqnguide 25.tbl 26.refer
|
||||
# 27.invert 28.bib 29.diction
|
||||
# 27.invert 28.bib 29.diction
|
||||
|
||||
# The following modules are not provided:
|
||||
# 14.jove
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <osreldate.h> /* and this works */
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
int main(void) {
|
||||
extern int getosreldate(void);
|
||||
printf("Compilation release date: %d\n", __FreeBSD_version);
|
||||
#if __FreeBSD_version >= 199408
|
||||
|
|
|
@ -176,7 +176,7 @@ int cmd;
|
|||
* case it should return an errno from errno.h).
|
||||
*/
|
||||
miscmod( lkmtp, cmd, ver)
|
||||
struct lkm_table *lkmtp;
|
||||
struct lkm_table *lkmtp;
|
||||
int cmd;
|
||||
int ver;
|
||||
{
|
||||
|
|
|
@ -102,7 +102,7 @@ int cmd;
|
|||
* case it should return an errno from errno.h).
|
||||
*/
|
||||
newsyscall( lkmtp, cmd, ver)
|
||||
struct lkm_table *lkmtp;
|
||||
struct lkm_table *lkmtp;
|
||||
int cmd;
|
||||
int ver;
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ readdir_1(dirname)
|
|||
namelist nl;
|
||||
namelist *nlp;
|
||||
static readdir_res res; /* must be static! */
|
||||
|
||||
|
||||
/*
|
||||
* Open directory
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@ main(argc, argv)
|
|||
char *dir;
|
||||
readdir_res *result;
|
||||
namelist nl;
|
||||
|
||||
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "usage: %s host directory\n", argv[0]);
|
||||
|
@ -44,14 +44,14 @@ main(argc, argv)
|
|||
clnt_pcreateerror(server);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Call the remote procedure "readdir" on the server
|
||||
*/
|
||||
result = readdir_1(&dir, cl);
|
||||
if (result == NULL) {
|
||||
/*
|
||||
* An error occurred while calling the server.
|
||||
* An error occurred while calling the server.
|
||||
* Print error message and die.
|
||||
*/
|
||||
clnt_perror(cl, server);
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
/*
|
||||
* Remote verson of "printmessage"
|
||||
*/
|
||||
int *
|
||||
int *
|
||||
printmessage_1(msg)
|
||||
char **msg;
|
||||
char **msg;
|
||||
{
|
||||
static int result; /* must be static! */
|
||||
FILE *f;
|
||||
|
|
|
@ -20,7 +20,7 @@ main(argc, argv)
|
|||
fprintf(stderr, "%s: sorry, couldn't print your message\n",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
printf("Message delivered!\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -40,14 +40,14 @@ main(argc, argv)
|
|||
clnt_pcreateerror(server);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Call the remote procedure "printmessage" on the server
|
||||
*/
|
||||
result = printmessage_1(&message, cl);
|
||||
if (result == NULL) {
|
||||
/*
|
||||
* An error occurred while calling the server.
|
||||
* An error occurred while calling the server.
|
||||
* Print error message and die.
|
||||
*/
|
||||
clnt_perror(cl, server);
|
||||
|
@ -59,13 +59,13 @@ main(argc, argv)
|
|||
*/
|
||||
if (*result == 0) {
|
||||
/*
|
||||
* Server was unable to print our message.
|
||||
* Server was unable to print our message.
|
||||
* Print error message and die.
|
||||
*/
|
||||
fprintf(stderr, "%s: sorry, %s couldn't print your message\n",
|
||||
argv[0], server);
|
||||
fprintf(stderr, "%s: sorry, %s couldn't print your message\n",
|
||||
argv[0], server);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The message got printed on the server's console
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#MISSING: eqnchar.7 man.7 ms.7 term.7
|
||||
MAN7= ascii.7 environ.7 hier.7 hostname.7 intro.7 mailaddr.7 \
|
||||
mdoc.7 mdoc.samples.7 operator.7
|
||||
mdoc.7 mdoc.samples.7 operator.7
|
||||
MLINKS= intro.7 miscellaneous.7
|
||||
|
||||
clean depend lint tags:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.4 1995/02/22 14:03:10 sos Exp $
|
||||
# $Id: Makefile,v 1.5 1995/02/22 21:49:46 roberto Exp $
|
||||
|
||||
FONTS= cp437-8x8.fnt cp437-8x14.fnt cp437-8x16.fnt \
|
||||
cp437-thin-8x8.fnt cp437-thin-8x16.fnt \
|
||||
|
@ -11,7 +11,7 @@ FONTS= cp437-8x8.fnt cp437-8x14.fnt cp437-8x16.fnt \
|
|||
iso-8x8.fnt iso-8x14.fnt iso-8x16.fnt \
|
||||
iso-thin-8x16.fnt \
|
||||
koi8-r-8x8.fnt koi8-r-8x14.fnt koi8-r-8x16.fnt \
|
||||
koi8-rb-8x16.fnt koi8-rc-8x16.fnt
|
||||
koi8-rb-8x16.fnt koi8-rc-8x16.fnt
|
||||
|
||||
FONTDIR = /usr/share/syscons/fonts
|
||||
|
||||
|
|
Loading…
Reference in New Issue