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