source: trunk/athena/bin/gms/globalmessage.h @ 1486

Revision 1486, 1.2 KB checked in by eichin, 36 years ago (diff)
Initial revision
Line 
1/* This file is part of the Project Athena Global Message System.
2 * Created by: Mark W. Eichin <eichin@athena.mit.edu>
3 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/gms/globalmessage.h,v $
4 * $Author: eichin $
5 *
6 *      Copyright (c) 1988 by the Massachusetts Institute of Technology.
7 *      For copying and distribution information, see the file
8 *      "mit-copyright.h".
9 */
10
11#ifndef __GLOBALMESSAGE_H__
12#define __GLOBALMESSAGE_H__
13
14#include <errno.h>
15extern int errno;
16#include "globalmessage_err.h"
17        /* Function return code */
18typedef int Code_t;
19
20#define GMS_NAME_CLASS "globalmessage"
21#define GMS_NAME_TYPE "sloc"
22
23#define GMS_SERV_NAME "globalmessage"
24#define GMS_SERV_PROTO "udp"
25
26#define GMS_MESSAGE_NAME "/usr/tmp/.messages"
27
28#define GMS_USERFILE_NAME "/.message_times"
29#define GMS_USERFILE_NAME_LEN (sizeof(GMS_USERFILE_NAME)-1)
30
31#define GMS_VERSION_STRING "GMS:0"
32#define GMS_VERSION_STRING_LEN (sizeof(GMS_VERSION_STRING)-1)
33
34#define GMS_MAX_MESSAGE_LEN 2048
35
36#define GMS_TIMEOUT_SEC 5
37#define GMS_TIMEOUT_USEC 0
38
39/* log_10(2^32) >= 10, plus a NL, plus a NUL */
40#define GMS_TIMESTAMP_LEN 12
41
42#define BFSZ 1024
43
44char *malloc(), *realloc(), *index();
45
46#endif /* __GLOBALMESSAGE_H__ */
Note: See TracBrowser for help on using the repository browser.