Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 10346 invoked from network); 29 Jan 2007 17:17:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 17:17:57 -0000 Received: (qmail 60654 invoked by uid 500); 29 Jan 2007 17:18:02 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 60514 invoked by uid 500); 29 Jan 2007 17:18:01 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 60503 invoked by uid 99); 29 Jan 2007 17:18:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 09:18:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.155.252.72] (HELO thunderer.cnchost.com) (207.155.252.72) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 09:17:52 -0800 Received: from [192.168.0.21] (c-24-15-193-17.hsd1.il.comcast.net [24.15.193.17]) (as wrowe@rowe-clan.net) by thunderer.cnchost.com (ConcentricHost(2.54) Relay) with ESMTP id D0DD62320; Mon, 29 Jan 2007 12:17:25 -0500 (EST) Message-ID: <45BE2C08.90503@rowe-clan.net> Date: Mon, 29 Jan 2007 11:16:56 -0600 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: =?UTF-8?B?0LPQtdC90LXRgNCw0Lsg0J/Rg9GA0L/QvtC3?= CC: dev@apr.apache.org, Jeff Trawick Subject: Re: Porting APR to QNX4: portability problems. References: <655149590.20070128175426@gmail.com> <1161280414.20070129191438@gmail.com> In-Reply-To: <1161280414.20070129191438@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org генерал Пурпоз wrote: > > With the official compiler (Watcom C v10.6B) the configuration script > detects the absence of "long long"s, but still - int64 are all around > the place. They are not redefined to a smaller size... It can NOT have a smaller range. apr_int64_t is a contract that there are 64 available bits. If it had 72 bits that wouldn't be the end of the world. Is long double or some other type on the watcom compiler available? > My problem is that I do not understand what is "root" and what is > "path" on my platform. > Consider this: > QNX4 is the networked OS, each machine is a node, all nodes are > visible. > The full path (obtained with the "qnx_fullpath()" call) looks like > "//node-ID/path/to/some/file", for example on node 2 the full path to > "ksh" is "//2/bin/ksh". But if one executes "getcwd()" - he will see a > path like "/home/user". > > So I am all lost and confused: what should I call the "ABS_ROOT", what > is "root" and what is "path"? > Do I get it rigth - "bin/ksh" is the path (or is it just "bin/" ?); > "//2" is ABS_ROOT and "/" is root? > How should I react on the APR_FILEPATH_TRUENAME flag set? A fullpath is the absolute path (truename is the canonical form that must be in the proper case). A root is something you must not ../ up and around. So it seems to me that your root is "//node-ID/". But obviously on this OS, the local node is the equivilant of "/". If you want to use the short node ID on the local paths, that's fine (those roots are "/"). It's important that the paths are **consistent**!!! That will allow folks who test filenames for security purposes are comparing apples to apples. If they pass the "//local-ID/foo" path, they better get back "/foo".