L_ --> SEEK_dito
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@144 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -15,6 +15,7 @@ static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91";
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include "popper.h"
|
#include "popper.h"
|
||||||
|
|
||||||
extern int errno;
|
extern int errno;
|
||||||
@@ -79,7 +80,7 @@ POP * p;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Go to the right places */
|
/* Go to the right places */
|
||||||
offset = lseek((int)fileno(p->drop),0,L_XTND) ;
|
offset = lseek((int)fileno(p->drop),0,SEEK_END) ;
|
||||||
|
|
||||||
/* Append any messages that may have arrived during the session
|
/* Append any messages that may have arrived during the session
|
||||||
to the temporary maildrop */
|
to the temporary maildrop */
|
||||||
@@ -100,7 +101,7 @@ POP * p;
|
|||||||
|
|
||||||
/* Synch stdio and the kernel for the POP drop */
|
/* Synch stdio and the kernel for the POP drop */
|
||||||
rewind(p->drop);
|
rewind(p->drop);
|
||||||
(void)lseek((int)fileno(p->drop),0,L_SET);
|
(void)lseek((int)fileno(p->drop),0,SEEK_SET);
|
||||||
|
|
||||||
/* Transfer messages not flagged for deletion from the temporary
|
/* Transfer messages not flagged for deletion from the temporary
|
||||||
maildrop to the new maildrop */
|
maildrop to the new maildrop */
|
||||||
@@ -180,7 +181,7 @@ POP * p;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Go to start of new mail if any */
|
/* Go to start of new mail if any */
|
||||||
(void)lseek((int)fileno(p->drop),offset,L_SET);
|
(void)lseek((int)fileno(p->drop),offset,SEEK_SET);
|
||||||
|
|
||||||
while((nchar=read((int)fileno(p->drop),buffer,BUFSIZ)) > 0)
|
while((nchar=read((int)fileno(p->drop),buffer,BUFSIZ)) > 0)
|
||||||
if ( nchar != write(mfd,buffer,nchar) ) {
|
if ( nchar != write(mfd,buffer,nchar) ) {
|
||||||
|
Reference in New Issue
Block a user