Good call! I pushed the change on github.
I've attached the test output since there are some unrelated failures. Could the failures be related to some of the conversion compiler warnings that I have uploaded here
https://gist.github.com/710891? A quick look and IRIX defines separate mmap64 and off64_t. If you think this is the right track, I will try to come up with and test a patch.
It otherwise works for some simple uses involving buffer events and evhttp that I have tried so far. I'll give AIX with XL C a go later this week.
Regards,
Kevin Bowling
kev009@IRIS ~/libevent-2.0.8-rc $ make check
make check-recursive
Making check in .
Making check in include
Making check in sample
Making check in test
make check-am
make check-TESTS
Running tests:
KQUEUE
Skipping test
DEVPOLL
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
NOTE regress.c:1912: Can't fake unsetenv; skipping test
FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
[iterative FAILED]
FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
[evutil_snprintf FAILED]
FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
[getaddrinfo FAILED]
http/close_detection:
FAIL regress_http.c:1487: assert(req)
FAIL regress_main.c:303: Legacy unit test failed
[close_detection FAILED]
[Lost connection!]
[stream_in FAILED]
http/data_length_constraints:
FAIL regress_http.c:2454: assert(req)
FAIL regress_http.c:2454: assert(req)
FAIL regress_http.c:2454: assert(req)
[data_length_constraints FAILED]
FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
[getaddrinfo_async FAILED]
7/163 TESTS FAILED. (2 skipped)
FAILED
POLL
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
NOTE regress.c:1912: Can't fake unsetenv; skipping test
FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
[iterative FAILED]
FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
[evutil_snprintf FAILED]
FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
[getaddrinfo FAILED]
http/data_length_constraints:
FAIL regress_http.c:2454: assert(req)
FAIL regress_http.c:2455: assert(req->response_code == HTTP_BADREQUEST): 200 vs 400
[data_length_constraints FAILED]
FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
[getaddrinfo_async FAILED]
5/163 TESTS FAILED. (2 skipped)
FAILED
SELECT
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
NOTE regress.c:1912: Can't fake unsetenv; skipping test
FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
[iterative FAILED]
FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
[evutil_snprintf FAILED]
FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
[getaddrinfo FAILED]
http/data_length_constraints:
FAIL regress_http.c:2454: assert(req)
FAIL regress_http.c:2455: assert(req->response_code == HTTP_BADREQUEST): 200 vs 400
[data_length_constraints FAILED]
FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
[getaddrinfo_async FAILED]
5/163 TESTS FAILED. (2 skipped)
FAILED
EPOLL
Skipping test
EVPORT
Skipping test
WIN32
Skipping test
FAIL: ../test/test.sh
==================
1 of 1 test failed
==================
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)