projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_3_Net_2 development
[unix-history]
/
usr
/
src
/
sys
/
tests
/
fstests
/
write_8192.c
#define BUFSIZ 8192
main
(
argc
,
argv
)
int
argc
;
char
*
argv
[];
{
char
buf
[
BUFSIZ
];
int
i
,
j
;
if
(
argc
<
2
) {
printf
(
"Usage: write_8192 file
\n
"
);
exit
(
1
);
}
j
=
creat
(
argv
[
1
],
0666
);
if
(
j
<
0
) {
perror
(
argv
[
1
]);
exit
(
2
);
}
for
(
i
=
0
;
i
<
1024
;
i
++)
write
(
j
,
buf
,
BUFSIZ
);
}