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
|
$NetBSD: patch-ap,v 1.1 1999/07/26 21:19:30 tron Exp $
--- global.h.orig Fri Feb 18 03:15:48 1994
+++ global.h Mon Jul 26 23:11:38 1999
@@ -8,7 +8,9 @@
#define _NN_GLOBAL_H 1
#include <stdlib.h>
+#ifdef USE_MALLOC_H
#include <malloc.h>
+#endif
/*
* Marks for global/external variables
*/
@@ -88,13 +90,16 @@
/* define types of library functions */
+#ifndef __NetBSD__
char *getenv(), *ctime();
#ifndef MALLOC_FUNC_CHECK
char *strchr(), *strrchr();
#endif
-off_t lseek(), ftell(), tell();
+off_t lseek(), tell();
+long ftell();
int atoi();
long atol();
+#endif
/* define types of own functions */
@@ -387,12 +392,12 @@
void db_read_group __APROTO((group_header *gh));
#endif
void db_write_group __APROTO((group_header *gh));
-off_t db_read_art __APROTO((FILE *f));
+long db_read_art __APROTO((FILE *f));
int db_write_art __APROTO((FILE *f));
-off_t get_index_offset __APROTO((group_header *gh, article_number art_num));
-off_t get_data_offset __APROTO((group_header *gh, article_number art_num));
-int db_read_offset __APROTO((FILE *f, off_t *offset));
-int db_write_offset __APROTO((FILE *f, off_t *offset));
+long get_index_offset __APROTO((group_header *gh, article_number art_num));
+long get_data_offset __APROTO((group_header *gh, article_number art_num));
+int db_read_offset __APROTO((FILE *f, long *offset));
+int db_write_offset __APROTO((FILE *f, long *offset));
/* decode.c */
@@ -650,7 +655,7 @@
int nntp_set_group __APROTO((group_header *gh));
int nntp_get_active __APROTO((void));
FILE * nntp_get_newsgroups __APROTO((void));
-struct novgroup *nntp_get_overview __APROTO((group_header *gh, int low, int high));
+struct novgroup *nntp_get_overview __APROTO((group_header *gh, article_number low, article_number high));
FILE * nntp_fopen_list __APROTO((char *cmd));
char * nntp_fgets __APROTO((char *buf, int size));
article_number *nntp_get_article_list __APROTO((group_header *gh));
|