Return to indent.c CVS log | Up to [local] / src / usr.bin / indent |
version 1.29, 2015/10/09 01:37:07 | version 1.30, 2015/11/11 01:12:09 | ||
---|---|---|---|
|
|
||
errc(1, ENAMETOOLONG, "%s.BAK", p); | errc(1, ENAMETOOLONG, "%s.BAK", p); | ||
/* copy in_name to backup file */ | /* copy in_name to backup file */ | ||
bakchn = creat(bakfile, 0600); | bakchn = open(bakfile, O_CREAT | O_TRUNC | O_WRONLY, 0600); | ||
if (bakchn < 0) | if (bakchn < 0) | ||
err(1, "%s", bakfile); | err(1, "%s", bakfile); | ||
while ((n = read(fileno(input), buff, sizeof buff)) > 0) | while ((n = read(fileno(input), buff, sizeof buff)) > 0) |