#include <h/dropsbr.h>
#include <h/mts.h>
#include <h/tws.h>
-#include <errno.h>
#ifdef NTOHLSWAP
# include <netinet/in.h>
/* attempt to open and lock file */
for (count = 4; count > 0; count--) {
- if ((fd = lkopen (file, O_RDWR | O_CREAT | O_NONBLOCK, mode)) == NOTOK) {
+ if ((fd = lkopenspool (file, O_RDWR | O_CREAT |
+ O_NONBLOCK, mode)) == NOTOK) {
switch (errno) {
#if defined(FCNTL_LOCKING) || defined(LOCKF_LOCKING)
case EACCES:
int
mbx_close (char *mailbox, int md)
{
- if (lkclose (md, mailbox) == 0)
+ if (lkclosespool (md, mailbox) == 0)
return OK;
return NOTOK;
}