conflicts with some memory allocators (e.g., A/UX)
SCCS-vsn: usr.sbin/sendmail/src/collect.c 8.43
SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 8.80
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.187
-static char sccsid[] = "@(#)collect.c 8.42 (Berkeley) %G%";
+static char sccsid[] = "@(#)collect.c 8.43 (Berkeley) %G%";
#endif /* not lint */
# include <errno.h>
#endif /* not lint */
# include <errno.h>
st.st_size);
fprintf(tf, "*** at %s due to lack of disk space for temp file.\n",
MyHostName);
st.st_size);
fprintf(tf, "*** at %s due to lack of disk space for temp file.\n",
MyHostName);
- avail = freespace(QueueDir, &bsize);
+ avail = freediskspace(QueueDir, &bsize);
if (avail > 0)
{
if (bsize > 1024)
if (avail > 0)
{
if (bsize > 1024)
-static char sccsid[] = "@(#)conf.c 8.186 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.187 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
bool
refuseconnections()
{
bool
refuseconnections()
{
- extern bool enoughspace();
+ extern bool enoughdiskspace();
#ifdef XLA
if (!xla_smtp_ok())
#ifdef XLA
if (!xla_smtp_ok())
#endif
/* this is probably too simplistic */
#endif
/* this is probably too simplistic */
- return CurrentLA >= RefuseLA || !enoughspace(MinBlocksFree + 1);
+ return CurrentLA >= RefuseLA || !enoughdiskspace(MinBlocksFree + 1);
}
\f/*
** SETPROCTITLE -- set process title for ps
}
\f/*
** SETPROCTITLE -- set process title for ps
-** FREESPACE -- see how much free space is on the queue filesystem
+** FREEDISKSPACE -- see how much free space is on the queue filesystem
**
** Only implemented if you have statfs.
**
**
** Only implemented if you have statfs.
**
+freediskspace(dir, bsize)
char *dir;
long *bsize;
{
char *dir;
long *bsize;
{
-** ENOUGHSPACE -- check to see if there is enough free space on the queue fs
+** ENOUGHDISKSPACE -- is there enough free space on the queue fs?
**
** Only implemented if you have statfs.
**
**
** Only implemented if you have statfs.
**
long msize;
{
long bfree, bsize;
long msize;
{
long bfree, bsize;
if (MinBlocksFree <= 0 && msize <= 0)
{
if (tTd(4, 80))
if (MinBlocksFree <= 0 && msize <= 0)
{
if (tTd(4, 80))
- printf("enoughspace: no threshold\n");
+ printf("enoughdiskspace: no threshold\n");
- if ((bfree = freespace(QueueDir, &bsize)) >= 0)
+ if ((bfree = freediskspace(QueueDir, &bsize)) >= 0)
- printf("enoughspace: bavail=%ld, need=%ld\n",
+ printf("enoughdiskspace: bavail=%ld, need=%ld\n",
bfree, msize);
/* convert msize to block count */
bfree, msize);
/* convert msize to block count */
- printf("enoughspace failure: min=%ld, need=%ld: %s\n",
+ printf("enoughdiskspace failure: min=%ld, need=%ld: %s\n",
MinBlocksFree, msize, errstring(errno));
return TRUE;
}
MinBlocksFree, msize, errstring(errno));
return TRUE;
}
-static char sccsid[] = "@(#)srvrsmtp.c 8.79 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.80 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 8.79 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.80 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
- if (!enoughspace(e->e_msgsize))
+ if (!enoughdiskspace(e->e_msgsize))
{
message("452 Insufficient disk space; try again later");
break;
{
message("452 Insufficient disk space; try again later");
break;