annotate src/osdef1.h.in @ 3298:22a626604672 v7.3.416

updated for version 7.3.416 Problem: Compiler warning for wrong pointer. Solution: Add type cast.
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jan 2012 18:52:06 +0100
parents 3112fcc89238
children c4f8b1d48f20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* autoconf cannot fiddle out declarations. Use our homebrewn tools. (jw) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 * Declarations that may cause conflicts belong here so that osdef.sh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 * can clean out the forest. Everything else belongs in os_unix.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 * How this works:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 * - This file contains all unix prototypes that Vim might need.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 * - The shell script osdef.sh is executed at compile time to remove all the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 * prototypes that are in an include file. This results in osdef.h.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 * - osdef.h is included in vim.h.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 * sed cannot always handle so many commands, this is file 1 of 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 extern int printf __ARGS((char *, ...));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 extern int fprintf __ARGS((FILE *, char *, ...));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 extern int sprintf __ARGS((char *, char *, ...));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 extern int sscanf __ARGS((char *, char *, ...));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 #ifndef fopen /* could be redefined to fopen64() */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 extern FILE *fopen __ARGS((const char *, const char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 extern int fclose __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 extern int fseek __ARGS((FILE *, long, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 #ifdef HAVE_FSEEKO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 extern int fseeko __ARGS((FILE *, off_t, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 extern long ftell __ARGS((FILE *));
2087
3112fcc89238 updated for version 7.2.371
Bram Moolenaar <bram@zimbu.org>
parents: 1076
diff changeset
28 #ifdef HAVE_FSEEKO
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 extern off_t ftello __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 extern void rewind __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 extern int fread __ARGS((char *, int, int, FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 extern int fwrite __ARGS((char *, int, int, FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 extern int fputs __ARGS((char *, FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 #ifndef ferror /* let me say it again: "macros should never have prototypes" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 extern int ferror __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 extern int fflush __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 #if defined(sun) || defined(_SEQUENT_)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 /* used inside of stdio macros getc(), puts(), putchar()... */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 extern int _flsbuf __ARGS((int, FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 extern int _filbuf __ARGS((FILE *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 #if !defined(HAVE_SELECT)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 struct pollfd; /* for poll __ARGS */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 extern int poll __ARGS((struct pollfd *, long, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 #ifdef HAVE_MEMSET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 extern void *memset __ARGS((void *, int, size_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 #ifdef HAVE_BCMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 extern int bcmp __ARGS((void *, void *, size_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 #ifdef HAVE_MEMCMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 extern int memcmp __ARGS((const void *, const void *, size_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 #ifdef HAVE_STRPBRK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 extern char *strpbrk __ARGS((const char *, const char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 #ifdef USEBCOPY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 extern void bcopy __ARGS((char *, char *, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 # ifdef USEMEMCPY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 extern void memcpy __ARGS((char *, char *, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 # ifdef USEMEMMOVE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 extern void memmove __ARGS((char *, char *, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 /* used inside of FD_ZERO macro: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 extern void bzero __ARGS((void *, size_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #ifdef HAVE_SETSID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 extern pid_t setsid __ARGS((void));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 #ifdef HAVE_SETPGID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 extern int setpgid __ARGS((pid_t, pid_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 #ifdef HAVE_STRTOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 extern int strtol __ARGS((char *, char **, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #ifdef HAVE_STRFTIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 extern size_t strftime __ARGS((char *, size_t, char *, struct tm *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #ifdef HAVE_STRCASECMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 extern int strcasecmp __ARGS((char *, char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 #ifdef HAVE_STRNCASECMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 extern int strncasecmp __ARGS((char *, char *, size_t));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 #ifndef strdup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 extern char *strdup __ARGS((const char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 extern int atoi __ARGS((char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 extern int atol __ARGS((char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #ifndef USE_SYSTEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 extern int fork __ARGS((void));
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
101 # ifndef __TANDEM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 extern int execvp __ARGS((const char *, const char **));
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
103 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 extern int wait __ARGS((int *)); /* will this break things ...? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 extern int waitpid __ARGS((pid_t, int *, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 extern int toupper __ARGS((int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 extern int tolower __ARGS((int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 extern RETSIGTYPE (*signal __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 #ifdef HAVE_SIGSET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 extern RETSIGTYPE (*sigset __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 #if defined(HAVE_SETJMP_H)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 # ifdef HAVE_SIGSETJMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 extern int sigsetjmp __ARGS((sigjmp_buf, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 extern void siglongjmp __ARGS((sigjmp_buf, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 extern int setjmp __ARGS((jmp_buf));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 extern void longjmp __ARGS((jmp_buf, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 extern int kill __ARGS((int, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
128 #ifndef __TANDEM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 extern int access __ARGS((char *, int));
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
130 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 extern int fsync __ARGS((int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 extern int fchown __ARGS((int, int, int));
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
133 #if defined(HAVE_GETCWD) && !defined(sun) && !defined(__TANDEM)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 extern char *getcwd __ARGS((char *, int));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 extern char *getwd __ARGS((char *));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 #ifndef __alpha /* suggested by Campbell */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 extern int ioctl __ARGS((int, int, ...));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 extern int chmod __ARGS((const char *, mode_t));