Deleted Added
full compact
appendix.ms (1639) appendix.ms (22818)
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)appendix.ms 6.2 (Berkeley) 4/16/91
33.\"
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)appendix.ms 6.2 (Berkeley) 4/16/91
33.\"
34.nr H2 1
34.\" .nr H2 1
35.ds RH Appendix A
35.ds RH Appendix A
36.SH
36.NH
37\s+2Appendix A\s0
37\s+2Appendix A\s0
38.SH
38.NH 2
39read_8192
39read_8192
40.PP
40.DS
41#define BUFSIZ 8192
42main( argc, argv)
43char **argv;
44{
45 char buf[BUFSIZ];
46 int i, j;
47
48 j = open(argv[1], 0);
49 for (i = 0; i < 1024; i++)
50 read(j, buf, BUFSIZ);
51}
52.DE
41.DS
42#define BUFSIZ 8192
43main( argc, argv)
44char **argv;
45{
46 char buf[BUFSIZ];
47 int i, j;
48
49 j = open(argv[1], 0);
50 for (i = 0; i < 1024; i++)
51 read(j, buf, BUFSIZ);
52}
53.DE
53.SH
54.NH 2
54write_4096
55write_4096
56.PP
55.DS
56#define BUFSIZ 4096
57main( argc, argv)
58char **argv;
59{
60 char buf[BUFSIZ];
61 int i, j;
62
63 j = creat(argv[1], 0666);
64 for (i = 0; i < 2048; i++)
65 write(j, buf, BUFSIZ);
66}
67.DE
57.DS
58#define BUFSIZ 4096
59main( argc, argv)
60char **argv;
61{
62 char buf[BUFSIZ];
63 int i, j;
64
65 j = creat(argv[1], 0666);
66 for (i = 0; i < 2048; i++)
67 write(j, buf, BUFSIZ);
68}
69.DE
68.SH
70.NH 2
69write_8192
71write_8192
72.PP
70.DS
71#define BUFSIZ 8192
72main( argc, argv)
73char **argv;
74{
75 char buf[BUFSIZ];
76 int i, j;
77
78 j = creat(argv[1], 0666);
79 for (i = 0; i < 1024; i++)
80 write(j, buf, BUFSIZ);
81}
82.DE
83.bp
73.DS
74#define BUFSIZ 8192
75main( argc, argv)
76char **argv;
77{
78 char buf[BUFSIZ];
79 int i, j;
80
81 j = creat(argv[1], 0666);
82 for (i = 0; i < 1024; i++)
83 write(j, buf, BUFSIZ);
84}
85.DE
86.bp
84.SH
87.NH 2
85rewrite_8192
88rewrite_8192
89.PP
86.DS
87#define BUFSIZ 8192
88main( argc, argv)
89char **argv;
90{
91 char buf[BUFSIZ];
92 int i, j;
93
94 j = open(argv[1], 2);
95 for (i = 0; i < 1024; i++)
96 write(j, buf, BUFSIZ);
97}
98.DE
90.DS
91#define BUFSIZ 8192
92main( argc, argv)
93char **argv;
94{
95 char buf[BUFSIZ];
96 int i, j;
97
98 j = open(argv[1], 2);
99 for (i = 0; i < 1024; i++)
100 write(j, buf, BUFSIZ);
101}
102.DE