The code contains several checks regarding these functions, but they are
never actually used in lib/sfio. It is therefore not needed to test their
availability.
main() { printf("cleanup\n"); exit(1); }
}end
-lib bcopy
-lib bzero
-
lib memchr note{ see if memchr is fast }end execute{
#include <sys/types.h>
#include <sys/times.h>
}
}end
-proto bcopy note{ bcopy() has prototype }end compile{
- #include <string.h>
- main()
- { char buf[128];
- bcopy(buf, "abc", 3);
- }
-}end
-
-proto bzero note{ bzero() has prototype }end compile{
- #include <string.h>
- main()
- { char buf[128];
- bzero(buf, 128);
- }
-}end
-
lib poll_fd_1 note{ fd is first arg to poll() }end execute{
#include <poll.h>
_BEGIN_EXTERNS_
#endif /*_hdr_unistd*/
#endif /* WIN32 */
-#if _lib_bcopy && !_proto_bcopy
- extern void bcopy(const void *, void *, size_t);
-#endif
-#if _lib_bzero && !_proto_bzero
- extern void bzero(void *, size_t);
-#endif
-
extern time_t time(time_t *);
extern int waitpid(int, int *, int);
#ifndef WIN32
#define _lib_getpagesize 0 /* getpagesize() in default lib(s) */
#define _tmp_rmfail 1 /* file not removable if still opened */
#define _proto_open 1 /* open() has a vararg prototype */
-#define _proto_bcopy 1 /* bcopy() has prototype */
-#define _proto_bzero 1 /* bzero() has prototype */
#define _lib_strtod 1 /* strtod() in default lib(s) */
#define _lib_locale 1 /* Check for localeconv */
#endif