head 1.3; access; symbols SFIO_1999:1.1.1.2 SFIO_1998:1.1.1.1 SFIO_1997:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.3 date 99.09.11.13.20.43; author rse; state Exp; branches; next 1.2; 1.2 date 99.09.11.12.42.11; author rse; state Exp; branches; next 1.1; 1.1 date 96.12.13.20.53.01; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.12.13.20.53.01; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 99.06.04.19.31.21; author rse; state Exp; branches; next ; desc @@ 1.3 log @Merge in Sfio 1999 changes @ text @#include "sftest.h" int main() { Sfoff_t m; if(sfopen(sfstdout, Kpv[0], "w") != sfstdout) terror("Can't open %s to write\n", Kpv[0]); if(sfputr(sfstdout,"012345678\n",-1) != 10) terror("Can't write to %s\n", Kpv[0]); if(sfopen(sfstdout, Kpv[1],"w") != sfstdout) terror("Can't open %s to write\n", Kpv[1]); if(sfopen(sfstdin, Kpv[0], "r") != sfstdin) terror("Can't open %s to read\n", Kpv[0]); if((m = sfmove(sfstdin,sfstdout, (Sfoff_t)SF_UNBOUND, -1)) != 10) terror("Can't move data from %s to %s\n", Kpv[0], Kpv[1]); rmkpv(); return 0; } @ 1.2 log @Incorporate stuff from RSE's Sfio98 variant @ text @d5 4 a8 2 if(sfopen(sfstdout,"xxx","w") != sfstdout) terror("Can't open xxx to write\n"); d10 7 a16 2 terror("Can't write to xxx\n"); sfsync(sfstdout); d18 2 a19 3 if(sfopen(sfstdout,"yyy","w") != sfstdout) terror("Can't open yyy to write\n"); sfclose(sfstdout); d21 1 @ 1.1 log @Initial revision @ text @d3 1 a3 1 main() @ 1.1.1.1 log @Import of Sfio1997 @ text @@ 1.1.1.2 log @Import of Sfio1999 @ text @d5 2 a6 4 Sfoff_t m; if(sfopen(sfstdout, Kpv[0], "w") != sfstdout) terror("Can't open %s to write\n", Kpv[0]); d8 2 a9 7 terror("Can't write to %s\n", Kpv[0]); if(sfopen(sfstdout, Kpv[1],"w") != sfstdout) terror("Can't open %s to write\n", Kpv[1]); if(sfopen(sfstdin, Kpv[0], "r") != sfstdin) terror("Can't open %s to read\n", Kpv[0]); d11 3 a13 2 if((m = sfmove(sfstdin,sfstdout, (Sfoff_t)SF_UNBOUND, -1)) != 10) terror("Can't move data from %s to %s\n", Kpv[0], Kpv[1]); a14 1 rmkpv(); @