summaryrefslogtreecommitdiff
path: root/sqmail-4.3.07/src/trigger.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 11:44:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 11:44:11 +0200
commitf1b71c9fe7dbb4886588a036399cf5ebe16b7c47 (patch)
treee07786aa479c9fb6ee3e537078470aaab5454f80 /sqmail-4.3.07/src/trigger.c
parenta293489ee83c8b05d845a162dc2a4de026f3775d (diff)
removed top level directory
Diffstat (limited to 'sqmail-4.3.07/src/trigger.c')
-rw-r--r--sqmail-4.3.07/src/trigger.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/sqmail-4.3.07/src/trigger.c b/sqmail-4.3.07/src/trigger.c
deleted file mode 100644
index ec22e11..0000000
--- a/sqmail-4.3.07/src/trigger.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "select.h"
-#include "ndelay.h"
-#include "open.h"
-#include "trigger.h"
-#include "close.h"
-
-static int fd = -1;
-
-void trigger_set()
-{
- if (fd != -1) close(fd);
- fd = open_read("lock/trigger");
-}
-
-void trigger_selprep(int *nfds,fd_set *rfds)
-{
- if (fd != -1) {
- FD_SET(fd,rfds);
- if (*nfds < fd + 1) *nfds = fd + 1;
- }
-}
-
-int trigger_pulled(fd_set *rfds)
-{
- if (fd != -1) if (FD_ISSET(fd,rfds)) return 1;
- return 0;
-}
-
-void write(); /* compiler warning (temp) */
-
-void triggerpull()
-{
- int fd;
-
- fd = open_write("lock/trigger");
- if (fd >= 0) {
- ndelay_on(fd);
- write(fd,"",1); /* if it fails, bummer */
- close(fd);
- }
-}