Merge branch 'vim-with-runtime' into feat/rel-line-numbers
[vim_extended.git] / src / osdef2.h.in
blobf2f97763fc5cf291ed5833a4df44e7ba6b1742ab
1 /*
2 * osdef2.h.in - See osdef1.h.in for a description.
3 */
5 extern int remove __ARGS((const char *));
6 extern int rename __ARGS((const char *, const char *));
7 extern int free __ARGS((char *));
8 extern char *malloc __ARGS((unsigned int));
9 extern char *realloc __ARGS((char *, int));
10 extern char *getenv __ARGS((char *));
11 extern int setenv __ARGS((char *, char *, int));
12 extern int putenv __ARGS((const char *));
14 #ifndef __TANDEM
15 extern int gethostname __ARGS((char *, int));
16 #endif
17 extern void perror __ARGS((char *));
19 #ifndef __TANDEM
20 extern int sleep __ARGS((int));
21 #endif
22 extern int usleep __ARGS((unsigned int));
23 extern unsigned int alarm __ARGS((unsigned int));
24 #ifndef __TANDEM
25 extern int chdir __ARGS((char *));
26 #endif
27 extern int fchdir __ARGS((int));
28 #ifndef stat /* could be redefined to stat64() */
29 extern int stat __ARGS((const char *, struct stat *));
30 #endif
31 #ifndef lstat /* could be redefined to lstat64() */
32 extern int lstat __ARGS((const char *, struct stat *));
33 #endif
34 extern int fstat __ARGS((int, struct stat *));
35 extern int open __ARGS((const char *, int, ...));
36 extern int close __ARGS((int));
37 #ifndef __TANDEM
38 extern int read __ARGS((int, char *, size_t));
39 extern int write __ARGS((int, char *, size_t));
40 #endif
41 extern int pipe __ARGS((int *));
42 extern off_t lseek __ARGS((int, off_t, int));
43 extern void sync __ARGS((void));
44 extern uid_t getuid __ARGS((void));
45 extern gid_t getgid __ARGS((void));
46 extern void qsort __ARGS((void *, size_t, size_t, int (*)(const void *, const void *)));
48 extern int isatty __ARGS((int));
49 extern int getpid __ARGS((void));
50 extern int dup __ARGS((int));
51 extern int unlink __ARGS((const char *));
52 extern int link __ARGS((const char *, const char *));
53 extern int mkdir __ARGS((const char *, mode_t));
54 extern int rmdir __ARGS((const char *));
56 extern int tgetent __ARGS((char *, char *));
57 extern int tgetnum __ARGS((char *));
58 extern int tgetflag __ARGS((char *));
59 extern char *tgoto __ARGS((char *, int, int));
60 extern int tputs __ARGS((char *, int, int (*)(int)));
62 #ifdef HAVE_TERMIOS_H
63 struct termios; /* for tcgetattr __ARGS */
64 extern int tcgetattr __ARGS((int, struct termios *));
65 extern int tcsetattr __ARGS((int, int, const struct termios *));
66 #endif
68 #ifdef HAVE_SYS_STATFS_H
69 struct statfs; /* for fstatfs __ARGS */
70 extern int fstatfs __ARGS((int, struct statfs *, int, int));
71 #endif
73 #ifdef HAVE_GETTIMEOFDAY
74 struct timeval; /* for gettimeofday __ARGS */
75 struct timezone; /* for gettimeofday __ARGS */
76 extern int gettimeofday __ARGS((struct timeval *tp, struct timezone *tzp));
77 extern time_t time __ARGS((time_t *));
78 #endif
80 #ifdef HAVE_GETPWNAM
81 struct passwd; /* for getpwnam __ARGS */
82 extern struct passwd *getpwnam __ARGS((const char *));
83 #endif
85 #ifdef USE_TMPNAM
86 extern char *tmpnam __ARGS((char *));
87 #else
88 extern char *mktemp __ARGS((char *));
89 #endif
91 #ifdef ISC
92 extern int _Xmblen __ARGS((char const *, size_t));
93 #else
94 /* This is different from the header but matches mblen() */
95 extern int _Xmblen __ARGS((char *, size_t));
96 #endif