1/* 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 14#ifndef __TANDEM 15extern int gethostname __ARGS((char *, int)); 16#endif 17extern void perror __ARGS((char *)); 18 19#ifndef __TANDEM 20extern int sleep __ARGS((int)); 21#endif 22extern int usleep __ARGS((unsigned int)); 23extern unsigned int alarm __ARGS((unsigned int)); 24#ifndef __TANDEM 25extern int chdir __ARGS((char *)); 26#endif 27extern int fchdir __ARGS((int)); 28#ifndef stat /* could be redefined to stat64() */ 29extern int stat __ARGS((const char *, struct stat *)); 30#endif 31#ifndef lstat /* could be redefined to lstat64() */ 32extern int lstat __ARGS((const char *, struct stat *)); 33#endif 34extern int fstat __ARGS((int, struct stat *)); 35extern int open __ARGS((const char *, int, ...)); 36extern int close __ARGS((int)); 37#ifndef __TANDEM 38extern int read __ARGS((int, char *, size_t)); 39extern int write __ARGS((int, char *, size_t)); 40#endif 41extern int pipe __ARGS((int *)); 42extern off_t lseek __ARGS((int, off_t, int)); 43extern void sync __ARGS((void)); 44extern uid_t getuid __ARGS((void)); 45extern gid_t getgid __ARGS((void)); 46extern void qsort __ARGS((void *, size_t, size_t, int (*)(const void *, const void *))); 47 48extern int isatty __ARGS((int)); 49extern int getpid __ARGS((void)); 50extern int dup __ARGS((int)); 51extern int unlink __ARGS((const char *)); 52extern int link __ARGS((const char *, const char *)); 53extern int mkdir __ARGS((const char *, mode_t)); 54extern int rmdir __ARGS((const char *)); 55 56extern int tgetent __ARGS((char *, char *)); 57extern int tgetnum __ARGS((char *)); 58extern int tgetflag __ARGS((char *)); 59extern char *tgoto __ARGS((char *, int, int)); 60extern int tputs __ARGS((char *, int, int (*)(int))); 61 62#ifdef HAVE_TERMIOS_H 63struct termios; /* for tcgetattr __ARGS */ 64extern int tcgetattr __ARGS((int, struct termios *)); 65extern int tcsetattr __ARGS((int, int, const struct termios *)); 66#endif 67 68#ifdef HAVE_SYS_STATFS_H 69struct statfs; /* for fstatfs __ARGS */ 70extern int fstatfs __ARGS((int, struct statfs *, int, int)); 71#endif 72 73#ifdef HAVE_GETTIMEOFDAY 74struct timeval; /* for gettimeofday __ARGS */ 75struct timezone; /* for gettimeofday __ARGS */ 76extern int gettimeofday __ARGS((struct timeval *tp, struct timezone *tzp)); 77extern time_t time __ARGS((time_t *)); 78#endif 79 80#ifdef HAVE_GETPWNAM 81struct passwd; /* for getpwnam __ARGS */ 82extern struct passwd *getpwnam __ARGS((const char *)); 83#endif 84 85#ifdef USE_TMPNAM 86extern char *tmpnam __ARGS((char *)); 87#else 88extern char *mktemp __ARGS((char *)); 89#endif 90 91#ifdef ISC 92extern int _Xmblen __ARGS((char const *, size_t)); 93#else 94 /* This is different from the header but matches mblen() */ 95extern int _Xmblen __ARGS((char *, size_t)); 96#endif 97