summaryrefslogtreecommitdiff
path: root/apps/drwho/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/drwho/global.h')
-rw-r--r--apps/drwho/global.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/drwho/global.h b/apps/drwho/global.h
new file mode 100644
index 00000000000..0352ca36e31
--- /dev/null
+++ b/apps/drwho/global.h
@@ -0,0 +1,35 @@
+/* -*- C++ -*- */
+// $Id$
+
+/* Here are all the declarations that are needed throughout the program. */
+
+#ifndef _GLOBAL_H
+#define _GLOBAL_H
+
+/* These constants are used throughout the program... */
+
+enum
+{
+ MAXUSERIDNAMELEN = 8,
+ MAX_USER_TIMEOUT = 300,
+ MAX_HOST_TIMEOUT = 300,
+#ifdef i386
+ UDP_PACKET_SIZE = 0x2000,
+#else
+ UDP_PACKET_SIZE = 0x4000,
+#endif
+ PORT_NUMBER = 12344
+/* MAXPATHLEN = 1024,
+ MAXHOSTNAMELEN = 64 + 1 */
+};
+
+/* Default name of file where friends info is stored. */
+#define FRIEND_FILE ".friends.dta"
+
+/* Default name where rwho info is stored. */
+#define RWHODIR "/usr/spool/rwho"
+
+/* Daemon creator. */
+extern void daemon_start (int ignsigcld);
+
+#endif /* _GLOBAL_H */