# 2.11BSD#431 - /usr/src/new/nntp/common/nntp.h

##### Macros

    CHAR_CONT         X
    CHAR_ERR          X
    CHAR_FATAL        X
    CHAR_INF          X
    CHAR_OK           X
    CONT_POST         X
    CONT_XFER         X
    ERR_ACCESS        X
    ERR_CMDSYN        X
    ERR_COMMAND       X
    ERR_FAULT         X
    ERR_GOODBYE       X
    ERR_GOTIT         X
    ERR_NCING         X
    ERR_NOART         X
    ERR_NOARTIG       X
    ERR_NOCRNT        X
    ERR_NOGROUP       X
    ERR_NONEXT        X
    ERR_NOPOST        X
    ERR_NOPREV        X
    ERR_POSTFAIL      X
    ERR_XFERFAIL      X
    ERR_XFERRJCT      X
    INF_DEBUG         X
    INF_HELP          X
    NNTP_STRLEN       X
    OK_ARTICLE        X
    OK_BODY           X
    OK_CANPOST        X
    OK_GOODBYE        X
    OK_GROUP          X
    OK_GROUPS         X
    OK_HEAD           X
    OK_NEWGROUPS      X
    OK_NEWNEWS        X
    OK_NOPOST         X
    OK_NOTEXT         X
    OK_POSTED         X
    OK_SLAVE          X
    OK_XFERED         X

       1: /*
       2:  * Response codes for NNTP server
       3:  *
       4:  * @(#)nntp.h	1.7	(Berkeley) 1/11/88
       5:  *
       6:  * First digit:
       7:  *
       8:  *	1xx	Informative message
       9:  *	2xx	Command ok
      10:  *	3xx	Command ok so far, continue
      11:  *	4xx	Command was correct, but couldn't be performed
      12:  *		for some specified reason.
      13:  *	5xx	Command unimplemented, incorrect, or a
      14:  *		program error has occured.
      15:  *
      16:  * Second digit:
      17:  *
      18:  *	x0x	Connection, setup, miscellaneous
      19:  *	x1x	Newsgroup selection
      20:  *	x2x	Article selection
      21:  *	x3x	Distribution
      22:  *	x4x	Posting
      23:  */
      24:
      25: #define CHAR_INF    '1'
      26: #define CHAR_OK     '2'
      27: #define CHAR_CONT   '3'
      28: #define CHAR_ERR    '4'
      29: #define CHAR_FATAL  '5'
      30:
      31: #define INF_HELP    100 /* Help text on way */
      32: #define INF_DEBUG   199 /* Debug output */
      33:
      34: #define OK_CANPOST  200 /* Hello; you can post */
      35: #define OK_NOPOST   201 /* Hello; you can't post */
      36: #define OK_SLAVE    202 /* Slave status noted */
      37: #define OK_GOODBYE  205 /* Closing connection */
      38: #define OK_GROUP    211 /* Group selected */
      39: #define OK_GROUPS   215 /* Newsgroups follow */
      40: #define OK_ARTICLE  220 /* Article (head & body) follows */
      41: #define OK_HEAD     221 /* Head follows */
      42: #define OK_BODY     222 /* Body follows */
      43: #define OK_NOTEXT   223 /* No text sent -- stat, next, last */
      44: #define OK_NEWNEWS  230 /* New articles by message-id follow */
      45: #define OK_NEWGROUPS    231 /* New newsgroups follow */
      46: #define OK_XFERED   235 /* Article transferred successfully */
      47: #define OK_POSTED   240 /* Article posted successfully */
      48:
      49: #define CONT_XFER   335 /* Continue to send article */
      50: #define CONT_POST   340 /* Continue to post article */
      51:
      52: #define ERR_GOODBYE 400 /* Have to hang up for some reason */
      53: #define ERR_NOGROUP 411 /* No such newsgroup */
      54: #define ERR_NCING   412 /* Not currently in newsgroup */
      55: #define ERR_NOCRNT  420 /* No current article selected */
      56: #define ERR_NONEXT  421 /* No next article in this group */
      57: #define ERR_NOPREV  422 /* No previous article in this group */
      58: #define ERR_NOARTIG 423 /* No such article in this group */
      59: #define ERR_NOART   430 /* No such article at all */
      60: #define ERR_GOTIT   435 /* Already got that article, don't send */
      61: #define ERR_XFERFAIL    436 /* Transfer failed */
      62: #define ERR_XFERRJCT    437 /* Article rejected, don't resend */
      63: #define ERR_NOPOST  440 /* Posting not allowed */
      64: #define ERR_POSTFAIL    441 /* Posting failed */
      65:
      66: #define ERR_COMMAND 500 /* Command not recognized */
      67: #define ERR_CMDSYN  501 /* Command syntax error */
      68: #define ERR_ACCESS  502 /* Access to server denied */
      69: #define ERR_FAULT   503 /* Program fault, command not performed */
      70:
      71: /* RFC 977 defines this; don't change it. */
      72:
      73: #define NNTP_STRLEN 512

#### Defined macros

CHAR_CONT defined in line 27; used 1 times

- in /usr/src/new/nntp/inews/inews.c line 87

CHAR_ERR defined in line 28; never used
CHAR_FATAL defined in line 29; used 1 times

- in /usr/src/new/rn/head.c line 222

CHAR_INF defined in line 25; never used
CHAR_OK defined in line 26; used 8 times

- in /usr/src/new/nntp/inews/inews.c line 121
- in /usr/src/new/rn/artio.c line 67
- in /usr/src/new/rn/getactive.c line 42
- in /usr/src/new/rn/head.c line 249
- in /usr/src/new/rn/ng.c line 147, 385
- in /usr/src/new/rn/ngdata.c line 46
- in /usr/src/new/rn/rcstuff.c line 282

CONT_POST defined in line 50; used 1 times

- in /usr/src/new/nntp/server/post.c line 42

CONT_XFER defined in line 49; used 1 times

- in /usr/src/new/nntp/server/ihave.c line 46

ERR_ACCESS defined in line 68; used 7 times

- in /usr/src/new/nntp/server/ahbs.c line 54, 74
- in /usr/src/new/nntp/server/group.c line 34, 58
- in /usr/src/new/nntp/server/nextlast.c line 26
- in /usr/src/new/nntp/server/serve.c line 135
- in /usr/src/new/nntp/server/xhdr.c line 49

ERR_CMDSYN defined in line 67; used 13 times

- in /usr/src/new/nntp/server/ahbs.c line 32
- in /usr/src/new/nntp/server/group.c line 27
- in /usr/src/new/nntp/server/ihave.c line 28
- in /usr/src/new/nntp/server/newgroups.c line 29, 47, 58
- in /usr/src/new/nntp/server/newnews.c line 46, 67, 76, 101, 120
- in /usr/src/new/nntp/server/nextlast.c line 39
- in /usr/src/new/nntp/server/xhdr.c line 42

ERR_COMMAND defined in line 66; used 1 times

- in /usr/src/new/nntp/server/serve.c line 229

ERR_FAULT defined in line 69; used 6 times

- in /usr/src/new/nntp/server/list.c line 29
- in /usr/src/new/nntp/server/newgroups.c line 39
- in /usr/src/new/nntp/server/newnews.c line 130, 145
- in /usr/src/new/nntp/server/serve.c line 305
- in /usr/src/new/nntp/server/spawn.c line 245

ERR_GOODBYE defined in line 52; never used
ERR_GOTIT defined in line 60; used 1 times

- in /usr/src/new/nntp/server/ihave.c line 35

ERR_NCING defined in line 54; used 3 times

- in /usr/src/new/nntp/server/ahbs.c line 81
- in /usr/src/new/nntp/server/nextlast.c line 33
- in /usr/src/new/nntp/server/xhdr.c line 83

ERR_NOART defined in line 59; used 2 times

- in /usr/src/new/nntp/server/ahbs.c line 48
- in /usr/src/new/nntp/server/xhdr.c line 60

ERR_NOARTIG defined in line 58; used 4 times

- in /usr/src/new/nntp/server/ahbs.c line 99, 107, 113
- in /usr/src/new/nntp/server/nextlast.c line 64

ERR_NOCRNT defined in line 55; used 3 times

- in /usr/src/new/nntp/server/ahbs.c line 89
- in /usr/src/new/nntp/server/nextlast.c line 48
- in /usr/src/new/nntp/server/xhdr.c line 93

ERR_NOGROUP defined in line 53; used 4 times

- in /usr/src/new/nntp/server/group.c line 40, 46
- in /usr/src/new/rn/ng.c line 148
- in /usr/src/new/rn/rcstuff.c line 283

ERR_NONEXT defined in line 56; used 2 times

- in /usr/src/new/nntp/server/nextlast.c line 55, 73

ERR_NOPOST defined in line 63; used 2 times

- in /usr/src/new/nntp/inews/inews.c line 88
- in /usr/src/new/nntp/server/post.c line 22

ERR_NOPREV defined in line 57; never used
ERR_POSTFAIL defined in line 64; used 4 times

- in /usr/src/new/nntp/inews/inews.c line 122
- in /usr/src/new/nntp/server/post.c line 33, 42-44(2)

ERR_XFERFAIL defined in line 61; used 2 times

- in /usr/src/new/nntp/server/ihave.c line 46-48(2)

ERR_XFERRJCT defined in line 62; never used
INF_DEBUG defined in line 32; never used
INF_HELP defined in line 31; used 1 times

- in /usr/src/new/nntp/server/help.c line 18

NNTP_STRLEN defined in line 73; used 10 times

- in /usr/src/new/nntp/inews/inews.c line 38(2)
- in /usr/src/new/nntp/server/ihave.c line 23
- in /usr/src/new/nntp/server/list.c line 18
- in /usr/src/new/nntp/server/misc.c line 326
- in /usr/src/new/nntp/server/newgroups.c line 19
- in /usr/src/new/nntp/server/post.c line 17
- in /usr/src/new/nntp/server/serve.c line 67
- in /usr/src/new/nntp/server/spawn.c line 47
- in /usr/src/new/nntp/server/xhdr.c line 141

OK_ARTICLE defined in line 40; used 2 times

- in /usr/src/new/nntp/server/ahbs.c line 60, 122

OK_BODY defined in line 42; never used
OK_CANPOST defined in line 34; used 1 times

- in /usr/src/new/nntp/server/serve.c line 182

OK_GOODBYE defined in line 37; used 1 times

- in /usr/src/new/nntp/server/serve.c line 238

OK_GROUP defined in line 38; used 1 times

- in /usr/src/new/nntp/server/group.c line 98

OK_GROUPS defined in line 39; used 1 times

- in /usr/src/new/nntp/server/list.c line 38

OK_HEAD defined in line 41; used 2 times

- in /usr/src/new/nntp/server/xhdr.c line 65, 113

OK_NEWGROUPS defined in line 45; used 1 times

- in /usr/src/new/nntp/server/newgroups.c line 83

OK_NEWNEWS defined in line 44; used 2 times

- in /usr/src/new/nntp/server/newnews.c line 154, 231

OK_NOPOST defined in line 35; used 2 times

- in /usr/src/new/nntp/inews/inews.c line 80
- in /usr/src/new/nntp/server/serve.c line 182

OK_NOTEXT defined in line 43; used 1 times

- in /usr/src/new/nntp/server/nextlast.c line 82

OK_POSTED defined in line 47; used 1 times

- in /usr/src/new/nntp/server/post.c line 46

OK_SLAVE defined in line 36; used 1 times

- in /usr/src/new/nntp/server/slave.c line 18

OK_XFERED defined in line 46; used 1 times

- in /usr/src/new/nntp/server/ihave.c line 51

#### Usage of this include

nntp.h used 3 times

- in /usr/src/new/nntp/common/clientlib.c line 38
- in /usr/src/new/nntp/inews/inews.c line 21
- in /usr/src/new/nntp/server/common.h line 17

response_codes.h used 1 times

- in /usr/src/new/rn/server.h line 9

Last modified: 2000-04-23 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1557 |