From: mikelima (mikelima@tiscalinet.it)
Date: Mon Oct 09 2000 - 07:45:02 EDT
Hello everybody, the nanohttp subsystem is not functional as it is under
hpux 11.
I managed to obtain a working library by applying the changed listed in the
included diff output.
The necessary change is the one at line 379;
HPUX defined EWOULDBLOCK; however apparently it does not use it in this case;
It returns instead EAGAIN. I don't know if this change can break other
platforms; I tested it (briefly) on hpux and linux.
The change at line 649 is needed to avoid a compiler warning.
The rest of the changes are just due to me unable to resist to 'fix'
inconsistent formatting and spelling error...
Hope this helps.
-----------------------------
379a380
>
423c424
< if ((ctxt->last == -1) && (errno != EWOULDBLOCK) && (errno != EAGAIN)) {
---
> if ((ctxt->last == -1) && (errno != EWOULDBLOCK)) {
427,428c428,429
< tv.tv_sec = 10;
< tv.tv_usec = 0;
---
> tv.tv_sec=10;
> tv.tv_usec=0;
432,433c433,434
< if (select(ctxt->fd + 1, &rfd, NULL, NULL, &tv) < 1)
< return(0);
---
> if(select(ctxt->fd+1, &rfd, NULL, NULL, &tv)<1)
> return(0);
452c453
< char *bp = buf;
---
> char *bp=buf;
454,455c455,456
< while (bp - buf < 4095) {
< if (ctxt->inrptr == ctxt->inptr) {
---
> while(bp - buf < 4095) {
> if(ctxt->inrptr == ctxt->inptr) {
465c466
< if (*bp == '\n') {
---
> if(*bp == '\n') {
469c470
< if (*bp != '\r')
---
> if(*bp != '\r')
649c650
< int len;
---
> unsigned int len;
841c842
< printf("Too many redirects, aborting ...\n");
---
> printf("Too many redirrects, aborting ...\n");
------------------------
--
TiscaliNet, libero accesso ad Internet.
http://www.tiscalinet.it
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 09:43:20 EDT