1 /* autoconf cannot fiddle out declarations. Use our homebrewn tools. (jw) */
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
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.
12 * sed cannot always handle so many commands, this is file 1 of 2
15 extern int printf
__ARGS((char *, ...));
16 extern int fprintf
__ARGS((FILE *, char *, ...));
17 extern int sprintf
__ARGS((char *, char *, ...));
18 extern int sscanf
__ARGS((char *, char *, ...));
19 #ifndef fopen /* could be redefined to fopen64() */
20 extern FILE *fopen
__ARGS((const char *, const char *));
22 extern int fclose
__ARGS((FILE *));
23 extern int fseek
__ARGS((FILE *, long, int));
25 extern int fseeko
__ARGS((FILE *, off_t
, int));
27 extern long ftell
__ARGS((FILE *));
29 extern off_t ftello
__ARGS((FILE *));
31 extern void rewind
__ARGS((FILE *));
32 extern int fread
__ARGS((char *, int, int, FILE *));
33 extern int fwrite
__ARGS((char *, int, int, FILE *));
34 extern int fputs
__ARGS((char *, FILE *));
35 #ifndef ferror /* let me say it again: "macros should never have prototypes" */
36 extern int ferror
__ARGS((FILE *));
38 extern int fflush
__ARGS((FILE *));
39 #if defined(sun) || defined(_SEQUENT_)
40 /* used inside of stdio macros getc(), puts(), putchar()... */
41 extern int _flsbuf
__ARGS((int, FILE *));
42 extern int _filbuf
__ARGS((FILE *));
45 #if !defined(HAVE_SELECT)
46 struct pollfd
; /* for poll __ARGS */
47 extern int poll
__ARGS((struct pollfd
*, long, int));
51 extern void *memset
__ARGS((void *, int, size_t));
54 extern int bcmp
__ARGS((void *, void *, size_t));
57 extern int memcmp
__ARGS((const void *, const void *, size_t));
60 extern char *strpbrk
__ARGS((const char *, const char *));
63 extern void bcopy
__ARGS((char *, char *, int));
66 extern void memcpy
__ARGS((char *, char *, int));
69 extern void memmove
__ARGS((char *, char *, int));
73 /* used inside of FD_ZERO macro: */
74 extern void bzero
__ARGS((void *, size_t));
76 extern pid_t setsid
__ARGS((void));
79 extern int setpgid
__ARGS((pid_t
, pid_t
));
82 extern int strtol
__ARGS((char *, char **, int));
85 extern size_t strftime
__ARGS((char *, size_t, char *, struct tm
*));
87 #ifdef HAVE_STRCASECMP
88 extern int strcasecmp
__ARGS((char *, char *));
90 #ifdef HAVE_STRNCASECMP
91 extern int strncasecmp
__ARGS((char *, char *, size_t));
94 extern char *strdup
__ARGS((const char *));
96 extern int atoi
__ARGS((char *));
97 extern int atol
__ARGS((char *));
100 extern int fork
__ARGS((void));
102 extern int execvp
__ARGS((const char *, const char **));
104 extern int wait
__ARGS((int *)); /* will this break things ...? */
105 extern int waitpid
__ARGS((pid_t
, int *, int));
108 extern int toupper
__ARGS((int));
109 extern int tolower
__ARGS((int));
111 extern RETSIGTYPE (*signal
__ARGS((int, RETSIGTYPE (*func
) SIGPROTOARG
))) __ARGS(SIGPROTOARG
);
113 extern RETSIGTYPE (*sigset
__ARGS((int, RETSIGTYPE (*func
) SIGPROTOARG
))) __ARGS(SIGPROTOARG
);
116 #if defined(HAVE_SETJMP_H)
117 # ifdef HAVE_SIGSETJMP
118 extern int sigsetjmp
__ARGS((sigjmp_buf
, int));
119 extern void siglongjmp
__ARGS((sigjmp_buf
, int));
121 extern int setjmp
__ARGS((jmp_buf));
122 extern void longjmp
__ARGS((jmp_buf, int));
126 extern int kill
__ARGS((int, int));
129 extern int access
__ARGS((char *, int));
131 extern int fsync
__ARGS((int));
132 extern int fchown
__ARGS((int, int, int));
133 #if defined(HAVE_GETCWD) && !defined(sun) && !defined(__TANDEM)
134 extern char *getcwd
__ARGS((char *, int));
136 extern char *getwd
__ARGS((char *));
138 #ifndef __alpha /* suggested by Campbell */
139 extern int ioctl
__ARGS((int, int, ...));
141 extern int chmod
__ARGS((const char *, mode_t
));