]> andersk Git - moira.git/blame - server/mr_srvdata.c
fix program name stuff correctly
[moira.git] / server / mr_srvdata.c
CommitLineData
a3cf6921 1/*
2 * $Source$
3 * $Author$
4 * $Header$
5 *
6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
c801de4c 7 * For copying and distribution information, please see the file
8 * <mit-copyright.h>.
a3cf6921 9 *
10 * Global variables inside the SMS server.
a3cf6921 11 */
12
13#ifndef lint
14static char *rcsid_sms_srvdata_c = "$Header$";
15#endif lint
16
c801de4c 17#include <mit-copyright.h>
a3cf6921 18#include "sms_server.h"
19
20/*
21 * Connections & clients:
22 *
23 * The template and most recently connected connection:
24 */
25CONNECTION listencon, newconn;
26/*
27 * The template listen operation.
28 */
29OPERATION listenop;
30/*
31 * The list of operations corresponding to the I/O being done by the
32 * currently connected clients.
33 */
34LIST_OF_OPERATIONS op_list;
35/*
36 * The current number of connected clients, an array of them, and the
37 * "current" client, if any.
38 */
39int nclients=0;
40client **clients, *cur_client;
41/*
42 * Socket address of the most recently connected client.
43 */
44struct sockaddr_in client_addr;
45int client_addrlen;
46/*
47 * Additional data sent at connect time by the client
48 * (provided by GDB; ignored by SMS)
49 */
50TUPLE client_tuple;
51
52/*
53 * Name server was invoked as.
54 */
55char *whoami;
56/*
57 * Buffer for use in error messages.
58 */
59char buf1[BUFSIZ];
60
61/*
62 * If non-null, reason for shutdown. (SMS will be going down shortly
63 * if this is non-null)
64 */
65char *takedown=NULL;
a7aaa15b 66
67/*
68 * The name of the local Kerberos realm
69 */
70
71char *krb_realm = NULL;
4d64e1de 72/*
73 * Logging levels.
74 */
75
76int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES;
b2328d1e 77
78/*
79 * Time of last time through main loop.
80 */
81time_t now;
7f7fdf1d 82
83
84/*
85 * Statistics on number of queries of each version that have been attempted
86 */
87
88int newqueries = 0;
89int oldqueries = 0;
90
91
92/* Journalling file */
93FILE *journal = NULL;
94
This page took 0.092814 seconds and 5 git commands to generate.