site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meg.abyt.es; s=google; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:reply-by:x-message:mime-version:content-type :content-transfer-encoding:message-id; bh=nooebOFFeZJ8U7v45op4RVa2xSIor8pJssPLNUgGsYo=; b=bXIvnhI9otUXAk/4stiksdnEDqa630jJKB91xU566t+dAsTbgP6N/XCTBtAo3U06ND Oto1044JuluT+QzWrh1Yip0pMEmn+T4qLwTpb1a7wHN/zBbS+1QMRTMaLcKPMY5tvPsm 8bmCzOIdJa8gNI3bekNxy5A9LCuZVg0r8JfHw= Domainkey-signature: a=rsa-sha1; c=nofws; d=meg.abyt.es; s=google; h=from:to:subject:date:user-agent:references:in-reply-to:reply-by :x-message:mime-version:content-type:content-transfer-encoding :message-id; b=E38mqtqpK36m+8t3c1FKSedO4cLhyfCE8FZ9rTwTYQ/RrIhwGTUWcgDO98uuxNw/dt s7MBxTypHD1pLRPAgMWupc9UUer0JwjkKXK6tSA0wESVnOk+U1gREh27ghlyqsQPnzfq m1oBMMGPbvJBSrfG3xC4i67Ds+44eAaZUJigE= Reply-by: Wed, 19 Jan 2011 16:20:00 -0600 User-agent: KMail/1.13.5 (Linux/2.6.32-30-server; KDE/4.4.5; x86_64; ; ) On Tuesday 22 March 2011 14:56:20 James Peach wrote:
On 22 March 2011 11:18, Tilghman Lesher <tilghman@meg.abyt.es> wrote:
On Tuesday 22 March 2011 13:03:15 James Peach wrote:
On 22 March 2011 06:08, Steven Abner <pheonix@zoomtown.com> wrote:
Hi , I was working on Mac symlinks(unix style) and encountered things I couldn't find information on through web searches. I was thinking these are Mac specific flags and meanings, so with that intro: when you lstat() a symlink, lstat states that st_size will be the size of the pathname for the link, what does it mean when it is a link with st_size = 0, yet it does have a link?
I believe that the st_size of a symlink is a filesystem implementation detail. You should not rely on it for anything serious.
That may be, but it's still in POSIX: http://pubs.opengroup.org/onlinepubs/009695399/functions/lstat.html
Not every filesystem is posix compliant.
If it's a native filesystem of Mac OS X, which the devfs filesystem certainly is, then for Apple to claim that Mac OS X conforms to POSIX 1003.1 (which it does), the kernel developers need to fix the bug. I realize I may be stepping on some toes, but denying that it's a bug is a ridiculous stance. -- Tilghman _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com