home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unix System Administration Handbook 1997 October
/
usah_oct97.iso
/
news
/
cnews.tar
/
relay
/
io.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-31
|
583b
|
35 lines
/*
* common i/o operations
*/
#include <stdio.h>
#include <sys/types.h>
#include "news.h"
#include "headers.h"
#include "relay.h"
#include "msgs.h"
#include "active.h"
/*
* If *fpp is non-null, fclose it and check for errors.
* On error, call fulldisk(art, name).
*/
void
nnfclose(art, fpp, name)
struct article *art;
register FILE **fpp;
char *name;
{
if (*fpp != NULL) {
if (nfclose(*fpp) == EOF)
fulldisk(art, name);
*fpp = NULL; /* mark the stream closed */
}
}
statust
synccaches() /* force dirty in-core caches to disk */
{
return actsync() | trclose();
}