Main Page | File List | Globals

src/path.c File Reference

Translation Unix pathnames -> Windows pathnames. More...

#include "plibc_private.h"

Go to the source code of this file.

Functions

long _plibc_DetermineRootDir ()
 Determine the Windows path of our / directory.
long _plibc_DetermineHomeDir ()
 Determine the user's home directory.
int plibc_conv_to_win_path (const char *pszUnix, char *pszWindows)
 Convert a POSIX-sytle path to a Windows-style path.
int plibc_conv_to_win_path_ex (const char *pszUnix, char *pszWindows, int derefLinks)
 Convert a POSIX-sytle path to a Windows-style path.


Detailed Description

Translation Unix pathnames -> Windows pathnames.

Definition in file path.c.


Function Documentation

long _plibc_DetermineHomeDir  ) 
 

Determine the user's home directory.

For internal use only.

Returns:
Error code from winerror.h, ERROR_SUCCESS on success

Definition at line 104 of file path.c.

References QueryRegistry().

Referenced by plibc_init().

long _plibc_DetermineRootDir  ) 
 

Determine the Windows path of our / directory.

For internal use only.

Returns:
Error code from winerror.h, ERROR_SUCCESS on success

Definition at line 41 of file path.c.

References QueryRegistry().

Referenced by plibc_init().

int plibc_conv_to_win_path const char *  pszUnix,
char *  pszWindows
 

Convert a POSIX-sytle path to a Windows-style path.

Parameters:
pszUnix POSIX path
pszWindows Windows path
Returns:
Error code from winerror.h, ERROR_SUCCESS on success

Definition at line 166 of file path.c.

References plibc_conv_to_win_path_ex().

Referenced by __win_stat(), _win_access(), _win_chdir(), _win_chmod(), _win_creat(), _win_fopen(), _win_open(), _win_opendir(), _win_rmdir(), and truncate().

int plibc_conv_to_win_path_ex const char *  pszUnix,
char *  pszWindows,
int  derefLinks
 

Convert a POSIX-sytle path to a Windows-style path.

Parameters:
pszUnix POSIX path
pszWindows Windows path
derefLinks 1 to dereference links
Returns:
Error code from winerror.h, ERROR_SUCCESS on success

Definition at line 178 of file path.c.

References __win_deref().

Referenced by _win_remove(), _win_rename(), _win_unlink(), and plibc_conv_to_win_path().


Generated on Sun Sep 4 11:16:48 2005 for PlibC by  doxygen 1.4.2