Revision 2036,
1.1 KB
checked in by tjcoppet, 35 years ago
(diff) |
*** empty log message ***
|
Line | |
---|
1 | /* |
---|
2 | * This file is part of the OLC On-Line Consulting System. |
---|
3 | * It contains procedures for dealing with motd's. |
---|
4 | * |
---|
5 | * Win Treese |
---|
6 | * Dan Morgan |
---|
7 | * Bill Saphir |
---|
8 | * MIT Project Athena |
---|
9 | * |
---|
10 | * Ken Raeburn |
---|
11 | * MIT Information Systems |
---|
12 | * |
---|
13 | * Tom Coppeto |
---|
14 | * MIT Project Athena |
---|
15 | * |
---|
16 | * Copyright (c) 1989 by the Massachusetts Institute of Technology |
---|
17 | * |
---|
18 | * $Source: /afs/dev.mit.edu/source/repository/athena/bin/olc/clients/tty/t_motd.c,v $ |
---|
19 | * $Author: tjcoppet $ |
---|
20 | */ |
---|
21 | |
---|
22 | |
---|
23 | #ifndef lint |
---|
24 | static char rcsid[]= "$Header: /afs/dev.mit.edu/source/repository/athena/bin/olc/clients/tty/t_motd.c,v 1.3 1989-08-10 03:11:52 tjcoppet Exp $"; |
---|
25 | #endif |
---|
26 | |
---|
27 | #include <olc/olc.h> |
---|
28 | #include <olc/olc_tty.h> |
---|
29 | |
---|
30 | ERRCODE |
---|
31 | t_get_motd(Request,type,file,display_opts) |
---|
32 | REQUEST *Request; |
---|
33 | int type, display_opts; |
---|
34 | char *file; |
---|
35 | { |
---|
36 | int status; |
---|
37 | |
---|
38 | status = OGetMOTD(Request,type,file); |
---|
39 | |
---|
40 | switch(status) |
---|
41 | { |
---|
42 | case SUCCESS: |
---|
43 | if(display_opts) |
---|
44 | display_file(file,TRUE); |
---|
45 | else |
---|
46 | cat_file(file); |
---|
47 | break; |
---|
48 | |
---|
49 | default: |
---|
50 | status = handle_response(status,Request); |
---|
51 | break; |
---|
52 | } |
---|
53 | |
---|
54 | return(status); |
---|
55 | } |
---|
56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.