home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
msgs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-04
|
668b
|
37 lines
/* :ts=4
* print common messages
*
* $Log$
*/
#include <stdio.h>
#ifdef unix
# include <sys/types.h>
#endif /* unix */
#include "news.h"
#include "headers.h"
#include "article.h"
#include "msgs.h"
void
fulldisk(art, file) /* complain once & set status bits */
register struct article *art;
char *file;
{
if (!(art->a_status&ST_DISKFULL))
art->a_status |= prfulldisk(file);
}
statust
prfulldisk(file) /* complain & return bad status */
char *file;
{
extern int errno;
static char err[8];
sprintf(err, "%d", errno);
warning("error writing `%s', probably the disk filled", file);
warning("error #%s", err);
return ST_DISKFULL|ST_NEEDATTN|ST_DROPPED;
}