Mercurial > vim
annotate src/osdef1.h.in @ 9555:9560a5b782ee
commit https://github.com/vim/vim/commit/42ebd066422d73cdb7bda6a1dc828a3dd022dec8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 17 13:35:14 2016 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jul 2016 13:45:05 +0200 |
parents | c4f8b1d48f20 |
children | 37a441352da2 |
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 |
53 #ifdef HAVE_BCMP | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
54 extern int bcmp(void *, void *, size_t); |
7 | 55 #endif |
56 #ifdef HAVE_MEMCMP | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
57 extern int memcmp(const void *, const void *, size_t); |
7 | 58 #endif |
59 #ifdef HAVE_STRPBRK | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
60 extern char *strpbrk(const char *, const char *); |
7 | 61 #endif |
62 #ifdef USEBCOPY | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
63 extern void bcopy(char *, char *, int); |
7 | 64 #else |
65 # ifdef USEMEMCPY | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
66 extern void memcpy(char *, char *, int); |
7 | 67 # else |
68 # ifdef USEMEMMOVE | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
69 extern void memmove(char *, char *, int); |
7 | 70 # endif |
71 # endif | |
72 #endif | |
73 /* 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
|
74 extern void bzero(void *, size_t); |
7 | 75 #ifdef HAVE_SETSID |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
76 extern pid_t setsid(void); |
7 | 77 #endif |
78 #ifdef HAVE_SETPGID | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
79 extern int setpgid(pid_t, pid_t); |
7 | 80 #endif |
81 #ifdef HAVE_STRTOL | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
82 extern int strtol(char *, char **, int); |
7 | 83 #endif |
84 #ifdef HAVE_STRFTIME | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
85 extern size_t strftime(char *, size_t, char *, struct tm *); |
7 | 86 #endif |
87 #ifdef HAVE_STRCASECMP | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
88 extern int strcasecmp(char *, char *); |
7 | 89 #endif |
90 #ifdef HAVE_STRNCASECMP | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
91 extern int strncasecmp(char *, char *, size_t); |
7 | 92 #endif |
93 #ifndef strdup | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
94 extern char *strdup(const char *); |
7 | 95 #endif |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
96 extern int atoi(char *); |
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
97 extern int atol(char *); |
7 | 98 |
99 #ifndef USE_SYSTEM | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
100 extern int fork(void); |
1076 | 101 # ifndef __TANDEM |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
102 extern int execvp(const char *, const char **); |
1076 | 103 # endif |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
104 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
|
105 extern int waitpid(pid_t, int *, int); |
7 | 106 #endif |
107 | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
108 extern int toupper(int); |
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
109 extern int tolower(int); |
7 | 110 |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
111 extern RETSIGTYPE (*signal(int, RETSIGTYPE (*func) SIGPROTOARG)) SIGPROTOARG; |
7 | 112 #ifdef HAVE_SIGSET |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
113 extern RETSIGTYPE (*sigset(int, RETSIGTYPE (*func) SIGPROTOARG)) SIGPROTOARG; |
7 | 114 #endif |
115 | |
116 #if defined(HAVE_SETJMP_H) | |
117 # ifdef HAVE_SIGSETJMP | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
118 extern int sigsetjmp(sigjmp_buf, int); |
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
119 extern void siglongjmp(sigjmp_buf, int); |
7 | 120 # else |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
121 extern int setjmp(jmp_buf); |
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
122 extern void longjmp(jmp_buf, int); |
7 | 123 # endif |
124 #endif | |
125 | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
126 extern int kill(int, int); |
7 | 127 |
1076 | 128 #ifndef __TANDEM |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
129 extern int access(char *, int); |
1076 | 130 #endif |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
131 extern int fsync(int); |
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
132 extern int fchown(int, int, int); |
1076 | 133 #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
|
134 extern char *getcwd(char *, int); |
7 | 135 #else |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
136 extern char *getwd(char *); |
7 | 137 #endif |
138 #ifndef __alpha /* suggested by Campbell */ | |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
139 extern int ioctl(int, int, ...); |
7 | 140 #endif |
7722
c4f8b1d48f20
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents:
2087
diff
changeset
|
141 extern int chmod(const char *, mode_t); |