HTCache.h | HTCache.h | |||
---|---|---|---|---|
skipping to change at line 287 | skipping to change at line 287 | |||
In case we received a "304 Not Modified" response then we do | In case we received a "304 Not Modified" response then we do | |||
not have to tough the body but must merge the metainformation with the prev ious | not have to tough the body but must merge the metainformation with the prev ious | |||
version. Therefore we need a special metainformation update function. | version. Therefore we need a special metainformation update function. | |||
*/ | */ | |||
extern BOOL HTCache_updateMeta (HTCache * cache, HTRequest * request, | extern BOOL HTCache_updateMeta (HTCache * cache, HTRequest * request, | |||
HTResponse * response); | HTResponse * response); | |||
/* | /* | |||
Clear a cache entry | ||||
*/ | ||||
extern BOOL HTCache_resetMeta (HTCache * cache, HTRequest * request, | ||||
HTResponse * response); | ||||
/* | ||||
( | ( | |||
Check Cached Entry | Check Cached Entry | |||
) | ) | |||
After we get a response back, we should check whether we can still cache | After we get a response back, we should check whether we can still cache | |||
an entry and/or we should add an entry for a resource that has just been | an entry and/or we should add an entry for a resource that has just been | |||
created so that we can remember the etag and other things. The latter allow s | created so that we can remember the etag and other things. The latter allow s | |||
us to guarantee that we don't loose data due to the lost update problem. | us to guarantee that we don't loose data due to the lost update problem. | |||
*/ | */ | |||
skipping to change at line 425 | skipping to change at line 433 | |||
extern BOOL HTCache_hasLock (HTCache * cache); | extern BOOL HTCache_hasLock (HTCache * cache); | |||
extern BOOL HTCache_releaseLock (HTCache * cache); | extern BOOL HTCache_releaseLock (HTCache * cache); | |||
/* | /* | |||
*/ | */ | |||
#endif | #endif | |||
/* | /* | |||
@(#) $Id: HTCache.html,v 2.24 2000/06/19 13:43:33 kahan Exp $ | @(#) $Id: HTCache.html,v 2.25 2001/08/30 13:41:03 kahan Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 9 lines changed or added | |||
HTError.h | HTError.h | |||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
HTERR_REAUTH, /* 418 */ | HTERR_REAUTH, /* 418 */ | |||
HTERR_PROXY_REAUTH, /* 419 */ | HTERR_PROXY_REAUTH, /* 419 */ | |||
HTERR_INTERNAL, /* 500 */ | HTERR_INTERNAL, /* 500 */ | |||
HTERR_NOT_IMPLEMENTED, /* 501 */ | HTERR_NOT_IMPLEMENTED, /* 501 */ | |||
HTERR_BAD_GATE, /* 502 */ | HTERR_BAD_GATE, /* 502 */ | |||
HTERR_DOWN, /* 503 */ | HTERR_DOWN, /* 503 */ | |||
HTERR_GATE_TIMEOUT, /* 504 */ | HTERR_GATE_TIMEOUT, /* 504 */ | |||
HTERR_BAD_VERSION, /* 505 */ | HTERR_BAD_VERSION, /* 505 */ | |||
HTERR_NO_PARTIAL_UPDATE, /* 506 */ | HTERR_NO_PARTIAL_UPDATE, /* 506 */ | |||
#ifdef HT_DAV | ||||
/* WebDAV error codes */ | ||||
HTERR_UNPROCESSABLE, /* 422 */ | ||||
HTERR_LOCKED, /* 423 */ | ||||
HTERR_FAILED_DEPENDENCY, /* 424 */ | ||||
HTERR_INSUFFICIENT_STORAGE, /* 507 */ | ||||
#endif | ||||
/* Cache warnings */ | /* Cache warnings */ | |||
HTERR_STALE, /* 10 */ | HTERR_STALE, /* 10 */ | |||
HTERR_REVALIDATION_FAILED, /* 11 */ | HTERR_REVALIDATION_FAILED, /* 11 */ | |||
HTERR_DISCONNECTED_CACHE, /* 12 */ | HTERR_DISCONNECTED_CACHE, /* 12 */ | |||
HTERR_HEURISTIC_EXPIRATION, /* 13 */ | HTERR_HEURISTIC_EXPIRATION, /* 13 */ | |||
HTERR_TRANSFORMED, /* 14 */ | HTERR_TRANSFORMED, /* 14 */ | |||
HTERR_CACHE, /* 99 */ | HTERR_CACHE, /* 99 */ | |||
/* Put all non-HTTP status codes after this */ | /* Put all non-HTTP status codes after this */ | |||
HTERR_NO_REMOTE_HOST, | HTERR_NO_REMOTE_HOST, | |||
skipping to change at line 349 | skipping to change at line 357 | |||
extern const char * HTError_location (HTError * info); | extern const char * HTError_location (HTError * info); | |||
/* | /* | |||
*/ | */ | |||
#endif /* HTERROR_H */ | #endif /* HTERROR_H */ | |||
/* | /* | |||
@(#) $Id: HTError.html,v 2.50 1999/04/01 19:35:39 frystyk Exp $ | @(#) $Id: HTError.html,v 2.52 2002/06/04 15:14:11 kirschpi Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 9 lines changed or added | |||
HTMethod.h | HTMethod.h | |||
---|---|---|---|---|
skipping to change at line 47 | skipping to change at line 48 | |||
METHOD_INVALID = 0x0, | METHOD_INVALID = 0x0, | |||
METHOD_GET = 0x1, | METHOD_GET = 0x1, | |||
METHOD_HEAD = 0x2, | METHOD_HEAD = 0x2, | |||
METHOD_POST = 0x4, | METHOD_POST = 0x4, | |||
METHOD_PUT = 0x8, | METHOD_PUT = 0x8, | |||
METHOD_PATCH = 0x10, | METHOD_PATCH = 0x10, | |||
METHOD_DELETE = 0x20, | METHOD_DELETE = 0x20, | |||
METHOD_TRACE = 0x40, | METHOD_TRACE = 0x40, | |||
METHOD_OPTIONS = 0x80, | METHOD_OPTIONS = 0x80, | |||
METHOD_LINK = 0x100, | METHOD_LINK = 0x100, | |||
#ifdef HT_DAV | ||||
METHOD_LOCK = 0x400, /* WebDAV Methods */ | ||||
METHOD_UNLOCK = 0x800, | ||||
METHOD_PROPFIND = 0x1000, | ||||
METHOD_PROPPATCH = 0x2000, | ||||
METHOD_MKCOL = 0x4000, | ||||
METHOD_COPY = 0x8000, | ||||
METHOD_MOVE = 0x10000, | ||||
#endif | ||||
#ifdef HT_EXT | ||||
METHOD_EXT_0 = 0x20000, /* Extension methods */ | ||||
METHOD_EXT_1 = 0x40000, | ||||
METHOD_EXT_2 = 0x80000, | ||||
METHOD_EXT_3 = 0x100000, | ||||
METHOD_EXT_4 = 0x200000, | ||||
METHOD_EXT_5 = 0x400000, | ||||
METHOD_EXT_6 = 0x800000, | ||||
#endif | ||||
METHOD_UNLINK = 0x200 | METHOD_UNLINK = 0x200 | |||
} HTMethod; | } HTMethod; | |||
/* | /* | |||
( | ( | |||
Get Method Enumeration | Get Method Enumeration | |||
) | ) | |||
Gives the enumeration value of the method as a function of the (char *) nam e. | Gives the enumeration value of the method as a function of the (char *) nam e. | |||
*/ | */ | |||
skipping to change at line 98 | skipping to change at line 121 | |||
*/ | */ | |||
#define HTMethod_addMeta(me) ((me) & (METHOD_TRACE | METHOD_OPTIONS)) | #define HTMethod_addMeta(me) ((me) & (METHOD_TRACE | METHOD_OPTIONS)) | |||
/* | /* | |||
( | ( | |||
Does a Method include Entity? | Does a Method include Entity? | |||
) | ) | |||
Does a method include an entity to be sent from the client to the server? | Does a method include an entity to be sent from the client to the server? | |||
If not using WebDAV functions, neither extension methods, the | ||||
HTMethod_hasEntity is not changed, because a macro is much more performant | ||||
than a function. The function is interesting only when using WebDAV (many | ||||
methods) or extension methods (in this case, a dynamic structure is | ||||
needed). | ||||
*/ | */ | |||
#define HTMethod_hasEntity(me) ((me) & (METHOD_PUT | METHOD_POST)) | extern BOOL HTMethod_hasEntity(HTMethod me); | |||
/* | /* | |||
( | ||||
Extension Methods | ||||
) | ||||
These methods have been introduced in Libwww for extension purposes. | ||||
Through these methods, application may register new methods, even libwww | ||||
unknown methods, and use them. It's recomended for applications that need | ||||
only a few new methods, that aren't yet in the libwww. The application shou | ||||
ld | ||||
register the desired methos, an before finish, it must unregister these | ||||
methods. | ||||
*/ | ||||
extern BOOL HTMethod_setExtensionMethod (HTMethod method, const char * name | ||||
, BOOL hasEntity); | ||||
extern BOOL HTMethod_deleteExtensionMethod (HTMethod method); | ||||
/* | ||||
*/ | */ | |||
#endif /* HTMETHOD_H */ | #endif /* HTMETHOD_H */ | |||
/* | /* | |||
@(#) $Id: HTMethod.html,v 2.16 1998/05/14 02:10:45 frystyk Exp $ | @(#) $Id: HTMethod.html,v 2.20 2002/06/04 15:14:11 kirschpi Exp $ | |||
*/ | */ | |||
End of changes. 5 change blocks. | ||||
2 lines changed or deleted | 49 lines changed or added | |||
HTReq.h | HTReq.h | |||
---|---|---|---|---|
skipping to change at line 1212 | skipping to change at line 1212 | |||
the Request object on deletion. This is normally handled automatically by | the Request object on deletion. This is normally handled automatically by | |||
the proxy and gateway module | the proxy and gateway module | |||
*/ | */ | |||
extern BOOL HTRequest_setProxy (HTRequest * request, const char * proxy) ; | extern BOOL HTRequest_setProxy (HTRequest * request, const char * proxy) ; | |||
extern char * HTRequest_proxy (HTRequest * request); | extern char * HTRequest_proxy (HTRequest * request); | |||
extern BOOL HTRequest_deleteProxy (HTRequest * request); | extern BOOL HTRequest_deleteProxy (HTRequest * request); | |||
/* | /* | |||
. | . | |||
Message Body Manipulation | ||||
. | ||||
An application may use these functions to set and manipulate the request | ||||
message body. This message body is specially indicate for methods that use | ||||
small XML message bodies. Once the application defines it, this message bod | ||||
y | ||||
will be send just after the headers. It does not use | ||||
"Expect: 100-continue" header, and the application | ||||
should not try to use both. It's important to remark that | ||||
"Expect: 100-continue" header is a very importante feature defined in HTTP. | ||||
It's prevents that, for example, the server must read many unnecessary byte | ||||
s | ||||
from request body. Using "Expect: 100-continue" header, your application | ||||
safes time and network (see | ||||
RFC2616, section 8.2.3). | ||||
Please, if possible, use always HTRequest Entity and entity callback, leave | ||||
this only for small XML bodies in extension methods (see | ||||
HTMethod), and when using it, be very | ||||
careful! | ||||
When using a message body, the application may define its length and | ||||
format. If the message body is set and its length is also set and it greate | ||||
r | ||||
than 0, a Content-Lenght header will be added to the request. Similarly, if | ||||
the message body and its type are set, a Content-Type header will be added | ||||
to the request too. Otherwise, those headers will not be included. | ||||
Note: The caller should free the string returned by | ||||
HTRequest_messageBody function! | ||||
*/ | ||||
extern BOOL HTRequest_setMessageBody (HTRequest * request, const char * bod | ||||
y); | ||||
extern BOOL HTRequest_deleteMessageBody (HTRequest * request); | ||||
extern char * HTRequest_messageBody (HTRequest * request); | ||||
extern BOOL HTRequest_setMessageBodyLength (HTRequest * request, long int l | ||||
ength); | ||||
extern long int HTRequest_messageBodyLength (HTRequest * request); | ||||
extern BOOL HTRequest_setMessageBodyFormat (HTRequest * request, HTFormat f | ||||
ormat); | ||||
extern HTFormat HTRequest_messageBodyFormat (HTRequest * request); | ||||
/* | ||||
. | ||||
Bytes Read or Written in a Request | Bytes Read or Written in a Request | |||
. | . | |||
This function returns the bytes read in the current request. For a deeper | This function returns the bytes read in the current request. For a deeper | |||
description of what the current request is, please read the user's guide. | description of what the current request is, please read the user's guide. | |||
This function can be used in for example the HTAlert | This function can be used in for example the HTAlert | |||
module to give the number of bytes read or written in a progress message. | module to give the number of bytes read or written in a progress message. | |||
*/ | */ | |||
extern long HTRequest_bodyRead (HTRequest * request); | extern long HTRequest_bodyRead (HTRequest * request); | |||
skipping to change at line 1240 | skipping to change at line 1282 | |||
extern long HTRequest_bytesRead (HTRequest * request); | extern long HTRequest_bytesRead (HTRequest * request); | |||
extern long HTRequest_bytesWritten (HTRequest * request); | extern long HTRequest_bytesWritten (HTRequest * request); | |||
/* | /* | |||
*/ | */ | |||
#endif /* HTREQ_H */ | #endif /* HTREQ_H */ | |||
/* | /* | |||
@(#) $Id: HTReq.html,v 2.68 2000/07/12 10:44:41 kahan Exp $ | @(#) $Id: HTReq.html,v 2.72 2002/06/04 15:14:11 kirschpi Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 49 lines changed or added | |||
HTReqMan.h | HTReqMan.h | |||
---|---|---|---|---|
skipping to change at line 63 | skipping to change at line 63 | |||
time_t date; /* Time stamp when the request was issued */ | time_t date; /* Time stamp when the request was issued */ | |||
HTMethod method; | HTMethod method; | |||
BOOL flush; /* Should we flush immediatel y */ | BOOL flush; /* Should we flush immediatel y */ | |||
HTPriority priority; /* Priority for this request */ | HTPriority priority; /* Priority for this request */ | |||
/* | /* | |||
( | ( | |||
Message body | ||||
) | ||||
A request message body indicated for XML bodies. It is used for extension | ||||
methods. See HTReq.html for details. | ||||
*/ | ||||
#ifdef HT_EXT | ||||
char * messageBody; | ||||
long int messageBodyLength; | ||||
HTFormat messageBodyFormat; | ||||
#endif | ||||
/* | ||||
( | ||||
User Profile | User Profile | |||
) | ) | |||
Each request can be assigned a user profile containing | Each request can be assigned a user profile containing | |||
information about this host and the user issuing the request. | information about this host and the user issuing the request. | |||
*/ | */ | |||
HTUserProfile * userprofile; | HTUserProfile * userprofile; | |||
/* | /* | |||
skipping to change at line 423 | skipping to change at line 438 | |||
/* | /* | |||
End of Declaration | End of Declaration | |||
*/ | */ | |||
#endif /* HTREQMAN_H */ | #endif /* HTREQMAN_H */ | |||
/* | /* | |||
@(#) $Id: HTReqMan.html,v 2.45 2000/02/29 14:23:17 kahan Exp $ | @(#) $Id: HTReqMan.html,v 2.47 2002/06/04 15:14:11 kirschpi Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 16 lines changed or added | |||
HTUtils.h | HTUtils.h | |||
---|---|---|---|---|
skipping to change at line 337 | skipping to change at line 337 | |||
#define HT_URI_TOO_BIG -414 /* Request-URI too long */ | #define HT_URI_TOO_BIG -414 /* Request-URI too long */ | |||
#define HT_UNSUPPORTED -415 /* Unsupported */ | #define HT_UNSUPPORTED -415 /* Unsupported */ | |||
#define HT_BAD_RANGE -416 /* Request Range not satisfiable */ | #define HT_BAD_RANGE -416 /* Request Range not satisfiable */ | |||
#define HT_EXPECTATION_FAILED -417 /* Expectation Failed */ | #define HT_EXPECTATION_FAILED -417 /* Expectation Failed */ | |||
#define HT_REAUTH -418 /* Reauthentication required */ | #define HT_REAUTH -418 /* Reauthentication required */ | |||
#define HT_PROXY_REAUTH -419 /* Proxy Reauthentication required */ | #define HT_PROXY_REAUTH -419 /* Proxy Reauthentication required */ | |||
#define HT_RETRY -503 /* If service isn't available */ | #define HT_RETRY -503 /* If service isn't available */ | |||
#define HT_BAD_VERSION -505 /* Bad protocol version */ | #define HT_BAD_VERSION -505 /* Bad protocol version */ | |||
#ifdef HT_DAV /* WebDAV Status codes */ | ||||
#define HT_PROCESSING 102 /* Processing */ | ||||
#define HT_MULTI_STATUS 207 /* Multi-Status */ | ||||
#define HT_UNPROCESSABLE -422 /* Unprocessable Entity */ | ||||
#define HT_LOCKED -423 /* Locked */ | ||||
#define HT_FAILED_DEPENDENCY -424 /* Failed Dependency */ | ||||
#define HT_INSUFFICIENT_STORAGE -507 /* Insufficient Storage */ | ||||
#endif | ||||
#define HT_INTERNAL -900 /* Weird -- should never happen. */ | #define HT_INTERNAL -900 /* Weird -- should never happen. */ | |||
#define HT_WOULD_BLOCK -901 /* If we are in a select */ | #define HT_WOULD_BLOCK -901 /* If we are in a select */ | |||
#define HT_INTERRUPTED -902 /* Note the negative value! */ | #define HT_INTERRUPTED -902 /* Note the negative value! */ | |||
#define HT_PAUSE -903 /* If we want to pause a stream */ | #define HT_PAUSE -903 /* If we want to pause a stream */ | |||
#define HT_RECOVER_PIPE -904 /* Recover pipe line */ | #define HT_RECOVER_PIPE -904 /* Recover pipe line */ | |||
#define HT_TIMEOUT -905 /* Connection timeout */ | #define HT_TIMEOUT -905 /* Connection timeout */ | |||
#define HT_NO_HOST -906 /* Can't locate host */ | #define HT_NO_HOST -906 /* Can't locate host */ | |||
/* | /* | |||
. | . | |||
skipping to change at line 403 | skipping to change at line 412 | |||
#include "HTMemory.h" | #include "HTMemory.h" | |||
/* | /* | |||
*/ | */ | |||
#endif /* HT_UTILS.h */ | #endif /* HT_UTILS.h */ | |||
/* | /* | |||
@(#) $Id: HTUtils.html,v 2.92 2000/01/06 10:48:50 kahan Exp $ | @(#) $Id: HTUtils.html,v 2.94 2002/06/04 15:14:11 kirschpi Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 10 lines changed or added | |||
HTXML.h | HTXML.h | |||
---|---|---|---|---|
skipping to change at line 90 | skipping to change at line 90 | |||
extern BOOL HTXMLCallback_registerNew (HTXMLCallback_new *, void * context) ; | extern BOOL HTXMLCallback_registerNew (HTXMLCallback_new *, void * context) ; | |||
/* | /* | |||
. | . | |||
XML Expat Stream to Libwww Structured Stream | XML Expat Stream to Libwww Structured Stream | |||
. | . | |||
This is a stream that converts from the expat stream to a | This is a stream that converts from the expat stream to a | |||
libwww structured stream. Again, the application | libwww structured stream. Again, the application | |||
can | can | |||
*/ | ||||
#ifdef HT_STRUCT_XML_STREAM | #ifdef HT_STRUCT_XML_STREAM | |||
extern BOOL HTXMLStructured_setHandlers( | extern BOOL HTXMLStructured_setHandlers( | |||
HTStream * me, | HTStream * me, | |||
XML_StartElementHandler start, | XML_StartElementHandler start, | |||
XML_EndElementHandler end, | XML_EndElementHandler end, | |||
XML_CharacterDataHandler char_data, | XML_CharacterDataHandler char_data, | |||
XML_DefaultHandler def_handler); | XML_DefaultHandler def_handler); | |||
extern BOOL HTXMLStructured_setUserData (HTStream * me, void * user_data); | extern BOOL HTXMLStructured_setUserData (HTStream * me, void * user_data); | |||
extern HTStream * HTXMLStructured_new (const SGML_dtd * dtd, HTStructured * | extern HTStream * HTXMLStructured_new (const SGML_dtd * dtd, HTStructured * | |||
starget); | starget); | |||
#endif | #endif | |||
/* | /* | |||
*/ | */ | |||
#endif | #endif | |||
/* | /* | |||
@(#) $Id: HTXML.html,v 2.5 2000/12/19 08:53:43 kahan Exp $ | @(#) $Id: HTXML.html,v 2.6 2001/08/30 11:36:41 kahan Exp $ | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
wwwconf.h | wwwconf.h | |||
---|---|---|---|---|
skipping to change at line 84 | skipping to change at line 84 | |||
/* Define to enable direct WAIS access. */ | /* Define to enable direct WAIS access. */ | |||
/* #undef HT_DIRECT_WAIS */ | /* #undef HT_DIRECT_WAIS */ | |||
/* Define to enable mysql access. */ | /* Define to enable mysql access. */ | |||
/* #undef HT_MYSQL */ | /* #undef HT_MYSQL */ | |||
/* Define to enable MD5 for HTTP access authentication. */ | /* Define to enable MD5 for HTTP access authentication. */ | |||
#define HT_MD5 1 | #define HT_MD5 1 | |||
/* Define to enable WebDAV protocol. */ | ||||
/* #undef HT_DAV */ | ||||
/* Define to enable extension methods. */ | ||||
/* #undef HT_EXT */ | ||||
/* Define to enable expat XML parser. */ | /* Define to enable expat XML parser. */ | |||
#define HT_EXPAT 1 | #define HT_EXPAT 1 | |||
/* Define to enable Zlib compression / decompression support. */ | /* Define to enable Zlib compression / decompression support. */ | |||
#define HT_ZLIB 1 | #define HT_ZLIB 1 | |||
/* Define to enable POSIX RegEx support. */ | /* Define to enable POSIX RegEx support. */ | |||
/* #undef HT_POSIX_REGEX */ | /* #undef HT_POSIX_REGEX */ | |||
/* Define to enable support for enabling a rules file w/o user interaction. */ | /* Define to enable support for enabling a rules file w/o user interaction. */ | |||
skipping to change at line 150 | skipping to change at line 156 | |||
/* Define if getlogin_r returns an integer */ | /* Define if getlogin_r returns an integer */ | |||
/* #undef GETLOGIN_R_RETURNS_INT */ | /* #undef GETLOGIN_R_RETURNS_INT */ | |||
/* Define if getlogin_r returns a pointer */ | /* Define if getlogin_r returns a pointer */ | |||
/* #undef GETLOGIN_R_RETURNS_POINTER */ | /* #undef GETLOGIN_R_RETURNS_POINTER */ | |||
/* Define to be the package name. */ | /* Define to be the package name. */ | |||
#define W3C_PACKAGE "w3c-libwww" | #define W3C_PACKAGE "w3c-libwww" | |||
/* Define to be the version. */ | /* Define to be the version. */ | |||
#define W3C_VERSION "5.3.2" | #define W3C_VERSION "5.4.0" | |||
/* Define this to be the prefix for cache files. */ | /* Define this to be the prefix for cache files. */ | |||
#define CACHE_FILE_PREFIX "/usr/wsrc/" | #define CACHE_FILE_PREFIX "/usr/wsrc/" | |||
/* Define to disable Nagle's algorithm */ | /* Define to disable Nagle's algorithm */ | |||
#define HT_NO_NAGLE 1 | #define HT_NO_NAGLE 1 | |||
/* Define to disable HTTP/1.1 pipelining */ | /* Define to disable HTTP/1.1 pipelining */ | |||
/* #undef HT_NO_PIPELINING */ | /* #undef HT_NO_PIPELINING */ | |||
skipping to change at line 507 | skipping to change at line 513 | |||
/* Define if you have the nsl library (-lnsl). */ | /* Define if you have the nsl library (-lnsl). */ | |||
/* #undef HAVE_LIBNSL */ | /* #undef HAVE_LIBNSL */ | |||
/* Define if you have the socket library (-lsocket). */ | /* Define if you have the socket library (-lsocket). */ | |||
/* #undef HAVE_LIBSOCKET */ | /* #undef HAVE_LIBSOCKET */ | |||
/* Name of package */ | /* Name of package */ | |||
#define PACKAGE "w3c-libwww" | #define PACKAGE "w3c-libwww" | |||
/* Version number of package */ | /* Version number of package */ | |||
#define VERSION "5.3.2" | #define VERSION "5.4.0" | |||
/* Define this if you have the external variable 'socket_errno'. */ | /* Define this if you have the external variable 'socket_errno'. */ | |||
/* #undef HAVE_SOCKET_ERRNO */ | /* #undef HAVE_SOCKET_ERRNO */ | |||
/* Define this if you have the external variable 'sys_errlist'. */ | /* Define this if you have the external variable 'sys_errlist'. */ | |||
/* #undef HAVE_SYS_ERRLIST */ | /* #undef HAVE_SYS_ERRLIST */ | |||
/* Define this if you have the external variable 'sys_nerr'. */ | /* Define this if you have the external variable 'sys_nerr'. */ | |||
/* #undef HAVE_SYS_NERR */ | /* #undef HAVE_SYS_NERR */ | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 8 lines changed or added | |||
wwwsys.h | wwwsys.h | |||
---|---|---|---|---|
skipping to change at line 319 | skipping to change at line 319 | |||
#else | #else | |||
#define MKDIR(a,b) _mkdir((a)) /* CLB NT has mkdir, but only one arg */ | #define MKDIR(a,b) _mkdir((a)) /* CLB NT has mkdir, but only one arg */ | |||
#endif /* WIN32 */ | #endif /* WIN32 */ | |||
#endif /* WWW_MSWINDOWS */ | #endif /* WWW_MSWINDOWS */ | |||
/* | /* | |||
. | . | |||
Macintosh | Macintosh | |||
. | . | |||
( | ||||
mingw32 - Minimalist GNU for Windows | ||||
) | ||||
A bit like Cygwin, except it uses the native Windows API, which means | ||||
the programs do not need the huge Cygwin DLL to run. | ||||
Patch by Richard Atterer <richard@atterer.net>, October 2001 | ||||
*/ | ||||
#ifdef __MINGW32__ | ||||
#include <winsock2.h> | ||||
#define WWW_MSWINDOWS | ||||
/* #define WWW_WIN_CONSOLE */ | ||||
#define WWW_WIN_WINDOW | ||||
/* #define WWW_WIN_ASYNC */ | ||||
/* #define WWW_WIN_DLL */ | ||||
#ifndef _WINSOCKAPI_ | ||||
#define _WINSOCKAPI_ | ||||
#endif | ||||
#define NETREAD(s,b,l) recv((s),(b),(l),0) | ||||
#define NETWRITE(s,b,l) send((s),(b),(l),0) | ||||
#define NETCLOSE(s) closesocket(s) | ||||
#define IOCTL(s,c,a) ioctlsocket(s,c, (long *) a) | ||||
#define MKDIR(a,b) mkdir(a) | ||||
#define REMOVE(a) remove((a)) | ||||
#define DEFAULT_SUFFIXES "." | ||||
#define SOCKET SOCKET /* WinSocks socket descriptor */ | ||||
#define INVSOC INVALID_SOCKET /* WinSocks invalid socket */ | ||||
#define DESIRED_WINSOCK_VERSION 0x0101 /* we'd like winsock ver 1.1... */ | ||||
#define MINIMUM_WINSOCK_VERSION 0x0101 /* ...but we'll take ver 1.1 :) */ | ||||
#define DIR_SEPARATOR | ||||
#define DIR_SEPARATOR_CHAR '\\' | ||||
#define DIR_SEPARATOR_STR "\\" | ||||
#define socerrno WSAGetLastError() | ||||
#define ERRNO_DONE | ||||
/* Taken from the WIN32 stuff above. */ | ||||
#define EWOULDBLOCK WSAEWOULDBLOCK | ||||
#define EINPROGRESS WSAEINPROGRESS | ||||
#define ECONNREFUSED WSAECONNREFUSED | ||||
#define ETIMEDOUT WSAETIMEDOUT | ||||
#define ENETUNREACH WSAENETUNREACH | ||||
#define EHOSTUNREACH WSAEHOSTUNREACH | ||||
#define EHOSTDOWN WSAEHOSTDOWN | ||||
#define EISCONN WSAEISCONN | ||||
/*#define EINVAL WSAEINVAL*/ | ||||
#define ECONNRESET WSAECONNRESET | ||||
#define ECONNABORTED WSAECONNABORTED | ||||
#define ESHUTDOWN WSAESHUTDOWN | ||||
/* The configure.in script is wrong to default to #define GETGROUPS_T int * | ||||
/ | ||||
#ifdef GETGROUPS_T | ||||
#undef GETGROUPS_T | ||||
#endif | ||||
#define HT_LSTAT stat | ||||
#endif /* __MINGW32__ */ | ||||
/* | ||||
. | ||||
Macintosh | ||||
. | ||||
We have two environments on Macintosh: Codeworrior and MPV. | We have two environments on Macintosh: Codeworrior and MPV. | |||
( | ( | |||
Metrowerks Codewarrior 6 | Metrowerks Codewarrior 6 | |||
) | ) | |||
Metrowerks Codewarrior is one development environment on the Mac. We are | Metrowerks Codewarrior is one development environment on the Mac. We are | |||
using GUSI (1.5.9) by Matthias Neeracher <neeri@iis.ee.ethz.ch> for | using GUSI (1.5.9) by Matthias Neeracher <neeri@iis.ee.ethz.ch> for | |||
our socket lib. You can find more information about the | our socket lib. You can find more information about the | |||
GUSI Library from | GUSI Library from | |||
skipping to change at line 599 | skipping to change at line 672 | |||
normal C storage types. | normal C storage types. | |||
*/ | */ | |||
#ifndef GLOBALREF | #ifndef GLOBALREF | |||
#define GLOBALDEF | #define GLOBALDEF | |||
#define GLOBALREF extern | #define GLOBALREF extern | |||
#endif | #endif | |||
/* | /* | |||
On non-VMS machines STAT should be stat...On VMS machines STAT is a functio | On non-VMS machines STAT should be stat, unless that was overridden | |||
n | somewhere above. On VMS machines STAT is a function that converts | |||
that converts directories and devices so that you can stat them. | directories and devices so that you can stat them. | |||
*/ | */ | |||
#ifdef VMS | #ifdef VMS | |||
typedef unsigned long mode_t; | typedef unsigned long mode_t; | |||
#define HT_STAT HTStat | #define HT_STAT HTStat | |||
#define HT_LSTAT HTStat | #define HT_LSTAT HTStat | |||
#else | #else | |||
#ifndef HT_STAT | ||||
#define HT_STAT stat | #define HT_STAT stat | |||
#endif | ||||
#ifndef HT_LSTAT | ||||
#define HT_LSTAT lstat | #define HT_LSTAT lstat | |||
#endif | ||||
#endif /* non VMS */ | #endif /* non VMS */ | |||
/* | /* | |||
( | ( | |||
Dynamic Memory | Dynamic Memory | |||
) | ) | |||
Replace memory allocation and free C RTL functions with VAXC$xxx_OPT altern atives | Replace memory allocation and free C RTL functions with VAXC$xxx_OPT altern atives | |||
for VAXC (but not DECC) on VMS. This makes a big performance difference. | for VAXC (but not DECC) on VMS. This makes a big performance difference. | |||
(Foteos Macrides). Also have a look at the Dynamic | (Foteos Macrides). Also have a look at the Dynamic | |||
skipping to change at line 1056 | skipping to change at line 1134 | |||
#endif | #endif | |||
#define W3C_DEFAULT_REGEX_FLAGS (REG_EXTENDED | REG_NEWLINE) | #define W3C_DEFAULT_REGEX_FLAGS (REG_EXTENDED | REG_NEWLINE) | |||
#endif | #endif | |||
/* | /* | |||
. | . | |||
Booleans | Booleans | |||
. | . | |||
*/ | */ | |||
#ifndef __MINGW32__ /* has a typedef for BOOLEAN */ | ||||
#ifndef BOOLEAN | #ifndef BOOLEAN | |||
typedef char BOOLEAN; /* Logical value */ | typedef char BOOLEAN; /* Logical value */ | |||
#endif | #endif | |||
#endif | ||||
#ifndef CURSES | #ifndef CURSES | |||
#ifndef TRUE | #ifndef TRUE | |||
#define TRUE (BOOLEAN)1 | #define TRUE (BOOLEAN)1 | |||
#define FALSE (BOOLEAN)0 | #define FALSE (BOOLEAN)0 | |||
#endif | #endif | |||
#endif /* CURSES */ | #endif /* CURSES */ | |||
#if !defined(BOOL) && !defined(WWW_MSWINDOWS) | #if !defined(BOOL) && !defined(WWW_MSWINDOWS) | |||
#define BOOL BOOLEAN | #define BOOL BOOLEAN | |||
skipping to change at line 1085 | skipping to change at line 1165 | |||
/* | /* | |||
. | . | |||
Integers | Integers | |||
. | . | |||
If we don't have these (for some mysterious reason) then define them. This | If we don't have these (for some mysterious reason) then define them. This | |||
should (is?) be handled by the configure script already. | should (is?) be handled by the configure script already. | |||
*/ | */ | |||
/* Richard Atterer | ||||
Disabled - caused problems because mingw32 has typedefs for these. | ||||
They seem useless now. */ | ||||
/* | ||||
#ifndef u_short | #ifndef u_short | |||
#define u_short unsigned short | #define u_short unsigned short | |||
#endif | #endif | |||
#ifndef u_long | #ifndef u_long | |||
#define u_long unsigned long | #define u_long unsigned long | |||
#endif | #endif | |||
*/ | ||||
/* | /* | |||
. | . | |||
NULL Definition | NULL Definition | |||
. | . | |||
*/ | */ | |||
#ifndef NULL | #ifndef NULL | |||
#define NULL ((void *)0) | #define NULL ((void *)0) | |||
#endif | #endif | |||
skipping to change at line 1482 | skipping to change at line 1569 | |||
typedef unsigned long ms_t; | typedef unsigned long ms_t; | |||
/* | /* | |||
*/ | */ | |||
#endif | #endif | |||
/* | /* | |||
@(#) $Id: wwwsys.html,v 2.125 2000/07/11 09:18:38 kahan Exp $ | @(#) $Id: wwwsys.html,v 2.127 2002/06/06 10:46:04 kahan Exp $ | |||
*/ | */ | |||
End of changes. 10 change blocks. | ||||
4 lines changed or deleted | 91 lines changed or added | |||