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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
/* autoconf cannot fiddle out declarations. Use our homebrewn tools. (jw) */
/*
* Declarations that may cause conflicts belong here so that osdef.sh
* can clean out the forest. Everything else belongs in os_unix.h
*
* How this works:
* - This file contains all unix prototypes that Vim might need.
* - The shell script osdef.sh is executed at compile time to remove all the
* prototypes that are in an include file. This results in osdef.h.
* - osdef.h is included in vim.h.
*
* sed cannot always handle so many commands, this is file 1 of 2
*/
extern int printf __ARGS((char *, ...));
extern int fprintf __ARGS((FILE *, char *, ...));
extern int sprintf __ARGS((char *, char *, ...));
extern int sscanf __ARGS((char *, char *, ...));
#ifndef fopen /* could be redefined to fopen64() */
extern FILE *fopen __ARGS((const char *, const char *));
#endif
extern int fclose __ARGS((FILE *));
extern int fseek __ARGS((FILE *, long, int));
#ifdef HAVE_FSEEKO
extern int fseeko __ARGS((FILE *, off_t, int));
#endif
extern long ftell __ARGS((FILE *));
#ifdef HAVE_FTELLO
extern off_t ftello __ARGS((FILE *));
#endif
extern void rewind __ARGS((FILE *));
extern int fread __ARGS((char *, int, int, FILE *));
extern int fwrite __ARGS((char *, int, int, FILE *));
extern int fputs __ARGS((char *, FILE *));
#ifndef ferror /* let me say it again: "macros should never have prototypes" */
extern int ferror __ARGS((FILE *));
#endif
extern int fflush __ARGS((FILE *));
#if defined(sun) || defined(_SEQUENT_)
/* used inside of stdio macros getc(), puts(), putchar()... */
extern int _flsbuf __ARGS((int, FILE *));
extern int _filbuf __ARGS((FILE *));
#endif
#if !defined(HAVE_SELECT)
struct pollfd; /* for poll __ARGS */
extern int poll __ARGS((struct pollfd *, long, int));
#endif
#ifdef HAVE_MEMSET
extern void *memset __ARGS((void *, int, size_t));
#endif
#ifdef HAVE_BCMP
extern int bcmp __ARGS((void *, void *, size_t));
#endif
#ifdef HAVE_MEMCMP
extern int memcmp __ARGS((const void *, const void *, size_t));
#endif
#ifdef HAVE_STRPBRK
extern char *strpbrk __ARGS((const char *, const char *));
#endif
#ifdef USEBCOPY
extern void bcopy __ARGS((char *, char *, int));
#else
# ifdef USEMEMCPY
extern void memcpy __ARGS((char *, char *, int));
# else
# ifdef USEMEMMOVE
extern void memmove __ARGS((char *, char *, int));
# endif
# endif
#endif
/* used inside of FD_ZERO macro: */
extern void bzero __ARGS((void *, size_t));
#ifdef HAVE_SETSID
extern pid_t setsid __ARGS((void));
#endif
#ifdef HAVE_SETPGID
extern int setpgid __ARGS((pid_t, pid_t));
#endif
#ifdef HAVE_STRTOL
extern int strtol __ARGS((char *, char **, int));
#endif
#ifdef HAVE_STRFTIME
extern size_t strftime __ARGS((char *, size_t, char *, struct tm *));
#endif
#ifdef HAVE_STRCASECMP
extern int strcasecmp __ARGS((char *, char *));
#endif
#ifdef HAVE_STRNCASECMP
extern int strncasecmp __ARGS((char *, char *, size_t));
#endif
#ifndef strdup
extern char *strdup __ARGS((const char *));
#endif
extern int atoi __ARGS((char *));
extern int atol __ARGS((char *));
#ifndef USE_SYSTEM
extern int fork __ARGS((void));
extern int execvp __ARGS((const char *, const char **));
extern int wait __ARGS((int *)); /* will this break things ...? */
extern int waitpid __ARGS((pid_t, int *, int));
#endif
extern int toupper __ARGS((int));
extern int tolower __ARGS((int));
extern RETSIGTYPE (*signal __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG);
#ifdef HAVE_SIGSET
extern RETSIGTYPE (*sigset __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG);
#endif
#if defined(HAVE_SETJMP_H)
# ifdef HAVE_SIGSETJMP
extern int sigsetjmp __ARGS((sigjmp_buf, int));
extern void siglongjmp __ARGS((sigjmp_buf, int));
# else
extern int setjmp __ARGS((jmp_buf));
extern void longjmp __ARGS((jmp_buf, int));
# endif
#endif
extern int kill __ARGS((int, int));
extern int access __ARGS((char *, int));
extern int fsync __ARGS((int));
extern int fchown __ARGS((int, int, int));
#if defined(HAVE_GETCWD) && !defined(sun)
extern char *getcwd __ARGS((char *, int));
#else
extern char *getwd __ARGS((char *));
#endif
#ifndef __alpha /* suggested by Campbell */
extern int ioctl __ARGS((int, int, ...));
#endif
extern int chmod __ARGS((const char *, mode_t));
|