Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Message-ID: <3BDD893C.38E0EB9@yahoo.com> Date: Mon, 29 Oct 2001 11:52:12 -0500 From: Earnie Boyd Reply-To: CD List X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: CD List Subject: realpath - FIXME Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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; } 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. 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