comparison src/osdef2.h.in @ 7722:c4f8b1d48f20 v7.4.1159

commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 23 22:46:10 2016 +0100 patch 7.4.1159 Problem: Automatically generated function prototypes use __ARGS. Solution: Remove __ARGS from osdef.sh.
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jan 2016 23:00:05 +0100
parents 17b9587ff6d5
children 9f3fd7937957
comparison
equal deleted inserted replaced
7721:da1c7c4c6d32 7722:c4f8b1d48f20
1 /* 1 /*
2 * osdef2.h.in - See osdef1.h.in for a description. 2 * osdef2.h.in - See osdef1.h.in for a description.
3 */ 3 */
4 4
5 extern int remove __ARGS((const char *)); 5 extern int remove(const char *);
6 extern int rename __ARGS((const char *, const char *)); 6 extern int rename(const char *, const char *);
7 extern int free __ARGS((char *)); 7 extern int free(char *);
8 extern char *malloc __ARGS((unsigned int)); 8 extern char *malloc(unsigned int);
9 extern char *realloc __ARGS((char *, int)); 9 extern char *realloc(char *, int);
10 extern char *getenv __ARGS((char *)); 10 extern char *getenv(char *);
11 extern int setenv __ARGS((char *, char *, int)); 11 extern int setenv(char *, char *, int);
12 extern int putenv __ARGS((const char *)); 12 extern int putenv(const char *);
13 13
14 #ifndef __TANDEM 14 #ifndef __TANDEM
15 extern int gethostname __ARGS((char *, int)); 15 extern int gethostname(char *, int);
16 #endif 16 #endif
17 extern void perror __ARGS((char *)); 17 extern void perror(char *);
18 18
19 #ifndef __TANDEM 19 #ifndef __TANDEM
20 extern int sleep __ARGS((int)); 20 extern int sleep(int);
21 #endif 21 #endif
22 extern int usleep __ARGS((unsigned int)); 22 extern int usleep(unsigned int);
23 extern unsigned int alarm __ARGS((unsigned int)); 23 extern unsigned int alarm(unsigned int);
24 #ifndef __TANDEM 24 #ifndef __TANDEM
25 extern int chdir __ARGS((char *)); 25 extern int chdir(char *);
26 #endif 26 #endif
27 extern int fchdir __ARGS((int)); 27 extern int fchdir(int);
28 #ifndef stat /* could be redefined to stat64() */ 28 #ifndef stat /* could be redefined to stat64() */
29 extern int stat __ARGS((const char *, struct stat *)); 29 extern int stat(const char *, struct stat *);
30 #endif 30 #endif
31 #ifndef lstat /* could be redefined to lstat64() */ 31 #ifndef lstat /* could be redefined to lstat64() */
32 extern int lstat __ARGS((const char *, struct stat *)); 32 extern int lstat(const char *, struct stat *);
33 #endif 33 #endif
34 extern int fstat __ARGS((int, struct stat *)); 34 extern int fstat(int, struct stat *);
35 extern int open __ARGS((const char *, int, ...)); 35 extern int open(const char *, int, ...);
36 extern int close __ARGS((int)); 36 extern int close(int);
37 #ifndef __TANDEM 37 #ifndef __TANDEM
38 extern int read __ARGS((int, char *, size_t)); 38 extern int read(int, char *, size_t);
39 extern int write __ARGS((int, char *, size_t)); 39 extern int write(int, char *, size_t);
40 #endif 40 #endif
41 extern int pipe __ARGS((int *)); 41 extern int pipe(int *);
42 extern off_t lseek __ARGS((int, off_t, int)); 42 extern off_t lseek(int, off_t, int);
43 extern void sync __ARGS((void)); 43 extern void sync(void);
44 extern uid_t getuid __ARGS((void)); 44 extern uid_t getuid(void);
45 extern gid_t getgid __ARGS((void)); 45 extern gid_t getgid(void);
46 extern void qsort __ARGS((void *, size_t, size_t, int (*)(const void *, const void *))); 46 extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
47 47
48 extern int isatty __ARGS((int)); 48 extern int isatty(int);
49 extern int getpid __ARGS((void)); 49 extern int getpid(void);
50 extern int dup __ARGS((int)); 50 extern int dup(int);
51 extern int unlink __ARGS((const char *)); 51 extern int unlink(const char *);
52 extern int link __ARGS((const char *, const char *)); 52 extern int link(const char *, const char *);
53 extern int mkdir __ARGS((const char *, mode_t)); 53 extern int mkdir(const char *, mode_t);
54 extern int rmdir __ARGS((const char *)); 54 extern int rmdir(const char *);
55 55
56 extern int tgetent __ARGS((char *, char *)); 56 extern int tgetent(char *, char *);
57 extern int tgetnum __ARGS((char *)); 57 extern int tgetnum(char *);
58 extern int tgetflag __ARGS((char *)); 58 extern int tgetflag(char *);
59 extern char *tgoto __ARGS((char *, int, int)); 59 extern char *tgoto(char *, int, int);
60 extern int tputs __ARGS((char *, int, int (*)(int))); 60 extern int tputs(char *, int, int (*)(int));
61 61
62 #ifdef HAVE_TERMIOS_H 62 #ifdef HAVE_TERMIOS_H
63 struct termios; /* for tcgetattr __ARGS */ 63 struct termios; /* for tcgetattr() */
64 extern int tcgetattr __ARGS((int, struct termios *)); 64 extern int tcgetattr(int, struct termios *);
65 extern int tcsetattr __ARGS((int, int, const struct termios *)); 65 extern int tcsetattr(int, int, const struct termios *);
66 #endif 66 #endif
67 67
68 #ifdef HAVE_SYS_STATFS_H 68 #ifdef HAVE_SYS_STATFS_H
69 struct statfs; /* for fstatfs __ARGS */ 69 struct statfs; /* for fstatfs() */
70 extern int fstatfs __ARGS((int, struct statfs *, int, int)); 70 extern int fstatfs(int, struct statfs *, int, int);
71 #endif 71 #endif
72 72
73 #ifdef HAVE_GETTIMEOFDAY 73 #ifdef HAVE_GETTIMEOFDAY
74 struct timeval; /* for gettimeofday __ARGS */ 74 struct timeval; /* for gettimeofday() */
75 struct timezone; /* for gettimeofday __ARGS */ 75 struct timezone; /* for gettimeofday() */
76 extern int gettimeofday __ARGS((struct timeval *tp, struct timezone *tzp)); 76 extern int gettimeofday(struct timeval *tp, struct timezone *tzp);
77 extern time_t time __ARGS((time_t *)); 77 extern time_t time(time_t *);
78 #endif 78 #endif
79 79
80 #ifdef HAVE_GETPWNAM 80 #ifdef HAVE_GETPWNAM
81 struct passwd; /* for getpwnam __ARGS */ 81 struct passwd; /* for getpwnam() */
82 extern struct passwd *getpwnam __ARGS((const char *)); 82 extern struct passwd *getpwnam(const char *);
83 #endif 83 #endif
84 84
85 #ifdef USE_TMPNAM 85 #ifdef USE_TMPNAM
86 extern char *tmpnam __ARGS((char *)); 86 extern char *tmpnam(char *);
87 #else 87 #else
88 extern char *mktemp __ARGS((char *)); 88 extern char *mktemp(char *);
89 #endif 89 #endif
90 90
91 #ifdef ISC 91 #ifdef ISC
92 extern int _Xmblen __ARGS((char const *, size_t)); 92 extern int _Xmblen(char const *, size_t);
93 #else 93 #else
94 /* This is different from the header but matches mblen() */ 94 /* This is different from the header but matches mblen() */
95 extern int _Xmblen __ARGS((char *, size_t)); 95 extern int _Xmblen(char *, size_t);
96 #endif 96 #endif