1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Some of Doug Kaufman's changes for the DOS port

This commit is contained in:
Daniel Stenberg 2003-07-05 13:13:49 +00:00
parent 6dd4c13bc0
commit 5b72eb0b03
5 changed files with 27 additions and 12 deletions

View File

@ -99,7 +99,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
char infp_fclose = 0; char infp_fclose = 0;
FILE *outfp; FILE *outfp;
RETSIGTYPE (*sigint)(); RETSIGTYPE (*sigint)();
#if !defined(__EMX__) && !defined(__DJGPP__) #ifdef SIGTSTP
RETSIGTYPE (*sigtstp)(); RETSIGTYPE (*sigtstp)();
#endif #endif
size_t bytes_read; size_t bytes_read;
@ -117,9 +117,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
#endif #endif
sigint = signal(SIGINT, SIG_IGN); sigint = signal(SIGINT, SIG_IGN);
/* 20000318 mgs #ifdef SIGTSTP
* this is needed by the emx system, SIGTSTP is not a supported signal */
#if !defined(__EMX__) && !defined(__DJGPP__)
sigtstp = signal(SIGTSTP, SIG_IGN); sigtstp = signal(SIGTSTP, SIG_IGN);
#endif #endif
@ -181,7 +179,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
#endif #endif
signal(SIGINT, sigint); signal(SIGINT, sigint);
#if !defined(__EMX__) && !defined(__DJGPP__) #ifdef SIGTSTP
signal(SIGTSTP, sigtstp); signal(SIGTSTP, sigtstp);
#endif #endif

View File

@ -145,6 +145,13 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
#define sread(x,y,z) read_s(x,y,z) #define sread(x,y,z) read_s(x,y,z)
#define swrite(x,y,z) write_s(x,y,z) #define swrite(x,y,z) write_s(x,y,z)
#define select(n,r,w,x,t) select_s(n,r,w,x,t) #define select(n,r,w,x,t) select_s(n,r,w,x,t)
#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
#define IOCTL_3_ARGS
#include <tcp.h>
#ifdef word
#undef word
#endif
#else #else
#define sclose(x) close(x) #define sclose(x) close(x)

View File

@ -432,10 +432,10 @@ static void help(void)
" Overrides -n and --netrc-optional\n" " Overrides -n and --netrc-optional\n"
" -U/--proxy-user <user[:password]> Specify Proxy authentication\n" " -U/--proxy-user <user[:password]> Specify Proxy authentication\n"
" -v/--verbose Makes the operation more talkative\n" " -v/--verbose Makes the operation more talkative\n"
#ifdef DJGPP
" Also enables Watt-32 debugging\n"
#endif
" -V/--version Outputs version number then quits"); " -V/--version Outputs version number then quits");
#ifdef __DJGPP__
puts(" --wdebug Turns on WATT-32 debugging under DJGPP");
#endif
puts(" -w/--write-out [format] What to output after completion\n" puts(" -w/--write-out [format] What to output after completion\n"
" -x/--proxy <host[:port]> Use proxy. (Default port is 1080)\n" " -x/--proxy <host[:port]> Use proxy. (Default port is 1080)\n"
" --random-file <file> File to use for reading random data from (SSL)\n" " --random-file <file> File to use for reading random data from (SSL)\n"
@ -1067,6 +1067,9 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{"5m", "ntlm", FALSE}, {"5m", "ntlm", FALSE},
{"5n", "basic", FALSE}, {"5n", "basic", FALSE},
{"5o", "anyauth", FALSE}, {"5o", "anyauth", FALSE},
#ifdef __DJGPP__
{"5p", "wdebug", FALSE},
#endif
{"0", "http1.0", FALSE}, {"0", "http1.0", FALSE},
{"1", "tlsv1", FALSE}, {"1", "tlsv1", FALSE},
{"2", "sslv2", FALSE}, {"2", "sslv2", FALSE},
@ -1311,6 +1314,12 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
config->authtype = CURLAUTH_ANY; config->authtype = CURLAUTH_ANY;
break; break;
#ifdef __DJGPP__
case 'p': /* --wdebug */
dbug_init();
break;
#endif
default: /* the URL! */ default: /* the URL! */
{ {
struct getout *url; struct getout *url;
@ -1723,9 +1732,6 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
cleanarg(nextarg); cleanarg(nextarg);
break; break;
case 'v': case 'v':
#ifdef DJGPP
dbug_init();
#endif
config->conf ^= CONF_VERBOSE; /* talk a lot */ config->conf ^= CONF_VERBOSE; /* talk a lot */
break; break;
case 'V': case 'V':

View File

@ -78,6 +78,10 @@ int fileno( FILE *stream);
#else #else
#ifdef DJGPP #ifdef DJGPP
#include <tcp.h>
#ifdef word
#undef word
#endif
#define DIR_CHAR "/" #define DIR_CHAR "/"
#define DOT_CHAR "_" #define DOT_CHAR "_"
#else #else

View File

@ -1,3 +1,3 @@
#define CURL_NAME "curl" #define CURL_NAME "curl"
#define CURL_VERSION "7.10.6-pre1" #define CURL_VERSION "7.10.6-pre3"
#define CURL_ID CURL_NAME " " CURL_VERSION " (" OS ") " #define CURL_ID CURL_NAME " " CURL_VERSION " (" OS ") "