/[pkg-mixmaster]/trunk/Mix/Src/rem.c
ViewVC logotype

Diff of /trunk/Mix/Src/rem.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 261 by rabbi, Fri Sep 6 22:45:06 2002 UTC revision 262 by rabbi, Wed Sep 18 23:26:17 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Process remailer messages     Process remailer messages
9     $Id: rem.c,v 1.27 2002/09/06 22:45:06 rabbi Exp $ */     $Id: rem.c,v 1.28 2002/09/18 23:26:17 rabbi Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 18  Line 18 
18  #include <sys/stat.h>  #include <sys/stat.h>
19  #ifdef POSIX  #ifdef POSIX
20  #include <unistd.h>  #include <unistd.h>
21  #else  #else /* end of POSIX */
22  #include <io.h>  #include <io.h>
23  #endif  #endif /* else if not POSIX */
24  #ifndef _MSC  #ifndef _MSC
25  #include <dirent.h>  #include <dirent.h>
26  #endif  #endif /* not _MSC */
27  #include <assert.h>  #include <assert.h>
28    
29  int blockrequest(BUFFER *message);  int blockrequest(BUFFER *message);
# Line 284  int pool_packetfile(char *fname, BUFFER Line 284  int pool_packetfile(char *fname, BUFFER
284    sprintf(fname, "%s%cp%02x%02x%02x%01x.%02x", POOLDIR, DIRSEP,    sprintf(fname, "%s%cp%02x%02x%02x%01x.%02x", POOLDIR, DIRSEP,
285            mid->data[0], mid->data[1], mid->data[2], mid->data[3] & 15,            mid->data[0], mid->data[1], mid->data[2], mid->data[3] & 15,
286            packetnum);            packetnum);
287  #else  #else /* end of SHORTNAMES */
288    sprintf(fname, "%s%cp%02x%02x%02x%02x%02x%02x%01x", POOLDIR, DIRSEP,    sprintf(fname, "%s%cp%02x%02x%02x%02x%02x%02x%01x", POOLDIR, DIRSEP,
289            packetnum, mid->data[0], mid->data[1], mid->data[2], mid->data[3],            packetnum, mid->data[0], mid->data[1], mid->data[2], mid->data[3],
290            mid->data[4], mid->data[5] & 15);            mid->data[4], mid->data[5] & 15);
291  #endif  #endif /* else if not SHORTNAMES */
292    return (0);    return (0);
293  }  }
294    
# Line 534  int idexp(void) Line 534  int idexp(void)
534    }    }
535  #ifdef _MSC  #ifdef _MSC
536      chsize(fileno(f),fpo);      chsize(fileno(f),fpo);
537  #else  #else /* end of _MSC */
538      ftruncate(fileno(f),fpo);      ftruncate(fileno(f),fpo);
539  #endif  #endif /* else if not _MSC */
540    fclose(f);    fclose(f);
541    unlockfile(i);    unlockfile(i);
542    buf_free(b);    buf_free(b);

Legend:
Removed from v.261  
changed lines
  Added in v.262

  ViewVC Help
Powered by ViewVC 1.1.5