/usr/include/inn/inndcomm.h is in inn2-dev 2.6.1-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | /* $Id: inndcomm.h 9782 2015-01-07 21:34:22Z iulius $
**
** Here be values used for communicating with the server once it is
** running.
*/
#ifndef INN_INNDCOMM_H
#define INN_INNDCOMM_H 1
#include "inn/portable-macros.h"
BEGIN_DECLS
/* The header for the ICC protocol is a one-byte protocol version followed
by a 2 byte messages length*/
#define HEADER_SIZE (sizeof (ICC_PROTOCOLTYPE) + sizeof (ICC_MSGLENTYPE))
typedef unsigned short ICC_MSGLENTYPE; /* Length code to prefix commands to
** the server. */
typedef char ICC_PROTOCOLTYPE ;
/* Values for the protocol version field of the message. 8 bits wide. */
#define ICC_PROTOCOL_1 'a'
#define SC_SEP '\001'
#define SC_MAXFIELDS 6
#define SC_ADDHIST 'a'
#define SC_ALLOW 'D'
#define SC_BEGIN 'b'
#define SC_CANCEL 'c'
#define SC_CHANGEGROUP 'u'
#define SC_CHECKFILE 'd'
#define SC_DROP 'e'
#define SC_FEEDINFO 'F'
#define SC_FLUSH 'f'
#define SC_FLUSHLOGS 'g'
#define SC_GO 'h'
#define SC_HANGUP 'i'
#define SC_LOGMODE 'E'
#define SC_LOWMARK 'L'
#define SC_MODE 's'
#define SC_NAME 'j'
#define SC_NEWGROUP 'k'
#define SC_PARAM 'l'
#define SC_PAUSE 'm'
#define SC_PERL 'P'
#define SC_PYTHON 'Y'
#define SC_READERS 'v'
#define SC_REJECT 'C'
#define SC_RELOAD 'o'
#define SC_RENUMBER 'n'
#define SC_RESERVE 'z'
#define SC_RMGROUP 'p'
#define SC_SEND 'A'
#define SC_SHUTDOWN 'q'
#define SC_STATHIST 'H'
#define SC_STATUS 'S'
#define SC_SIGNAL 'B'
#define SC_THROTTLE 'r'
#define SC_TIMER 'Z'
#define SC_TRACE 'w'
#define SC_XABORT 'x'
#define SC_XEXEC 'y'
/* Yes, we don't want anyone to use this. */
#define SC_FIRSTFREE G
#define MAX_REASON_LEN 80
extern void ICCsettimeout(int i);
extern int ICCopen(void);
extern int ICCclose(void);
extern int ICCcommand(char cmd, const char *argv[], char **replyp);
extern int ICCcancel(const char *msgid);
extern int ICCgo(const char *why);
extern int ICCpause(const char *why);
extern int ICCreserve(const char *why);
extern const char *ICCfailure;
/* Use a read or recv call to read a descriptor. */
#ifdef HAVE_UNIX_DOMAIN_SOCKETS
# define RECVorREAD(fd, p, s) recv((fd), (p), (s), 0)
#else
# define RECVorREAD(fd, p, s) read((fd), (p), (s))
#endif
END_DECLS
#endif /* INN_INNDCOMM_H */
|