Return to fsplit.c CVS log | Up to [local] / src / usr.bin / fsplit |
version 1.6, 2000/01/30 02:28:37 | version 1.6.2.1, 2000/10/06 21:16:12 | ||
---|---|---|---|
|
|
||
fd = open(x, O_CREAT|O_EXCL|O_RDWR, 0666); | fd = open(x, O_CREAT|O_EXCL|O_RDWR, 0666); | ||
if (fd == -1) | if (fd == -1) | ||
err(1, x); | err(1, "%s", x); | ||
ofp = fdopen(fd, "w"); | ofp = fdopen(fd, "w"); | ||
if (ofp == NULL) { | if (ofp == NULL) { | ||
close(fd); | close(fd); | ||
unlink(x); | unlink(x); | ||
err(1, x); | err(1, "%s", x); | ||
} | } | ||
nflag = 0; | nflag = 0; | ||
rv = 0; | rv = 0; |