File: news.h

package info (click to toggle)
sysnews 0.9-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 116 kB
  • ctags: 86
  • sloc: ansic: 971; makefile: 70; sh: 23
file content (69 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download
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
/* news.h
**
** (C) 1995  Charles  (int@link.xs4all.nl)
**
**
*/

/* $Source: /project/master/sysnews/news.h,v $
 * $Revision: 1.3 $
 * $Date: 1995/07/06 08:40:45 $
 */

#define VERSION		"0.9"

#ifndef NEWSDIR
  #define NEWSDIR      "/var/lib/sysnews"
#endif
#ifndef NEWSTIME
  #define NEWSTIME     ".news_time"
#endif
#ifndef DEF_PAGER
  #define DEF_PAGER       "more"
#endif
#define NOEXPFILE       ".noexpire"
#define DATEFORMAT      "(%b %d %Y)"
#define ERRMSG          strerror(errno)

#undef OK
#define OK    0
#undef ERR
#define ERR (-1)


struct {
  int    all;
  int    items;
  int    names;
  int	 page;
  int    oneperline;
  int    datestamp;
  int    verbose;
  int	 expire;
  char	 *pager;
  } f;


#undef __PROTO
#ifdef __STDC__
# define __PROTO(proto) proto
#else
# define __PROTO(proto) ()
#endif


/* news.c */
int main __PROTO((int argc , char **argv ));
int implode __PROTO((char *str , char *av [], int max ));
void parse_args __PROTO((int argc , char **argv ));
void read_sysnews __PROTO((int argc , char **argv ));
int cat __PROTO((char *file ));
int more __PROTO((FILE *pfp , char *file ));
FILE *open_pager __PROTO((void ));
int fcat __PROTO((int fpin , int fpout ));
void do_expire __PROTO((int expire ));
void create_exclude_list __PROTO((void ));
void add_exclude __PROTO((char *str ));
void print_usage __PROTO((void ));

#undef __PROTO