123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef __BSD_H__
- #define __BSD_H__
- #ifndef _BSD_EXTENSION
- This header file is an extension to ANSI/POSIX
- #endif
- #if defined(_INC_PREREQS) && !defined(__TYPES_H)
- #include <sys/types.h>
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #pragma lib "/$M/lib/ape/libbsd.a"
- #ifndef _SIZE_T
- #define _SIZE_T
- typedef unsigned long size_t;
- #endif
- /* ifndefs because X11 stuff (ugh) */
- #ifndef bcopy
- extern void bcopy(void*, void*, size_t);
- #endif
- #ifndef bcmp
- extern int bcmp(void*, void*, size_t);
- #endif
- #ifndef bzero
- extern void bzero(void*, size_t);
- #endif
- extern int ffs(unsigned int);
- extern void bhappy(void*);
- extern int rresvport(int*);
- extern int rcmd(char**, int, char*, char*, char*, int*);
- extern char* strdup(char*);
- extern int strcasecmp(char*, char*);
- extern int putenv(char*);
- extern int strncasecmp(char*, char*,int);
- extern void* memccpy(void*, void*, int, size_t);
- extern int getopt(int, char**, char*);
- extern int opterr;
- extern int optind;
- extern int optopt;
- extern char *optarg;
- extern char *mktemp(char *);
- extern char *sys_errlist[];
- extern int sys_nerr;
- #ifdef __cplusplus
- }
- #endif
- #endif /* !__BSD_H__ */
|