2006-10-25 05:20:44 -04:00
|
|
|
/*****************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2004-01-13 02:35:28 -05:00
|
|
|
/* Now include the setup.h file from libcurl's private libdir (the source
|
|
|
|
version, but that might include "config.h" from the build dir so we need
|
|
|
|
both of them in the include path), so that we get good in-depth knowledge
|
|
|
|
about the system we're building this on */
|
2007-02-21 21:51:54 -05:00
|
|
|
|
2004-01-13 02:35:28 -05:00
|
|
|
#include "setup.h"
|
2003-03-12 03:54:11 -05:00
|
|
|
|
2003-04-15 09:32:26 -04:00
|
|
|
#include <curl.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2004-05-14 04:40:33 -04:00
|
|
|
#include <stdlib.h>
|
2007-02-16 11:01:19 -05:00
|
|
|
#include <errno.h>
|
2003-04-15 09:32:26 -04:00
|
|
|
|
2004-03-03 05:09:16 -05:00
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
|
/* since so many tests use select(), we can just as well include it here */
|
|
|
|
#include <sys/select.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
/* at least somewhat oldish FreeBSD systems need this for select() */
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2006-10-25 01:59:46 -04:00
|
|
|
#define TEST_ERR_MAJOR_BAD 100
|
|
|
|
#define TEST_ERR_RUNS_FOREVER 99
|
|
|
|
|
2002-12-13 11:22:57 -05:00
|
|
|
extern char *arg2; /* set by first.c to the argv[2] or NULL */
|
2006-09-10 15:01:04 -04:00
|
|
|
|
|
|
|
int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc,
|
|
|
|
struct timeval *tv);
|
|
|
|
|
2004-02-19 07:59:57 -05:00
|
|
|
int test(char *URL); /* the actual test function provided by each individual
|
|
|
|
libXXX.c file */
|