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