delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/26/17:02:44

Message-ID: <3957BF10.7EBB2B8D@softhome.net>
Date: Mon, 26 Jun 2000 22:37:36 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Patch: chown() preparation for symlinks
References: <395643BB DOT 7109B0DA AT softhome DOT net> <200006261453 DOT KAA11494 AT envy DOT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com

DJ Delorie wrote:
> 
> > -#include <libc/stubs.h>
> 
> This include is *never* redundant.  Without this, we will create a
> libc that violates ANSI/POSIX namespace rules.  Please do not remove
> includes just because it "compiles anyway" without them.  They're
> there for a reason.

Yes; I knew that libc/stubs.h is special. So I looked there
at first, and I haven't found any #define chown __chown,
neither there was any function (in fact, single __file_exists)
referenced. So I assumed that removing it was safe. Is this
assumption wrong? Or is it general policy to #include <libc/stubs.h>
everywhere in libc sources to play safe?

Laurynas

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019