delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/29/12:18:53

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3BDD893C.38E0EB9@yahoo.com>
Date: Mon, 29 Oct 2001 11:52:12 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: CD List <Cygwin-Developers AT Cygwin DOT Com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: CD List <Cygwin-Developers AT Cygwin DOT Com>
Subject: realpath - FIXME

<snipit path.cc>
extern "C" char *
realpath (const char *path, char *resolved)
{
  int err;

  path_conv real_path (path, PC_SYM_FOLLOW | PC_FULL);

  if (real_path.error)
    err = real_path.error;
  else
    {
      err = mount_table->conv_to_posix_path (real_path.get_win32 (),
resolved, 0);
      if (err == 0)
        return resolved;
    }

  /* FIXME: on error, we are supposed to put the name of the path
     component which could not be resolved into RESOLVED.  */
  resolved[0] = '\0';

  set_errno (err);
  return NULL;
}
</snipit>

<SUSv2>
RETURN VALUE

     On successful completion, realpath() returns a pointer to the
resolved name. Otherwise, realpath() returns a null pointer and sets
errno to indicate
     the error, and the contents of the buffer pointed to by
resolved_name are undefined. 
</SUSv2>

<?>
Why the FIXME?
</?>

-- 
Earnie.
http://www.clubshop.com/cgi/members/EB10651

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


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