Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-17 23:18:21 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-17 23:18:21 +0400
commit5bc584ba65db809b22dd2e10eb2cef922ca60d26 (patch)
tree8248ba57d925f599c0d3fbfb7a7ba6bf8273350a /winsup/cygwin/dir.cc
parent17811f7bbe8480acfb8b6ef7ad8dcfa5f2819515 (diff)
Throughout, eliminate third argument to path_conv and use new PC_* constants
for second argument. * path.h: Generalize SYMLINK_* constants to PC_*. (path_conv): Create a new method. Fold third argument into second. * dll_init.cc (dll_list::alloc): Try harder to find space to allocate dll struct. (dll_dllcrt0): Don't check sanity if we've already called dll_crt0. * path.cc (path_conv::check): Don't check for a null or empty path unless specifically told with a flag setting. (check_null_empty_path): New function, adapted from macro. * syscalls.cc (_rename): Use already-determined file attributes rather than checking again. * lib/cygwin/cygwin_attach.dll.c (cygwin_attach_dll): Use a static per_process structure since this is apparently supposed to be zeroed. * lib/cygwin_crt0.c (cygwin_crt0): Zero per_process structure sent to older DLLs.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index 944313c20..1b409060e 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -59,7 +59,7 @@ opendir (const char *dirname)
DIR *res = 0;
struct stat statbuf;
- path_conv real_dirname (dirname, SYMLINK_FOLLOW, 1);
+ path_conv real_dirname (dirname, PC_SYM_FOLLOW | PC_FULL);
if (real_dirname.error)
{
@@ -286,7 +286,7 @@ mkdir (const char *dir, mode_t mode)
{
int res = -1;
- path_conv real_dir (dir, SYMLINK_NOFOLLOW);
+ path_conv real_dir (dir, PC_SYM_NOFOLLOW);
if (real_dir.error)
{
@@ -318,7 +318,7 @@ rmdir (const char *dir)
{
int res = -1;
- path_conv real_dir (dir, SYMLINK_NOFOLLOW);
+ path_conv real_dir (dir, PC_SYM_NOFOLLOW);
if (real_dir.error)
{