ANU News Patch Patch ID: 940525_nntp_server.c!bailey@genetics.upenn.edu Date: 25-May-1994 Author: Charles Bailey bailey@genetics.upenn.edu News Version: 6.1beta9 News Files: NNTP_Server.C Description: Adds tef to fop argument in fopen() call for incoming batch file. This may get you some space back when the file is closed, if the initial allocation quantity was large. This option is used only when leave_spool_open is true, since otherwise the batch file may be opened and closed several times to append new items, and tef is probably wasted effort under these conditions, and may cause batch files to be fragmented. Replaces: 930917_nntp_server.cbailey@genetics.upenn.edu, for use with version 6.1beta9. 930917_nntp_server.cbailey@genetics.upenn.edu remains current for use with version 6.1beta8. *** nntp_server.c --- nntp_server_new.c ************** *** 219,221 ** **-- **/ --- 219,225 ----- + ** V6.1b9 25-May-1994 Charles Bailey bailey@genetics.upenn.edu + ** - add fop=tef to batchfile fopen() + ** (reformat of 930917_nntp_server.c!bailey@genetics.upenn.edu + ** for use with version 6.1beta9) ** **-- **/ ************** *** 1667,1673 if (!fpb) { sprintf(batchname,NEWSBATCH,time_str(),getpid(),""); sprintf(batchname_tmp,NEWSBATCH,time_str(),getpid(),"INCOMING_"); ! fpb = fopen(batchname_tmp,OPEN_WRITE_OPT2,"fop=cbt"); batch_size = 0; } } --- 1671,1677 ----- if (!fpb) { sprintf(batchname,NEWSBATCH,time_str(),getpid(),""); sprintf(batchname_tmp,NEWSBATCH,time_str(),getpid(),"INCOMING_"); ! fpb = fopen(batchname_tmp,OPEN_WRITE_OPT2,"fop=cbt,tef"); batch_size = 0; } } *** patchlist.h;-1 --- patchlist.h ************** *** 1,1 =+=+= End =+=+= --- 1,2 ----- + 940525_nntp_server.c!bailey@genetics.upenn.edu =+=+= End =+=+=