From brookschristopher@example.org Wed Aug 01 14:24:42 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 15562 invoked from network); 1 Aug 2007 14:24:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Aug 2007 14:24:32 -0000 Received: (qmail 9118 invoked by uid 500); 1 Aug 2007 14:24:30 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 9088 invoked by uid 500); 1 Aug 2007 14:24:30 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 9077 invoked by uid 99); 1 Aug 2007 14:24:30 -0000 Received: from Unknown (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 07:24:30 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mail4.atl.registeredsite.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 14:24:19 +0000 Received: from dataq.com (r37-58-dsl.sea.lightrealm.net [83.161.120.155]) by mail4.atl.registeredsite.com (83.161.120.15560308/8.12.11) with ESMTP id l71ENwZ6001782 for <brookschristopher@example.org>; Wed, 1 Aug 2007 10:23:58 -0400 Received: from [83.161.120.155] (rrcs-74-218-99-78.central.biz.rr.com [83.161.120.155]) by dataq.com (8.11.6/8.11.0) with ESMTP id l71ENvq21423 for <brookschristopher@example.org>; Wed, 1 Aug 2007 14:23:58 GMT (envelope-from brookschristopher@example.org) Message-ID: <brookschristopher@example.org> Date: Wed, 01 Aug 2007 10:23:42 -0400 From: Ioan Popescu <brookschristopher@example.org> Reply-To: brookschristopher@example.org Organization: Dataq Instruments, Inc. User-Agent: Thunderbird 83.161.120.155 (Windows/20070716) MIME-Version: 1.0 To: APR-Dev <brookschristopher@example.org> Subject: libapr-1 compiles for Windows CE 5 X-Enigmail-Version: 0.95.2 OpenPGP: id=80072B51 Content-Type: multipart/mixed; boundary="------------010409000208030405060606" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------010409000208030405060606 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit The attached patch contains the changes I've made to get libapr-1 to compile for Windows CE 5. I've had some problems sending the project files, so if anyone wants those, let me know and I'll send them directly. The changes aren't complete solutions in all cases. Some are probably reasonable, but others simply comment out code to compile. Ioan --------------010409000208030405060606 Content-Type: text/plain; name="libapr-1-ce.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="libapr-1-ce.patch" SW5kZXg6IGRzby93aW4zMi9kc28uYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGRzby93aW4zMi9k c28uYwkocmV2aXNpb24gNTUwODA3KQ0KKysrIGRzby93aW4zMi9kc28uYwkod29ya2luZyBj b3B5KQ0KQEAgLTE0MSw3ICsxNDEsNyBAQA0KICAgICBhcHJfd2NoYXJfdCB3c3ltbmFtZVsy NTZdOwogICAgIGFwcl9zdGF0dXNfdCBydjsKIAotICAgIHJ2ID0gYXByX2NvbnZfdXRmOF90 b191Y3MyKHdzeW1uYW1lLCAmd3N5bWxlbiwgc3ltbmFtZSwgJnN5bWxlbik7CisgICAgcnYg PSBhcHJfY29udl91dGY4X3RvX3VjczIoc3ltbmFtZSwgJnN5bWxlbiwgd3N5bW5hbWUsICZ3 c3ltbGVuKTsKICAgICBpZiAocnYgIT0gQVBSX1NVQ0NFU1MpIHsKICAgICAgICAgcmV0dXJu IHJ2OwogICAgIH0KSW5kZXg6IGZpbGVfaW8vd2luMzIvZmlsZX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MzJf V0NFCiAgICAgICAgICAgICBhcHJfd2NoYXJfdCAqd2ZpbGUgPSAoYXByX3djaGFyX3QqKSB1 ZmlsZTsKICAgICAgICAgICAgIGludCBmaXggPSAwOwogICAgICAgICAgICAgaWYgKHdjc25j bXAod2ZpbGUsIEwiXFxcXD9cXCIsIDQpID09IDApIHsKQEAgLTI2Myw4ICsyNzIsMTAgQEAN CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKHdhbnRlZCAmIChBUFJfRklO Rk9fR1JPVVAgfCBBUFJfRklORk9fR1BST1QpKSA/ICZncnAgOiBOVUxMKSwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICgod2FudGVkICYgQVBSX0ZJTkZPX1BST1QpID8g JmRhY2wgOiBOVUxMKSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE5VTEws ICZwZGVzYyk7Ci0gICAgICAgIGVsc2UKKyAgICAgICAgZWxzZSB7CisjZW5kaWYKICAgICAg ICAgICAgIHJldHVybiBBUFJfSU5DT01QTEVURTsKKyAgICAgICAgfQogICAgICAgICBpZiAo cnYgPT0gRVJST1JfU1VDQ0VTUykKICAgICAgICAgICAgIGFwcl9wb29sX2NsZWFudXBfcmVn aXN0ZXIoZmluZm8tPnBvb2wsIHBkZXNjLCBmcmVlX2xvY2FsaGVhcCwgCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBhcHJfcG9vbF9jbGVhbnVwX251bGwpOwpAQCAtMzg3 LDYgKzM5OCw3IEBADQogCiAgICAgZmlsbGluX2ZpbGVpbmZvKGZpbmZvLCAoV0lOMzJfRklM RV9BVFRSSUJVVEVfREFUQSAqKSAmRmlsZUluZm8sIDEsIHdhbnRlZCk7CiAKKyNpZm5kZWYg X1dJTjMyX1dDRQogICAgIGlmIChmaW5mby0+ZmlsZXR5cGUgPT0gQVBSX1JFRykKICAgICB7 CiAgICAgICAgIC8qIEdvIHRoZSBleHRyYSBtaWxlIHRvIGJlIC1jZXJ0YWluLSB0aGF0IHdl IGhhdmUgYSByZWFsLCByZWd1bGFyCkBAIC00MDYsNiArNDE4LDcgQEANCiAgICAgICAgICAg ICAgKi8KICAgICAgICAgfQogICAgIH0KKyNlbmRpZgogCiAgICAgZmluZm8tPnBvb2wgPSB0 aGVmaWxlLT5wb29sOwogCkBAIC01NzksNiArNTkyLDcgQEANCiAgICAgICAgIGlmIChmaWxs aW5fZmlsZWluZm8oZmluZm8sIChXSU4zMl9GSUxFX0FUVFJJQlVURV9EQVRBICopICZGaWxl SW5mbywgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgd2FudGVkKSkKICAgICAg ICAgeworI2lmbmRlZiBfV0lOMzJfV0NFCiAgICAgICAgICAgICAvKiBHbyB0aGUgZXh0cmEg bWlsZSB0byBhc3N1cmUgd2UgaGF2ZSBhIGZpbGUuICBXaW5OVC8yMDAwIHNlZW1zCiAgICAg ICAgICAgICAgKiB0byByZWxpYWJseSB0cmFuc2xhdGUgY2hhciBkZXZpY2VzIHRvIHRoZSBw YXRoICdcXC5cZGV2aWNlJwogICAgICAgICAgICAgICogc28gZ28gYXNrIGZvciB0aGUgZnVs bCBwYXRoLgpAQCAtNjM0LDYgKzY0OCw3IEBADQogICAgICAgICAgICAgZWxzZSB7CiAgICAg ICAgICAgICAgICAgZmluZm8tPnZhbGlkICY9IH5BUFJfRklORk9fVFlQRTsKICAgICAgICAg ICAgIH0KKyNlbmRpZgogICAgICAgICB9CiAgICAgICAgIGZpbmZvLT5wb29sID0gcG9vbDsK ICAgICB9CkluZGV4OiBmaWxlX2lvL3dpbjMyL2ZpbGVzeXMuYw0KPT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0K LS0tIGZpbGVfaW8vd2luMzIvZmlsZXN5cy5jCShyZXZpc2lvbiA1NTA4MDcpDQorKysgZmls ZV9pby93aW4zMi9maWxlc3lzLmMJKHdvcmtpbmcgY29weS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KQogeworI2lm bmRlZiBfV0lOMzJfV0NFCiAjaWYgQVBSX0hBU19VTklDT0RFX0ZTCiAgICAgSUZfV0lOX09T X0lTX1VOSUNPREUKICAgICB7CkBAIC0xNjcsMTIgKzE3NiwxNiBAQA0KICAgICB9CiAjZW5k aWYKICAgICByZXR1cm4gQVBSX1NVQ0NFU1M7CisjZWxzZQorICAgIHJldHVybiBBUFJfRU5P VElNUEw7CisjZW5kaWYKIH0KIAogCiBBUFJfREVDTEFSRShhcHJfc3RhdHVzX3QpIGFwcl9m aWxlcGF0aF9nZXQoY2hhciAqKnJvb3RwYXRoLCBhcHJfaW50MzJfdCBmbGFncywKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcHJfcG9vbF90ICpwKQog eworI2lmbmRlZiBfV0lOMzJfV0NFCiAgICAgY2hhciBwYXRoW0FQUl9QQVRIX01BWF07CiAj aWYgQVBSX0hBU19VTklDT0RFX0ZTCiAgICAgSUZfV0lOX09TX0lTX1VOSUNPREUKQEAgLTIw MCwxMiArMjEzLDE2IEBADQogICAgIH0KICAgICAqcm9vdHBhdGggPSBhcHJfcHN0cmR1cChw LCBwYXRoKTsKICAgICByZXR1cm4gQVBSX1NVQ0NFU1M7CisjZWxzZQorICAgIHJldHVybiBB UFJfRU5PVElNUEw7CisjZW5kaWYKIH0KIAogCiBBUFJfREVDTEFSRShhcHJfc3RhdHVzX3Qp IGFwcl9maWxlcGF0aF9zZXQoY29uc3QgY2hhciAqcm9vdHBhdGgsCiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXByX3Bvb2xfdCAqcCkKIHsKKyNpZm5k ZWYgX1dJTjMyX1dDRQogI2lmIEFQUl9IQVNfVU5JQ09ERV9GUwogICAgIElGX1dJTl9PU19J U19VTklDT0RFCiAgICAgewpAQCAtMjI2LDQgKzI0Myw3IEBADQogICAgIH0KICNlbmRpZgog ICAgIHJldHVybiBBUFJfU1VDQ0VTUzsKKy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PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 DQotLS0gZmlsZV9pby93aW4zMi9yZWFkd3JpdGUuYwkocmV2aXNpb24gNTUwODA3KQ0KKysr IGZpbGVfaW8vd2luMzIvcmVhZHdyaXRlLmMJKHdvcmtpbmcgY29weSkNCkBAIC00MSw2ICs0 MSw3IEBADQogICAgICAgICAgKi8KICAgICAgICAgaWYgKGZpbGUtPnBpcGUpIHsKICAgICAg ICAgICAgIERXT1JEIGJ5dGVzOworI2lmbmRlZiBfV0lOMzJfV0NFCiAgICAgICAgICAgICBp ZiAoIVBlZWtOYW1lZFBpcGUoZmlsZS0+ZmlsZWhhbmQsIE5VTEwsIDAsIE5VTEwsICZieXRl cywgTlVMTCkpIHsKICAgICAgICAgICAgICAgICBydiA9IGFwcl9nZXRfb3NfZXJyb3IoKTsK ICAgICAgICAgICAgICAgICBpZiAocnYgPT0gQVBSX0ZST01fT1NfRVJST1IoRVJST1JfQlJP S0VOX1BJUEUpKSB7CkBAIC01OCw2ICs1OSwyNSBAQA0KICAgICAgICAgICAgICAgICAgICAg bGVuID0gYnl0ZXM7CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfQorI2Vsc2UK KyAgICAgICAgICAgIGlmICghUmVhZEZpbGUoZmlsZS0+ZmlsZWhhbmQsIE5VTEwsIDAsICZi eXRlcywgTlVMTCkpIHsKKyAgICAgICAgICAgICAgICBydiA9IGFwcl9nZXRfb3NfZXJyb3Io KTsKKyAgICAgICAgICAgICAgICBpZiAocnYgPT0gQVBSX0ZST01fT1NfRVJST1IoRVJST1Jf QlJPS0VOX1BJUEUpKSB7CisgICAgICAgICAgICAgICAgICAgIHJ2ID0gQVBSX0VPRjsKKyAg ICAgICAgICAgICAgICB9CisgICAgICAgICAgICAgICAgKm5ieXRlcyA9IDA7CisgICAgICAg ICAgICAgICAgcmV0dXJuIHJ2OworICAgICAgICAgICAgfQorICAgICAgICAgICAgZWxzZSB7 CisgICAgICAgICAgICAgICAgaWYgKGJ5dGVzID09IDApIHsKKyAgICAgICAgICAgICAgICAg ICAgKm5ieXRlcyA9IDA7CisgICAgICAgICAgICAgICAgICAgIHJldHVybiBBUFJfRUFHQUlO OworICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICBpZiAobGVuID4gYnl0ZXMp IHsKKyAgICAgICAgICAgICAgICAgICAgbGVuID0gYnl0ZXM7CisgICAgICAgICAgICAgICAg fQorICAgICAgICAgICAgfQorI2VuZGlmCiAgICAgICAgIH0KICAgICAgICAgZWxzZSB7CiAg ICAgICAgICAgICAvKiBUb0RvOiBIYW5kbGUgemVybyB0aW1lb3V0IG5vbi1ibG9ja2luZyBm aWxlIGkvbyAKQEAgLTkwLDkgKzExMCwxMSBAQA0KICAgICAgICAgICAgIH0KICAgICAgICAg ICAgIHN3aXRjaCAocnYpIHsKICAgICAgICAgICAgICAgICBjYXNlIFdBSVRfT0JKRUNUXzA6 CisjaWZuZGVmIF9XSU4zMl9XQ0UKICAgICAgICAgICAgICAgICAgICAgR2V0T3ZlcmxhcHBl ZFJlc3VsdChmaWxlLT5maWxlaGFuZCwgZmlsZS0+cE92ZXJsYXBwZWQsIAogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICZieXRlc3JlYWQsIFRSVUUpOwogICAg ICAgICAgICAgICAgICAgICAqbmJ5dGVzID0gYnl0ZXNyZWFkOworI2VuZGlmCiAgICAgICAg ICAgICAgICAgICAgIHJ2ID0gQVBSX1NVQ0NFU1M7CiAgICAgICAgICAgICAgICAgICAgIGJy ZWFrOwogCkBAIC0xMDgsMTEgKzEzMCwxMyBAQA0KICAgICAgICAgICAgICAgICAgICAgYnJl YWs7CiAgICAgICAgICAgICB9CiAKKyNpZm5kZWYgX1dJTjMyX1dDRQogICAgICAgICAgICAg aWYgKHJ2ICE9IEFQUl9TVUNDRVNTKSB7CiAgICAgICAgICAgICAgICAgaWYgKGFwcl9vc19s ZXZlbCA+PSBBUFJfV0lOXzk4KSB7CiAgICAgICAgICAgICAgICAgICAgIENhbmNlbElvKGZp bGUtPmZpbGVoYW5kKTsKICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICB9CisjZW5k aWYKICAgICAgICAgfQogICAgICAgICBlbHNlIGlmIChydiA9PSBBUFJfRlJPTV9PU19FUlJP UihFUlJPUl9CUk9LRU5fUElQRSkpIHsKICAgICAgICAgICAgIC8qIEFzc3VtZSBFUlJPUl9C Uk9LRU5fUElQRSBzaWduYWxzIGFuIEVPRiByZWFkaW5nIGZyb20gYSBwaXBlICovCkBAIC0z MzksOSArMzYzLDExIEBADQogICAgICAgICAgICAgICAgIHJ2ID0gV2FpdEZvclNpbmdsZU9i amVjdCh0aGVmaWxlLT5wT3ZlcmxhcHBlZC0+aEV2ZW50LCB0aW1lb3V0X21zKTsKICAgICAg ICAgICAgICAgICBzd2l0Y2ggKHJ2KSB7CiAgICAgICAgICAgICAgICAgICAgIGNhc2UgV0FJ VF9PQkpFQ1RfMDoKKyNpZm5kZWYgX1dJTjMyX1dDRQogICAgICAgICAgICAgICAgICAgICAg ICAgR2V0T3ZlcmxhcHBlZFJlc3VsdCh0aGVmaWxlLT5maWxlaGFuZCwgdGhlZmlsZS0+cE92 ZXJsYXBwZWQsIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAmYndyb3RlLCBUUlVFKTsKICAgICAgICAgICAgICAgICAgICAgICAgICpuYnl0ZXMgPSBi d3JvdGU7CisjZW5kaWYKICAgICAgICAgICAgICAgICAgICAgICAgIHJ2ID0gQVBSX1NVQ0NF U1M7CiAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAg ICAgY2FzZSBXQUlUX1RJTUVPVVQ6CkBAIC0zNTMsMTAgKzM3OSwxMiBAQA0KICAgICAgICAg ICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwog ICAgICAgICAgICAgICAgIH0KKyNpZm5kZWYgX1dJTjMyX1dDRQogICAgICAgICAgICAgICAg IGlmIChydiAhPSBBUFJfU1VDQ0VTUykgewogICAgICAgICAgICAgICAgICAgICBpZiAoYXBy X29zX2xldmVsID49IEFQUl9XSU5fOTgpCiAgICAgICAgICAgICAgICAgICAgICAgICBDYW5j ZWxJbyh0aGVmaWxlLT5maWxlaGFuZCk7CiAgICAgICAgICAgICAgICAgfQorI2VuZGlmCiAg ICAgICAgICAgICB9CiAgICAgICAgIH0KICAgICAgICAgaWYgKHJ2ID09IEFQUl9TVUNDRVNT ICYmIHRoZWZpbGUtPnBPdmVybGFwcGVkICYmICF0aGVmaWxlLT5waXBlKSB7CkluZGV4OiBm aWxlX2lvL3dpbjMyL3NlZWsuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGZpbGVfaW8vd2luMzIv c2Vlay5jCShyZXZpc2lvbiA1NTA4MDcpDQorKysgZmlsZV9pby93aW4zMi9zZWVrLmMJKHdv cmtpbmcgY29weSkNCkBAIC0xNiw3ICsxNiw5IEBADQogCiAjaW5jbHVkZSAid2luMzIvYXBy X2FyY2hfZmlsZV9pby5oIgogI2luY2x1ZGUgImFwcl9maWxlX2lvLmgiCi0jaW5jbHVkZSA8 ZXJybm8uaD4KKyNpZiBBUFJfSEFWRV9FUlJOT19ICisjaW5jbHVkZSAiZXJybm8uaCIKKyNl bmRpZgogI2luY2x1ZGUgPHN0cmluZy5oPgogCiBzdGF0aWMgYXByX3N0YXR1c190IHNldHB0 cihhcHJfZmlsZV90ICp0aGVmaWxlLCBhcHJfb2ZmX3QgcG9zICkKSW5kZXg6IGluY2x1ZGUv YXByLmh3DQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09DQotLS0gaW5jbHVkZS9hcHIuaHcJKHJldmlzaW9uIDU1 MDgwNykNCisrKyBpbmNsdWRlL2Fwci5odwkod29ya2luZyBjb3B5KQ0KQEAgLTI5NiwxMyAr Mjk2LDE0IEBADQogI2RlZmluZSBBUFJfSEFTX1VTRVIgICAgICAgICAgICAgIDEKICNkZWZp bmUgQVBSX0hBU19MQVJHRV9GSUxFUyAgICAgICAxCiAjZGVmaW5lIEFQUl9IQVNfWFRIUkVB RF9GSUxFUyAgICAgMQorI2RlZmluZSBBUFJfSEFTX09TX1VVSUQgICAgICAgICAgIDEKICNl bHNlCiAjZGVmaW5lIEFQUl9IQVNfU0VOREZJTEUgICAgICAgICAgMAogI2RlZmluZSBBUFJf SEFTX1VTRVIgICAgICAgICAgICAgIDAKICNkZWZpbmUgQVBSX0hBU19MQVJHRV9GSUxFUyAg ICAgICAwCiAjZGVmaW5lIEFQUl9IQVNfWFRIUkVBRF9GSUxFUyAgICAgMAorI2RlZmluZSBB UFJfSEFTX09TX1VVSUQgICAgICAgICAgIDAKICNlbmRpZgotI2RlZmluZSBBUFJfSEFTX09T X1VVSUQgICAgICAgICAgIDEKIAogLyogV2luMzIgY2Fubm90IHBvbGwgW2p1c3QgeWV0XSBv biBmaWxlcy9waXBlcy4KICAqLwpJbmRleDogaW5jbHVkZS9hcmNoL3dpbjMyL2Fwcl9hcmNo X2ZpbGVfaW8uaA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGluY2x1ZGUvYXJjaC93aW4zMi9hcHJf YXJjaF9maWxlX2lvLmgJKHJldmlzaW9uIDU1MDgwNykNCisrKyBpbmNsdWRlL2FyY2gvd2lu MzIvYXByX2FyY2hfZmlsZV9pby5oCSh3b3JraW5nIGNvcHkpDQpAQCAtMjczLDQgKzI3Myw4 IEBADQogLyoqIEBzZWUgYXByX2NyZWF0ZV9udF9waXBlICovCiAjZGVmaW5lIEFQUl9XUklU RV9CTE9DSyAgICAgIDQKIAorI2lmZGVmIF9XSU4zMl9XQ0UKKyNkZWZpbmUgQlVGU0laICA1 MTIKKyNlbmRpZgorCiAjZW5kaWYgIC8qICEgRklMRV9JT19IICovCkluZGV4OiBpbmNsdWRl L2FyY2gvd2luMzIvYXByX2FyY2hfbWlzYy5oDQo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gaW5jbHVk ZS9hcmNoL3dpbjMyL2Fwcl9hcmNoX21pc2MuaAkocmV2aXNpb24gNTUwODA3KQ0KKysrIGlu Y2x1ZGUvYXJjaC93aW4zMi9hcHJfYXJjaF9taXNjLmgJKHdvcmtpbmcgY29weSkNCkBAIC04 NSw5ICs4NSwxMSBAQA0KIAlBUFJfV0lOX1VOSUNPREUgPSAgMjAsIC8qIFByaW9yIHZlcnNp b25zIHN1cHBvcnQgb25seSBuYXJyb3cgY2hhcnMgKi8KIAogICAgICAgICBBUFJfV0lOX0NF XzMgPSAgICAgMjMsIC8qIENFIGlzIGFuIG9kZCBiZWFzdCwgbm90IHN1cHBvcnRpbmcgKi8K LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvKiBzb21lIHByZS1OVCBmZWF0dXJl cywgc3VjaCBhcyB0aGUgICAgKi8KLSAgICAgICAgQVBSX1dJTl9OVCA9ICAgICAgIDMwLCAv KiBuYXJyb3cgY2hhcnNldCBBUElzIChmb29BIGZucyksIHdoaWxlICAqLwotICAgICAgICBB UFJfV0lOX05UXzNfNSA9ICAgMzUsIC8qIG5vdCBzdXBwb3J0aW5nIHNvbWUgTlQtZmFtaWx5 IGZlYXR1cmVzLiAgKi8KKyAgICAgICAgQVBSX1dJTl9DRV80ID0gICAgIDI0LCAvKiBzb21l IHByZS1OVCBmZWF0dXJlcywgc3VjaCBhcyB0aGUgICAgKi8KKyAgICAgICAgQVBSX1dJTl9D RV81ID0gICAgIDI1LCAvKiBuYXJyb3cgY2hhcnNldCBBUElzIChmb29BIGZucyksIHdo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SkNCkBAIC0xNiw3ICsxNiw5 IEBADQogCiAjaW5jbHVkZSAiYXByX3ByaXZhdGUuaCIKICNpbmNsdWRlICJhcHJfYXJjaF9t aXNjLmgiCisjaWZuZGVmIF9XSU4zMl9XQ0UKICNpbmNsdWRlICJjcnRkYmcuaCIKKyNlbmRp ZgogI2luY2x1ZGUgImFwcl9hcmNoX2ZpbGVfaW8uaCIKICNpbmNsdWRlICJhc3NlcnQuaCIK ICNpbmNsdWRlICJhcHJfbGliLmgiCkBAIC0zMSw2ICszMyw3IEBADQogICAgICAgICBvc2xl di5kd09TVmVyc2lvbkluZm9TaXplID0gc2l6ZW9mKE9TVkVSU0lPTklORk8pOwogICAgICAg ICBHZXRWZXJzaW9uRXgoJm9zbGV2KTsKIAorI2lmbmRlZiBfV0lOMzJfV0NFCiAgICAgICAg IGlmIChvc2xldi5kd1BsYXRmb3JtSWQgPT0gVkVSX1BMQVRGT1JNX1dJTjMyX05UKSAKICAg ICAgICAgewogICAgICAgICAgICAgc3RhdGljIHVuc2lnbmVkIGludCBzZXJ2cGFjayA9IDA7 CkBAIC05OCw3ICsxMDEsNiBAQA0KICAgICAgICAgfQogI2lmbmRlZiBXSU5OVAogICAgICAg ICBlbHNlIGlmIChvc2xldi5kd1BsYXRmb3JtSWQgPT0gVkVSX1BMQVRGT1JNX1dJTjMyX1dJ TkRPV1MpIHsKLSAgICAgICAgICAgIGNoYXIgKnByZXZpc2lvbjsKICAgICAgICAgICAgIGlm IChwcmV2aXNpb24gPSBvc2xldi5zekNTRFZlcnNpb24pIHsKICAgICAgICAgICAgICAgICB3 aGlsZSAoKnByZXZpc2lvbiAmJiAhYXByX2lzdXBwZXIoKnByZXZpc2lvbikpIHsKICAgICAg ICAgICAgICAgICAgICAgIHByZXZpc2lvbisrOwpAQCAtMTIzLDE1ICsxMjUsMjEgQEANCiAg ICAgICAgICAgICB9CiAgICAgICAgIH0KICNlbmRpZgotI2lmZGVmIF9XSU4zMl9XQ0UKLSAg ICAgICAgZWxzZSBpZiAob3NsZXYuZHdQbGF0Zm9ybUlkID09IFZFUl9QTEFURk9STV9XSU4z Ml9DRSkgCisjZWxzZQorICAgICAgICBpZiAob3NsZXYuZHdQbGF0Zm9ybUlkID09IFZFUl9Q TEFURk9STV9XSU4zMl9DRSkgCiAgICAgICAgIHsKICAgICAgICAgICAgIGlmIChvc2xldi5k d01ham9yVmVyc2lvbiA8IDMpIHsKICAgICAgICAgICAgICAgICBhcHJfb3NfbGV2ZWwgPSBB UFJfV0lOX1VOU1VQOwogICAgICAgICAgICAgfQotICAgICAgICAgICAgZWxzZSB7CisgICAg ICAgICAgICBlbHNlIGlmIChvc2xldi5kd01ham9yVmVyc2lvbiA8IDQpIHsKICAgICAgICAg ICAgICAgICBhcHJfb3NfbGV2ZWwgPSBBUFJfV0lOX0NFXzM7CiAgICAgICAgICAgICB9Cisg ICAgICAgICAgICBlbHNlIGlmIChvc2xldi5kd01ham9yVmVyc2lvbiA8IDUpIHsKKyAgICAg ICAgICAgICAgICBhcHJfb3NfbGV2ZWwgPSBBUFJfV0lOX0NFXzQ7CisgICAgICAgICAgICB9 CisgICAgICAgICAgICBlbHNlIHsKKyAgICAgICAgICAgICAgICBhcHJfb3NfbGV2ZWwgPSBB UFJfV0lOX0NFXzU7CisgICAgICAgICAgICB9CiAgICAgICAgIH0KICNlbmRpZgogICAgICAg ICBlbHNlIHsKQEAgLTE2MCw3ICsxNjgsNDAgQEANCiAKIEZBUlBST0MgYXByX2xvYWRfZGxs X2Z1bmMoYXByX2RsbHRva2VuX2UgZm5MaWIsIGNoYXIqIGZuTmFtZSwgaW50IG9yZGluYWwp CiB7Ci0gICAgaWYgKCFsYXRlRGxsSGFuZGxlW2ZuTGliXSkgeyAKKyNpZiBBUFJfSEFTX1VO SUNPREVfRlMKKyAgICBhcHJfd2NoYXJfdCB3TGF0ZURsbE5hbWVbRExMX2RlZmluZWRdOwor ICAgIGFwcl9zaXplX3QgaW5ieXRlcyA9IHNpemVvZihsYXRlRGxsTmFtZVtmbkxpYl0pLCBv dXR3b3JkcyA9IERMTF9kZWZpbmVkOworCisgICAgaWYgKCFsYXRlRGxsSGFuZGxlW2ZuTGli XSkgeworICAgICAgICBpZiAoYXByX2NvbnZfdXRmOF90b191Y3MyKGxhdGVEbGxOYW1lW2Zu TGliXSwgJmluYnl0ZXMsIHdMYXRlRGxsTmFtZSwKKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAmb3V0d29yZHMpID09IEFQUl9TVUNDRVNTKSB7CisgICAgICAgICAgICBs YXRlRGxsSGFuZGxlW2ZuTGliXSA9IExvYWRMaWJyYXJ5Vyh3TGF0ZURsbE5hbWUpOworICAg ICAgICB9CisgICAgICAgIGVsc2UgeworICAgICAgICAgICAgcmV0dXJuIE5VTEw7CisgICAg ICAgIH0KKyAgICAgICAgaWYgKCFsYXRlRGxsSGFuZGxlW2ZuTGliXSkKKyAgICAgICAgICAg IHJldHVybiBOVUxMOworICAgIH0KKyAgICBpZiAob3JkaW5hbCkKKyAgICB7CisgICAgICAg IGFwcl93Y2hhcl90IHdPcmRpbmFsOworICAgICAgICAoKGNoYXIgKikmd09yZGluYWwpWzBd ID0gKihjaGFyICopb3JkaW5hbDsKKyAgICAgICAgKChjaGFyICopJndPcmRpbmFsKVsxXSA9 IDA7CisgICAgICAgIHJldHVybiBHZXRQcm9jQWRkcmVzc1cobGF0ZURsbEhhbmRsZVtmbkxp Yl0sICZ3T3JkaW5hbCk7CisgICAgfQorICAgIGVsc2UKKyAgICB7CisgICAgICAgIGluYnl0 ZXMgPSBzdHJsZW4oZm5OYW1lKTsKKyAgICAgICAgb3V0d29yZHMgPSBETExfZGVmaW5lZDsK KyAgICAgICAgaWYgKGFwcl9jb252X3V0ZjhfdG9fdWNzMihmbk5hbWUsICZpbmJ5dGVzLCB3 TGF0ZURsbE5hbWUsICZvdXR3b3JkcykKKyAgICAgICAgICAgICE9IEFQUl9TVUNDRVNTKSB7 CisgICAgICAgICAgICByZXR1cm4gTlVMT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CB3c2J1ZiwgJm91dHdvcmRz KTsKKyAgICAgICAgICAgIChHZXRNb2R1bGVGaWxlTmFtZVcpKE5VTEwsIHdzYnVmLCAyNTAp OworICAgICAgICAgICAgd3NwcmludGYod2NzY2hyKHdzYnVmLCBMJ1wwJyksIEwiLiVkIiwK KyAgICAgICAgICAgICAgICAgICAgKEdldEN1cnJlbnRQcm9jZXNzSWQpKCkpOworICAgICAg ICAgICAgZmggPSAoQ3JlYXRlRmlsZVcpKHdzYnVmLCBHRU5FUklDX1dSSVRFLCAwLCBOVUxM LCAKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBDUkVBVEVfQUxXQVlTLCAwLCBOVUxM KTsKKyNlbGlmIEFQUl9IQVNfQU5TSV9GUwogICAgICAgICAgICAgKEdldE1vZHVsZUZpbGVO YW1lKShOVUxMLCBzYnVmLCAyNTApOwogICAgICAgICAgICAgc3ByaW50ZihzdHJjaHIoc2J1 ZiwgJ1wwJyksICIuJWQiLAogICAgICAgICAgICAgICAgICAgICAoR2V0Q3VycmVudFByb2Nl c3NJZCkoKSk7CiAgICAgICAgICAgICBmaCA9IChDcmVhdGVGaWxlKShzYnVmLCBHRU5FUklD X1dSSVRFLCAwLCBOVUxMLCAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDUkVBVEVf QUxXQVlTLCAwLCBOVUxMKTsKKyNlbmRpZgogICAgICAgICAgICAgKEluaXRpYWxpemVDcml0 aWNhbFNlY3Rpb24pKCZjcyk7CiAgICAgICAgIH0KICAgICB9CkluZGV4OiBtaXNjL3dpbjMy L3JhbmQuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIG1pc2Mvd2luMzIvcmFuZC5jCShyZXZpc2lv biA1NTA4MDcpDQorKysgbWlzYy93aW4zMi9yYW5kLmMJKHdvcmtpbmcgY29weSkNCkBAIC01 Miw2ICs1Miw3IEBADQogCiBBUFJfREVDTEFSR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ncy9hcHJfc3RyaW5ncy5jDQo9 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09DQotLS0gc3RyaW5ncy9hcHJfc3RyaW5ncy5jCShyZXZpc2lvbiA1NTA4 MDcpDQorKysgc3RyaW5ncy9hcHJfc3RyaW5ncy5jCSh3b3JraW5nIGNvcHkpDQpAQCAtMjgw LDcgKzI4MCw5IEBADQogCWJhc2UgPSBjID09ICcwJyA/IDggOiAxMDsKICAgICBhY2MgPSBh bnkgPSAwOwogICAgIGlmIChiYXNlIDwgMiB8fCBiYXNlID4gMzYpIHsKKyNpZiBBUFJfSEFW RV9FUlJOT19ICiAJZXJybm8gPSBFSU5WQUw7CisjZW5kaWYKICAgICAgICAgaWYgKGVuZHB0 ciAhPSBOVUxMKQogCSAgICAqZW5kcHRyID0gKGNoYXIgKikoYW55ID8gcyAtIDEgOiBucHRy KTsKICAgICAgICAgcmV0dXJuIGFjYzsKQEAgLTM0MSw5ICszNDMsMTMgQEANCiAKICAgICBp ZiAoYW55IDwgMCkgewogCWFjYyA9IG5lZyA/IElOVDY0X01JTiA6IElOVDY0X01BWDsKKyNp ZiBBUFJfSEFWRV9FUlJOT19ICiAJZXJybm8gPSBFUkFOR0U7CisjZW5kaWYKICAgICB9IGVs c2UgaWYgKCFhbnkpIHsKKyNpZiBBUFJfSEFWRV9FUlJOT19ICiAJZXJybm8gPSBFSU5WQUw7 CisjZW5kaWYKICAgICB9CiAgICAgaWYgKGVuZHB0ciAhPSBOVUxMKQogCSplbmRwdHIgPSAo Y2hhciAqKShhbnkgPyBzIC0gMSA6IG5wdHIpOwo= --------------010409000208030405060606-- From brookschristopher@example.org Thu Aug 02 03:47:44 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 10285 invoked from network); 2 Aug 2007 03:47:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2007 03:47:43 -0000 Received: (qmail 48155 invoked by uid 500); 2 Aug 2007 03:47:42 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 48103 invoked by uid 500); 2 Aug 2007 03:47:41 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 48092 invoked by uid 99); 2 Aug 2007 03:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 20:47:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO Boron.MeepZor.Com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 03:47:14 +0000 Received: from Boron.MeepZor.Com (localhost [83.161.120.155]) by Boron.MeepZor.Com (8.12.8/8.12.8) with ESMTP id l723jm5N030647; Wed, 1 Aug 2007 23:46:08 -0400 Received: (from cvs@localhost) by Boron.MeepZor.Com (8.12.8/8.12.8/Submit) id l723jR2s030627; Wed, 1 Aug 2007 23:45:27 -0400 Date: Wed, 1 Aug 2007 23:45:27 -0400 Message-Id: <brookschristopher@example.org> Content-Type: text/plain X-Application: $Id: report-status.pl,v 1.3 2005/03/30 10:13:06 coar Exp $ MIME-Version: 1.0 Subject: [STATUS] (apr-util) Wed Aug 1 23:45:27 2007 From: Rodent of Unusual Size <brookschristopher@example.org> To: APR developers <brookschristopher@example.org> X-Virus-Checked: Checked by ClamAV on apache.org APACHE PORTABLE RUNTIME UTILITIES (APR-util) LIBRARY STATUS: -*-text-*- Last modified at [$Date: 2007-02-16 21:50:17 -0500 (Fri, 16 Feb 2007) $] Releases: 1.3.0 : in development 1.2.9 : in development 1.2.8 : released December 4, 2006 1.2.7 : released April 14, 2006 1.2.6 : released March 25, 2006 1.2.5 : not released 1.2.4 : not released 1.2.3 : not released 1.2.2 : released October 11, 2005 1.2.1 : released August 18, 2005 1.2.0 : not released 1.1.2 : released March 17, 2005 1.1.1 : not released 1.1.0 : released January 25, 2005 1.0.1 : released November 19, 2004 1.0.0 : released September 1, 2004 0.9.14 : in development 0.9.13 : released December 4, 2006 0.9.12 : released April 13, 2006 0.9.11 : released March 30, 2006 0.9.10 : tagged March 22, 2006, not released 0.9.9 : tagged January 30, 2006, not released 0.9.8 : tagged January 27, 2006, not released 0.9.7 : released October 11, 2005 0.9.6 : released February 7, 2005 0.9.5 : released November 20, 2004 0.9.4 : released September 25, 2003 0.9.3 : tagged March 30, 2002 0.9.2 : released March 22, 2002 (alpha) 0.9.1 : released September 11, 2002 (alpha) 0.9.0 : not released Bundled with httpd: 2.0a9 : released December 12, 2000 RELEASE SHOWSTOPPERS: RELEASE NON-SHOWSTOPPERS BUT WOULD BE REAL NICE TO WRAP THESE UP: * Solaris's Sun Freeware (sfw) package has a busted gcc/ld setup. This gcc passes -L/opt/sfw/lib to /usr/ccs/bin/ld, but does not pass -R. Therefore, when trying to run the code using a library from /opt/sfw/lib (say, libdb), the run-time linker will not look in /opt/sfw/lib and the program will die. Status: Workaround is to add "-R/opt/sfw/lib" to LDFLAGS. Should check latest sfw package set and see if Sun may have fixed this. * GDBM usage of errno is not-thread-safe. Fix. * Expat 1.99.2 is getting stale, 1.99.8 for sanity's sake, and push to Expat 2.x for apr-util 2.0 * http://www.ibm.com/software/globalization/icu/downloads.jsp (under an X-style license) for an apr_xlate alternative to iconv Other bugs that need fixing: Other features that need writing: * possibly move test/testdbm* to util/dbu Justin says: Do we still want to do this? testdate is now in test. Status: Greg +1 (volunteers) Documentation that needs writing: * API documentation Status: * doc the lifetimes of apr_dbm return values Available Patches: Open Issues: * unify parsing of prepared statements in DBD Status: committed, awaiting review format of arguments (i.e. %s, %d etc.) needs to be agreed upon * add binary argument functions to DBD Status: committed, awaiting review API needs to be agreed upon From brookschristopher@example.org Fri Aug 03 16:22:17 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 53910 invoked from network); 3 Aug 2007 16:22:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2007 16:22:14 -0000 Received: (qmail 179 invoked by uid 500); 3 Aug 2007 16:22:12 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 113 invoked by uid 500); 3 Aug 2007 16:22:12 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 99899 invoked by uid 99); 3 Aug 2007 16:22:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 09:22:11 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO cpexchange.olf.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 16:22:05 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7D5EA.3B94F599" Subject: UDP Listening Port Date: Fri, 3 Aug 2007 12:20:40 -0400 Message-ID: <brookschristopher@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: UDP Listening Port Thread-Index: AcfV6fWz1NGzOENcTke8dz/wmiAu9w== From: "Barry Molof" <brookschristopher@example.org> To: <brookschristopher@example.org> X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C7D5EA.3B94F599 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, =20 I am trying to create a UDP port that will only receive data, never send. My problem is that even though I am setting the socket timeout to a number greater than 0, the call to apr_socket_recv blocks and never returns because of a timeout. This is causing my program to hang. Even if another thread closes the socket, the recv method still blocks. Here is some of my code below. Can anyone help? Thanks. =20 apr_pool_t *p; apr_socket_t *sock; apr_sockaddr_t *local_sa; =20 // create a pool apr_pool_create(&p, NULL); =20 // create the address info apr_sockaddr_info_get(&local_sa, NULL, APR_INET, notificationPort, 0, p); =20 // create the socket apr_socket_create(&sock, local_sa->family, SOCK_DGRAM, APR_PROTO_UDP, p); =20 // set socket opts apr_socket_opt_set(sock, APR_SO_LINGER, 1); apr_socket_opt_set(sock, APR_SO_RCVBUF, 16384); apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1); apr_socket_opt_set(sock, APR_SO_BROADCAST, 1); =20 // set timeout=20 apr_socket_timeout_set(sock, 1000000); =20 // bind socket to notification port apr_socket_bind(sock, local_sa); =20 char datarecv[MON_APR_STRLEN]; string readbuff =3D ""; size_t maxLineSize =3D 8000; while(!terminate) { apr_size_t length =3D MON_APR_STRLEN; memset(datarecv, 0, MON_APR_STRLEN); rv =3D apr_socket_recv(sock, datarecv, &length); // this will = block forever =20 =20 ------_=_NextPart_001_01C7D5EA.3B94F599 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Hi All,</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>&nbsp;</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I am trying to create a UDP port that will only = receive data, never send.&nbsp; My problem is that even though I am setting the = socket timeout to a number greater than 0, the call to </span></font><font = size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"'>apr_socket_recv blocks and never returns because of a timeout.&nbsp; This is causing my = program to hang.&nbsp; Even if another thread closes the socket, the recv method = still blocks.&nbsp; Here is some of my code below.&nbsp; Can anyone = help?&nbsp; Thanks.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New"'>&nbsp;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'>apr_pool_t = *p;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>apr_socket_t *sock;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'>apr_sockaddr_t = *local_sa;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// create a pool</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_pool_create(&amp;p, NULL);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// create the address info</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_sockaddr_info_get(&amp;local_sa, NULL, APR_INET, notificationPort, 0, p);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// create the socket</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_create(&amp;sock, local_sa-&gt;family, SOCK_DGRAM, APR_PROTO_UDP, p);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// set socket opts</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_opt_set(sock, APR_SO_LINGER, 1);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_opt_set(sock, APR_SO_RCVBUF, 16384);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_opt_set(sock, APR_SO_BROADCAST, 1);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// set timeout </span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_timeout_set(sock, 1000000);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dgreen face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:green'>// bind socket to notification port</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>apr_socket_bind(sock, local_sa);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = </span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>char</span></font><font size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'> = datarecv[MON_APR_STRLEN];</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'>string readbuff =3D = <font color=3Dmaroon><span = style=3D'color:maroon'>&quot;&quot;</span></font>;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'>size_t maxLineSize = =3D 8000;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>while</span></font><font size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>(!terminate)</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'>{</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apr_size_t length =3D MON_APR_STRLEN;</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memset(datarecv, 0, MON_APR_STRLEN);</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rv =3D apr_socket_recv(sock, datarecv, &amp;length); // this will block = forever</span></font></p> <p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 = face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New"'>&nbsp;</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = </span></font></p> </div> </body> </html> ------_=_NextPart_001_01C7D5EA.3B94F599-- From brookschristopher@example.org Sat Aug 04 17:36:39 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 19344 invoked from network); 4 Aug 2007 17:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Aug 2007 17:36:37 -0000 Received: (qmail 89312 invoked by uid 500); 4 Aug 2007 17:36:36 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 89248 invoked by uid 500); 4 Aug 2007 17:36:36 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 89237 invoked by uid 99); 4 Aug 2007 17:36:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 10:36:36 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wa-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 17:36:33 +0000 Received: by wa-out-1112.google.com with SMTP id j37so1712940waf for <brookschristopher@example.org>; Sat, 04 Aug 2007 10:36:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=e8F4eCAVbIvioV/vGKAsksAdpVk+Kitr7CBxo1vRxx0hzG7oHET7eusi2wubL+O5ZgJDFQvb/tWAUOC2o4j+oxVcZpHHkinPczXqcO8TEfUtl1UgvdCj2PBGZXOoePnXAMwkY6fJz4FBbmKQ+yPN6lZ5FYAVrEbzYMMp885eYd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qTujlk8fT1meS2DHsorlE1KFqKGXMvjupQFKnvNvfqEazONYc4ZLqh3j30X6rnmrJ1PB32Nh1RIOnpMmak6vhTij5Ddn/9aQJcoCgI/eTV3Zl4Xk/HPBnwAfTM863uN9LV2EagO5NtYx5M0QPh/tHyQaNw9NDZyKX5BIvn3KAkU= Received: by 83.161.120.155 with SMTP id y1mr4075383waa.1186248972494; Sat, 04 Aug 2007 10:36:12 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sat, 4 Aug 2007 10:36:12 -0700 (PDT) Message-ID: <brookschristopher@example.org> Date: Sat, 4 Aug 2007 13:36:12 -0400 From: "Nathan Mittler" <brookschristopher@example.org> To: brookschristopher@example.org Subject: ssl sockets MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41407_20034459.1186248972461" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_41407_20034459.1186248972461 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, I was just reading through the docs in trunk for ssl sockets. Great to see that ssl is making its way into APR! At first glance, I don't see a way to wrap an ssl socket around a pre-existing (tcp) socket. Does this functionality exist and if not, are there plans to add it in the future? Thanks, Nate ------=_Part_41407_20034459.1186248972461 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone,<br>I was just reading through the docs in trunk for ssl sockets.&nbsp; Great to see that ssl is making its way into APR!<br><br>At first glance, I don&#39;t see a way to wrap an ssl socket around a pre-existing (tcp) socket.&nbsp; Does this functionality exist and if not, are there plans to add it in the future? <br><br>Thanks,<br>Nate<br> ------=_Part_41407_20034459.1186248972461-- From brookschristopher@example.org Sat Aug 04 17:40:01 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 19597 invoked from network); 4 Aug 2007 17:39:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Aug 2007 17:39:58 -0000 Received: (qmail 92848 invoked by uid 500); 4 Aug 2007 17:39:57 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 92788 invoked by uid 500); 4 Aug 2007 17:39:57 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 92777 invoked by uid 99); 4 Aug 2007 17:39:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 10:39:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtpauth02.prod.mesa1.secureserver.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 04 Aug 2007 17:39:38 +0000 Received: (qmail 1630 invoked from network); 4 Aug 2007 17:39:29 -0000 Received: from unknown (83.161.120.155) by smtpauth02.prod.mesa1.secureserver.net (83.161.120.155) with ESMTP; 04 Aug 2007 17:39:29 -0000 Message-ID: <brookschristopher@example.org> Date: Sat, 04 Aug 2007 12:39:27 -0500 From: "William A. Rowe, Jr." <brookschristopher@example.org> User-Agent: Thunderbird 83.161.120.155 (X11/20070719) MIME-Version: 1.0 To: Nathan Mittler <brookschristopher@example.org> CC: brookschristopher@example.org Subject: Re: ssl sockets References: <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Nathan Mittler wrote: > Hi everyone, > I was just reading through the docs in trunk for ssl sockets. Great to > see that ssl is making its way into APR! > > At first glance, I don't see a way to wrap an ssl socket around a > pre-existing (tcp) socket. Does this functionality exist and if not, > are there plans to add it in the future? We will need to. Too many STARTTLS style protocols require a dynamic upgrade of the socket to SSL encryption. Patches are welcome ;-) Bill From brookschristopher@example.org Sat Aug 04 20:10:16 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 58286 invoked from network); 4 Aug 2007 20:10:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Aug 2007 20:10:14 -0000 Received: (qmail 7198 invoked by uid 500); 4 Aug 2007 20:10:12 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 7152 invoked by uid 500); 4 Aug 2007 20:10:12 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 7141 invoked by uid 99); 4 Aug 2007 20:10:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 13:10:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wa-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 20:10:04 +0000 Received: by wa-out-1112.google.com with SMTP id j37so1753462waf for <brookschristopher@example.org>; Sat, 04 Aug 2007 13:09:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=prFlv8FEg1g/LBfHhL2P1N0aahd56wLsNLZYTZqvSs8SbxghBeBdTTakzac2gVOZIc9PY406A1cAKimm0nefBQCbqLNNeoNSnlqYhH10tU039OGmrftQGfsg3h0AAQ9Y2IUTtksJAII6UIpc37ydyxLei83zA6v7dgUL32Jg9/0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lejNDO8XUxOtyNNHlGaDYPFQz1XJ0eaduRXKARTSlX89FJ/vwSY54sDqGMyorlEoSCK6hsTTF80PpD1l0aJWO7GDi99mEw9OnD1uBk1OehAnnssHVYQWfpRNJ5LZuJQfg5hvwE1mEI8yO2auOJVZwDvbdzhdB3HFApz78hmCm7E= Received: by 83.161.120.155 with SMTP id f19mr4153666wac.1186258182701; Sat, 04 Aug 2007 13:09:42 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sat, 4 Aug 2007 13:09:42 -0700 (PDT) Message-ID: <brookschristopher@example.org> Date: Sat, 4 Aug 2007 16:09:42 -0400 From: "Nathan Mittler" <brookschristopher@example.org> To: brookschristopher@example.org Subject: Re: ssl sockets In-Reply-To: <brookschristopher@example.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42798_11763064.1186258182675" References: <brookschristopher@example.org> <brookschristopher@example.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42798_11763064.1186258182675 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I've created an issue and attached a small patch http://issues.apache.org/bugzilla/show_bug.cgi?id=43035 I think this should do the trick. Regards, Nate On 8/4/07, William A. Rowe, Jr. <brookschristopher@example.org> wrote: > > Nathan Mittler wrote: > > Hi everyone, > > I was just reading through the docs in trunk for ssl sockets. Great to > > see that ssl is making its way into APR! > > > > At first glance, I don't see a way to wrap an ssl socket around a > > pre-existing (tcp) socket. Does this functionality exist and if not, > > are there plans to add it in the future? > > We will need to. Too many STARTTLS style protocols require a dynamic > upgrade of the socket to SSL encryption. > > Patches are welcome ;-) > > Bill > ------=_Part_42798_11763064.1186258182675 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I&#39;ve created an issue and attached a small patch <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=43035">http://issues.apache.org/bugzilla/show_bug.cgi?id=43035</a><br> <br> I think this should do the trick.<br> <br> Regards,<br> Nate<br><br><div><span class="gmail_quote">On 8/4/07, <b class="gmail_sendername">William A. Rowe, Jr.</b> &lt;<a href="mailto:brookschristopher@example.org">brookschristopher@example.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Nathan Mittler wrote:<br>&gt; Hi everyone,<br>&gt; I was just reading through the docs in trunk for ssl sockets.&nbsp;&nbsp;Great to<br>&gt; see that ssl is making its way into APR!<br>&gt;<br>&gt; At first glance, I don&#39;t see a way to wrap an ssl socket around a <br>&gt; pre-existing (tcp) socket.&nbsp;&nbsp;Does this functionality exist and if not,<br>&gt; are there plans to add it in the future?<br><br>We will need to.&nbsp;&nbsp;Too many STARTTLS style protocols require a dynamic<br>upgrade of the socket to SSL encryption. <br><br>Patches are welcome ;-)<br><br>Bill<br></blockquote></div><br> ------=_Part_42798_11763064.1186258182675-- From brookschristopher@example.org Sat Aug 04 20:17:17 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 59454 invoked from network); 4 Aug 2007 20:17:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Aug 2007 20:17:15 -0000 Received: (qmail 8719 invoked by uid 500); 4 Aug 2007 20:17:13 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 8675 invoked by uid 500); 4 Aug 2007 20:17:13 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 8664 invoked by uid 99); 4 Aug 2007 20:17:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 13:17:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wa-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 20:17:10 +0000 Received: by wa-out-1112.google.com with SMTP id j37so1755191waf for <brookschristopher@example.org>; Sat, 04 Aug 2007 13:16:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=gQKDowFvI3HvUpoTii+cVnlXU31EdAuhHvvSVIJOWKVGm3dgtSXJsA5efjj9ojduv4/Ir56Nj2xXIu5GsbndjtfFXf72dJjTD6yM4gDdl8R6whf981OU+l9p1YHFDL12k0Oc0KDx9zJqCXu34e+todVwyO4aboHl5VDORLdH4Eo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RH7WhOnk/zFwUxF5mYbMTeXNJ5PL0M1CaTGCiUOgKrZQKp1QMKDBClbQ+CqWh9t+9AtG0B4ZF4KxzG+ZI7FHT8bEf0tWsqoCh0cLe8/JfdoNncImQyH+07o1YB2CB42ElvSGLMvseEdjWzWLyHhGpsMJW2c0XDBb87IgqXR5dlg= Received: by 83.161.120.155 with SMTP id z1mr4180775wai.1186258609873; Sat, 04 Aug 2007 13:16:49 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sat, 4 Aug 2007 13:16:49 -0700 (PDT) Message-ID: <brookschristopher@example.org> Date: Sat, 4 Aug 2007 16:16:49 -0400 From: "Nathan Mittler" <brookschristopher@example.org> To: brookschristopher@example.org Subject: project using apr MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42886_3290499.1186258609855" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42886_3290499.1186258609855 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey guys, Just wanted to give you another open source project to add to you list of APR users. The Apache ActiveMQ-CPP project (http://activemq.apache.org/cms/) is going to be using APR in its next release. Thanks for all your hard work - it's much appreciated! :) Regards, Nate ------=_Part_42886_3290499.1186258609855 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey guys,<br>Just wanted to give you another open source project to add to you list of APR users.&nbsp; The Apache ActiveMQ-CPP project (<a href="http://activemq.apache.org/cms/">http://activemq.apache.org/cms/</a>) is going to be using APR in its next release. <br><br>Thanks for all your hard work - it&#39;s much appreciated! :)<br><br>Regards,<br>Nate<br> ------=_Part_42886_3290499.1186258609855-- From brookschristopher@example.org Sun Aug 05 06:49:47 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 88703 invoked from network); 5 Aug 2007 06:49:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Aug 2007 06:49:46 -0000 Received: (qmail 90098 invoked by uid 500); 5 Aug 2007 06:49:44 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 90066 invoked by uid 500); 5 Aug 2007 06:49:44 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 90055 invoked by uid 99); 5 Aug 2007 06:49:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 23:49:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.bom.dk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 05 Aug 2007 06:49:27 +0000 Received: (qmail 22358 invoked by uid 99); 5 Aug 2007 06:48:37 -0000 Received: from 83.161.120.155 ([83.161.120.155]) by webmail.wizardweb.dk (Horde MIME library) with HTTP; Sun, 05 Aug 2007 08:48:36 +0200 Message-ID: <brookschristopher@example.org> Date: Sun, 05 Aug 2007 08:48:36 +0200 From: brookschristopher@example.org To: brookschristopher@example.org Subject: Re: UDP Listening Port References: <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi Barry. This is just a quick suggestion, but try moving the =20 apr_socket_timeout_set into the while(!terminate) loop, so it's called =20 everytime (works for me). Regards Ruben Quoting Barry Molof <brookschristopher@example.org>: > Hi All, > > > > I am trying to create a UDP port that will only receive data, never > send. My problem is that even though I am setting the socket timeout to > a number greater than 0, the call to apr_socket_recv blocks and never > returns because of a timeout. This is causing my program to hang. Even > if another thread closes the socket, the recv method still blocks. Here > is some of my code below. Can anyone help? Thanks. > > > > apr_pool_t *p; > > apr_socket_t *sock; > > apr_sockaddr_t *local_sa; > > > > // create a pool > > apr_pool_create(&p, NULL); > > > > // create the address info > > apr_sockaddr_info_get(&local_sa, NULL, APR_INET, notificationPort, 0, > p); > > > > // create the socket > > apr_socket_create(&sock, local_sa->family, SOCK_DGRAM, APR_PROTO_UDP, > p); > > > > // set socket opts > > apr_socket_opt_set(sock, APR_SO_LINGER, 1); > > apr_socket_opt_set(sock, APR_SO_RCVBUF, 16384); > > apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1); > > apr_socket_opt_set(sock, APR_SO_BROADCAST, 1); > > > > // set timeout > > apr_socket_timeout_set(sock, 1000000); > > > > // bind socket to notification port > > apr_socket_bind(sock, local_sa); > > > > char datarecv[MON_APR_STRLEN]; > > string readbuff =3D ""; > > size_t maxLineSize =3D 8000; > > while(!terminate) > > { > > apr_size_t length =3D MON_APR_STRLEN; > > memset(datarecv, 0, MON_APR_STRLEN); > > rv =3D apr_socket_recv(sock, datarecv, &length); // this will block > forever > > > > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From brookschristopher@example.org Sun Aug 05 12:51:53 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 65933 invoked from network); 5 Aug 2007 12:51:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Aug 2007 12:51:52 -0000 Received: (qmail 10788 invoked by uid 500); 5 Aug 2007 12:51:51 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 10746 invoked by uid 500); 5 Aug 2007 12:51:50 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 10730 invoked by uid 99); 5 Aug 2007 12:51:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 05:51:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 12:51:47 +0000 Received: by rv-out-0910.google.com with SMTP id f1so788429rvb for <brookschristopher@example.org>; Sun, 05 Aug 2007 05:51:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=rqBLSr+3w1v0vQ2g+ZFM9tNfmwzDHc3bQhTZwcjFASO0iY1x64dU8gh7GrP85ORnm1mYSAZPb2ECRBnjsE7Eghckl3KQmfhTqzVkMqRvsLGYTdwC/VcXTFVoDr21R1H+RrO7Pzk2SG9SmHVR6FJr5XoH+d5QQ+XdP43QefpAo3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VUbbv6y30D4/lqo0isIDBkuDYqGDOL03twI5T4FHVjSKZJZRTalQOoypl2pdMW31sfFNR/HOctDsf+E1o6P8nLAsgL1vO77DkaPGIgq3eREO1S2Z+g3HieFfCBKSHvBFd4cU+gDxMEXWeA1Y6FBoP1lTMYletbQxdZh8cLPNavk= Received: by 83.161.120.155 with SMTP id x11mr204347wfg.1186318286827; Sun, 05 Aug 2007 05:51:26 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sun, 5 Aug 2007 05:51:26 -0700 (PDT) Message-ID: <brookschristopher@example.org> Date: Sun, 5 Aug 2007 14:51:26 +0200 From: "Erik Huelsmann" <brookschristopher@example.org> To: "=?UTF-8?Q?Wilfredo_S=C3=A1nchez_Vega?=" <brookschristopher@example.org> Subject: Re: apr_filepath_encoding on Darwin Cc: "Joe Orton" <brookschristopher@example.org>, "APR Developer List" <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_109447_22642587.1186318286788" References: <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_109447_22642587.1186318286788 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline > > - if Darwin has a configurable locale, does *not* set this up by > > default > > such that nl_langinfo(CODESET) returns UTF-8, but does by policy > > require > > filenames in UTF-8, regardless of locale, I would agree with changing > > apr_filepath_encoding as Erik proposed. That is the case? > > I don't know what the BSD locale system (nl_langinfo , whatever) > does in Darwin; I've never worked with it. I only know that for file > names, we tell developers to use UTF-8. > > -wsv I'd like to conclude this thread then by supplying a patch which applies equally to trunk and 0.9.x with patch -p1, to return UTF8 paths on Darwin. Note that I wasn't able to test the change myself, as I don't have access to Darwin, but the code change is trivial. (I just wonder if I got the #if-s right.) Bye, Erik. (I attached the patch because Google often munges them, but if you want, I can supply it inline too.) ------=_Part_109447_22642587.1186318286788 Content-Type: text/x-patch; name=apr-trunk-darwin-utf8-filepaths.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_f4zjbsf2 Content-Disposition: attachment; filename="apr-trunk-darwin-utf8-filepaths.patch" SW5kZXg6IHRydW5rL2ZpbGVfaW8vdW5peC9maWxlcGF0aC5jCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHRydW5r L2ZpbGVfaW8vdW5peC9maWxlcGF0aC5jCShyZXZpc2lvbiA1NjI3NTMpCisrKyB0cnVuay9maWxl X2lvL3VuaXgvZmlsZXBhdGguYwkod29ya2luZyBjb3B5KQpAQCAtMzA1LDYgKzMwNSwxMCBAQAog CiBBUFJfREVDTEFSRShhcHJfc3RhdHVzX3QpIGFwcl9maWxlcGF0aF9lbmNvZGluZyhpbnQgKnN0 eWxlLCBhcHJfcG9vbF90ICpwKQogeworI2lmIGRlZmluZWQoREFSV0lOKQorICAgICpzdHlsZSA9 IEFQUl9GSUxFUEFUSF9FTkNPRElOR19VVEY4CisjZWxzZQogICAgICpzdHlsZSA9IEFQUl9GSUxF UEFUSF9FTkNPRElOR19MT0NBTEU7CisjZW5kaWYKICAgICByZXR1cm4gQVBSX1NVQ0NFU1M7CiB9 Cg== ------=_Part_109447_22642587.1186318286788-- From brookschristopher@example.org Sun Aug 05 14:21:23 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 84650 invoked from network); 5 Aug 2007 14:21:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Aug 2007 14:21:22 -0000 Received: (qmail 40634 invoked by uid 500); 5 Aug 2007 14:21:21 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 40585 invoked by uid 500); 5 Aug 2007 14:21:21 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Delivered-To: moderator for brookschristopher@example.org Received: (qmail 24874 invoked by uid 99); 5 Aug 2007 13:35:05 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=cBPyJgs6ihC86wJZP4DxeWb50/qpQjP0fzpnh9mnYDHHXW8bCjaxGAnRsyXWNpVUFwjNqLcty1HvcOxyeZYIEnowMcxxmRAENrhZX6Bh6G0WmT3TwI4t9tk62mfUHsia0ECoXfD+sZacA2EAYkSY8mkrlPb+fYxTxLwA3EQyFdc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=kkPwj4lsO9wVPCvlY8xwy6CvC9uzGbbJpOlBRGRr6iPnVYpW3rsx3jzjC7BXJo2+xXUn24VaX5jlh6om6tQniHsLUp/lbsaEXYI8iQqpWxIgthW1rgifvu3sa76v6besEKUH/gjUPTHJotY8fwInljlbDOTFdeJKdHyCENoSI9I= Message-ID: <brookschristopher@example.org> Date: Sun, 5 Aug 2007 16:34:38 +0300 From: "Lucian Adrian Grijincu" <brookschristopher@example.org> Reply-To: brookschristopher@example.org Sender: brookschristopher@example.org To: brookschristopher@example.org Subject: Re: [doc] Signal Handling listed as Handling In-Reply-To: <brookschristopher@example.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_95653_32504277.1186320878874" References: <brookschristopher@example.org> X-Google-Sender-Auth: eba76b027d6f5948 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_95653_32504277.1186320878874 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Patch attached :) On 2/20/07, Lucian Adrian Grijincu <brookschristopher@example.org> wrote: > As you can see "Signal Handling" is listed as "Handling" in the APR > documentation. http://apr.apache.org/docs/apr/trunk/group__apr__signal.html > > As I couldn't find any discussion on this matter I think this is a > documentation mistake (as in "it handles what exactly?"). > > This is a extremely trivial documentation fix but if you want me to, > I'll submit a patch too :) > > -- > Lucian Adrian Grijincu > ------=_Part_95653_32504277.1186320878874 Content-Type: application/octet-stream; name=apr_signal_name_patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f4zksrtp Content-Disposition: attachment; filename="apr_signal_name_patch" SW5kZXg6IGluY2x1ZGUvYXByX3NpZ25hbC5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGluY2x1ZGUvYXByX3Np Z25hbC5oCShyZXZpc2lvbiA1NjI4NjUpCisrKyBpbmNsdWRlL2Fwcl9zaWduYWwuaAkod29ya2lu ZyBjb3B5KQpAQCAtMzQsNyArMzQsNyBAQAogI2VuZGlmIC8qIF9fY3BsdXNwbHVzICovCiAKIC8q KgotICogQGRlZmdyb3VwIGFwcl9zaWduYWwgSGFuZGxpbmcKKyAqIEBkZWZncm91cCBhcHJfc2ln bmFsIFNpZ25hbCBIYW5kbGluZwogICogQGluZ3JvdXAgQVBSIAogICogQHsKICAqLwo= ------=_Part_95653_32504277.1186320878874-- From brookschristopher@example.org Sun Aug 05 14:21:41 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 84813 invoked from network); 5 Aug 2007 14:21:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Aug 2007 14:21:40 -0000 Received: (qmail 41307 invoked by uid 500); 5 Aug 2007 14:21:39 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 41262 invoked by uid 500); 5 Aug 2007 14:21:39 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Delivered-To: moderator for brookschristopher@example.org Received: (qmail 31969 invoked by uid 99); 5 Aug 2007 14:01:18 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brookschristopher@example.org designates 83.161.120.155 as permitted sender) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Jzrc+PpWc2sfpo/+pNp8JPKFOBmKtx8NoJtUXZJX0Y7Gkj3u1fRDTPVGcHQJKDpSAeumGK47JtGQ/dY5iWuHCuXbZA9+mMUUnsHfsHVA3Sa1dK6oeiwC6jQryiw7/agvyYJlQSWR/dGudrsy1ZO5y/mw1caBMsDCUIhMShD7VTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=j62mXKBiH1pZAQwCf0jieLgc1LcNBUz2Hxx4gdS2pQ6m7FATW/y+zO19ID0wCfnA7pi1c/tKD9SozVYR+o8aDs0iaUWT8FzaYUE22bYVKCrarExWl4gfBCK8G31oDoTvhDHJNpZCWIvlHK9SvqYI2/F/XIrH96QfKobJuiBKjWw= Message-ID: <brookschristopher@example.org> Date: Sun, 5 Aug 2007 17:00:53 +0300 From: "Lucian Adrian Grijincu" <brookschristopher@example.org> Reply-To: brookschristopher@example.org Sender: brookschristopher@example.org To: brookschristopher@example.org Subject: Re: project using apr In-Reply-To: <brookschristopher@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <brookschristopher@example.org> X-Google-Sender-Auth: 5f29ededa5f62011 X-Virus-Checked: Checked by ClamAV on apache.org http://cs.pub.ro/~ixlabs/?page_id=134 LKLFTPD and LKL LKLFTPD is a FTP daemon that can run standalone or linked to LKL (Linux Kernel Library). The Linux Kernel Library is a port of the Linux kernel that can be used as a library (for example Linux processes are currently simulated with APR threads). Any non-static function from the kernel can be called from applications linking to the LKL. This is currently used to read ext3/minixfs/other Linux specific filesystem images through the LKL and transfer files through FTP to a FTP client. The next version of the LKL will be transformed into a windows filesystem driver which will basically mean we'll get all the code from the Linux kernel that parses ext2/ext3/whatever filesystems integrated into windows. Changes made to the Linux kernel (support for new filesystems, bug fixes in the current implementation of filesystem drivers) will be automagically integrated in the LKL filesystem driver, thus bringing new functionality to the Windows platform and ultimately making life easier for dual-booters out there :). Anyways, that's the plan. Currently we HAVE a multithreaded FTP daemon implemented. -- Lucian Adrian Grijincu On 8/4/07, Nathan Mittler <brookschristopher@example.org> wrote: > Hey guys, > Just wanted to give you another open source project to add to you list of > APR users. The Apache ActiveMQ-CPP project > (http://activemq.apache.org/cms/) is going to be using APR in its next > release. > > Thanks for all your hard work - it's much appreciated! :) > > Regards, > Nate > From brookschristopher@example.org Sun Aug 05 15:50:27 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 79228 invoked from network); 5 Aug 2007 15:50:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Aug 2007 15:50:26 -0000 Received: (qmail 5161 invoked by uid 500); 5 Aug 2007 15:50:26 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 4798 invoked by uid 500); 5 Aug 2007 15:50:25 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 4787 invoked by uid 99); 5 Aug 2007 15:50:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 08:50:25 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO verdesmares.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 15:50:21 +0000 Received: from karmic-2.local (unknown [83.161.120.155]) by verdesmares.com (Postfix) with ESMTP id EE7C31DBC4323 for <brookschristopher@example.org>; Sun, 5 Aug 2007 15:49:57 +0000 (UTC) Message-ID: <brookschristopher@example.org> Date: Sun, 05 Aug 2007 12:49:51 -0300 From: Davi Arnaut <brookschristopher@example.org> MIME-Version: 1.0 To: brookschristopher@example.org Subject: Re: [doc] Signal Handling listed as Handling References: <brookschristopher@example.org> <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Lucian Adrian Grijincu wrote: > Patch attached :) > > On 2/20/07, Lucian Adrian Grijincu <brookschristopher@example.org> wrote: >> As you can see "Signal Handling" is listed as "Handling" in the APR >> documentation. http://apr.apache.org/docs/apr/trunk/group__apr__signal.html >> >> As I couldn't find any discussion on this matter I think this is a >> documentation mistake (as in "it handles what exactly?"). >> >> This is a extremely trivial documentation fix but if you want me to, >> I'll submit a patch too :) >> Committed to trunk: http://svn.apache.org/viewvc?view=rev&revision=562899 Thanks -- Davi Arnaut From brookschristopher@example.org Mon Aug 06 06:09:41 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 38543 invoked from network); 6 Aug 2007 06:09:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Aug 2007 06:09:40 -0000 Received: (qmail 39983 invoked by uid 500); 6 Aug 2007 06:09:38 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 39933 invoked by uid 500); 6 Aug 2007 06:09:38 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 39922 invoked by uid 99); 6 Aug 2007 06:09:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 23:09:37 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 06:09:38 +0000 Received: by brutus.apache.org (Postfix, from userid 1007) id CABB87141F7; Sun, 5 Aug 2007 23:09:17 -0700 (PDT) From: brookschristopher@example.org To: brookschristopher@example.org Subject: Bug report for APR [2007/08/05] Message-Id: <brookschristopher@example.org> Date: Sun, 5 Aug 2007 23:09:17 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org +---------------------------------------------------------------------------+ | Bugzilla Bug ID | | +---------------------------------------------------------------------+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned | | | OPN=Reopened VER=Verified (Skipped Closed/Resolved) | | | +-----------------------------------------------------------------+ | | | Severity: BLK=Blocker CRI=Critical MAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-------------------------------------------------------------+ | | | | Date Posted | | | | | +--------------------------------------------------+ | | | | | Description | | | | | | | |16056|Inf|Enh|2003-01-14|Shared memory & mutex ownership not correctly esta| |20382|New|Nor|2003-05-31|Poor performance on W2000 AS | |24325|Inf|Enh|2003-11-01|apr_reslist doesn't work without threads | |28453|New|Enh|2004-04-18|apr_uri should parse relative to a base URI | |33490|Inf|Nor|2005-02-10|APR does not compile with Borland C++ | |38410|New|Nor|2006-01-27|apr/win32 misinterpreted the meaning of WAIT_ABAND| |39289|New|Enh|2006-04-12|test suite additions for trylock functions | |39853|Inf|Nor|2006-06-21|apr_strtoi64 does not build on WinCE due to lack o| |39895|New|Enh|2006-06-23|apr_os_strerror on WinCE needs to xlate unicode->u| |39896|New|Enh|2006-06-23|Output test status to OutputDebugString in additio| |40020|New|Enh|2006-07-11|Add support for apr_uint8_t and apr_int8_t types | |40193|Inf|Nor|2006-08-06|Patches to support different compiler than EMX on | |40398|Opn|Nor|2006-09-02|Cannot compile project on Windows SDK 6.0 (Vista),| |40622|New|Enh|2006-09-27|enhance apr temp files on NT to be more secure | |40758|Ver|Maj|2006-10-15|WIN64, apr_vformatter(..) cannot handle 64bit poin| |40939|New|Enh|2006-11-09|pool minimal allocation size should be configurabl| |40955|New|Nor|2006-11-13|possible apr_allocator_max_free_set issues | |41099|New|Enh|2006-12-03|Manually block apr_queue_pop(), apr_queue_push(), | |41192|New| |2006-12-17|Add the expat libtool file to the LT_LDFLAGS varia| |41254|New|Enh|2006-12-28|apr_queue_t enhancements | |41351|New|Enh|2007-01-11|Tivoli LDAP SDK support in aprutil | |41352|New|Min|2007-01-11|openldap and per-connection client certificates in| |41386|Inf|Nor|2007-01-16|apr_dso_load ignores DYLD_LIBRARY_PATH on Mac OSX | |41678|New|Nor|2007-02-22|APR_FINFO_CSIZE support missing on unix | |41807|New|Enh|2007-03-10|dbd driver registration function | |41916|Inf|Nor|2007-03-21|MinGW support | |42066|New|Maj|2007-04-07|apr_bucket_alloc crash when apr_allocator_alloc fa| |42365|New|Enh|2007-05-09|Suppress console for apr_proc_create() created pro| |42725|New|Nor|2007-06-22|'make check' does not fail if tests fail | |42755|Ver|Nor|2007-06-27|Can not determine the proper size for ssize_t | |42786|New|Enh|2007-06-30|apr_dbd_open needs an additional parameter for err| |42841|New|Nor|2007-07-09|APR reslist algorithm fails for some database conn| |42848|New|Enh|2007-07-10|add IP TOS support to apr_socket_opt_set() | |42889|Inf|Nor|2007-07-13|Thread pooling declaration fix and enhancements | |43000|Inf|Blk|2007-07-30|./testall always freeze on testsockets | |43025|Inf|Nor|2007-08-03|Size of GDBM value not calculated or stored, poten| |43035|New|Nor|2007-08-04|Add ability to wrap ssl around pre-existing socket| +-----+---+---+----------+--------------------------------------------------+ | Total 37 bugs | +---------------------------------------------------------------------------+ From brookschristopher@example.org Mon Aug 06 23:10:37 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 47506 invoked from network); 6 Aug 2007 23:10:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Aug 2007 23:10:36 -0000 Received: (qmail 82860 invoked by uid 500); 6 Aug 2007 23:10:34 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 82457 invoked by uid 500); 6 Aug 2007 23:10:33 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 82446 invoked by uid 99); 6 Aug 2007 23:10:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 16:10:33 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-out4.apple.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 23:10:19 +0000 Received: from relay7.apple.com (relay7.apple.com [83.161.120.155]) by mail-out4.apple.com (Postfix) with ESMTP id 15132E13429; Mon, 6 Aug 2007 16:10:01 -0700 (PDT) Received: from relay7.apple.com (unknown [83.161.120.155]) by relay7.apple.com (Symantec Mail Security) with ESMTP id 00B7F300A2; Mon, 6 Aug 2007 16:10:01 -0700 (PDT) X-AuditID: 11807125-a2a1fbb0000007e5-5c-46b7aa488fb9 Received: from pucca.apple.com (pucca.apple.com [83.161.120.155]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay7.apple.com (Apple SCV relay) with ESMTP id D09AB300DB; Mon, 6 Aug 2007 16:10:00 -0700 (PDT) Cc: Joe Orton <brookschristopher@example.org>, APR Developer List <brookschristopher@example.org> Message-Id: <brookschristopher@example.org> From: =?ISO-8859-1?Q?Wilfredo_S=E1nchez_Vega?= <brookschristopher@example.org> To: Roy T. Fielding <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> Content-Type: multipart/signed; boundary=Apple-Mail-4--171313210; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v899) Subject: Re: apr_filepath_encoding on Darwin Date: Mon, 6 Aug 2007 16:10:00 -0700 References: <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> X-Mailer: Apple Mail (2.899) X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-4--171313210 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable (Sorry for the lame reply latency.) On Jul 18, 2007, at 5:24 PM, Roy T. Fielding wrote: > A system less concerned with backwards compatibility is better off > with a requirement of utf-8, though OS X should have made the filename > encoding a mount option. I disagree. Having one encoding is far superior to every =20 application having to first find out what encoding the filesystem is =20 question is using then using that. I see no value in having different mount points use different =20 encodings. > I assume that the ISO9660-Joliet (CD-ROM) driver does > some form of filename translation automatically from UCS-2. The underlying volume format can use whatever it wants. Ideally =20 the format defines what that is. Unfortunately, that's not the case, =20= but for those that do, yes, converting to UTF-8 is the responsibility =20= of the file system at the VFS layer. I suppose that a mount option to tell the filesystem that "this UFS =20= volume uses encoding X" would be useful, but I maintain that above the =20= kernel, you really want one encoding, not N. Helping the kernel know =20= what's underneath is certainly useful. > In any case, even with the convention, it is left to the application > to determine how it will treat encoded filenames. The OS X decision > to treat them all as utf-8 is at least consistent. OTOH, this > is just a display convention -- OS X apps should have been designed > to treat the filename internally as an opaque nul-terminated array, > rather than barfing on non-utf8 encodings. This is difficult in practice. When the open panel sees a file =20 that is not in UTF-8, there is no reliable way to display anything =20 sane to the user. I suppose a Linux nerd might say "show me some hex" =20= or something, but most of our users are not Linux nerds. I agree that =20= crashing is worse than hex, though. Basically, on Mac OS X, you can, in fact, use whatever characters =20 you like on UFS and BSD level software tends to cope with that. But if =20= you aren't using UTF-8, then you aren't writing file name that are =20 meant for user consumption. ie. that may be OK for a database (eg. =20 fsfs), though I think that even in that case you can reasonably stick =20= to ASCII in many cases. > One thing I miss in OS X is an automated way for file archivers > (like unzip) to recognize and convert non-utf-8 filenames > when they are unarchived. I frequently have to do that by hand > after unzipping something from China or Switzerland. Again, same as with volume formats, if the zip file format defines =20= the encoding in zip files, then this should be easy (insofar as =20 encodings are easy) for the software to deal with. > Subversion > breaks on OS X whenever someone commits a filename with an e-grave, > which is a problem when your main product name is Communiqu=E9. > I wonder if this change in APR would fix that error? You still have to hope that the inbound encoding is correct (that =20 is, that svn somehow knows it). On OS X, that's easy; it's UTF-8. =20 Once other operating systems come into the mix, it'll works as well as =20= the encodings are defined (and known to svn) on those systems. -wsv =97 Wilfredo S=E1nchez - brookschristopher@example.org --Apple-Mail-4--171313210 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAo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AhBDiqPVGS8kMBD4 DcAJeWuXMIGHBgsqhkiG9w0BCRACCzF4oHYwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0 ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFp bCBJc3N1aW5nIENBAhBDiqPVGS8kMBD4DcAJeWuXMA0GCSqGSIb3DQEBAQUABIIBAKuibGLvW6Fa yG/a4pNxbvAEadJGjRHKiSsWUpiEGfN2gyBeZzgO2Ds+ieHGxFCscpxckhjeRJeDY2LyUrwsaHMn 5SvYUTojzvhrwUYlpMk0TEoD4q9HOnOC+TDCdKe5Rl1JOKYDeawXV2P7IhYpWz4XCWKRsW9s3Mz1 MBapcm6LgncdU1Wwhm2Jz+JcjJlLwW844gcfsYSGSinFR9YdibEektEh2GQVhM42iGWHYUoWZXt9 mFlfHoEc9WFPC88QJyJho+Q7WAdxsRcb8LNmTDEbT07ZEXeB44Nrnf1vsplGeuwLH0agbkFkWyRY AIK2YH0fMZPftdJHGiYmMjNArxAAAAAAAAA= --Apple-Mail-4--171313210-- From brookschristopher@example.org Mon Aug 06 23:10:55 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 47760 invoked from network); 6 Aug 2007 23:10:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Aug 2007 23:10:53 -0000 Received: (qmail 83330 invoked by uid 500); 6 Aug 2007 23:10:52 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 82942 invoked by uid 500); 6 Aug 2007 23:10:52 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 82931 invoked by uid 99); 6 Aug 2007 23:10:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 16:10:51 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-out4.apple.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 23:10:37 +0000 Received: from relay7.apple.com (relay7.apple.com [83.161.120.155]) by mail-out4.apple.com (Postfix) with ESMTP id 76C6CE13437; Mon, 6 Aug 2007 16:10:24 -0700 (PDT) Received: from relay7.apple.com (unknown [83.161.120.155]) by relay7.apple.com (Symantec Mail Security) with ESMTP id 61B51300C3; Mon, 6 Aug 2007 16:10:24 -0700 (PDT) X-AuditID: 11807125-a221ebb0000007e5-a6-46b7aa60a911 Received: from pucca.apple.com (pucca.apple.com [83.161.120.155]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay7.apple.com (Apple SCV relay) with ESMTP id 33E9E300DF; Mon, 6 Aug 2007 16:10:24 -0700 (PDT) Cc: "Joe Orton" <brookschristopher@example.org>, "APR Developer List" <brookschristopher@example.org> Message-Id: <brookschristopher@example.org> From: =?ISO-8859-1?Q?Wilfredo_S=E1nchez_Vega?= <brookschristopher@example.org> To: Erik Huelsmann <brookschristopher@example.org> In-Reply-To: <brookschristopher@example.org> Content-Type: multipart/signed; boundary=Apple-Mail-5--171289774; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v899) Subject: Re: apr_filepath_encoding on Darwin Date: Mon, 6 Aug 2007 16:10:23 -0700 References: <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> X-Mailer: Apple Mail (2.899) X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-5--171289774 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable +1 -wsv On Aug 5, 2007, at 5:51 AM, Erik Huelsmann wrote: >>> - if Darwin has a configurable locale, does *not* set this up by >>> default >>> such that nl_langinfo(CODESET) returns UTF-8, but does by policy >>> require >>> filenames in UTF-8, regardless of locale, I would agree with =20 >>> changing >>> apr_filepath_encoding as Erik proposed. That is the case? >> >> I don't know what the BSD locale system (nl_langinfo , whatever) >> does in Darwin; I've never worked with it. I only know that for file >> names, we tell developers to use UTF-8. >> >> -wsv > > I'd like to conclude this thread then by supplying a patch which > applies equally to trunk and 0.9.x with patch -p1, to return UTF8 > paths on Darwin. > > Note that I wasn't able to test the change myself, as I don't have > access to Darwin, but the code change is trivial. (I just wonder if I > got the #if-s right.) > > Bye, > > Erik. > > (I attached the patch because Google often munges them, but if you > want, I can supply it inline too.) > <apr-trunk-darwin-utf8-filepaths.patch> =97 Wilfredo S=E1nchez - brookschristopher@example.org --Apple-Mail-5--171289774 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIH7jCCAz8w ggKooAMCAQICAQ0wDQYJKoZIhvcNAQEFBQAwgdExCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0 ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcx KDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0 ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkGCSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxA dGhhd3RlLmNvbTAeFw0wMzA3MTcwMDAwMDBaFw0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2OFvZF4lndh6/MTnbQNnOfON11NAR3EaKUM51UNeElCtNIIDhI SoRyw549q+/SePFHrDm6DjImpZtog3g3H6XS2WjumVZeISopkEo1f1Fo5V4vRv/AAsBO26FwAVQ5 6bkKGFRV+4igErh2uAL6dF/CrhrB7jqdP5utROQE0/ABQXlsUKU01y3/IYxGFyEhozdxzvAJ81LJ uZxFFvY0P5n8NHFBZuez+BVHUpoAAAAAAAA= --Apple-Mail-5--171289774-- From brookschristopher@example.org Tue Aug 07 00:12:07 2007 Return-Path: <brookschristopher@example.org> Delivered-To: brookschristopher@example.org Received: (qmail 79214 invoked from network); 7 Aug 2007 00:12:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Aug 2007 00:12:05 -0000 Received: (qmail 34903 invoked by uid 500); 7 Aug 2007 00:12:03 -0000 Delivered-To: brookschristopher@example.org Received: (qmail 34845 invoked by uid 500); 7 Aug 2007 00:12:03 -0000 Mailing-List: contact brookschristopher@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:brookschristopher@example.org> List-Help: <mailto:brookschristopher@example.org> List-Unsubscribe: <mailto:brookschristopher@example.org> List-Id: <dev.apr.apache.org> Delivered-To: mailing list brookschristopher@example.org Received: (qmail 34834 invoked by uid 99); 7 Aug 2007 00:12:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 17:12:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO spaceymail-a3.g.dreamhost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 00:11:59 +0000 Received: from [83.161.120.155] (wsip-620.778.4456.oc.oc.cox.net [83.161.120.155]) by spaceymail-a3.g.dreamhost.com (Postfix) with ESMTP id 2533E1951F7; Mon, 6 Aug 2007 17:11:38 -0700 (PDT) In-Reply-To: <brookschristopher@example.org> References: <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> <brookschristopher@example.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <brookschristopher@example.org> Cc: Joe Orton <brookschristopher@example.org>, APR Developer List <brookschristopher@example.org> Content-Transfer-Encoding: quoted-printable From: "Roy T. Fielding" <brookschristopher@example.org> Subject: Re: apr_filepath_encoding on Darwin Date: Mon, 6 Aug 2007 17:11:25 -0700 To: =?ISO-8859-1?Q?Wilfredo_S=E1nchez_Vega?= <brookschristopher@example.org> X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 6, 2007, at 4:10 PM, Wilfredo S=E1nchez Vega wrote: > (Sorry for the lame reply latency.) > > On Jul 18, 2007, at 5:24 PM, Roy T. Fielding wrote: > >> A system less concerned with backwards compatibility is better off >> with a requirement of utf-8, though OS X should have made the =20 >> filename >> encoding a mount option. > > I disagree. Having one encoding is far superior to every =20 > application having to first find out what encoding the filesystem =20 > is question is using then using that. > > I see no value in having different mount points use different =20 > encodings. Well, neither do I (now that utf-8 exists), but the fact is that they do and they aren't necessarily controlled by the same OS. >> I assume that the ISO9660-Joliet (CD-ROM) driver does
{'source': 'Apache Software Foundation Public Mail Archives'}